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 Details

    • toNodeConnectorRef

      public static @Nullable NodeConnectorRef toNodeConnectorRef(@NonNull PacketIn packetIn, org.opendaylight.yangtools.yang.common.Uint64 dataPathId)
      Parameters:
      packetIn - Packet input
      dataPathId - 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 from NodeConnectorRef.
      Parameters:
      nodeConnectorRef - Node connector reference
      version - Openflow version
      Returns:
      port number