@Test public void testToHeaderspace() { FwFromDestinationPort from = new FwFromDestinationPort(new SubRange(1, 2)); assertEquals( from.toHeaderspace(), HeaderSpace.builder() .setIpProtocols(IpProtocol.TCP, IpProtocol.UDP) .setDstPorts(new SubRange(1, 2)) .build()); }
@VisibleForTesting HeaderSpace toHeaderspace() { return HeaderSpace.builder() .setIpProtocols(IpProtocol.TCP, IpProtocol.UDP) .setDstPorts(_portRange) .build(); }
FwFromDestinationPort implements FwFrom { @VisibleForTesting HeaderSpace toHeaderspace() { return HeaderSpace.builder() .setIpProtocols(IpProtocol.TCP, IpProtocol.UDP) .setDstPorts(_portRange) .build(); } }
FwFromDestinationPort implements FwFrom { @VisibleForTesting HeaderSpace toHeaderspace() { return HeaderSpace.builder() .setIpProtocols(IpProtocol.TCP, IpProtocol.UDP) .setDstPorts(_portRange) .build(); } FwFromDestinationPort(int port);  FwFromDestinationPort(SubRange subrange); }
FwFromDestinationPort implements FwFrom { @VisibleForTesting HeaderSpace toHeaderspace() { return HeaderSpace.builder() .setIpProtocols(IpProtocol.TCP, IpProtocol.UDP) .setDstPorts(_portRange) .build(); } FwFromDestinationPort(int port);  FwFromDestinationPort(SubRange subrange); SubRange getPortRange(); @Override Field getField(); @Override AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w); }
FwFromDestinationPort implements FwFrom { @VisibleForTesting HeaderSpace toHeaderspace() { return HeaderSpace.builder() .setIpProtocols(IpProtocol.TCP, IpProtocol.UDP) .setDstPorts(_portRange) .build(); } FwFromDestinationPort(int port);  FwFromDestinationPort(SubRange subrange); SubRange getPortRange(); @Override Field getField(); @Override AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w);  }