Search in sources :

Example 1 with RouteMapMatchIpAccessListLine

use of org.batfish.representation.cisco.RouteMapMatchIpAccessListLine in project batfish by batfish.

the class CiscoControlPlaneExtractor method exitMatch_ip_access_list_rm_stanza.

@Override
public void exitMatch_ip_access_list_rm_stanza(Match_ip_access_list_rm_stanzaContext ctx) {
    int statementLine = ctx.getStart().getLine();
    Set<String> names = new TreeSet<>();
    for (Variable_access_listContext v : ctx.name_list) {
        names.add(v.getText());
    }
    RouteMapMatchIpAccessListLine line = new RouteMapMatchIpAccessListLine(names, statementLine);
    _currentRouteMapClause.addMatchLine(line);
}
Also used : RouteMapMatchIpAccessListLine(org.batfish.representation.cisco.RouteMapMatchIpAccessListLine) Variable_access_listContext(org.batfish.grammar.cisco.CiscoParser.Variable_access_listContext) TreeSet(java.util.TreeSet)

Aggregations

TreeSet (java.util.TreeSet)1 Variable_access_listContext (org.batfish.grammar.cisco.CiscoParser.Variable_access_listContext)1 RouteMapMatchIpAccessListLine (org.batfish.representation.cisco.RouteMapMatchIpAccessListLine)1