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