public final class LinkstateRIBSupport extends AbstractRIBSupport
RIBSupport.ApplyRoute
Modifier and Type | Method and Description |
---|---|
protected DestinationType |
buildDestination(Collection<org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode> routes) |
protected DestinationType |
buildWithdrawnDestination(Collection<org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode> routes) |
com.google.common.collect.ImmutableCollection<Class<? extends org.opendaylight.yangtools.yang.binding.DataObject>> |
cacheableAttributeObjects() |
com.google.common.collect.ImmutableCollection<Class<? extends org.opendaylight.yangtools.yang.binding.DataObject>> |
cacheableNlriObjects() |
default org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument |
createRouteKeyPathArgument(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument routeKeyPathArgument)
Create a new Path Argument for route Key removing remove Path Id from key
For non extension which doesnt support Multiple Path this step is not required
|
default Long |
extractPathId(org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> normalizedNode)
Extract PathId from route change received
|
static LinkstateRIBSupport |
getInstance() |
default org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument |
getRouteIdAddPath(long pathId,
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument routeId)
Construct a PathArgument to an AddPathRoute
|
boolean |
isComplexRoute()
Indicate whether this AFI/SAFI combination is a complex route.
|
protected void |
processDestination(org.opendaylight.controller.md.sal.dom.api.DOMDataWriteTransaction 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) |
buildUpdate, changedRoutes, deleteRoutes, deleteRoutes, emptyRoutes, getAfi, getSafi, putRoutes, putRoutes, routeAttributesIdentifier, routeNid, routePath, routeQName, routesCaseClass, routesContainerClass, routesContainerIdentifier, routesListClass
public static LinkstateRIBSupport getInstance()
public com.google.common.collect.ImmutableCollection<Class<? extends org.opendaylight.yangtools.yang.binding.DataObject>> cacheableAttributeObjects()
public com.google.common.collect.ImmutableCollection<Class<? extends org.opendaylight.yangtools.yang.binding.DataObject>> cacheableNlriObjects()
public boolean isComplexRoute()
RIBSupport
protected void processDestination(org.opendaylight.controller.md.sal.dom.api.DOMDataWriteTransaction 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)
processDestination
in class AbstractRIBSupport
@Nonnull protected DestinationType buildDestination(@Nonnull Collection<org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode> routes)
buildDestination
in class AbstractRIBSupport
@Nonnull protected DestinationType buildWithdrawnDestination(@Nonnull Collection<org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode> routes)
buildWithdrawnDestination
in class AbstractRIBSupport
public Long extractPathId(org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> normalizedNode)
normalizedNode
- Path Id Container@Nullable public org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument getRouteIdAddPath(long pathId, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument routeId)
pathId
- The path identifierrouteId
- PathArgument leaf pathpublic org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument createRouteKeyPathArgument(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument routeKeyPathArgument)
routeKeyPathArgument
- routeKey Path ArgumentCopyright © 2018 OpenDaylight. All rights reserved.