private VCPENetworkModel hierarchicalLRnames(VCPENetworkModel model) { for (LogicalRouter lr : Iterables.filter( VCPENetworkModelHelper.getRouters(model.getElements()), LogicalRouter.class)) { lr.setName(model.getName() + "-" + lr.getName()); } return model; }
private VCPENetworkModel configureRouting(VCPENetworkModel model) { // reset routing configuration for LRs for (LogicalRouter lr : Iterables.filter( VCPENetworkModelHelper.getRouters(model.getElements()), LogicalRouter.class)) { lr.setRoutingConfiguration(new RoutingConfiguration()); } configureStaticRoutes(model); return model; }