@Test public void testGenerateFlowTableInstanceIdentifier() throws Exception { NodeConnectorRef ncRef = new NodeConnectorRef( InstanceIdentifier.builder(Nodes.class).child(Node.class).child(NodeConnector.class).build()); InstanceIdentifier<Table> tableInsId = InstanceIdentifierUtils.generateFlowTableInstanceIdentifier(ncRef, new TableKey(NUM_ID_1)); assertNotNull(tableInsId); assertEquals(NUM_ID_1, tableInsId.firstKeyOf(Table.class, TableKey.class).getId()); }
public static InstanceIdentifier<Table> generateFlowTableInstanceIdentifier(final NodeConnectorRef nodeConnectorRef, final TableKey flowTableKey) { return generateNodeInstanceIdentifier(nodeConnectorRef).builder().augmentation(FlowCapableNode.class) .child(Table.class, flowTableKey).build(); }
InstanceIdentifierUtils { public static InstanceIdentifier<Table> generateFlowTableInstanceIdentifier(final NodeConnectorRef nodeConnectorRef, final TableKey flowTableKey) { return generateNodeInstanceIdentifier(nodeConnectorRef).builder().augmentation(FlowCapableNode.class) .child(Table.class, flowTableKey).build(); } }
InstanceIdentifierUtils { public static InstanceIdentifier<Table> generateFlowTableInstanceIdentifier(final NodeConnectorRef nodeConnectorRef, final TableKey flowTableKey) { return generateNodeInstanceIdentifier(nodeConnectorRef).builder().augmentation(FlowCapableNode.class) .child(Table.class, flowTableKey).build(); } private  InstanceIdentifierUtils(); }
InstanceIdentifierUtils { public static InstanceIdentifier<Table> generateFlowTableInstanceIdentifier(final NodeConnectorRef nodeConnectorRef, final TableKey flowTableKey) { return generateNodeInstanceIdentifier(nodeConnectorRef).builder().augmentation(FlowCapableNode.class) .child(Table.class, flowTableKey).build(); } private  InstanceIdentifierUtils(); 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); }
InstanceIdentifierUtils { public static InstanceIdentifier<Table> generateFlowTableInstanceIdentifier(final NodeConnectorRef nodeConnectorRef, final TableKey flowTableKey) { return generateNodeInstanceIdentifier(nodeConnectorRef).builder().augmentation(FlowCapableNode.class) .child(Table.class, flowTableKey).build(); } private  InstanceIdentifierUtils(); 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);  }