commit | fd176613489b8037c8bde50838adca24bdb0af4a | [log] [tgz] |
---|---|---|
author | Jonathan Hart <jono@onlab.us> | Mon Apr 11 10:42:10 2016 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Mon Apr 11 18:13:14 2016 +0000 |
tree | 6c49ff7c9ba3fa45071399b41112a67fddb94f6f | |
parent | 089274b5f16f5668c549b9a5e6168b472ebe3695 [diff] [blame] |
Route CLI improvements and bug fixes Change-Id: I4b4547f578cc053dc150066dadb68b6b2cbb82ee
diff --git a/incubator/api/src/main/java/org/onosproject/incubator/net/routing/RouteService.java b/incubator/api/src/main/java/org/onosproject/incubator/net/routing/RouteService.java index bab595a..4fd99d4 100644 --- a/incubator/api/src/main/java/org/onosproject/incubator/net/routing/RouteService.java +++ b/incubator/api/src/main/java/org/onosproject/incubator/net/routing/RouteService.java
@@ -21,6 +21,7 @@ import java.util.Collection; import java.util.Map; +import java.util.Set; /** * Unicast IP route service. @@ -44,4 +45,19 @@ */ Route longestPrefixMatch(IpAddress ip); + /** + * Returns the routes for the given next hop. + * + * @param nextHop next hop IP address + * @return routes for this next hop + */ + Collection<Route> getRoutesForNextHop(IpAddress nextHop); + + /** + * Returns all next hops in the route store. + * + * @return set of next hops + */ + Set<NextHop> getNextHops(); + }