blob: 258ce3d6916df553d3991d598f5ea4e04269c7fa [file] [log] [blame]
package org.onlab.onos.net.host;
import java.util.Set;
import org.onlab.onos.net.Description;
import org.onlab.onos.net.HostLocation;
import org.onlab.packet.IpPrefix;
import org.onlab.packet.MacAddress;
import org.onlab.packet.VlanId;
/**
* Information describing host and its location.
*/
public interface HostDescription extends Description {
/**
* Returns the MAC address associated with this host (NIC).
*
* @return the MAC address of this host
*/
MacAddress hwAddress();
/**
* Returns the VLAN associated with this host.
*
* @return the VLAN ID value
*/
VlanId vlan();
/**
* Returns the location of the host on the network edge.
*
* @return the network location
*/
HostLocation location();
/**
* Returns the IP address associated with this host's MAC.
*
* @return host IP address
*/
// FIXME: Switch to IpAddress
Set<IpPrefix> ipAddress();
}