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