public abstract class MultiPathAbstractRIBSupport extends AbstractRIBSupport
RIBSupport.ApplyRoute
Modifier | Constructor and Description |
---|---|
protected |
MultiPathAbstractRIBSupport(Class<? extends Routes> cazeClass,
Class<? extends org.opendaylight.yangtools.yang.binding.DataObject> containerClass,
Class<? extends Route> listClass,
Class<? extends AddressFamily> addressFamilyClass,
Class<? extends SubsequentAddressFamily> safiClass,
String routeKeyNaming,
org.opendaylight.yangtools.yang.common.QName destinationQname)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument |
createRouteKeyPathArgument(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument routeKey)
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
|
Long |
extractPathId(org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> data)
Extract PathId from route change received
|
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
|
protected org.opendaylight.yangtools.yang.common.QName |
pathIdQName() |
org.opendaylight.yangtools.yang.common.QName |
routeKeyQName() |
protected org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier |
routePathIdNid() |
buildDestination, buildUpdate, buildWithdrawnDestination, changedRoutes, deleteRoutes, deleteRoutes, emptyRoutes, getAfi, getSafi, processDestination, putRoutes, putRoutes, routeAttributesIdentifier, routeNid, routePath, routeQName, routesCaseClass, routesContainerClass, routesContainerIdentifier, routesListClass
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cacheableAttributeObjects, cacheableNlriObjects, isComplexRoute
protected MultiPathAbstractRIBSupport(Class<? extends Routes> cazeClass, Class<? extends org.opendaylight.yangtools.yang.binding.DataObject> containerClass, Class<? extends Route> listClass, Class<? extends AddressFamily> addressFamilyClass, Class<? extends SubsequentAddressFamily> safiClass, String routeKeyNaming, org.opendaylight.yangtools.yang.common.QName destinationQname)
cazeClass
- Binding class of the AFI/SAFI-specific case statement, must not be nullcontainerClass
- Binding class of the container in routes choice, must not be null.listClass
- Binding class of the route list, nust not be null;addressFamilyClass
- address Family ClasssafiClass
- SubsequentAddressFamilyrouteKeyNaming
- Route Key name (prefix/ route-key / etc..)destinationQname
- destination Qnameprotected final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier routePathIdNid()
protected final org.opendaylight.yangtools.yang.common.QName pathIdQName()
public final org.opendaylight.yangtools.yang.common.QName routeKeyQName()
public final Long extractPathId(org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> data)
data
- Path Id Container@Nonnull public final 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 final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument createRouteKeyPathArgument(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument routeKey)
routeKey
- routeKey Path ArgumentCopyright © 2018 OpenDaylight. All rights reserved.