public interface RouteService extends org.onosproject.event.ListenerService<RouteEvent,RouteListener>
| Modifier and Type | Method and Description |
|---|---|
Collection<RouteInfo> |
getRoutes(RouteTableId id)
Returns information about all routes in the given route table.
|
Collection<RouteTableId> |
getRouteTables()
Returns the set of route tables in the system.
|
Optional<ResolvedRoute> |
longestPrefixLookup(org.onlab.packet.IpAddress ip)
Performs a longest prefix lookup on the given IP address.
|
Route |
longestPrefixMatch(org.onlab.packet.IpAddress ip)
Deprecated.
in Kingfisher release. Use {
longestPrefixLookup(IpAddress)}
instead. |
Collection<RouteInfo> getRoutes(RouteTableId id)
id - route table IDCollection<RouteTableId> getRouteTables()
Optional<ResolvedRoute> longestPrefixLookup(org.onlab.packet.IpAddress ip)
ip - IP address to look up@Deprecated Route longestPrefixMatch(org.onlab.packet.IpAddress ip)
longestPrefixLookup(IpAddress)}
instead.ip - IP address