use of org.batfish.representation.cisco.RouteMapSetAdditiveCommunityListLine in project batfish by batfish.
the class CiscoControlPlaneExtractor method exitSet_community_list_additive_rm_stanza.
@Override
public void exitSet_community_list_additive_rm_stanza(Set_community_list_additive_rm_stanzaContext ctx) {
int statementLine = ctx.getStart().getLine();
Set<String> communityLists = new LinkedHashSet<>();
for (VariableContext communityListCtx : ctx.comm_lists) {
String communityList = communityListCtx.getText();
communityLists.add(communityList);
}
RouteMapSetAdditiveCommunityListLine line = new RouteMapSetAdditiveCommunityListLine(communityLists, statementLine);
_currentRouteMapClause.addSetLine(line);
}
Aggregations