Search in sources :

Example 1 with Variable_access_listContext

use of org.batfish.grammar.cisco.CiscoParser.Variable_access_listContext in project batfish by batfish.

the class CiscoControlPlaneExtractor method exitMatch_ipv6_access_list_rm_stanza.

@Override
public void exitMatch_ipv6_access_list_rm_stanza(Match_ipv6_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());
    }
    RouteMapMatchIpv6AccessListLine line = new RouteMapMatchIpv6AccessListLine(names, statementLine);
    _currentRouteMapClause.addMatchLine(line);
}
Also used : Variable_access_listContext(org.batfish.grammar.cisco.CiscoParser.Variable_access_listContext) TreeSet(java.util.TreeSet) RouteMapMatchIpv6AccessListLine(org.batfish.representation.cisco.RouteMapMatchIpv6AccessListLine)

Example 2 with Variable_access_listContext

use of org.batfish.grammar.cisco.CiscoParser.Variable_access_listContext 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)2 Variable_access_listContext (org.batfish.grammar.cisco.CiscoParser.Variable_access_listContext)2 RouteMapMatchIpAccessListLine (org.batfish.representation.cisco.RouteMapMatchIpAccessListLine)1 RouteMapMatchIpv6AccessListLine (org.batfish.representation.cisco.RouteMapMatchIpv6AccessListLine)1