Search in sources :

Example 1 with RouteMapMatchAsPathAccessListLine

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

the class CiscoControlPlaneExtractor method exitMatch_as_path_access_list_rm_stanza.

@Override
public void exitMatch_as_path_access_list_rm_stanza(Match_as_path_access_list_rm_stanzaContext ctx) {
    int statementLine = ctx.getStart().getLine();
    Set<String> names = new TreeSet<>();
    for (VariableContext name : ctx.name_list) {
        names.add(name.getText());
    }
    RouteMapMatchAsPathAccessListLine line = new RouteMapMatchAsPathAccessListLine(names, statementLine);
    _currentRouteMapClause.addMatchLine(line);
}
Also used : RouteMapMatchAsPathAccessListLine(org.batfish.representation.cisco.RouteMapMatchAsPathAccessListLine) 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 RouteMapMatchAsPathAccessListLine (org.batfish.representation.cisco.RouteMapMatchAsPathAccessListLine)1