use of org.batfish.representation.cisco.RouteMapSetAsPathPrependLine in project batfish by batfish.
the class CiscoControlPlaneExtractor method exitSet_as_path_prepend_rm_stanza.
@Override
public void exitSet_as_path_prepend_rm_stanza(Set_as_path_prepend_rm_stanzaContext ctx) {
List<AsExpr> asList = new ArrayList<>();
for (As_exprContext asx : ctx.as_list) {
AsExpr as = toAsExpr(asx);
asList.add(as);
}
RouteMapSetAsPathPrependLine line = new RouteMapSetAsPathPrependLine(asList);
_currentRouteMapClause.addSetLine(line);
}
Aggregations