Search in sources :

Example 1 with AggregateRoute

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;
    }
}
Also used : Prefix(org.batfish.datamodel.Prefix) AggregateRoute(org.batfish.representation.juniper.AggregateRoute)

Aggregations

Prefix (org.batfish.datamodel.Prefix)1 AggregateRoute (org.batfish.representation.juniper.AggregateRoute)1