use of org.batfish.representation.cisco.StandardCommunityListLine 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);
}
Aggregations