Search in sources :

Example 1 with RouteMapMatchIpv6AccessListLine

use of org.batfish.representation.cisco.RouteMapMatchIpv6AccessListLine 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)

Aggregations

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