Class NodeConnectorRefToPortTranslator
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.util.NodeConnectorRefToPortTranslator
-
public final class NodeConnectorRefToPortTranslator extends Object
Created by Tomas Slusny on 23.3.2016.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @Nullable org.opendaylight.yangtools.yang.common.Uint32
fromNodeConnectorRef(@NonNull NodeConnectorRef nodeConnectorRef, org.opendaylight.yangtools.yang.common.Uint8 version)
Gets port number fromNodeConnectorRef
.static @Nullable NodeConnectorRef
toNodeConnectorRef(@NonNull PacketIn packetIn, org.opendaylight.yangtools.yang.common.Uint64 dataPathId)
ConvertsPacketIn
toNodeConnectorRef
.
-
-
-
Method Detail
-
toNodeConnectorRef
public static @Nullable NodeConnectorRef toNodeConnectorRef(@NonNull PacketIn packetIn, org.opendaylight.yangtools.yang.common.Uint64 dataPathId)
ConvertsPacketIn
toNodeConnectorRef
.- Parameters:
packetIn
- Packet inputdataPathId
- Data path id- Returns:
- packet input converted to node connector reference
-
fromNodeConnectorRef
public static @Nullable org.opendaylight.yangtools.yang.common.Uint32 fromNodeConnectorRef(@NonNull NodeConnectorRef nodeConnectorRef, org.opendaylight.yangtools.yang.common.Uint8 version)
Gets port number fromNodeConnectorRef
.- Parameters:
nodeConnectorRef
- Node connector referenceversion
- Openflow version- Returns:
- port number
-
-