Class NodeConnectorRefToPortTranslator


  • public final class NodeConnectorRefToPortTranslator
    extends Object
    Created by Tomas Slusny on 23.3.2016.
    • Method Detail

      • toNodeConnectorRef

        public static @Nullable org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef toNodeConnectorRef​(@NonNull PacketIn packetIn,
                                                                                                                                      org.opendaylight.yangtools.yang.common.Uint64 dataPathId)
        Converts PacketIn to NodeConnectorRef.
        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 org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef nodeConnectorRef,
                                                                                                   short version)
        Gets port number from NodeConnectorRef.
        Parameters:
        nodeConnectorRef - Node connector reference
        version - Openflow version
        Returns:
        port number