public class ResolvedRoute
extends java.lang.Object
| Constructor and Description |
|---|
ResolvedRoute(Route route,
org.onlab.packet.MacAddress nextHopMac,
org.onosproject.net.ConnectPoint location)
Creates a new resolved route.
|
ResolvedRoute(Route route,
org.onlab.packet.MacAddress nextHopMac,
org.onlab.packet.VlanId nextHopVlan,
org.onosproject.net.ConnectPoint location)
Creates a new resolved route.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
org.onosproject.net.ConnectPoint |
location()
Returns the next hop location.
|
org.onlab.packet.IpAddress |
nextHop()
Returns the next hop IP address.
|
org.onlab.packet.MacAddress |
nextHopMac()
Returns the next hop MAC address.
|
org.onlab.packet.VlanId |
nextHopVlan()
Returns the next hop VLAN ID.
|
org.onlab.packet.IpPrefix |
prefix()
Returns the IP prefix.
|
Route |
route()
Returns the original route.
|
java.lang.String |
toString() |
public ResolvedRoute(Route route, org.onlab.packet.MacAddress nextHopMac, org.onosproject.net.ConnectPoint location)
route - input routenextHopMac - next hop MAC addresslocation - connect point where the next hop connects topublic ResolvedRoute(Route route, org.onlab.packet.MacAddress nextHopMac, org.onlab.packet.VlanId nextHopVlan, org.onosproject.net.ConnectPoint location)
route - input routenextHopMac - next hop MAC addressnextHopVlan - next hop VLAN IDlocation - connect point where the next hop connects topublic Route route()
public org.onlab.packet.IpPrefix prefix()
public org.onlab.packet.IpAddress nextHop()
public org.onlab.packet.MacAddress nextHopMac()
public org.onlab.packet.VlanId nextHopVlan()
public org.onosproject.net.ConnectPoint location()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object