Class InstanceIdentifierUtils

java.lang.Object
org.opendaylight.openflowplugin.learningswitch.InstanceIdentifierUtils

public final class InstanceIdentifierUtils extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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>
    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.
    getNodeConnectorKey(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 path
      tableKey - 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 path
      flowKey - 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.yang.binding.InstanceIdentifier<?> 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)