public final class VNodeHop extends Object
VNodeHop describes a hop in the virtual packet routing within the
VTN.
The route of the packet from the source to the destination virtual node
is represented by a sequence of VNodeHop instances.
| Constructor and Description |
|---|
VNodeHop()
Construct a new instance which indicates the data flow is terminated.
|
VNodeHop(VNodeIdentifier<?> ident,
VirtualRouteReason res)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Determine whether the given object is identical to this object.
|
VNodeIdentifier<?> |
getPath()
Return the location of the virtual node.
|
VirtualRouteReason |
getReason()
Return the reason why the packet is forwarded to the virtual node.
|
int |
hashCode()
Return the hash code of this object.
|
VirtualRouteBuilder |
toVirtualRouteBuilder()
Convert this instance into a
VirtualRouteBuilder instance. |
static List<VirtualRoute> |
toVirtualRouteList(List<VNodeHop> vhops)
Convert a list of
VNodeHop instances into a list of
VirtualRoute instances. |
public VNodeHop()
public VNodeHop(VNodeIdentifier<?> ident, VirtualRouteReason res)
ident - A VNodeIdentifier instance that specifies
the location of the virtual node inside the VTN.res - A VirtualRouteReason instance that represents
the reason why the packet is forwarded.public static List<VirtualRoute> toVirtualRouteList(List<VNodeHop> vhops)
VNodeHop instances into a list of
VirtualRoute instances.vhops - A list of VNodeHop instances.VirtualRoute instances if the given list is
not empty. null if empty.public VNodeIdentifier<?> getPath()
VNodeIdentifier instance that represents the
location of the virtual node.
null is returned if this instance indicates that the
data flow is terminated without packet forwarding.public VirtualRouteReason getReason()
VirtualRouteReason instance that represents the
reason why the packet is forwarded.
null is returned if this instance indicates that the
data flow is terminated without packet forwarding.public VirtualRouteBuilder toVirtualRouteBuilder()
VirtualRouteBuilder instance.VirtualRouteBuilder instance.public boolean equals(Object o)
Copyright © 2018 OpenDaylight. All rights reserved.