@Test public void createTablePathTest() { NodeId nodeId = mock(NodeId.class); short tableId = 5; InstanceIdentifier<Table> iITable = FlowUtils.createTablePath(nodeId, tableId); Assert.assertEquals(Short.valueOf(tableId), InstanceIdentifier.keyOf(iITable).getId()); InstanceIdentifier<Node> iINode = iITable.firstIdentifierOf(Node.class); Assert.assertNotNull(iINode); Assert.assertEquals(nodeId, InstanceIdentifier.keyOf(iINode).getId()); }
public static InstanceIdentifier<Table> createTablePath(final NodeId nodeId, final short tableId) { return createNodePath(nodeId).builder() .augmentation(FlowCapableNode.class) .child(Table.class, new TableKey(tableId)) .build(); }
FlowUtils { public static InstanceIdentifier<Table> createTablePath(final NodeId nodeId, final short tableId) { return createNodePath(nodeId).builder() .augmentation(FlowCapableNode.class) .child(Table.class, new TableKey(tableId)) .build(); } }
FlowUtils { public static InstanceIdentifier<Table> createTablePath(final NodeId nodeId, final short tableId) { return createNodePath(nodeId).builder() .augmentation(FlowCapableNode.class) .child(Table.class, new TableKey(tableId)) .build(); }  }
FlowUtils { public static InstanceIdentifier<Table> createTablePath(final NodeId nodeId, final short tableId) { return createNodePath(nodeId).builder() .augmentation(FlowCapableNode.class) .child(Table.class, new TableKey(tableId)) .build(); }  static InstanceIdentifier<Node> createNodePath(final NodeId nodeId); static InstanceIdentifier<Table> createTablePath(final NodeId nodeId, final short tableId); static InstanceIdentifier<Group> createGroupPath(final NodeId nodeId, final GroupId groupId); static InstanceIdentifier<Group> createGroupPath(final NodeId nodeId, final Long groupId); static InstanceIdentifier<Bucket> createBucketPath(final NodeId nodeId, final GroupId groupId,
                                                              final BucketId bucketId); static InstanceIdentifier<Flow> createFlowPath(final InstanceIdentifier<Table> table,
            final FlowKey flowKey); static InstanceIdentifier<Flow> createFlowPath(final InstanceIdentifier<Table> table, final FlowId flowId); static Instructions gotoTableInstructions(short tableId); static Instruction gotoTableIns(short tableId); static ArrayList<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action> actionList(
            Action... actions); static ArrayList<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action> actionList(
            List<ActionBuilder> actions); static Instruction applyActionIns(Action... actions); static Instruction applyActionIns(List<ActionBuilder> actions); static Instruction writeActionIns(List<ActionBuilder> actions); static Instruction writeActionIns(Action... actions); static Instructions instructions(Instruction... instructions); static Instructions dropInstructions(); static Action dropAction(); static Action createActionResubmit(Integer port, final short toTable); static Action outputAction(NodeConnectorId id); static Action groupAction(Long id); static Action setDlSrcAction(MacAddress mac); static Action setDlDstAction(MacAddress mac); static VlanMatch vlanMatch(int vlanId, boolean vlanIdPresent); static List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder> pushVlanActions(
            int vlanId); static Action pushVlanAction(); static Action setVlanId(int vlanId); static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction popVlanInstruction(
            int order); static Action popVlanAction(); static Action setIpv4DstAction(Ipv4Address ipAddress); static Action setIpv6DstAction(Ipv6Address ipAddress); static Action setIpv4SrcAction(Ipv4Address ipAddress); static Action setIpv6SrcAction(Ipv6Address ipAddress); static Action decNwTtlAction(); static Action nxLoadRegAction(DstChoice dstChoice, BigInteger value, int endOffset, boolean groupBucket); static Action nxPushNshAction(); static Action nxPopNshAction(); static Action nxLoadNshMdtypeAction(Short value); static Action nxLoadNshNpAction(Short value); static Action nxSetNsiAction(Short nsi); static Action nxSetNspAction(Long nsp); static Action nxLoadRegAction(DstChoice dstChoice, BigInteger value); static Action nxLoadRegAction(Class<? extends NxmNxReg> reg, BigInteger value); static Action nxLoadNshc1RegAction(Long value); static Action nxLoadNshc2RegAction(Long value); static Action nxLoadNshc3RegAction(Long value); static Action nxLoadNshc4RegAction(Long value); static Action nxLoadTunIPv4Action(String ipAddress, boolean groupBucket); static Action nxLoadArpOpAction(BigInteger value); static Action nxLoadArpShaAction(BigInteger value); static Action nxLoadArpSpaAction(BigInteger value); static Action nxLoadArpSpaAction(String ipAddress); static Action nxMoveRegAction(SrcChoice srcChoice, DstChoice dstChoice, int endOffset, boolean groupBucket); static Action nxMoveRegAction(SrcChoice srcChoice, DstChoice dstChoice); static Action nxMoveRegTunDstToNshc1(); static Action nxMoveTunGpeNp(); static Action nxLoadTunGpeNpAction(BigInteger tunGpeNp, boolean groupBucket); static Action nxMoveTunIdtoNshc2(); static Action nxMoveRegTunIdAction(Class<? extends NxmNxReg> src, boolean groupBucket); static Action nxLoadTunIdAction(BigInteger tunnelId, boolean groupBucket); static Action nxMoveArpShaToArpThaAction(); static Action nxMoveEthSrcToEthDstAction(); static Action nxMoveArpSpaToArpTpaAction(); static Action nxOutputRegAction(SrcChoice srcChoice); static Action nxOutputRegAction(Class<? extends NxmNxReg> reg); static void addNxRegMatch(MatchBuilder match, RegMatch... matches); static void addNxNshc1RegMatch(MatchBuilder match, Long value); static void addNxNshc2RegMatch(MatchBuilder match, Long value); static void addNxNshc3RegMatch(MatchBuilder match, Long value); static void addNxNshc4RegMatch(MatchBuilder match, Long value); static void addNxTunIdMatch(MatchBuilder match, int tunId); static void addNxTunIpv4DstMatch(MatchBuilder match, Ipv4Address ipv4Address); static void addNxNsiMatch(MatchBuilder match, short nsi); static void addNxNspMatch(MatchBuilder match, Long nsp); static EthernetMatch ethernetMatch(MacAddress srcMac, MacAddress dstMac, Long etherType); static long getOfPortNum(NodeConnectorId id); static FlowBuilder base(short tableId); static byte[] bytesFromHexString(String values); }
FlowUtils { public static InstanceIdentifier<Table> createTablePath(final NodeId nodeId, final short tableId) { return createNodePath(nodeId).builder() .augmentation(FlowCapableNode.class) .child(Table.class, new TableKey(tableId)) .build(); }  static InstanceIdentifier<Node> createNodePath(final NodeId nodeId); static InstanceIdentifier<Table> createTablePath(final NodeId nodeId, final short tableId); static InstanceIdentifier<Group> createGroupPath(final NodeId nodeId, final GroupId groupId); static InstanceIdentifier<Group> createGroupPath(final NodeId nodeId, final Long groupId); static InstanceIdentifier<Bucket> createBucketPath(final NodeId nodeId, final GroupId groupId,
                                                              final BucketId bucketId); static InstanceIdentifier<Flow> createFlowPath(final InstanceIdentifier<Table> table,
            final FlowKey flowKey); static InstanceIdentifier<Flow> createFlowPath(final InstanceIdentifier<Table> table, final FlowId flowId); static Instructions gotoTableInstructions(short tableId); static Instruction gotoTableIns(short tableId); static ArrayList<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action> actionList(
            Action... actions); static ArrayList<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action> actionList(
            List<ActionBuilder> actions); static Instruction applyActionIns(Action... actions); static Instruction applyActionIns(List<ActionBuilder> actions); static Instruction writeActionIns(List<ActionBuilder> actions); static Instruction writeActionIns(Action... actions); static Instructions instructions(Instruction... instructions); static Instructions dropInstructions(); static Action dropAction(); static Action createActionResubmit(Integer port, final short toTable); static Action outputAction(NodeConnectorId id); static Action groupAction(Long id); static Action setDlSrcAction(MacAddress mac); static Action setDlDstAction(MacAddress mac); static VlanMatch vlanMatch(int vlanId, boolean vlanIdPresent); static List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder> pushVlanActions(
            int vlanId); static Action pushVlanAction(); static Action setVlanId(int vlanId); static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction popVlanInstruction(
            int order); static Action popVlanAction(); static Action setIpv4DstAction(Ipv4Address ipAddress); static Action setIpv6DstAction(Ipv6Address ipAddress); static Action setIpv4SrcAction(Ipv4Address ipAddress); static Action setIpv6SrcAction(Ipv6Address ipAddress); static Action decNwTtlAction(); static Action nxLoadRegAction(DstChoice dstChoice, BigInteger value, int endOffset, boolean groupBucket); static Action nxPushNshAction(); static Action nxPopNshAction(); static Action nxLoadNshMdtypeAction(Short value); static Action nxLoadNshNpAction(Short value); static Action nxSetNsiAction(Short nsi); static Action nxSetNspAction(Long nsp); static Action nxLoadRegAction(DstChoice dstChoice, BigInteger value); static Action nxLoadRegAction(Class<? extends NxmNxReg> reg, BigInteger value); static Action nxLoadNshc1RegAction(Long value); static Action nxLoadNshc2RegAction(Long value); static Action nxLoadNshc3RegAction(Long value); static Action nxLoadNshc4RegAction(Long value); static Action nxLoadTunIPv4Action(String ipAddress, boolean groupBucket); static Action nxLoadArpOpAction(BigInteger value); static Action nxLoadArpShaAction(BigInteger value); static Action nxLoadArpSpaAction(BigInteger value); static Action nxLoadArpSpaAction(String ipAddress); static Action nxMoveRegAction(SrcChoice srcChoice, DstChoice dstChoice, int endOffset, boolean groupBucket); static Action nxMoveRegAction(SrcChoice srcChoice, DstChoice dstChoice); static Action nxMoveRegTunDstToNshc1(); static Action nxMoveTunGpeNp(); static Action nxLoadTunGpeNpAction(BigInteger tunGpeNp, boolean groupBucket); static Action nxMoveTunIdtoNshc2(); static Action nxMoveRegTunIdAction(Class<? extends NxmNxReg> src, boolean groupBucket); static Action nxLoadTunIdAction(BigInteger tunnelId, boolean groupBucket); static Action nxMoveArpShaToArpThaAction(); static Action nxMoveEthSrcToEthDstAction(); static Action nxMoveArpSpaToArpTpaAction(); static Action nxOutputRegAction(SrcChoice srcChoice); static Action nxOutputRegAction(Class<? extends NxmNxReg> reg); static void addNxRegMatch(MatchBuilder match, RegMatch... matches); static void addNxNshc1RegMatch(MatchBuilder match, Long value); static void addNxNshc2RegMatch(MatchBuilder match, Long value); static void addNxNshc3RegMatch(MatchBuilder match, Long value); static void addNxNshc4RegMatch(MatchBuilder match, Long value); static void addNxTunIdMatch(MatchBuilder match, int tunId); static void addNxTunIpv4DstMatch(MatchBuilder match, Ipv4Address ipv4Address); static void addNxNsiMatch(MatchBuilder match, short nsi); static void addNxNspMatch(MatchBuilder match, Long nsp); static EthernetMatch ethernetMatch(MacAddress srcMac, MacAddress dstMac, Long etherType); static long getOfPortNum(NodeConnectorId id); static FlowBuilder base(short tableId); static byte[] bytesFromHexString(String values); static final Long ARP; static final Long IPv4; static final Long IPv6; static final Integer VLAN; }