public interface RouteTable
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Releases route table resources across the entire cluster.
|
Collection<RouteSet> |
getRoutes()
Returns all routes in the route table.
|
RouteSet |
getRoutes(org.onlab.packet.IpPrefix prefix)
Returns the routes in this table pertaining to a given prefix.
|
Collection<Route> |
getRoutesForNextHop(org.onlab.packet.IpAddress nextHop)
Returns all routes that have the given next hop.
|
RouteTableId |
id()
Returns the route table ID.
|
void |
remove(Route route)
Removes a route from the route table.
|
void |
shutdown()
Releases route table resources held locally.
|
void |
update(Route route)
Adds a route to the route table.
|
void update(Route route)
route - routevoid remove(Route route)
route - routeRouteTableId id()
Collection<RouteSet> getRoutes()
RouteSet getRoutes(org.onlab.packet.IpPrefix prefix)
prefix - IP prefixCollection<Route> getRoutesForNextHop(org.onlab.packet.IpAddress nextHop)
nextHop - next hop IP addressvoid shutdown()
void destroy()