public interface RouteService extends org.onosproject.event.ListenerService<RouteEvent,RouteListener>
| Modifier and Type | Method and Description |
|---|---|
Map<RouteTableId,Collection<Route>> |
getAllRoutes()
Returns all routes for all route tables in the system.
|
Set<NextHop> |
getNextHops()
Returns all next hops in the route store.
|
Collection<Route> |
getRoutesForNextHop(org.onlab.packet.IpAddress nextHop)
Returns the routes for the given next hop.
|
Route |
longestPrefixMatch(org.onlab.packet.IpAddress ip)
Performs a longest prefix match on the given IP address.
|
Map<RouteTableId,Collection<Route>> getAllRoutes()
Route longestPrefixMatch(org.onlab.packet.IpAddress ip)
ip - IP addressCollection<Route> getRoutesForNextHop(org.onlab.packet.IpAddress nextHop)
nextHop - next hop IP address