@Test public void testCreateTablePath() throws Exception { InstanceIdentifier<Table> tableInsId = InstanceIdentifierUtils.createTablePath( InstanceIdentifier.builder(Nodes.class).child(Node.class).build(), new TableKey(NUM_ID_1)); assertNotNull(tableInsId); assertEquals(NUM_ID_1.shortValue(), tableInsId.firstKeyOf(Table.class, TableKey.class).getId().shortValue()); assertNotNull(tableInsId.firstIdentifierOf(FlowCapableNode.class)); }
public static InstanceIdentifier<Table> createTablePath(final InstanceIdentifier<Node> nodePath, final TableKey tableKey) { return nodePath.builder().augmentation(FlowCapableNode.class).child(Table.class, tableKey).build(); }
InstanceIdentifierUtils { public static InstanceIdentifier<Table> createTablePath(final InstanceIdentifier<Node> nodePath, final TableKey tableKey) { return nodePath.builder().augmentation(FlowCapableNode.class).child(Table.class, tableKey).build(); } }
InstanceIdentifierUtils { public static InstanceIdentifier<Table> createTablePath(final InstanceIdentifier<Node> nodePath, final TableKey tableKey) { return nodePath.builder().augmentation(FlowCapableNode.class).child(Table.class, tableKey).build(); } private  InstanceIdentifierUtils(); }
InstanceIdentifierUtils { public static InstanceIdentifier<Table> createTablePath(final InstanceIdentifier<Node> nodePath, final TableKey tableKey) { return nodePath.builder().augmentation(FlowCapableNode.class).child(Table.class, tableKey).build(); } private  InstanceIdentifierUtils(); static InstanceIdentifier<Node> createNodePath(final NodeId nodeId); static InstanceIdentifier<Node> getNodePath(final InstanceIdentifier<?> nodeChild); static InstanceIdentifier<Table> createTablePath(final InstanceIdentifier<Node> nodePath,
            final TableKey tableKey); static InstanceIdentifier<Flow> createFlowPath(final InstanceIdentifier<Table> table,
            final FlowKey flowKey); static Short getTableId(final InstanceIdentifier<Table> tablePath); static NodeConnectorKey getNodeConnectorKey(final InstanceIdentifier<?> nodeConnectorPath); static NodeKey getNodeKey(final InstanceIdentifier<?> nodePath); static InstanceIdentifier<NodeConnector> createNodeConnectorIdentifier(final String nodeIdValue,
            final String nodeConnectorIdValue); static InstanceIdentifier<Node> generateNodeInstanceIdentifier(final NodeConnectorRef nodeConnectorRef); static InstanceIdentifier<Table> generateFlowTableInstanceIdentifier(final NodeConnectorRef nodeConnectorRef,
            final TableKey flowTableKey); static InstanceIdentifier<Flow> generateFlowInstanceIdentifier(final NodeConnectorRef nodeConnectorRef,
            final TableKey flowTableKey, final FlowKey flowKey); static InstanceIdentifier<Topology> generateTopologyInstanceIdentifier(final String topologyId); }
InstanceIdentifierUtils { public static InstanceIdentifier<Table> createTablePath(final InstanceIdentifier<Node> nodePath, final TableKey tableKey) { return nodePath.builder().augmentation(FlowCapableNode.class).child(Table.class, tableKey).build(); } private  InstanceIdentifierUtils(); static InstanceIdentifier<Node> createNodePath(final NodeId nodeId); static InstanceIdentifier<Node> getNodePath(final InstanceIdentifier<?> nodeChild); static InstanceIdentifier<Table> createTablePath(final InstanceIdentifier<Node> nodePath,
            final TableKey tableKey); static InstanceIdentifier<Flow> createFlowPath(final InstanceIdentifier<Table> table,
            final FlowKey flowKey); static Short getTableId(final InstanceIdentifier<Table> tablePath); static NodeConnectorKey getNodeConnectorKey(final InstanceIdentifier<?> nodeConnectorPath); static NodeKey getNodeKey(final InstanceIdentifier<?> nodePath); static InstanceIdentifier<NodeConnector> createNodeConnectorIdentifier(final String nodeIdValue,
            final String nodeConnectorIdValue); static InstanceIdentifier<Node> generateNodeInstanceIdentifier(final NodeConnectorRef nodeConnectorRef); static InstanceIdentifier<Table> generateFlowTableInstanceIdentifier(final NodeConnectorRef nodeConnectorRef,
            final TableKey flowTableKey); static InstanceIdentifier<Flow> generateFlowInstanceIdentifier(final NodeConnectorRef nodeConnectorRef,
            final TableKey flowTableKey, final FlowKey flowKey); static InstanceIdentifier<Topology> generateTopologyInstanceIdentifier(final String topologyId);  }