use of org.batfish.representation.juniper.AggregateRoute in project batfish by batfish.
the class ConfigurationBuilder method enterRo_aggregate.
@Override
public void enterRo_aggregate(Ro_aggregateContext ctx) {
if (ctx.prefix != null) {
Prefix prefix = Prefix.parse(ctx.IP_PREFIX().getText());
Map<Prefix, AggregateRoute> aggregateRoutes = _currentRib.getAggregateRoutes();
_currentAggregateRoute = aggregateRoutes.computeIfAbsent(prefix, AggregateRoute::new);
} else {
_currentAggregateRoute = DUMMY_AGGREGATE_ROUTE;
}
}
Aggregations