Class NodeConnectorRefToPortTranslator
java.lang.Object
org.opendaylight.openflowplugin.impl.util.NodeConnectorRefToPortTranslator
Created by Tomas Slusny on 23.3.2016.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @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 Details
-
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
-