public final class IfmUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addEgressActionInfosForInterface(int ifIndex,
int actionKeyStart,
List<ActionInfo> result) |
static Integer |
allocateId(IdManagerService idManager,
String poolName,
String idKey) |
static void |
bindService(TypedWriteTransaction<Datastore.Configuration> tx,
String interfaceName,
BoundServices serviceInfo,
Class<? extends ServiceModeBase> serviceMode) |
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<BoundServices> |
buildBoundServicesIId(short servicePriority,
String interfaceName,
Class<? extends ServiceModeBase> serviceMode) |
static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId |
buildDpnNodeId(BigInteger dpnId) |
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface> |
buildId(String interfaceName) |
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface> |
buildStateInterfaceId(String interfaceName) |
static BigInteger |
fillPortNumberToMac(long portNumber) |
static String |
generateMacAddress(long portNo) |
static BigInteger |
getDeadBeefBytesForMac() |
static BigInteger |
getDpnFromInterface(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface ifState) |
static BigInteger |
getDpnFromNodeConnectorId(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId portId) |
static BigInteger |
getDpnId(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.DatapathId datapathId) |
static String |
getDpnStringFromNodeConnectorId(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId portId) |
static List<ActionInfo> |
getEgressActionInfosForInterface(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface interfaceInfo,
String portNo,
InterfaceInfo.InterfaceType ifaceType,
Long tunnelKey,
int actionKeyStart,
boolean isDefaultEgress,
int ifIndex,
long groupId)
Returns the list of egress actions for a given interface.
|
static List<ActionInfo> |
getEgressActionInfosForInterface(String interfaceName,
int actionKeyStart,
InterfaceManagerCommonUtils interfaceUtils,
Boolean isDefaultEgress) |
static List<ActionInfo> |
getEgressActionInfosForInterface(String interfaceName,
Long tunnelKey,
int actionKeyStart,
InterfaceManagerCommonUtils interfaceUtils,
Boolean isDefaultEgress)
Returns a list of Actions to be taken when sending a packet over an
interface.
|
static List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action> |
getEgressActionsForInterface(String interfaceName,
Long tunnelKey,
Integer actionKey,
InterfaceManagerCommonUtils interfaceUtils,
Boolean isDefaultEgress) |
static List<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction> |
getEgressInstructionsForInterface(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface interfaceInfo,
String portNo,
Long tunnelKey,
boolean isDefaultEgress,
int ifIndex,
long groupId) |
static List<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction> |
getEgressInstructionsForInterface(String interfaceName,
Long tunnelKey,
InterfaceManagerCommonUtils interfaceUtils,
Boolean isDefaultEgress) |
static long |
getGroupId(int ifIndex,
InterfaceInfo.InterfaceType infType) |
static InterfaceInfo.InterfaceType |
getInterfaceType(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface iface) |
static long |
getLogicalTunnelSelectGroupId(int lportTag) |
static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId |
getNodeConnectorIdFromInterface(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface ifState) |
static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId |
getNodeIdFromNodeConnectorId(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId ncId) |
static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.PhysAddress |
getPhyAddress(long portNo,
org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNodeConnector flowCapableNodeConnector) |
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<IdPool> |
getPoolId(String poolName) |
static String |
getPortNoFromNodeConnectorId(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId portId) |
static Long |
getPortNumberFromNodeConnectorId(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId portId) |
static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.InterfaceKey |
getStateInterfaceKeyFromName(String name) |
static VlanInterfaceInfo |
getVlanInterfaceInfo(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface iface,
BigInteger dpId) |
static BigInteger[] |
mergeOpenflowMetadataWriteInstructions(List<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction> instructions) |
static <T extends org.opendaylight.yangtools.yang.binding.DataObject> |
read(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType datastoreType,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path,
org.opendaylight.controller.md.sal.binding.api.DataBroker broker)
Deprecated.
|
static void |
releaseId(IdManagerService idManager,
String poolName,
String idKey) |
static void |
unbindService(ManagedNewTransactionRunner txRunner,
org.opendaylight.infrautils.jobcoordinator.JobCoordinator coordinator,
String interfaceName,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<BoundServices> boundServicesInstanceIdentifier) |
static void |
unbindService(TypedWriteTransaction<Datastore.Configuration> tx,
String interfaceName,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<BoundServices> boundServicesInstanceIdentifier) |
static void |
updateInterfaceParentRef(TypedWriteTransaction<Datastore.Configuration> tx,
String interfaceName,
String parentInterface) |
public static BigInteger getDpnFromNodeConnectorId(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId portId)
public static String getDpnStringFromNodeConnectorId(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId portId)
public static BigInteger getDpnFromInterface(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface ifState)
public static String getPortNoFromNodeConnectorId(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId portId)
public static Long getPortNumberFromNodeConnectorId(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId portId)
public static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId buildDpnNodeId(BigInteger dpnId)
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface> buildId(String interfaceName)
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface> buildStateInterfaceId(String interfaceName)
public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.InterfaceKey getStateInterfaceKeyFromName(String name)
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<IdPool> getPoolId(String poolName)
public static long getGroupId(int ifIndex, InterfaceInfo.InterfaceType infType)
@Deprecated public static <T extends org.opendaylight.yangtools.yang.binding.DataObject> com.google.common.base.Optional<T> read(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType datastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, org.opendaylight.controller.md.sal.binding.api.DataBroker broker)
SingleTransactionDataBroker.syncReadOptional(DataBroker, LogicalDatastoreType, InstanceIdentifier)
instead of this.public static List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action> getEgressActionsForInterface(String interfaceName, Long tunnelKey, Integer actionKey, InterfaceManagerCommonUtils interfaceUtils, Boolean isDefaultEgress)
public static List<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction> getEgressInstructionsForInterface(String interfaceName, Long tunnelKey, InterfaceManagerCommonUtils interfaceUtils, Boolean isDefaultEgress)
public static List<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction> getEgressInstructionsForInterface(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface interfaceInfo, String portNo, Long tunnelKey, boolean isDefaultEgress, int ifIndex, long groupId)
public static List<ActionInfo> getEgressActionInfosForInterface(String interfaceName, int actionKeyStart, InterfaceManagerCommonUtils interfaceUtils, Boolean isDefaultEgress)
public static List<ActionInfo> getEgressActionInfosForInterface(String interfaceName, Long tunnelKey, int actionKeyStart, InterfaceManagerCommonUtils interfaceUtils, Boolean isDefaultEgress)
interfaceName
- name of the interfacetunnelKey
- Optional.actionKeyStart
- action keyinterfaceUtils
- InterfaceManagerCommonUtilspublic static List<ActionInfo> getEgressActionInfosForInterface(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface interfaceInfo, String portNo, InterfaceInfo.InterfaceType ifaceType, Long tunnelKey, int actionKeyStart, boolean isDefaultEgress, int ifIndex, long groupId)
interfaceInfo
- the interface to look upportNo
- port numberifaceType
- the type of the interfacetunnelKey
- the tunnel keyactionKeyStart
- the start for the first key assigned for the new actionsisDefaultEgress
- if it is the default egressifIndex
- interface indexgroupId
- group Idpublic static void addEgressActionInfosForInterface(int ifIndex, int actionKeyStart, List<ActionInfo> result)
public static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId getNodeIdFromNodeConnectorId(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId ncId)
public static BigInteger[] mergeOpenflowMetadataWriteInstructions(List<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction> instructions)
public static Integer allocateId(IdManagerService idManager, String poolName, String idKey)
public static void releaseId(IdManagerService idManager, String poolName, String idKey)
public static BigInteger getDpnId(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.DatapathId datapathId)
public static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId getNodeConnectorIdFromInterface(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface ifState)
public static InterfaceInfo.InterfaceType getInterfaceType(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface iface)
public static VlanInterfaceInfo getVlanInterfaceInfo(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface iface, BigInteger dpId)
public static BigInteger getDeadBeefBytesForMac()
public static BigInteger fillPortNumberToMac(long portNumber)
public static String generateMacAddress(long portNo)
public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.PhysAddress getPhyAddress(long portNo, org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNodeConnector flowCapableNodeConnector)
public static void updateInterfaceParentRef(TypedWriteTransaction<Datastore.Configuration> tx, String interfaceName, String parentInterface)
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<BoundServices> buildBoundServicesIId(short servicePriority, String interfaceName, Class<? extends ServiceModeBase> serviceMode)
public static void bindService(TypedWriteTransaction<Datastore.Configuration> tx, String interfaceName, BoundServices serviceInfo, Class<? extends ServiceModeBase> serviceMode)
public static void unbindService(ManagedNewTransactionRunner txRunner, org.opendaylight.infrautils.jobcoordinator.JobCoordinator coordinator, String interfaceName, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<BoundServices> boundServicesInstanceIdentifier)
public static void unbindService(TypedWriteTransaction<Datastore.Configuration> tx, String interfaceName, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<BoundServices> boundServicesInstanceIdentifier)
public static long getLogicalTunnelSelectGroupId(int lportTag)
Copyright © 2019 OpenDaylight. All rights reserved.