Interface RouteEntry
@NonNullByDefault
public interface RouteEntry
A single route entry inside a route table. Maintains the attributes of from all contributing peers. The information
is stored in arrays with a shared map of offsets for peers to allow lookups. This is needed to maintain low memory
overhead in face of large number of routes and peers, where individual object overhead becomes the dominating factor.
-
Method Summary
Modifier and TypeMethodDescriptionactualBestPaths(RIBSupport ribSupport, RouteEntryInfo entryInfo) Returns collections of present selected best path.newBestPaths(RIBSupport ribSupport, String routeKey) Returns collection of best path routes after processing update of stale and new advertisement of routes.booleanputRoute(RouterId routerId, org.opendaylight.yangtools.yang.common.Uint32 remotePathId, org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode route) Put a route.booleanremoveRoute(RouterId routerId, org.opendaylight.yangtools.yang.common.Uint32 remotePathId) Remove a route.@Nullable StaleBestPathRouteremoveStalePaths(RIBSupport ribSupport, String routeKey) Returns list of stale best paths.booleanselectBest(RIBSupport ribSupport, long localAs) Indicates whether best has changed.
-
Method Details
-
putRoute
boolean putRoute(RouterId routerId, org.opendaylight.yangtools.yang.common.Uint32 remotePathId, org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode route) Put a route.- Parameters:
routerId- router ID in unsigned integer format from an Ipv4AddressremotePathId- remote path Id receivedroute- route Data change- Returns:
trueif a new route was introduced,falseif a route was replaced
-
removeRoute
Remove a route.- Parameters:
routerId- router ID in unsigned integer format from an Ipv4AddressremotePathId- remote path Id received- Returns:
trueif it was the last route on entry
-
selectBest
Indicates whether best has changed.- Parameters:
localAs- The local autonomous system number- Returns:
- return true if it has changed
-
actualBestPaths
Returns collections of present selected best path.- Parameters:
ribSupport- RIB SupportentryInfo- Route Entry Info wrapper- Returns:
- collections of present selected best path
-
removeStalePaths
Returns list of stale best paths.- Parameters:
ribSupport- RIB SupportrouteKey- of stale route- Returns:
- list of stale best paths
-
newBestPaths
Returns collection of best path routes after processing update of stale and new advertisement of routes.- Parameters:
ribSupport- RIB SupportrouteKey- route key- Returns:
- collection of best path routes after processing update of stale and new advertisement of routes
-