Class MDSALUtil
- java.lang.Object
-
- org.opendaylight.genius.mdsalutil.MDSALUtil
-
public class MDSALUtil extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MDSALUtil.MdsalOp
-
Field Summary
Fields Modifier and Type Field Description static int
GROUP_WEIGHT
static java.lang.String
NODE_PREFIX
static java.lang.String
SEPARATOR
static long
WATCH_GROUP
static long
WATCH_PORT
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action>
buildActions(java.util.List<ActionInfo> actions)
static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction
buildAndGetGotoTableInstruction(short tableId, int instructionKey)
static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction
buildAndGetPopVlanActionInstruction(int actionKey, int instructionKey)
static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction
buildAndGetSetReg6ActionInstruction(int actionKey, int instructionKey, int startOffSet, int endOffSet, long value)
static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction
buildAndGetWriteMetadaInstruction(org.opendaylight.yangtools.yang.common.Uint64 metadata, org.opendaylight.yangtools.yang.common.Uint64 mask, int instructionKey)
static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction
buildApplyActionsInstruction(java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action> actions)
static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction
buildApplyActionsInstruction(java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action> listAction, int instructionKey)
static org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.group.buckets.Bucket
buildBucket(java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action> actionsList, int weight, int bucketId, long watchPort, long watchGroup)
static org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.group.Buckets
buildBucketLists(java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.group.buckets.Bucket> bucketList)
protected static org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.group.Buckets
buildBuckets(java.util.List<BucketInfo> listBucketInfo)
static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow
buildFlow(short tableId, java.lang.String flowId)
static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow
buildFlow(short tableId, java.lang.String flowId, int priority, java.lang.String flowName, int idleTimeOut, int hardTimeOut, org.opendaylight.yangtools.yang.common.Uint64 cookie, java.util.List<? extends MatchInfoBase> listMatchInfoBase, java.util.List<InstructionInfo> listInstructionInfo)
static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow
buildFlow(short tableId, java.lang.String flowId, int priority, java.lang.String flowName, int idleTimeOut, int hardTimeOut, org.opendaylight.yangtools.yang.common.Uint64 cookie, java.util.List<? extends MatchInfoBase> listMatchInfoBase, java.util.List<InstructionInfo> listInstructionInfo, boolean isStrict)
static FlowEntity
buildFlowEntity(org.opendaylight.yangtools.yang.common.Uint64 dpnId, short tableId, java.lang.String flowId, int priority, java.lang.String flowName, int idleTimeOut, int hardTimeOut, org.opendaylight.yangtools.yang.common.Uint64 cookie, java.util.List<? extends MatchInfoBase> listMatchInfoBase, java.util.List<InstructionInfo> listInstructionInfo)
static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow
buildFlowNew(short tableId, java.lang.String flowId, int priority, java.lang.String flowName, int idleTimeOut, int hardTimeOut, org.opendaylight.yangtools.yang.common.Uint64 cookie, java.util.List<? extends MatchInfoBase> listMatchInfoBase, java.util.Map<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.InstructionKey,org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction> listInstructionInfo)
static org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group
buildGroup(long groupId, java.lang.String groupName, org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.GroupTypes groupType, org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.group.Buckets buckets)
static GroupEntity
buildGroupEntity(org.opendaylight.yangtools.yang.common.Uint64 dpnId, long groupId, java.lang.String groupName, org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.GroupTypes groupType, java.util.List<BucketInfo> listBucketInfo)
static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction
buildInstruction(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction instruction, int instructionKey)
static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.Instructions
buildInstructions(java.util.List<InstructionInfo> listInstructionInfo)
static java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction>
buildInstructionsDrop()
static java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction>
buildInstructionsDrop(int instructionKey)
static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.Match
buildMatches(java.util.List<? extends MatchInfoBase> listMatchInfoBase)
static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction
buildWriteActionsInstruction(java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action> actions)
static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction
buildWriteActionsInstruction(java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action> actions, int instructionKey)
Build write actions instruction with the given actions and key.static org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action
createNxOfInPortAction(int actionKey, int inPortVal)
static org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action
createPopVlanAction(int actionKey)
static org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action
createSetReg6Action(int actionKey, int startOffSet, int endOffSet, long value)
Create action to set REG6 to the given value.static org.opendaylight.yangtools.yang.common.Uint64
getBigIntIpFromIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress ipAddr)
static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef
getDefaultNodeConnRef(org.opendaylight.yangtools.yang.common.Uint64 dpId)
static org.opendaylight.yangtools.yang.common.Uint64
getDpnId(java.lang.String datapathId)
static org.opendaylight.yangtools.yang.common.Uint64
getDpnIdFromNodeName(java.lang.String mdsalNodeName)
static org.opendaylight.yangtools.yang.common.Uint64
getDpnIdFromNodeName(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId nodeId)
static long
getDpnIdFromPortName(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId nodeConnectorId)
static java.lang.String
getInterfaceName(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef ref, org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId
getNodeConnectorId(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef ref)
static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef
getNodeConnRef(java.lang.String nodeId, java.lang.String port)
static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef
getNodeConnRef(org.opendaylight.yangtools.yang.common.Uint64 dpId, java.lang.String port)
static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId
getNodeIdFromNodeConnectorId(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId ncId)
static long
getOfPortNumberFromPortName(java.lang.String mdsalPortName)
static long
getOfPortNumberFromPortName(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId nodeConnectorId)
static org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.TransmitPacketInput
getPacketOut(java.util.List<ActionInfo> actionInfos, byte[] payload, long dpnId, org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef ingress)
static org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.TransmitPacketInput
getPacketOut(java.util.List<ActionInfo> actionInfos, byte[] payload, org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef nodeConnRef)
static org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.TransmitPacketInput
getPacketOut(java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action> actions, byte[] payload, org.opendaylight.yangtools.yang.common.Uint64 dpnId)
static org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.TransmitPacketInput
getPacketOutDefault(java.util.List<ActionInfo> actionInfos, byte[] payload, org.opendaylight.yangtools.yang.common.Uint64 dpnId)
static org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.TransmitPacketInput
getPacketOutFromController(java.util.List<ActionInfo> actionInfos, byte[] payload, long dpnId, org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef egress)
static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction
getWriteActionsInstruction(java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action> listAction, int instructionKey)
Deprecated.Use buildWriteActionsInstructionstatic java.lang.String
longToIp(long ip, long mask)
static <T extends org.opendaylight.yangtools.yang.binding.DataObject>
java.util.Optional<T>read(org.opendaylight.mdsal.binding.api.DataBroker broker, org.opendaylight.mdsal.common.api.LogicalDatastoreType datastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path)
static <T extends org.opendaylight.yangtools.yang.binding.DataObject>
java.util.Optional<T>read(org.opendaylight.mdsal.common.api.LogicalDatastoreType datastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, org.opendaylight.mdsal.binding.api.DataBroker broker)
static org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action
retrieveSetTunnelIdAction(org.opendaylight.yangtools.yang.common.Uint64 tunnelId, int actionKey)
static <T extends org.opendaylight.yangtools.yang.binding.DataObject>
voidsyncDelete(org.opendaylight.mdsal.binding.api.DataBroker broker, org.opendaylight.mdsal.common.api.LogicalDatastoreType datastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path)
static <T extends org.opendaylight.yangtools.yang.binding.DataObject>
voidsyncUpdate(org.opendaylight.mdsal.binding.api.DataBroker broker, org.opendaylight.mdsal.common.api.LogicalDatastoreType datastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, T data)
static <T extends org.opendaylight.yangtools.yang.binding.DataObject>
voidsyncWrite(org.opendaylight.mdsal.binding.api.DataBroker broker, org.opendaylight.mdsal.common.api.LogicalDatastoreType datastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, T data)
-
-
-
Field Detail
-
NODE_PREFIX
public static final java.lang.String NODE_PREFIX
- See Also:
- Constant Field Values
-
GROUP_WEIGHT
public static final int GROUP_WEIGHT
- See Also:
- Constant Field Values
-
WATCH_PORT
public static final long WATCH_PORT
- See Also:
- Constant Field Values
-
WATCH_GROUP
public static final long WATCH_GROUP
- See Also:
- Constant Field Values
-
SEPARATOR
public static final java.lang.String SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
buildFlowEntity
public static FlowEntity buildFlowEntity(org.opendaylight.yangtools.yang.common.Uint64 dpnId, short tableId, java.lang.String flowId, int priority, java.lang.String flowName, int idleTimeOut, int hardTimeOut, org.opendaylight.yangtools.yang.common.Uint64 cookie, java.util.List<? extends MatchInfoBase> listMatchInfoBase, java.util.List<InstructionInfo> listInstructionInfo)
-
buildFlow
public static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow buildFlow(short tableId, java.lang.String flowId, int priority, java.lang.String flowName, int idleTimeOut, int hardTimeOut, org.opendaylight.yangtools.yang.common.Uint64 cookie, java.util.List<? extends MatchInfoBase> listMatchInfoBase, java.util.List<InstructionInfo> listInstructionInfo)
-
buildFlow
public static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow buildFlow(short tableId, java.lang.String flowId, int priority, java.lang.String flowName, int idleTimeOut, int hardTimeOut, org.opendaylight.yangtools.yang.common.Uint64 cookie, java.util.List<? extends MatchInfoBase> listMatchInfoBase, java.util.List<InstructionInfo> listInstructionInfo, boolean isStrict)
-
buildFlow
public static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow buildFlow(short tableId, java.lang.String flowId)
-
buildFlowNew
public static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow buildFlowNew(short tableId, java.lang.String flowId, int priority, java.lang.String flowName, int idleTimeOut, int hardTimeOut, org.opendaylight.yangtools.yang.common.Uint64 cookie, java.util.List<? extends MatchInfoBase> listMatchInfoBase, java.util.Map<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.InstructionKey,org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction> listInstructionInfo)
-
buildGroupEntity
public static GroupEntity buildGroupEntity(org.opendaylight.yangtools.yang.common.Uint64 dpnId, long groupId, java.lang.String groupName, org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.GroupTypes groupType, java.util.List<BucketInfo> listBucketInfo)
-
buildGroup
public static org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group buildGroup(long groupId, java.lang.String groupName, org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.GroupTypes groupType, org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.group.Buckets buckets)
-
getPacketOutDefault
public static org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.TransmitPacketInput getPacketOutDefault(java.util.List<ActionInfo> actionInfos, byte[] payload, org.opendaylight.yangtools.yang.common.Uint64 dpnId)
-
getPacketOutFromController
public static org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.TransmitPacketInput getPacketOutFromController(java.util.List<ActionInfo> actionInfos, byte[] payload, long dpnId, org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef egress)
-
getPacketOut
public static org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.TransmitPacketInput getPacketOut(java.util.List<ActionInfo> actionInfos, byte[] payload, long dpnId, org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef ingress)
-
getPacketOut
public static org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.TransmitPacketInput getPacketOut(java.util.List<ActionInfo> actionInfos, byte[] payload, org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef nodeConnRef)
-
getPacketOut
public static org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.TransmitPacketInput getPacketOut(java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action> actions, byte[] payload, org.opendaylight.yangtools.yang.common.Uint64 dpnId)
-
retrieveSetTunnelIdAction
public static org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action retrieveSetTunnelIdAction(org.opendaylight.yangtools.yang.common.Uint64 tunnelId, int actionKey)
-
buildActions
public static java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action> buildActions(java.util.List<ActionInfo> actions)
-
longToIp
public static java.lang.String longToIp(long ip, long mask)
-
getBigIntIpFromIpAddress
public static org.opendaylight.yangtools.yang.common.Uint64 getBigIntIpFromIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress ipAddr)
-
buildBucket
public static org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.group.buckets.Bucket buildBucket(java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action> actionsList, int weight, int bucketId, long watchPort, long watchGroup)
-
buildBucketLists
public static org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.group.Buckets buildBucketLists(java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.group.buckets.Bucket> bucketList)
-
buildBuckets
protected static org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.group.Buckets buildBuckets(java.util.List<BucketInfo> listBucketInfo)
-
buildInstructions
public static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.Instructions buildInstructions(java.util.List<InstructionInfo> listInstructionInfo)
-
buildMatches
public static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.Match buildMatches(java.util.List<? extends MatchInfoBase> listMatchInfoBase)
-
getDefaultNodeConnRef
public static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef getDefaultNodeConnRef(org.opendaylight.yangtools.yang.common.Uint64 dpId)
-
getNodeConnRef
public static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef getNodeConnRef(org.opendaylight.yangtools.yang.common.Uint64 dpId, java.lang.String port)
-
getNodeConnRef
public static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef getNodeConnRef(java.lang.String nodeId, java.lang.String port)
-
getDpnIdFromNodeName
public static org.opendaylight.yangtools.yang.common.Uint64 getDpnIdFromNodeName(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId nodeId)
-
getDpnIdFromNodeName
public static org.opendaylight.yangtools.yang.common.Uint64 getDpnIdFromNodeName(java.lang.String mdsalNodeName)
-
getOfPortNumberFromPortName
public static long getOfPortNumberFromPortName(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId nodeConnectorId)
-
getOfPortNumberFromPortName
public static long getOfPortNumberFromPortName(java.lang.String mdsalPortName)
-
getDpnIdFromPortName
public static long getDpnIdFromPortName(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId nodeConnectorId)
-
getDpnId
public static org.opendaylight.yangtools.yang.common.Uint64 getDpnId(java.lang.String datapathId)
-
buildAndGetPopVlanActionInstruction
public static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction buildAndGetPopVlanActionInstruction(int actionKey, int instructionKey)
-
createSetReg6Action
public static org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action createSetReg6Action(int actionKey, int startOffSet, int endOffSet, long value)
Create action to set REG6 to the given value.- Parameters:
actionKey
- the action key.startOffSet
- the start offset.endOffSet
- the end offset.value
- the value.- Returns:
- the action.
-
buildAndGetSetReg6ActionInstruction
public static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction buildAndGetSetReg6ActionInstruction(int actionKey, int instructionKey, int startOffSet, int endOffSet, long value)
-
buildApplyActionsInstruction
public static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction buildApplyActionsInstruction(java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action> actions)
-
buildApplyActionsInstruction
public static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction buildApplyActionsInstruction(java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action> listAction, int instructionKey)
-
buildWriteActionsInstruction
public static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction buildWriteActionsInstruction(java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action> actions)
-
buildWriteActionsInstruction
public static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction buildWriteActionsInstruction(java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action> actions, int instructionKey)
Build write actions instruction with the given actions and key.- Parameters:
actions
- the actions.instructionKey
- the instruction key.- Returns:
- the instruction.
-
buildInstruction
public static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction buildInstruction(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction instruction, int instructionKey)
-
buildInstructionsDrop
public static java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction> buildInstructionsDrop()
-
buildInstructionsDrop
public static java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction> buildInstructionsDrop(int instructionKey)
-
getWriteActionsInstruction
@Deprecated public static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction getWriteActionsInstruction(java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action> listAction, int instructionKey)
Deprecated.Use buildWriteActionsInstructionBuild write actions instruction with the given actions and key.- Parameters:
listAction
- the actions.instructionKey
- the instruction key.- Returns:
- the instruction.
-
buildAndGetWriteMetadaInstruction
public static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction buildAndGetWriteMetadaInstruction(org.opendaylight.yangtools.yang.common.Uint64 metadata, org.opendaylight.yangtools.yang.common.Uint64 mask, int instructionKey)
-
buildAndGetGotoTableInstruction
public static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction buildAndGetGotoTableInstruction(short tableId, int instructionKey)
-
read
@Deprecated public static <T extends org.opendaylight.yangtools.yang.binding.DataObject> java.util.Optional<T> read(org.opendaylight.mdsal.common.api.LogicalDatastoreType datastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, org.opendaylight.mdsal.binding.api.DataBroker broker)
Deprecated.Deprecated read.- Type Parameters:
T
- DataObject subclass- Parameters:
datastoreType
- theDatastore
type that will be accessedpath
- The path to write to.broker
- the broker- Returns:
- returns an Optional object containing the data
-
read
@Deprecated public static <T extends org.opendaylight.yangtools.yang.binding.DataObject> java.util.Optional<T> read(org.opendaylight.mdsal.binding.api.DataBroker broker, org.opendaylight.mdsal.common.api.LogicalDatastoreType datastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Deprecated.Deprecated read.- Type Parameters:
T
- DataObject subclass- Parameters:
broker
- the brokerdatastoreType
- theDatastore
type that will be accessedpath
- The path to write to.- Returns:
- returns an Optional object containing the data
- Throws:
java.util.concurrent.ExecutionException
- in case of a technical (!) error while readingjava.lang.InterruptedException
- if the transaction is interrupted
-
syncWrite
@Deprecated public static <T extends org.opendaylight.yangtools.yang.binding.DataObject> void syncWrite(org.opendaylight.mdsal.binding.api.DataBroker broker, org.opendaylight.mdsal.common.api.LogicalDatastoreType datastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, T data)
Deprecated.Deprecated write.- Type Parameters:
T
- DataObject subclass- Parameters:
broker
- the brokerdatastoreType
- theDatastore
type that will be accessedpath
- The path to write to.data
- The object to write.
-
syncUpdate
@Deprecated public static <T extends org.opendaylight.yangtools.yang.binding.DataObject> void syncUpdate(org.opendaylight.mdsal.binding.api.DataBroker broker, org.opendaylight.mdsal.common.api.LogicalDatastoreType datastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, T data)
Deprecated.Deprecated update.- Type Parameters:
T
- DataObject subclass- Parameters:
broker
- the brokerdatastoreType
- theDatastore
type that will be accessedpath
- The path to write to.data
- The object to write.
-
syncDelete
@Deprecated public static <T extends org.opendaylight.yangtools.yang.binding.DataObject> void syncDelete(org.opendaylight.mdsal.binding.api.DataBroker broker, org.opendaylight.mdsal.common.api.LogicalDatastoreType datastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path)
Deprecated.Deprecated delete.- Type Parameters:
T
- DataObject subclass- Parameters:
broker
- the brokerdatastoreType
- theDatastore
type that will be accessedpath
- The path to write to.
-
getNodeIdFromNodeConnectorId
public static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId getNodeIdFromNodeConnectorId(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId ncId)
-
getInterfaceName
public static java.lang.String getInterfaceName(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef ref, org.opendaylight.mdsal.binding.api.DataBroker dataBroker) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
getNodeConnectorId
public static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId getNodeConnectorId(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef ref) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
createNxOfInPortAction
public static org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action createNxOfInPortAction(int actionKey, int inPortVal)
-
createPopVlanAction
public static org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action createPopVlanAction(int actionKey)
-
-