public interface RouteStore extends org.onosproject.store.Store<RouteEvent,RouteStoreDelegate>
| Modifier and Type | Method and Description |
|---|---|
org.onlab.packet.MacAddress |
getNextHop(org.onlab.packet.IpAddress ip)
Returns the MAC address of the given next hop.
|
Map<org.onlab.packet.IpAddress,org.onlab.packet.MacAddress> |
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,
org.onlab.packet.MacAddress mac)
Removes a next hop IP and MAC from the store.
|
void |
removeRoute(Route route)
Removes the given route from the store.
|
void |
updateNextHop(org.onlab.packet.IpAddress ip,
org.onlab.packet.MacAddress mac)
Updates a next hop IP and MAC in the store.
|
void |
updateRoute(Route route)
Adds or updates the given route in the store.
|
void 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,
org.onlab.packet.MacAddress mac)
ip - IP addressmac - MAC addressvoid removeNextHop(org.onlab.packet.IpAddress ip,
org.onlab.packet.MacAddress mac)
ip - IP addressmac - MAC addressorg.onlab.packet.MacAddress getNextHop(org.onlab.packet.IpAddress ip)
ip - next hop IPMap<org.onlab.packet.IpAddress,org.onlab.packet.MacAddress> getNextHops()