@NotThreadSafe public abstract class AddPathAbstractRouteEntry extends AbstractRouteEntry
Modifier and Type | Field and Description |
---|---|
protected OffsetMap |
offsets |
protected Long[] |
pathsId |
protected org.opendaylight.yangtools.yang.data.api.schema.ContainerNode[] |
values |
ROUTES_IDENTIFIER
Constructor and Description |
---|
AddPathAbstractRouteEntry() |
Modifier and Type | Method and Description |
---|---|
protected int |
addRoute(RouteKey key,
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier attributesIdentifier,
org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> data) |
protected OffsetMap |
getOffsets() |
protected boolean |
isBestPathNew(List<AddPathBestPath> newBestPathList) |
boolean |
isEmpty() |
protected boolean |
removeRoute(RouteKey key,
int offset)
Remove route
|
protected AddPathBestPath |
selectBest(long localAs,
List<RouteKey> keyList)
Process best path selection
|
void |
updateRoute(TablesKey localTK,
ExportPolicyPeerTracker peerPT,
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier locRibTarget,
RIBSupport ribSupport,
org.opendaylight.controller.md.sal.dom.api.DOMDataWriteTransaction tx,
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument routeIdPA)
Update LocRibOut and AdjRibsOut by removing stale best path and writing new best
|
void |
writeRoute(PeerId destPeer,
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument routeId,
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier rootPath,
PeerExportGroup peerGroup,
TablesKey localTK,
ExportPolicyPeerTracker peerPT,
RIBSupport ribSup,
org.opendaylight.controller.md.sal.dom.api.DOMDataWriteTransaction tx)
Write Route on LocRibOut and AdjRibsOut
|
fillLocRib, filterRoutes, getAdjRibOutYII, getRoutePeerIdRole, update, writeRoute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addRoute, createValue, removeRoute, selectBest
protected OffsetMap offsets
protected org.opendaylight.yangtools.yang.data.api.schema.ContainerNode[] values
protected Long[] pathsId
protected int addRoute(RouteKey key, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier attributesIdentifier, org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> data)
protected final boolean removeRoute(RouteKey key, int offset)
key
- RouteKey of removed routeoffset
- Offset of removed routepublic void updateRoute(TablesKey localTK, ExportPolicyPeerTracker peerPT, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier locRibTarget, RIBSupport ribSupport, org.opendaylight.controller.md.sal.dom.api.DOMDataWriteTransaction tx, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument routeIdPA)
RouteEntry
localTK
- local Table KeypeerPT
- peer export policylocRibTarget
- YII local ribribSupport
- rib supporttx
- DOM transactionrouteIdPA
- router ID pathArgumentpublic void writeRoute(PeerId destPeer, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument routeId, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier rootPath, PeerExportGroup peerGroup, TablesKey localTK, ExportPolicyPeerTracker peerPT, RIBSupport ribSup, org.opendaylight.controller.md.sal.dom.api.DOMDataWriteTransaction tx)
RouteEntry
destPeer
- destination peerIdrouteId
- router ID path ArgumentrootPath
- YII root pathpeerGroup
- PeerExportGrouplocalTK
- local Table KeyribSup
- rib supporttx
- DOM transactionprotected final OffsetMap getOffsets()
public final boolean isEmpty()
protected AddPathBestPath selectBest(long localAs, List<RouteKey> keyList)
localAs
- The local autonomous system numberkeyList
- List of RouteKeyprotected boolean isBestPathNew(List<AddPathBestPath> newBestPathList)
Copyright © 2018 OpenDaylight. All rights reserved.