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