public class DefaultHost extends AbstractElement implements Host
AbstractProjectableModel.AnnotationDriverDataidNO_DRIVER, NO_DRIVER_SERVICE| Constructor and Description |
|---|
DefaultHost(ProviderId providerId,
HostId id,
org.onlab.packet.MacAddress mac,
org.onlab.packet.VlanId vlan,
HostLocation location,
Set<org.onlab.packet.IpAddress> ips,
Annotations... annotations)
Creates an end-station host using the supplied information.
|
DefaultHost(ProviderId providerId,
HostId id,
org.onlab.packet.MacAddress mac,
org.onlab.packet.VlanId vlan,
HostLocation location,
Set<org.onlab.packet.IpAddress> ips,
boolean configured,
Annotations... annotations)
Creates an end-station host using the supplied information.
|
DefaultHost(ProviderId providerId,
HostId id,
org.onlab.packet.MacAddress mac,
org.onlab.packet.VlanId vlan,
Set<HostLocation> locations,
Set<org.onlab.packet.IpAddress> ips,
boolean configured,
Annotations... annotations)
Creates an end-station host using the supplied information.
|
DefaultHost(ProviderId providerId,
HostId id,
org.onlab.packet.MacAddress mac,
org.onlab.packet.VlanId vlan,
Set<HostLocation> locations,
Set<org.onlab.packet.IpAddress> ips,
org.onlab.packet.VlanId innerVlan,
org.onlab.packet.EthType tpid,
boolean configured,
Annotations... annotations)
Creates an end-station host using the supplied information.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
configured()
Returns true if configured by NetworkConfiguration.
|
boolean |
equals(Object obj) |
int |
hashCode() |
HostId |
id()
Host identification.
|
org.onlab.packet.VlanId |
innerVlan()
Returns the inner VLAN ID tied to this host.
|
Set<org.onlab.packet.IpAddress> |
ipAddresses()
Returns an unmodifiable set of IP addresses currently bound to the
host MAC address.
|
HostLocation |
location()
Returns the most recent host location where the host attaches to the
network edge.
|
Set<HostLocation> |
locations()
Returns all host locations where the host attaches to the network edge.
|
org.onlab.packet.MacAddress |
mac()
Returns the host MAC address.
|
String |
toString() |
org.onlab.packet.EthType |
tpid()
Returns the TPID of the outermost VLAN associated with this host.
|
org.onlab.packet.VlanId |
vlan()
Returns the VLAN ID tied to this host.
|
as, asData, bindAndCheckDriver, bindDriver, driver, driverService, is, locateDriver, setDriverServiceproviderIdannotationsclone, finalize, getClass, notify, notifyAll, wait, wait, waitannotationsproviderIdas, is, projectpublic DefaultHost(ProviderId providerId, HostId id, org.onlab.packet.MacAddress mac, org.onlab.packet.VlanId vlan, HostLocation location, Set<org.onlab.packet.IpAddress> ips, Annotations... annotations)
providerId - provider identityid - host identifiermac - host MAC addressvlan - host VLAN identifierlocation - host locationips - host IP addressesannotations - optional key/value annotationspublic DefaultHost(ProviderId providerId, HostId id, org.onlab.packet.MacAddress mac, org.onlab.packet.VlanId vlan, HostLocation location, Set<org.onlab.packet.IpAddress> ips, boolean configured, Annotations... annotations)
providerId - provider identityid - host identifiermac - host MAC addressvlan - host VLAN identifierlocation - host locationips - host IP addressesconfigured - true if configured via NetworkConfigurationannotations - optional key/value annotationspublic DefaultHost(ProviderId providerId, HostId id, org.onlab.packet.MacAddress mac, org.onlab.packet.VlanId vlan, Set<HostLocation> locations, Set<org.onlab.packet.IpAddress> ips, boolean configured, Annotations... annotations)
providerId - provider identityid - host identifiermac - host MAC addressvlan - host VLAN identifierlocations - set of host locationsips - host IP addressesconfigured - true if configured via NetworkConfigurationannotations - optional key/value annotationspublic DefaultHost(ProviderId providerId, HostId id, org.onlab.packet.MacAddress mac, org.onlab.packet.VlanId vlan, Set<HostLocation> locations, Set<org.onlab.packet.IpAddress> ips, org.onlab.packet.VlanId innerVlan, org.onlab.packet.EthType tpid, boolean configured, Annotations... annotations)
providerId - provider identityid - host identifiermac - host MAC addressvlan - host VLAN identifierlocations - set of host locationsips - host IP addressesinnerVlan - host inner VLAN identifiertpid - outer TPID of a hostconfigured - true if configured via NetworkConfigurationannotations - optional key/value annotationspublic org.onlab.packet.MacAddress mac()
Hostpublic Set<org.onlab.packet.IpAddress> ipAddresses()
ipAddresses in interface Hostpublic HostLocation location()
Hostpublic Set<HostLocation> locations()
Hostpublic org.onlab.packet.VlanId vlan()
Hostpublic org.onlab.packet.VlanId innerVlan()
Hostpublic org.onlab.packet.EthType tpid()
Hostpublic boolean configured()
Hostconfigured in interface Host