Class InventoryDataServiceUtil
java.lang.Object
org.opendaylight.openflowplugin.openflow.md.util.InventoryDataServiceUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.binding.DataObjectIdentifier
<NodeConnector> nodeConnectorInstanceIdentifierFromDatapathIdPortno
(org.opendaylight.yangtools.yang.common.Uint64 datapathId, org.opendaylight.yangtools.yang.common.Uint32 portNo, OpenflowVersion ofVersion) static org.opendaylight.yangtools.binding.DataObjectIdentifier
<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
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)
-
Constructor Details
-
InventoryDataServiceUtil
public InventoryDataServiceUtil()
-
-
Method Details
-
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
-
dataPathIdFromNodeId
-
nodeRefFromNodeKey
-
nodeKeyToInstanceIdentifier
-
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) -
portNoStringfromNodeConnectorID
-
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.binding.DataObjectIdentifier<NodeConnector> nodeConnectorInstanceIdentifierFromDatapathIdPortno(org.opendaylight.yangtools.yang.common.Uint64 datapathId, org.opendaylight.yangtools.yang.common.Uint32 portNo, OpenflowVersion ofVersion) -
nodeConnectorInstanceIdentifierFromDatapathIdPortno
public static org.opendaylight.yangtools.binding.DataObjectIdentifier<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
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
-