Search in sources :

Example 1 with ExpandedCommunityListLine

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

the class CiscoControlPlaneExtractor method exitIp_community_list_expanded_tail.

@Override
public void exitIp_community_list_expanded_tail(Ip_community_list_expanded_tailContext ctx) {
    LineAction action = toLineAction(ctx.ala);
    String regex = "";
    for (Token remainder : ctx.remainder) {
        regex += remainder.getText();
    }
    ExpandedCommunityListLine line = new ExpandedCommunityListLine(action, regex);
    _currentExpandedCommunityList.addLine(line);
}
Also used : LineAction(org.batfish.datamodel.LineAction) ExpandedCommunityListLine(org.batfish.representation.cisco.ExpandedCommunityListLine) Token(org.antlr.v4.runtime.Token)

Aggregations

Token (org.antlr.v4.runtime.Token)1 LineAction (org.batfish.datamodel.LineAction)1 ExpandedCommunityListLine (org.batfish.representation.cisco.ExpandedCommunityListLine)1