Interface BestPath
- All Known Implementing Classes:
AbstractBestPath
@NonNullByDefault
public interface BestPath
A best path selected for a
RouteEntry.- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yangtools.yang.data.api.schema.ContainerNodeReturns the path attributes.booleanReturnstrueif this path is depreferenced,falseotherwise.intReturns the raw path id.default PeerIdpeerId()ReturnsrouterId()converted to aPeerId.routerId()Returns theRouterId.default ActualBestPathRoutestoActual(RIBSupport ribSupport, org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode route) ReturnsActualBestPathRoutesof this path.default AdvertizedRoutetoAdvertized(RIBSupport ribSupport, org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode route, boolean isFirstBestPath) ReturnsAdvertizedRouteof this path.
-
Method Details
-
routerId
RouterId routerId()Returns theRouterId.- Returns:
- the
RouterId
-
peerId
ReturnsrouterId()converted to aPeerId.- Returns:
routerId()converted to aPeerId
-
attributes
org.opendaylight.yangtools.yang.data.api.schema.ContainerNode attributes()Returns the path attributes.- Returns:
- the path attributes
-
pathIdBits
int pathIdBits()Returns the raw path id.- Returns:
- the raw path id
- See Also:
-
depreferenced
boolean depreferenced()Returnstrueif this path is depreferenced,falseotherwise.- Returns:
trueif this path is depreferenced,falseotherwise
-
toActual
default ActualBestPathRoutes toActual(RIBSupport ribSupport, org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode route) ReturnsActualBestPathRoutesof this path.- Parameters:
ribSupport- RIB Supportroute- the route- Returns:
ActualBestPathRoutesof this path
-
toAdvertized
default AdvertizedRoute toAdvertized(RIBSupport ribSupport, org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode route, boolean isFirstBestPath) ReturnsAdvertizedRouteof this path.- Parameters:
ribSupport- RIB Supportroute- the value ofAbstractAdvertizedRoute.getRoute()isFirstBestPath- the value ofAdvertizedRoute.isFirstBestPath()- Returns:
AdvertizedRouteof this path
-