Class InstanceIdentifierUtils
java.lang.Object
org.opendaylight.openflowplugin.learningswitch.InstanceIdentifierUtils
-
Method Summary
Modifier and TypeMethodDescriptioncreateFlowPath
(org.opendaylight.yangtools.binding.DataObjectIdentifier<Table> tablePath, FlowKey flowKey) Creates a path for particular flow, by appending flow-specific information to table path.static @NonNull org.opendaylight.yangtools.binding.DataObjectIdentifier.WithKey
<NodeConnector, NodeConnectorKey> createNodeConnectorPath
(org.opendaylight.yangtools.binding.DataObjectIdentifier<Node> nodeKey, NodeConnectorKey nodeConnectorKey) createNodePath
(NodeId nodeId) Creates an Instance Identifier (path) for node with specified id.createTablePath
(org.opendaylight.yangtools.binding.DataObjectIdentifier<Node> nodePath, TableKey tableKey) Creates a table path by appending table specific location to node path.static @NonNull NodeConnectorKey
getNodeConnectorKey
(org.opendaylight.yangtools.binding.BindingInstanceIdentifier nodeConnectorPath) Extracts NodeConnectorKey from node connector path.static @NonNull org.opendaylight.yangtools.binding.DataObjectIdentifier
<Node> getNodePath
(org.opendaylight.yangtools.binding.DataObjectIdentifier<?> nodeChild) Shorten's node child path to node path.static @NonNull org.opendaylight.yangtools.yang.common.Uint8
getTableId
(org.opendaylight.yangtools.binding.DataObjectIdentifier<Table> tablePath) Extract table id from table path.
-
Method Details
-
createNodePath
public static @NonNull org.opendaylight.yangtools.binding.DataObjectIdentifier.WithKey<Node,NodeKey> createNodePath(NodeId nodeId) Creates an Instance Identifier (path) for node with specified id.- Parameters:
nodeId
- the NodeId
-
getNodePath
public static @NonNull org.opendaylight.yangtools.binding.DataObjectIdentifier<Node> getNodePath(org.opendaylight.yangtools.binding.DataObjectIdentifier<?> nodeChild) Shorten's node child path to node path.- Parameters:
nodeChild
- child of node, from which we want node path.
-
createTablePath
public static @NonNull org.opendaylight.yangtools.binding.DataObjectIdentifier.WithKey<Table,TableKey> createTablePath(org.opendaylight.yangtools.binding.DataObjectIdentifier<Node> nodePath, TableKey tableKey) Creates a table path by appending table specific location to node path.- Parameters:
nodePath
- the node pathtableKey
- the table yey
-
createFlowPath
public static @NonNull org.opendaylight.yangtools.binding.DataObjectIdentifier.WithKey<Flow,FlowKey> createFlowPath(org.opendaylight.yangtools.binding.DataObjectIdentifier<Table> tablePath, FlowKey flowKey) Creates a path for particular flow, by appending flow-specific information to table path.- Parameters:
tablePath
- the table pathflowKey
- the flow key- Returns:
- path to flow
-
getTableId
public static @NonNull org.opendaylight.yangtools.yang.common.Uint8 getTableId(org.opendaylight.yangtools.binding.DataObjectIdentifier<Table> tablePath) Extract table id from table path.- Parameters:
tablePath
- the table path
-
getNodeConnectorKey
public static @NonNull NodeConnectorKey getNodeConnectorKey(org.opendaylight.yangtools.binding.BindingInstanceIdentifier nodeConnectorPath) Extracts NodeConnectorKey from node connector path. -
createNodeConnectorPath
public static @NonNull org.opendaylight.yangtools.binding.DataObjectIdentifier.WithKey<NodeConnector,NodeConnectorKey> createNodeConnectorPath(org.opendaylight.yangtools.binding.DataObjectIdentifier<Node> nodeKey, NodeConnectorKey nodeConnectorKey)
-