public class Route extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Route.Source
Source of the route.
|
| Constructor and Description |
|---|
Route(Route.Source source,
org.onlab.packet.IpPrefix prefix,
org.onlab.packet.IpAddress nextHop)
Creates a route.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
org.onlab.packet.IpAddress |
nextHop()
Returns the next hop IP address.
|
org.onlab.packet.IpPrefix |
prefix()
Returns the IP prefix of the route.
|
Route.Source |
source()
Returns the route source.
|
String |
toString() |
public Route(Route.Source source, org.onlab.packet.IpPrefix prefix, org.onlab.packet.IpAddress nextHop)
source - route sourceprefix - IP prefixnextHop - net hop IP addresspublic Route.Source source()
public org.onlab.packet.IpPrefix prefix()
public org.onlab.packet.IpAddress nextHop()