@Test public void testToHeaderspace() { IpWildcard ips = IpWildcard.parse("1.1.1.0/24"); FwFromDestinationAddressExcept from = new FwFromDestinationAddressExcept(ips, ips.toString()); assertThat( from.toHeaderspace(), equalTo(HeaderSpace.builder().setNotDstIps(ips.toIpSpace()).build())); }
@VisibleForTesting HeaderSpace toHeaderspace() { return HeaderSpace.builder().setNotDstIps(_ipWildcard.toIpSpace()).build(); }
FwFromDestinationAddressExcept implements FwFrom { @VisibleForTesting HeaderSpace toHeaderspace() { return HeaderSpace.builder().setNotDstIps(_ipWildcard.toIpSpace()).build(); } }
FwFromDestinationAddressExcept implements FwFrom { @VisibleForTesting HeaderSpace toHeaderspace() { return HeaderSpace.builder().setNotDstIps(_ipWildcard.toIpSpace()).build(); } FwFromDestinationAddressExcept(IpWildcard ipWildcard, String description); }
FwFromDestinationAddressExcept implements FwFrom { @VisibleForTesting HeaderSpace toHeaderspace() { return HeaderSpace.builder().setNotDstIps(_ipWildcard.toIpSpace()).build(); } FwFromDestinationAddressExcept(IpWildcard ipWildcard, String description); IpWildcard getIpWildcard(); @Override Field getField(); @Override AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w); }
FwFromDestinationAddressExcept implements FwFrom { @VisibleForTesting HeaderSpace toHeaderspace() { return HeaderSpace.builder().setNotDstIps(_ipWildcard.toIpSpace()).build(); } FwFromDestinationAddressExcept(IpWildcard ipWildcard, String description); IpWildcard getIpWildcard(); @Override Field getField(); @Override AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w);  }