@Test public void testToAclLineMatchExpr_single() { FwFromSourcePort from = new FwFromSourcePort(SubRange.singleton(1)); assertEquals( from.toAclLineMatchExpr(null, null, null), new MatchHeaderSpace( HeaderSpace.builder() .setIpProtocols(IpProtocol.TCP, IpProtocol.UDP) .setSrcPorts(SubRange.singleton(1)) .build(), TraceElement.of("Matched source-port 1"))); }
@Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); }
FwFromSourcePort implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); } }
FwFromSourcePort implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); } FwFromSourcePort(int port);  FwFromSourcePort(SubRange subrange); }
FwFromSourcePort implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); } FwFromSourcePort(int port);  FwFromSourcePort(SubRange subrange); SubRange getPortRange(); @Override Field getField(); @Override AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w); }
FwFromSourcePort implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); } FwFromSourcePort(int port);  FwFromSourcePort(SubRange subrange); SubRange getPortRange(); @Override Field getField(); @Override AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w);  }