@Test public void testToAclLineMatchExpr() { IpWildcard ipWildcard = IpWildcard.parse("1.1.1.0/24"); FwFromSourceAddressExcept from = new FwFromSourceAddressExcept(ipWildcard, ipWildcard.toString()); assertEquals( from.toAclLineMatchExpr(null, null, null), new MatchHeaderSpace( HeaderSpace.builder().setNotSrcIps(ipWildcard.toIpSpace()).build(), TraceElement.of("Matched source-address 1.1.1.0/24 except"))); }
@Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); }
FwFromSourceAddressExcept implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); } }
FwFromSourceAddressExcept implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); } FwFromSourceAddressExcept(@Nonnull IpWildcard ipWildcard, @Nonnull String description); }
FwFromSourceAddressExcept implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); } FwFromSourceAddressExcept(@Nonnull IpWildcard ipWildcard, @Nonnull String description); IpWildcard getIpWildcard(); @Override Field getField(); @Override AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w); }
FwFromSourceAddressExcept implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); } FwFromSourceAddressExcept(@Nonnull IpWildcard ipWildcard, @Nonnull String description); IpWildcard getIpWildcard(); @Override Field getField(); @Override AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w);  }