Class LabeledUnicastIpv4RIBSupport
- java.lang.Object
- 
- org.opendaylight.protocol.bgp.rib.spi.AbstractRIBSupport<C,S,LabeledUnicastRoute,LabeledUnicastRouteKey>
- 
- org.opendaylight.protocol.bgp.labeled.unicast.LabeledUnicastIpv4RIBSupport
 
 
- 
- All Implemented Interfaces:
- RIBSupport<LabeledUnicastRoutesCase,LabeledUnicastRoutes,LabeledUnicastRoute,LabeledUnicastRouteKey>
 
 public final class LabeledUnicastIpv4RIBSupport extends AbstractRIBSupport<C,S,LabeledUnicastRoute,LabeledUnicastRouteKey> 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.opendaylight.protocol.bgp.rib.spi.RIBSupportRIBSupport.ApplyRoute
 
- 
 - 
Field Summary- 
Fields inherited from class org.opendaylight.protocol.bgp.rib.spi.AbstractRIBSupportmappingService, ROUTE_KEY, routeDefaultYii
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DestinationTypebuildDestination(Collection<org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode> routes)protected DestinationTypebuildWithdrawnDestination(Collection<org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode> routes)LabeledUnicastRoutecreateRoute(LabeledUnicastRoute route, LabeledUnicastRouteKey key, Attributes attributes)Creates a route with new path Id and attributes.LabeledUnicastRouteKeycreateRouteListKey(PathId pathId, String routeKey)Construct a Route List Key using new path Id for Families.LabeledUnicastRoutesemptyRoutesContainer()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<LabeledUnicastRoute>extractAdjRibInRoutes(Routes routes)Extract a route list from the adj-rib-in instantiation of table routes.static List<LabelStack>extractLabel(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode<? extends org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument> route, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier labelStackNid, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier labelValueNid)PathIdextractPathId(LabeledUnicastRouteKey routeListKey)Given a route list key, return the associated path ID.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefixextractPrefix(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode<? extends org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument> route, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier prefixTypeNid)StringextractRouteKey(LabeledUnicastRouteKey routeListKey)Given a route list key, return the associated path ID.protected List<CLabeledUnicastDestination>extractRoutes(Collection<org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode> routes)protected Collection<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates>processDestination(org.opendaylight.mdsal.dom.api.DOMDataTreeWriteTransaction tx, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier routesPath, org.opendaylight.yangtools.yang.data.api.schema.ContainerNode destination, org.opendaylight.yangtools.yang.data.api.schema.ContainerNode attributes, RIBSupport.ApplyRoute function)- 
Methods inherited from class org.opendaylight.protocol.bgp.rib.spi.AbstractRIBSupportattributeFromContainerNode, 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.opendaylight.protocol.bgp.rib.spi.RIBSupportcacheableAttributeObjects, cacheableNlriObjects, createRouteListKey, routePath
 
- 
 
- 
- 
- 
Method Detail- 
buildDestinationprotected DestinationType buildDestination(Collection<org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode> routes) - Specified by:
- buildDestinationin class- AbstractRIBSupport<LabeledUnicastRoutesCase,LabeledUnicastRoutes,LabeledUnicastRoute,LabeledUnicastRouteKey>
 
 - 
buildWithdrawnDestinationprotected DestinationType buildWithdrawnDestination(Collection<org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode> routes) - Specified by:
- buildWithdrawnDestinationin class- AbstractRIBSupport<LabeledUnicastRoutesCase,LabeledUnicastRoutes,LabeledUnicastRoute,LabeledUnicastRouteKey>
 
 - 
extractPrefixpublic org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix extractPrefix(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode<? extends org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument> route, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier prefixTypeNid)
 - 
emptyRoutesContainerpublic LabeledUnicastRoutes emptyRoutesContainer() Description copied from interface:RIBSupportReturn 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.
 
 - 
extractAdjRibInRoutespublic List<LabeledUnicastRoute> extractAdjRibInRoutes(Routes routes) Description copied from interface:RIBSupportExtract a route list from the adj-rib-in instantiation of table routes.- Parameters:
- routes- Table route choice
- Returns:
- A potentially empty list of routes
 
 - 
processDestinationprotected Collection<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates> processDestination(org.opendaylight.mdsal.dom.api.DOMDataTreeWriteTransaction tx, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier routesPath, org.opendaylight.yangtools.yang.data.api.schema.ContainerNode destination, org.opendaylight.yangtools.yang.data.api.schema.ContainerNode attributes, RIBSupport.ApplyRoute function) - Specified by:
- processDestinationin class- AbstractRIBSupport<C extends Routes & org.opendaylight.yangtools.yang.binding.DataObject,S extends org.opendaylight.yangtools.yang.binding.ChildOf<? super C> & LabeledUnicastRoutesList,LabeledUnicastRoute,LabeledUnicastRouteKey>
 
 - 
extractRoutesprotected List<CLabeledUnicastDestination> extractRoutes(Collection<org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode> routes) 
 - 
extractLabelpublic static List<LabelStack> extractLabel(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode<? extends org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument> route, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier labelStackNid, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier labelValueNid) 
 - 
createRouteListKeypublic final LabeledUnicastRouteKey createRouteListKey(PathId pathId, String routeKey) Description copied from interface:RIBSupportConstruct a Route List Key using new path Id for Families.- Parameters:
- pathId- The path identifier
- routeKey- RouteKey
- Returns:
- route list Key (RouteKey + pathId)
 
 - 
createRoutepublic final LabeledUnicastRoute createRoute(LabeledUnicastRoute route, LabeledUnicastRouteKey key, Attributes attributes) Description copied from interface:RIBSupportCreates a route with new path Id and attributes.- Parameters:
- route- route
- key- route key
- attributes- route attributes
- Returns:
- Route List key
 
 - 
extractPathIdpublic final PathId extractPathId(LabeledUnicastRouteKey routeListKey) Description copied from interface:RIBSupportGiven a route list key, return the associated path ID.- Parameters:
- routeListKey- Route list key
- Returns:
- Path ID
 
 - 
extractRouteKeypublic final String extractRouteKey(LabeledUnicastRouteKey routeListKey) Description copied from interface:RIBSupportGiven a route list key, return the associated path ID.- Parameters:
- routeListKey- Route list key
- Returns:
- RouteKey
 
 
- 
 
-