public interface RouteStore extends Store<RouteEvent,RouteStoreDelegate>
| Modifier and Type | Method and Description |
|---|---|
NextHopData |
getNextHop(org.onlab.packet.IpAddress ip)
Returns the information of the given next hop.
|
Map<org.onlab.packet.IpAddress,NextHopData> |
getNextHops()
Returns all next hops in the route store.
|
Collection<Route> |
getRoutes(RouteTableId table)
Returns the routes for a particular route table.
|
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.
|
Route |
longestPrefixMatch(org.onlab.packet.IpAddress ip)
Performs a longest prefix match with the given IP address.
|
void |
removeNextHop(org.onlab.packet.IpAddress ip,
NextHopData nextHopData)
Removes a next hop information from the store.
|
void |
removeRoute(Route route)
Removes the given route from the store.
|
void |
updateNextHop(org.onlab.packet.IpAddress ip,
NextHopData nextHopData)
Updates a next hop information in the store.
|
void |
updateRoute(Route route)
Adds or updates the given route in the store.
|
hasDelegate, setDelegate, unsetDelegatevoid updateRoute(Route route)
route - route to add or updatevoid removeRoute(Route route)
route - route to removeSet<RouteTableId> getRouteTables()
Collection<Route> getRoutes(RouteTableId table)
table - route tableRoute longestPrefixMatch(org.onlab.packet.IpAddress ip)
ip - IP to look upCollection<Route> getRoutesForNextHop(org.onlab.packet.IpAddress ip)
ip - IP address of the next hopvoid updateNextHop(org.onlab.packet.IpAddress ip,
NextHopData nextHopData)
ip - IP addressnextHopData - Information of the next hopvoid removeNextHop(org.onlab.packet.IpAddress ip,
NextHopData nextHopData)
ip - IP addressnextHopData - Information of the next hopNextHopData getNextHop(org.onlab.packet.IpAddress ip)
ip - next hop IPMap<org.onlab.packet.IpAddress,NextHopData> getNextHops()