use of org.batfish.grammar.cisco.CiscoParser.CommunityContext in project batfish by batfish.
the class CiscoControlPlaneExtractor method exitSet_community_rm_stanza.
@Override
public void exitSet_community_rm_stanza(Set_community_rm_stanzaContext ctx) {
List<Long> commList = new ArrayList<>();
for (CommunityContext c : ctx.communities) {
long community = toLong(c);
commList.add(community);
}
RouteMapSetCommunityLine line = new RouteMapSetCommunityLine(commList);
_currentRouteMapClause.addSetLine(line);
}
use of org.batfish.grammar.cisco.CiscoParser.CommunityContext in project batfish by batfish.
the class CiscoControlPlaneExtractor method exitIp_community_list_standard_tail.
@Override
public void exitIp_community_list_standard_tail(Ip_community_list_standard_tailContext ctx) {
LineAction action = toLineAction(ctx.ala);
List<Long> communities = new ArrayList<>();
for (CommunityContext communityCtx : ctx.communities) {
long community = toLong(communityCtx);
communities.add(community);
}
StandardCommunityListLine line = new StandardCommunityListLine(action, communities);
_currentStandardCommunityList.getLines().add(line);
}
use of org.batfish.grammar.cisco.CiscoParser.CommunityContext in project batfish by batfish.
the class CiscoControlPlaneExtractor method exitSet_community_additive_rm_stanza.
@Override
public void exitSet_community_additive_rm_stanza(Set_community_additive_rm_stanzaContext ctx) {
List<Long> commList = new ArrayList<>();
for (CommunityContext c : ctx.communities) {
long community = toLong(c);
commList.add(community);
}
RouteMapSetAdditiveCommunityLine line = new RouteMapSetAdditiveCommunityLine(commList);
_currentRouteMapClause.addSetLine(line);
}
Aggregations