Search in sources :

Example 1 with RouteMapMatchIpv6PrefixListLine

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

the class CiscoControlPlaneExtractor method exitMatch_ipv6_prefix_list_rm_stanza.

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

Aggregations

TreeSet (java.util.TreeSet)1 VariableContext (org.batfish.grammar.cisco.CiscoParser.VariableContext)1 RouteMapMatchIpv6PrefixListLine (org.batfish.representation.cisco.RouteMapMatchIpv6PrefixListLine)1