Package org.onosproject.routing.config
Class RoutingConfiguration
- java.lang.Object
-
- org.onosproject.routing.config.RoutingConfiguration
-
public final class RoutingConfiguration extends Object
Helper class to manage routing configurations.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Set<RoutersConfig.Router>getRouterConfigurations(org.onosproject.net.config.NetworkConfigService configService, org.onosproject.core.ApplicationId routingAppId)Retrieves the router configurations.static voidregister(org.onosproject.net.config.NetworkConfigRegistry registry)Registers the routing configuration factories.static voidunregister(org.onosproject.net.config.NetworkConfigRegistry registry)Unregisters the routing configuration factories.
-
-
-
Method Detail
-
register
public static void register(org.onosproject.net.config.NetworkConfigRegistry registry)
Registers the routing configuration factories.- Parameters:
registry- network config registry service
-
unregister
public static void unregister(org.onosproject.net.config.NetworkConfigRegistry registry)
Unregisters the routing configuration factories.The factories will only be unregistered from the network config registry if no other routing applications are using them. Any components that call NetworkConfigHelper#registerConfigFactories need to also call this method when they are no longer using the config
- Parameters:
registry- network config registry service
-
getRouterConfigurations
public static Set<RoutersConfig.Router> getRouterConfigurations(org.onosproject.net.config.NetworkConfigService configService, org.onosproject.core.ApplicationId routingAppId)
Retrieves the router configurations.- Parameters:
configService- network config serviceroutingAppId- routing app ID- Returns:
- set of router configurations
-
-