Class MDSALUtil


  • public class MDSALUtil
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  MDSALUtil.MdsalOp  
    • 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.List<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.controller.md.sal.binding.api.DataBroker dataBroker)  
      static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId getNodeConnectorId​(org.opendaylight.controller.md.sal.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 buildWriteActionsInstruction
      static java.lang.String longToIp​(long ip, long mask)  
      static <T extends org.opendaylight.yangtools.yang.binding.DataObject>
      com.google.common.base.Optional<T>
      read​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType datastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path)
      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)
      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>
      void
      syncDelete​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType datastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path)
      static <T extends org.opendaylight.yangtools.yang.binding.DataObject>
      void
      syncUpdate​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType datastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, T data)
      static <T extends org.opendaylight.yangtools.yang.binding.DataObject>
      void
      syncWrite​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType datastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, T data)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.List<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 buildWriteActionsInstruction
        Build 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> com.google.common.base.Optional<T> read​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                                                                             org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType datastoreType,
                                                                                                                             org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path)
        Deprecated read.
      • syncDelete

        @Deprecated
        public static <T extends org.opendaylight.yangtools.yang.binding.DataObject> void syncDelete​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                                                     org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType datastoreType,
                                                                                                     org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path)
        Deprecated delete.
      • 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.controller.md.sal.binding.api.DataBroker dataBroker)
      • getNodeConnectorId

        public static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId getNodeConnectorId​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                                                                                                           org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef ref)
      • 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)