Interface BestPath

All Known Implementing Classes:
AbstractBestPath

@NonNullByDefault public interface BestPath
A best path selected for a RouteEntry.
Since:
3.0.0
  • Method Details

    • routerId

      RouterId routerId()
      Returns the RouterId.
      Returns:
      the RouterId
    • peerId

      default PeerId peerId()
      Returns routerId() converted to a PeerId.
      Returns:
      routerId() converted to a PeerId
    • 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:
      • Uint32.fromIntBits(int)
    • depreferenced

      boolean depreferenced()
      Returns true if this path is depreferenced, false otherwise.
      Returns:
      true if this path is depreferenced, false otherwise
    • toActual

      default ActualBestPathRoutes toActual(RIBSupport ribSupport, org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode route)
      Returns ActualBestPathRoutes of this path.
      Parameters:
      ribSupport - RIB Support
      route - the route
      Returns:
      ActualBestPathRoutes of this path
    • toAdvertized

      default AdvertizedRoute toAdvertized(RIBSupport ribSupport, org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode route, boolean isFirstBestPath)
      Returns AdvertizedRoute of this path.
      Parameters:
      ribSupport - RIB Support
      route - the value of AbstractAdvertizedRoute.getRoute()
      isFirstBestPath - the value of AdvertizedRoute.isFirstBestPath()
      Returns:
      AdvertizedRoute of this path