Search in sources :

Example 1 with RouteMapMatchTagLine

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

the class CiscoControlPlaneExtractor method exitMatch_tag_rm_stanza.

@Override
public void exitMatch_tag_rm_stanza(Match_tag_rm_stanzaContext ctx) {
    Set<Integer> tags = new TreeSet<>();
    for (Token t : ctx.tag_list) {
        tags.add(toInteger(t));
    }
    RouteMapMatchTagLine line = new RouteMapMatchTagLine(tags);
    _currentRouteMapClause.addMatchLine(line);
}
Also used : TreeSet(java.util.TreeSet) Token(org.antlr.v4.runtime.Token) RouteMapMatchTagLine(org.batfish.representation.cisco.RouteMapMatchTagLine)

Aggregations

TreeSet (java.util.TreeSet)1 Token (org.antlr.v4.runtime.Token)1 RouteMapMatchTagLine (org.batfish.representation.cisco.RouteMapMatchTagLine)1