@Test public void testToAclLineMatchExpr() { List<SubRange> ranges = ImmutableList.of(SubRange.singleton(1), new SubRange(2, 3)); FwFromPacketLength from = new FwFromPacketLength(ranges, false); assertEquals( from.toAclLineMatchExpr(null, null, null), new MatchHeaderSpace( HeaderSpace.builder().setPacketLengths(ranges).build(), TraceElement.of("Matched packet-length 1 2-3"))); }
@Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); }
FwFromPacketLength implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); } }
FwFromPacketLength implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); } FwFromPacketLength(List<SubRange> range, boolean except); }
FwFromPacketLength implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); } FwFromPacketLength(List<SubRange> range, boolean except); @Override Field getField(); @Override AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w); }
FwFromPacketLength implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); } FwFromPacketLength(List<SubRange> range, boolean except); @Override Field getField(); @Override AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w);  }