Class InventoryDataServiceUtil
- java.lang.Object
-
- org.opendaylight.openflowplugin.openflow.md.util.InventoryDataServiceUtil
-
public abstract class InventoryDataServiceUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description InventoryDataServiceUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
bigIntegerToPaddedHex(BigInteger dataPathId)
Converts a BigInteger to a padded hex value.static org.opendaylight.yangtools.yang.common.Uint64
dataPathIdFromNodeId(NodeId nodeId)
static org.opendaylight.yangtools.yang.common.Uint64
extractDatapathId(NodeRef ref)
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node>
identifierFromDatapathId(org.opendaylight.yangtools.yang.common.Uint64 datapathId)
static NodeConnectorBuilder
nodeConnectorBuilderFromDatapathIdPortNo(org.opendaylight.yangtools.yang.common.Uint64 datapathId, org.opendaylight.yangtools.yang.common.Uint32 portNo, OpenflowVersion ofVersion)
static NodeConnectorId
nodeConnectorIdfromDatapathPortNo(org.opendaylight.yangtools.yang.common.Uint64 datapathid, org.opendaylight.yangtools.yang.common.Uint32 portNo, OpenflowVersion ofVersion)
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<NodeConnector>
nodeConnectorInstanceIdentifierFromDatapathIdPortno(org.opendaylight.yangtools.yang.common.Uint64 datapathId, org.opendaylight.yangtools.yang.common.Uint32 portNo, OpenflowVersion ofVersion)
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<NodeConnector>
nodeConnectorInstanceIdentifierFromDatapathIdPortno(org.opendaylight.yangtools.yang.common.Uint64 datapathId, org.opendaylight.yangtools.yang.common.Uint32 portNo, OpenflowVersion ofVersion, org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<Node,NodeKey> nodePath)
static NodeConnectorRef
nodeConnectorRefFromDatapathIdPortno(org.opendaylight.yangtools.yang.common.Uint64 datapathId, org.opendaylight.yangtools.yang.common.Uint32 portNo, OpenflowVersion ofVersion)
static NodeConnectorRef
nodeConnectorRefFromDatapathIdPortno(org.opendaylight.yangtools.yang.common.Uint64 datapathId, org.opendaylight.yangtools.yang.common.Uint32 portNo, OpenflowVersion ofVersion, org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<Node,NodeKey> nodePath)
static NodeConnectorUpdatedBuilder
nodeConnectorUpdatedBuilderFromDatapathIdPortNo(org.opendaylight.yangtools.yang.common.Uint64 datapathId, org.opendaylight.yangtools.yang.common.Uint32 portNo, OpenflowVersion ofVersion)
static NodeId
nodeIdFromDatapathId(org.opendaylight.yangtools.yang.common.Uint64 datapathId)
static NodeKey
nodeKeyFromDatapathId(org.opendaylight.yangtools.yang.common.Uint64 datapathId)
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node>
nodeKeyToInstanceIdentifier(NodeKey nodeKey)
static NodeRef
nodeRefFromNodeKey(NodeKey nodeKey)
static NodeUpdatedBuilder
nodeUpdatedBuilderFromDataPathId(org.opendaylight.yangtools.yang.common.Uint64 datapathId)
static String
portNoStringfromNodeConnectorID(String ncID)
static @Nullable org.opendaylight.yangtools.yang.common.Uint32
portNumberfromNodeConnectorId(OpenflowVersion ofVersion, @NonNull String ncId)
static @Nullable org.opendaylight.yangtools.yang.common.Uint32
portNumberfromNodeConnectorId(OpenflowVersion ofVersion, NodeConnectorId ncId)
-
-
-
Method Detail
-
identifierFromDatapathId
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node> identifierFromDatapathId(org.opendaylight.yangtools.yang.common.Uint64 datapathId)
-
nodeKeyFromDatapathId
public static NodeKey nodeKeyFromDatapathId(org.opendaylight.yangtools.yang.common.Uint64 datapathId)
-
nodeUpdatedBuilderFromDataPathId
public static NodeUpdatedBuilder nodeUpdatedBuilderFromDataPathId(org.opendaylight.yangtools.yang.common.Uint64 datapathId)
-
nodeIdFromDatapathId
public static NodeId nodeIdFromDatapathId(org.opendaylight.yangtools.yang.common.Uint64 datapathId)
-
dataPathIdFromNodeId
public static org.opendaylight.yangtools.yang.common.Uint64 dataPathIdFromNodeId(NodeId nodeId)
-
nodeKeyToInstanceIdentifier
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node> nodeKeyToInstanceIdentifier(NodeKey nodeKey)
-
nodeConnectorIdfromDatapathPortNo
public static NodeConnectorId nodeConnectorIdfromDatapathPortNo(org.opendaylight.yangtools.yang.common.Uint64 datapathid, org.opendaylight.yangtools.yang.common.Uint32 portNo, OpenflowVersion ofVersion)
-
portNumberfromNodeConnectorId
public static @Nullable org.opendaylight.yangtools.yang.common.Uint32 portNumberfromNodeConnectorId(OpenflowVersion ofVersion, NodeConnectorId ncId)
-
portNumberfromNodeConnectorId
public static @Nullable org.opendaylight.yangtools.yang.common.Uint32 portNumberfromNodeConnectorId(OpenflowVersion ofVersion, @NonNull String ncId)
-
nodeConnectorRefFromDatapathIdPortno
public static NodeConnectorRef nodeConnectorRefFromDatapathIdPortno(org.opendaylight.yangtools.yang.common.Uint64 datapathId, org.opendaylight.yangtools.yang.common.Uint32 portNo, OpenflowVersion ofVersion)
-
nodeConnectorRefFromDatapathIdPortno
public static NodeConnectorRef nodeConnectorRefFromDatapathIdPortno(org.opendaylight.yangtools.yang.common.Uint64 datapathId, org.opendaylight.yangtools.yang.common.Uint32 portNo, OpenflowVersion ofVersion, org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<Node,NodeKey> nodePath)
-
nodeConnectorInstanceIdentifierFromDatapathIdPortno
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<NodeConnector> nodeConnectorInstanceIdentifierFromDatapathIdPortno(org.opendaylight.yangtools.yang.common.Uint64 datapathId, org.opendaylight.yangtools.yang.common.Uint32 portNo, OpenflowVersion ofVersion)
-
nodeConnectorInstanceIdentifierFromDatapathIdPortno
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<NodeConnector> nodeConnectorInstanceIdentifierFromDatapathIdPortno(org.opendaylight.yangtools.yang.common.Uint64 datapathId, org.opendaylight.yangtools.yang.common.Uint32 portNo, OpenflowVersion ofVersion, org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<Node,NodeKey> nodePath)
-
nodeConnectorUpdatedBuilderFromDatapathIdPortNo
public static NodeConnectorUpdatedBuilder nodeConnectorUpdatedBuilderFromDatapathIdPortNo(org.opendaylight.yangtools.yang.common.Uint64 datapathId, org.opendaylight.yangtools.yang.common.Uint32 portNo, OpenflowVersion ofVersion)
-
nodeConnectorBuilderFromDatapathIdPortNo
public static NodeConnectorBuilder nodeConnectorBuilderFromDatapathIdPortNo(org.opendaylight.yangtools.yang.common.Uint64 datapathId, org.opendaylight.yangtools.yang.common.Uint32 portNo, OpenflowVersion ofVersion)
-
bigIntegerToPaddedHex
public static String bigIntegerToPaddedHex(BigInteger dataPathId)
Converts a BigInteger to a padded hex value.- Parameters:
dataPathId
- datapath id in big interger value- Returns:
- string of size 16, padded with '0'
-
extractDatapathId
public static org.opendaylight.yangtools.yang.common.Uint64 extractDatapathId(NodeRef ref)
-
-