public final class InstanceIdentifierUtils extends Object
Modifier and Type | Method and 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<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnector> |
createNodeConnectorPath(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> nodeKey,
org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnectorKey nodeConnectorKey) |
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> |
createNodePath(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.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<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> nodePath,
TableKey tableKey)
Creates a table path by appending table specific location to node path.
|
static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnectorKey |
getNodeConnectorKey(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> nodeConnectorPath)
Extracts NodeConnectorKey from node connector path.
|
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> |
getNodePath(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> nodeChild)
Shorten's node child path to node path.
|
static Short |
getTableId(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Table> tablePath)
Extract table id from table path.
|
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> createNodePath(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId nodeId)
nodeId
- the NodeIdpublic static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> getNodePath(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> nodeChild)
nodeChild
- child of node, from which we want node path.public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Table> createTablePath(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> nodePath, TableKey tableKey)
nodePath
- the node pathtableKey
- the table yeypublic static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Flow> createFlowPath(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Table> tablePath, FlowKey flowKey)
tablePath
- the table pathflowKey
- the flow keypublic static Short getTableId(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Table> tablePath)
tablePath
- the table pathpublic static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnectorKey getNodeConnectorKey(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> nodeConnectorPath)
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnector> createNodeConnectorPath(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> nodeKey, org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnectorKey nodeConnectorKey)
Copyright © 2018 OpenDaylight. All rights reserved.