@Test public void testToAclLineMatchExpr() { FwFromIcmpCode from = new FwFromIcmpCode(new SubRange(1, 2)); assertEquals( from.toAclLineMatchExpr(null, null, null), new MatchHeaderSpace( HeaderSpace.builder() .setIpProtocols(IpProtocol.ICMP) .setIcmpCodes(new SubRange(1, 2)) .build(), TraceElement.of("Matched icmp-code 1-2"))); }
@Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); }
FwFromIcmpCode implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); } }
FwFromIcmpCode implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); } FwFromIcmpCode(SubRange icmpCodeRange); }
FwFromIcmpCode implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); } FwFromIcmpCode(SubRange icmpCodeRange); @Override Field getField(); @Override AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w); }
FwFromIcmpCode implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); } FwFromIcmpCode(SubRange icmpCodeRange); @Override Field getField(); @Override AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w);  }