public interface RouteStore extends org.onosproject.store.Store<InternalRouteEvent,RouteStoreDelegate>
| Modifier and Type | Method and Description |
|---|---|
RouteSet |
getRoutes(org.onlab.packet.IpPrefix prefix)
Returns the set of routes in the default route table for the given prefix.
|
Collection<RouteSet> |
getRoutes(RouteTableId table)
Returns the routes in the given route table, grouped by prefix.
|
Collection<Route> |
getRoutesForNextHop(org.onlab.packet.IpAddress ip)
Returns the routes that point to the given next hop IP address.
|
Set<RouteTableId> |
getRouteTables()
Returns the IDs for all route tables in the store.
|
void |
removeRoute(Route route)
Removes the given route from the store.
|
void |
updateRoute(Route route)
Adds or updates the given route in the store.
|
void updateRoute(Route route)
route - route to add or updatevoid removeRoute(Route route)
route - route to removeSet<RouteTableId> getRouteTables()
Collection<RouteSet> getRoutes(RouteTableId table)
table - route table IDCollection<Route> getRoutesForNextHop(org.onlab.packet.IpAddress ip)
ip - IP address of the next hop@Beta RouteSet getRoutes(org.onlab.packet.IpPrefix prefix)
prefix - IP prefix