@Test public void testToAclLineMatchExpr() { IpSpace baseIpSpace = IpWildcard.parse(BASE_IP_PREFIX).toIpSpace(); FwFromPrefixList fwFrom = new FwFromPrefixList(BASE_PREFIX_LIST_NAME); assertEquals( fwFrom.toAclLineMatchExpr(_jc, _c, _w), new MatchHeaderSpace( HeaderSpace.builder().setSrcOrDstIps(baseIpSpace).build(), TraceElement.of("Matched prefix-list prefixList"))); }
@Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(jc, c, w), getTraceElement()); }
FwFromPrefixList implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(jc, c, w), getTraceElement()); } }
FwFromPrefixList implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(jc, c, w), getTraceElement()); } FwFromPrefixList(String name); }
FwFromPrefixList implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(jc, c, w), getTraceElement()); } FwFromPrefixList(String name); @Override Field getField(); @Override AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w); }
FwFromPrefixList implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(jc, c, w), getTraceElement()); } FwFromPrefixList(String name); @Override Field getField(); @Override AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w);  }