Class InstanceIdentifierUtils
java.lang.Object
org.opendaylight.openflowplugin.learningswitch.InstanceIdentifierUtils
- 
Method SummaryModifier 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 NodeConnectorKeygetNodeConnectorKey(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.Uint8getTableId(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Table> tablePath) Extract table id from table path.
- 
Method Details- 
createNodePathpublic 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
 
- 
getNodePathpublic 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.
 
- 
createTablePathpublic 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 path
- tableKey- the table yey
 
- 
createFlowPathpublic 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 path
- flowKey- the flow key
- Returns:
- path to flow
 
- 
getTableIdpublic 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
 
- 
getNodeConnectorKeypublic static NodeConnectorKey getNodeConnectorKey(org.opendaylight.yangtools.binding.BindingInstanceIdentifier nodeConnectorPath) Extracts NodeConnectorKey from node connector path.
- 
createNodeConnectorPathpublic static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<NodeConnector> createNodeConnectorPath(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node> nodeKey, NodeConnectorKey nodeConnectorKey) 
 
-