use of org.batfish.grammar.cisco.CiscoParser.VariableContext 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);
}
use of org.batfish.grammar.cisco.CiscoParser.VariableContext in project batfish by batfish.
the class CiscoControlPlaneExtractor method exitMatch_as_path_access_list_rm_stanza.
@Override
public void exitMatch_as_path_access_list_rm_stanza(Match_as_path_access_list_rm_stanzaContext ctx) {
int statementLine = ctx.getStart().getLine();
Set<String> names = new TreeSet<>();
for (VariableContext name : ctx.name_list) {
names.add(name.getText());
}
RouteMapMatchAsPathAccessListLine line = new RouteMapMatchAsPathAccessListLine(names, statementLine);
_currentRouteMapClause.addMatchLine(line);
}
use of org.batfish.grammar.cisco.CiscoParser.VariableContext in project batfish by batfish.
the class CiscoControlPlaneExtractor method exitMatch_ip_prefix_list_rm_stanza.
@Override
public void exitMatch_ip_prefix_list_rm_stanza(Match_ip_prefix_list_rm_stanzaContext ctx) {
int statementLine = ctx.getStart().getLine();
Set<String> names = new TreeSet<>();
for (VariableContext t : ctx.name_list) {
names.add(t.getText());
}
RouteMapMatchIpPrefixListLine line = new RouteMapMatchIpPrefixListLine(names, statementLine);
_currentRouteMapClause.addMatchLine(line);
}
use of org.batfish.grammar.cisco.CiscoParser.VariableContext in project batfish by batfish.
the class CiscoControlPlaneExtractor method exitMatch_ipv6_prefix_list_rm_stanza.
@Override
public void exitMatch_ipv6_prefix_list_rm_stanza(Match_ipv6_prefix_list_rm_stanzaContext ctx) {
int statementLine = ctx.getStart().getLine();
Set<String> names = new TreeSet<>();
for (VariableContext t : ctx.name_list) {
names.add(t.getText());
}
RouteMapMatchIpv6PrefixListLine line = new RouteMapMatchIpv6PrefixListLine(names, statementLine);
_currentRouteMapClause.addMatchLine(line);
}
use of org.batfish.grammar.cisco.CiscoParser.VariableContext in project batfish by batfish.
the class CiscoControlPlaneExtractor method exitSet_community_list_rm_stanza.
@Override
public void exitSet_community_list_rm_stanza(Set_community_list_rm_stanzaContext ctx) {
Set<String> communityLists = new LinkedHashSet<>();
int statementLine = ctx.getStart().getLine();
for (VariableContext communityListCtx : ctx.comm_lists) {
String communityList = communityListCtx.getText();
communityLists.add(communityList);
}
RouteMapSetCommunityListLine line = new RouteMapSetCommunityListLine(communityLists, statementLine);
_currentRouteMapClause.addSetLine(line);
}
Aggregations