Class FlowspecL3vpnIpv4RIBSupport
- java.lang.Object
-
- org.opendaylight.protocol.bgp.rib.spi.AbstractRIBSupport<C,S,R,I>
-
- org.opendaylight.protocol.bgp.flowspec.AbstractFlowspecRIBSupport<T,C,S,R,I>
-
- org.opendaylight.protocol.bgp.flowspec.l3vpn.AbstractFlowspecL3vpnRIBSupport<FlowspecL3vpnIpv4NlriParser,FlowspecL3vpnIpv4RoutesCase,FlowspecL3vpnIpv4Routes,FlowspecL3vpnRoute,FlowspecL3vpnRouteKey>
-
- org.opendaylight.protocol.bgp.flowspec.l3vpn.ipv4.FlowspecL3vpnIpv4RIBSupport
-
- All Implemented Interfaces:
RIBSupport<FlowspecL3vpnIpv4RoutesCase,FlowspecL3vpnIpv4Routes,FlowspecL3vpnRoute,FlowspecL3vpnRouteKey>
public final class FlowspecL3vpnIpv4RIBSupport extends AbstractFlowspecL3vpnRIBSupport<FlowspecL3vpnIpv4NlriParser,FlowspecL3vpnIpv4RoutesCase,FlowspecL3vpnIpv4Routes,FlowspecL3vpnRoute,FlowspecL3vpnRouteKey>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opendaylight.protocol.bgp.rib.spi.RIBSupport
RIBSupport.ApplyRoute
-
-
Field Summary
-
Fields inherited from class org.opendaylight.protocol.bgp.flowspec.AbstractFlowspecRIBSupport
nlriParser
-
Fields inherited from class org.opendaylight.protocol.bgp.rib.spi.AbstractRIBSupport
mappingService, ROUTE_KEY, routeDefaultYii
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FlowspecL3vpnRoute
createRoute(FlowspecL3vpnRoute route, FlowspecL3vpnRouteKey key, Attributes attributes)
Creates a route with new path Id and attributes.FlowspecL3vpnRouteKey
createRouteListKey(PathId pathId, String routeKey)
Construct a Route List Key using new path Id for Families.FlowspecL3vpnIpv4Routes
emptyRoutesContainer()
Return the table-type-specific empty routes container, as augmented into the bgp-peer model under /peer/effect-rib-in/tables/routes choice node/routes container.List<FlowspecL3vpnRoute>
extractAdjRibInRoutes(Routes routes)
Extract a route list from the adj-rib-in instantiation of table routes.PathId
extractPathId(FlowspecL3vpnRouteKey routeListKey)
Given a route list key, return the associated path ID.String
extractRouteKey(FlowspecL3vpnRouteKey routeListKey)
Given a route list key, return the associated path ID.static FlowspecL3vpnIpv4RIBSupport
getInstance(SimpleFlowspecExtensionProviderContext context, org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer mappingService)
-
Methods inherited from class org.opendaylight.protocol.bgp.flowspec.l3vpn.AbstractFlowspecL3vpnRIBSupport
buildDestination, buildWithdrawnDestination
-
Methods inherited from class org.opendaylight.protocol.bgp.flowspec.AbstractFlowspecRIBSupport
processDestination
-
Methods inherited from class org.opendaylight.protocol.bgp.rib.spi.AbstractRIBSupport
attributeFromContainerNode, attributeToContainerNode, buildUpdate, changedRoutes, createRouteIdentifier, deleteRoutes, deleteRoutes, emptyTable, extractPrefix, extractRouteDistinguisher, fromNormalizedNode, getAfi, getSafi, getTablesKey, prefixNid, putRoutes, putRoutes, relativeRoutesPath, routeAttributesIdentifier, routeKeyTemplate, routeNid, routePathIdNid, routeQName, routesCaseClass, routesContainerClass, routesContainerIdentifier, routesListClass, routesPath, routesYangInstanceIdentifier
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opendaylight.protocol.bgp.rib.spi.RIBSupport
cacheableAttributeObjects, cacheableNlriObjects, createRouteListKey, routePath
-
-
-
-
Method Detail
-
getInstance
public static FlowspecL3vpnIpv4RIBSupport getInstance(SimpleFlowspecExtensionProviderContext context, org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer mappingService)
-
createRouteListKey
public FlowspecL3vpnRouteKey createRouteListKey(PathId pathId, String routeKey)
Description copied from interface:RIBSupport
Construct a Route List Key using new path Id for Families.- Parameters:
pathId
- The path identifierrouteKey
- RouteKey- Returns:
- route list Key (RouteKey + pathId)
-
createRoute
public FlowspecL3vpnRoute createRoute(FlowspecL3vpnRoute route, FlowspecL3vpnRouteKey key, Attributes attributes)
Description copied from interface:RIBSupport
Creates a route with new path Id and attributes.- Parameters:
route
- routekey
- route keyattributes
- route attributes- Returns:
- Route List key
-
emptyRoutesContainer
public FlowspecL3vpnIpv4Routes emptyRoutesContainer()
Description copied from interface:RIBSupport
Return the table-type-specific empty routes container, as augmented into the bgp-peer model under /peer/effect-rib-in/tables/routes choice node/routes container. This needs to include all the skeleton nodes under which the individual routes will be stored.- Returns:
- Protocol-specific container in the routes, may not be null.
-
extractPathId
public PathId extractPathId(FlowspecL3vpnRouteKey routeListKey)
Description copied from interface:RIBSupport
Given a route list key, return the associated path ID.- Parameters:
routeListKey
- Route list key- Returns:
- Path ID
-
extractRouteKey
public String extractRouteKey(FlowspecL3vpnRouteKey routeListKey)
Description copied from interface:RIBSupport
Given a route list key, return the associated path ID.- Parameters:
routeListKey
- Route list key- Returns:
- RouteKey
-
extractAdjRibInRoutes
public List<FlowspecL3vpnRoute> extractAdjRibInRoutes(Routes routes)
Description copied from interface:RIBSupport
Extract a route list from the adj-rib-in instantiation of table routes.- Parameters:
routes
- Table route choice- Returns:
- A potentially empty list of routes
-
-