public interface ResolvedRouteStore
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<ResolvedRoute> |
getAllRoutes(org.onlab.packet.IpPrefix prefix)
Returns all resolved routes stored for the given prefix, including the
best selected route.
|
java.util.Optional<ResolvedRoute> |
getRoute(org.onlab.packet.IpPrefix prefix)
Returns the best selected route for the given IP prefix.
|
java.util.Collection<ResolvedRoute> |
getRoutes(RouteTableId table)
Returns the best routes for a give route table.
|
java.util.Set<RouteTableId> |
getRouteTables()
Gets the set of route tables.
|
java.util.Optional<ResolvedRoute> |
longestPrefixMatch(org.onlab.packet.IpAddress ip)
Performs a longest prefix match of the best routes on the given IP address.
|
RouteEvent |
removeRoute(org.onlab.packet.IpPrefix prefix)
Removes the best route for the given prefix.
|
RouteEvent |
updateRoute(ResolvedRoute route,
java.util.Set<ResolvedRoute> alternatives)
Adds or updates the best route for the given prefix.
|
RouteEvent updateRoute(ResolvedRoute route, java.util.Set<ResolvedRoute> alternatives)
route - new best route for this prefixalternatives - alternative resolved routesRouteEvent removeRoute(org.onlab.packet.IpPrefix prefix)
prefix - IP prefixjava.util.Set<RouteTableId> getRouteTables()
java.util.Collection<ResolvedRoute> getRoutes(RouteTableId table)
table - route table IDjava.util.Optional<ResolvedRoute> getRoute(org.onlab.packet.IpPrefix prefix)
prefix - IP prefixjava.util.Collection<ResolvedRoute> getAllRoutes(org.onlab.packet.IpPrefix prefix)
prefix - IP prefix to look up routes forjava.util.Optional<ResolvedRoute> longestPrefixMatch(org.onlab.packet.IpAddress ip)
ip - IP address