Package org.onosproject.net
Interface Host
- 
- All Superinterfaces:
- Annotated,- Element,- Projectable,- Provided
 - All Known Subinterfaces:
- HostProbe
 - All Known Implementing Classes:
- DefaultHost
 
 public interface Host extends Element Abstraction of an end-station host on the network, essentially a NIC.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Set<HostLocation>auxLocations()Returns host auxiliary locations, which could be useful for app operations in addition to the attach points.default booleanconfigured()Returns true if configured by NetworkConfiguration.HostIdid()Host identification.default VlanIdinnerVlan()Returns the inner VLAN ID tied to this host.Set<IpAddress>ipAddresses()Returns set of IP addresses currently bound to the host MAC address.HostLocationlocation()Returns the most recent host location where the host attaches to the network edge.Set<HostLocation>locations()Returns host locations where the host attaches to the network edge.MacAddressmac()Returns the host MAC address.booleansuspended()Returns the state of host whether it is in suspended state(offending host due to frequent movement.).default EthTypetpid()Returns the TPID of the outermost VLAN associated with this host.VlanIdvlan()Returns the VLAN ID tied to this host.- 
Methods inherited from interface org.onosproject.net.Annotatedannotations
 - 
Methods inherited from interface org.onosproject.net.driver.Projectableas, is, project
 - 
Methods inherited from interface org.onosproject.net.ProvidedproviderId
 
- 
 
- 
- 
- 
Method Detail- 
macMacAddress mac() Returns the host MAC address.- Returns:
- mac address
 
 - 
vlanVlanId vlan() Returns the VLAN ID tied to this host.- Returns:
- VLAN ID value
 
 - 
ipAddressesSet<IpAddress> ipAddresses() Returns set of IP addresses currently bound to the host MAC address.- Returns:
- set of IP addresses; empty if no IP address is bound
 
 - 
locationHostLocation location() Returns the most recent host location where the host attaches to the network edge.- Returns:
- the most recent host location
 
 - 
locationsSet<HostLocation> locations() Returns host locations where the host attaches to the network edge.- Returns:
- host locations
 
 - 
auxLocationsSet<HostLocation> auxLocations() Returns host auxiliary locations, which could be useful for app operations in addition to the attach points.- Returns:
- auxiliary locations, or null if unspecified
 
 - 
configureddefault boolean configured() Returns true if configured by NetworkConfiguration.- Returns:
- configured/learnt dynamically
 
 - 
innerVlandefault VlanId innerVlan() Returns the inner VLAN ID tied to this host.- Returns:
- VLAN ID value; VlanId.NONE if only one VLAN ID is tied to this host
 
 - 
tpiddefault EthType tpid() Returns the TPID of the outermost VLAN associated with this host.- Returns:
- TPID of the outermost VLAN header
 
 - 
suspendedboolean suspended() Returns the state of host whether it is in suspended state(offending host due to frequent movement.).- Returns:
- state true if suspended else false.
 
 
- 
 
-