use of org.batfish.representation.cisco.RouteMapSetNextHopLine in project batfish by batfish.
the class CiscoControlPlaneExtractor method exitSet_next_hop_rm_stanza.
@Override
public void exitSet_next_hop_rm_stanza(Set_next_hop_rm_stanzaContext ctx) {
List<Ip> nextHops = new ArrayList<>();
for (Token t : ctx.nexthop_list) {
Ip nextHop = toIp(t);
nextHops.add(nextHop);
}
RouteMapSetNextHopLine line = new RouteMapSetNextHopLine(nextHops);
_currentRouteMapClause.addSetLine(line);
}
Aggregations