Interface RouteEntry<C extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.rib.tables.Routes & org.opendaylight.yangtools.yang.binding.DataObject & org.opendaylight.yangtools.yang.binding.ChoiceIn<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.rib.Tables>,S extends org.opendaylight.yangtools.yang.binding.ChildOf<? super C>>

All Known Implementing Classes:
AddPathAbstractRouteEntry

public interface RouteEntry<C extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.rib.tables.Routes & org.opendaylight.yangtools.yang.binding.DataObject & org.opendaylight.yangtools.yang.binding.ChoiceIn<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.rib.Tables>,S extends org.opendaylight.yangtools.yang.binding.ChildOf<? super C>>
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 Type
    Method
    Description
    @NonNull List<org.opendaylight.protocol.bgp.rib.spi.entry.ActualBestPathRoutes<C,S>>
    actualBestPaths(@NonNull org.opendaylight.protocol.bgp.rib.spi.RIBSupport<C,S> ribSupport, @NonNull org.opendaylight.protocol.bgp.rib.spi.entry.RouteEntryInfo entryInfo)
    Returns collections of present selected best path.
    int
    addRoute(@NonNull org.opendaylight.protocol.bgp.rib.spi.RouterId routerId, org.opendaylight.yangtools.yang.common.Uint32 remotePathId, @NonNull org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode route)
    Add Route.
    @NonNull List<org.opendaylight.protocol.bgp.rib.spi.entry.AdvertizedRoute<C,S>>
    newBestPaths(@NonNull org.opendaylight.protocol.bgp.rib.spi.RIBSupport<C,S> ribSupport, @NonNull String routeKey)
    Returns collection of best path routes after processing update of stale and new advertisement of routes.
    boolean
    removeRoute(@NonNull org.opendaylight.protocol.bgp.rib.spi.RouterId routerId, org.opendaylight.yangtools.yang.common.Uint32 remotePathId)
    Remove route.
    @NonNull Optional<org.opendaylight.protocol.bgp.rib.spi.entry.StaleBestPathRoute>
    removeStalePaths(@NonNull org.opendaylight.protocol.bgp.rib.spi.RIBSupport<C,S> ribSupport, @NonNull String routeKey)
    Returns list of stale best path.
    boolean
    selectBest(org.opendaylight.protocol.bgp.rib.spi.RIBSupport<C,S> ribSupport, long localAs)
    Indicates whether best has changed.
  • Method Details

    • removeRoute

      boolean removeRoute(@NonNull org.opendaylight.protocol.bgp.rib.spi.RouterId routerId, org.opendaylight.yangtools.yang.common.Uint32 remotePathId)
      Remove route.
      Parameters:
      routerId - router ID in unsigned integer format from an Ipv4Address
      remotePathId - remote path Id received
      Returns:
      return true if it was the last route on entry
    • selectBest

      boolean selectBest(org.opendaylight.protocol.bgp.rib.spi.RIBSupport<C,S> ribSupport, long localAs)
      Indicates whether best has changed.
      Parameters:
      localAs - The local autonomous system number
      Returns:
      return true if it has changed
    • addRoute

      int addRoute(@NonNull org.opendaylight.protocol.bgp.rib.spi.RouterId routerId, org.opendaylight.yangtools.yang.common.Uint32 remotePathId, @NonNull org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode route)
      Add Route.
      Parameters:
      routerId - router ID in unsigned integer format from an Ipv4Address
      remotePathId - remote path Id received
      route - route Data change
      Returns:
      returns the offset
    • actualBestPaths

      @NonNull List<org.opendaylight.protocol.bgp.rib.spi.entry.ActualBestPathRoutes<C,S>> actualBestPaths(@NonNull org.opendaylight.protocol.bgp.rib.spi.RIBSupport<C,S> ribSupport, @NonNull org.opendaylight.protocol.bgp.rib.spi.entry.RouteEntryInfo entryInfo)
      Returns collections of present selected best path.
      Parameters:
      ribSupport - RIB Support
      entryInfo - Route Entry Info wrapper
    • removeStalePaths

      @NonNull Optional<org.opendaylight.protocol.bgp.rib.spi.entry.StaleBestPathRoute> removeStalePaths(@NonNull org.opendaylight.protocol.bgp.rib.spi.RIBSupport<C,S> ribSupport, @NonNull String routeKey)
      Returns list of stale best path.
      Parameters:
      ribSupport - RIB Support
      routeKey - of stale route
      Returns:
      list containing list of stale best path
    • newBestPaths

      @NonNull List<org.opendaylight.protocol.bgp.rib.spi.entry.AdvertizedRoute<C,S>> newBestPaths(@NonNull org.opendaylight.protocol.bgp.rib.spi.RIBSupport<C,S> ribSupport, @NonNull String routeKey)
      Returns collection of best path routes after processing update of stale and new advertisement of routes.
      Parameters:
      ribSupport - RIB Support
      routeKey - route key