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.
|
Route(Route.Source source,
org.onlab.packet.IpPrefix prefix,
org.onlab.packet.IpAddress nextHop,
org.onosproject.cluster.NodeId sourceNode)
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.
|
org.onosproject.cluster.NodeId |
sourceNode()
Returns the ONOS node the route was sourced from.
|
String |
toString() |
public Route(Route.Source source, org.onlab.packet.IpPrefix prefix, org.onlab.packet.IpAddress nextHop)
source - route sourceprefix - IP prefixnextHop - next hop IP addresspublic Route(Route.Source source, org.onlab.packet.IpPrefix prefix, org.onlab.packet.IpAddress nextHop, org.onosproject.cluster.NodeId sourceNode)
source - route sourceprefix - IP prefixnextHop - next hop IP addresssourceNode - ONOS node the route was sourced frompublic Route.Source source()
public org.onlab.packet.IpPrefix prefix()
public org.onlab.packet.IpAddress nextHop()
public org.onosproject.cluster.NodeId sourceNode()