public class DefaultHostDescription extends AbstractDescription implements HostDescription
| Constructor and Description |
|---|
DefaultHostDescription(org.onlab.packet.MacAddress mac,
org.onlab.packet.VlanId vlan,
HostLocation location,
org.onlab.packet.IpAddress ip,
SparseAnnotations... annotations)
Creates a host description using the supplied information.
|
DefaultHostDescription(org.onlab.packet.MacAddress mac,
org.onlab.packet.VlanId vlan,
HostLocation location,
Set<org.onlab.packet.IpAddress> ip,
SparseAnnotations... annotations)
Creates a host description using the supplied information.
|
DefaultHostDescription(org.onlab.packet.MacAddress mac,
org.onlab.packet.VlanId vlan,
HostLocation location,
SparseAnnotations... annotations)
Creates a host description using the supplied information.
|
| Modifier and Type | Method and Description |
|---|---|
org.onlab.packet.MacAddress |
hwAddress()
Returns the MAC address associated with this host (NIC).
|
Set<org.onlab.packet.IpAddress> |
ipAddress()
Returns the IP address associated with this host's MAC.
|
HostLocation |
location()
Returns the location of the host on the network edge.
|
String |
toString() |
org.onlab.packet.VlanId |
vlan()
Returns the VLAN associated with this host.
|
annotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitannotationspublic DefaultHostDescription(org.onlab.packet.MacAddress mac,
org.onlab.packet.VlanId vlan,
HostLocation location,
SparseAnnotations... annotations)
mac - host MAC addressvlan - host VLAN identifierlocation - host locationannotations - optional key/value annotations mappublic DefaultHostDescription(org.onlab.packet.MacAddress mac,
org.onlab.packet.VlanId vlan,
HostLocation location,
org.onlab.packet.IpAddress ip,
SparseAnnotations... annotations)
mac - host MAC addressvlan - host VLAN identifierlocation - host locationip - host IP addressannotations - optional key/value annotations mappublic DefaultHostDescription(org.onlab.packet.MacAddress mac,
org.onlab.packet.VlanId vlan,
HostLocation location,
Set<org.onlab.packet.IpAddress> ip,
SparseAnnotations... annotations)
mac - host MAC addressvlan - host VLAN identifierlocation - host locationip - host IP addressesannotations - optional key/value annotations mappublic org.onlab.packet.MacAddress hwAddress()
HostDescriptionhwAddress in interface HostDescriptionpublic org.onlab.packet.VlanId vlan()
HostDescriptionvlan in interface HostDescriptionpublic HostLocation location()
HostDescriptionlocation in interface HostDescriptionpublic Set<org.onlab.packet.IpAddress> ipAddress()
HostDescriptionipAddress in interface HostDescriptionCopyright © 2015. All rights reserved.