+ private <C extends Routes & DataObject & ChoiceIn<Tables>, S extends ChildOf<? super C>,
+ R extends Route & ChildOf<? super S> & Identifiable<I>, I extends Identifier<R>> void writeTableRoutes(
+ final WriteTransaction tx, final TablesKey tableKey, final RIBSupport<C, S, R, I> ribSupport,
+ final KeyedInstanceIdentifier<Tables, TablesKey> tablePath, final Tables newTable) {
+ final Routes routes = newTable.getRoutes();
+ if (routes != null) {
+ final Class<? extends AfiSafiType> afiSafiType = tableTypeRegistry.getAfiSafiType(ribSupport.getTablesKey())
+ .get();
+ for (R route : ribSupport.extractAdjRibInRoutes(routes)) {
+ writeRoutes(tx, tableKey, afiSafiType, ribSupport, tablePath, route.key(), route, false);
+ }