@Beta public class Interface extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
NO_INTERFACE_NAME |
| Constructor and Description |
|---|
Interface(String name,
org.onosproject.net.ConnectPoint connectPoint,
List<org.onosproject.net.host.InterfaceIpAddress> ipAddresses,
org.onlab.packet.MacAddress macAddress,
org.onlab.packet.VlanId vlan)
Creates new Interface with the provided configuration.
|
| Modifier and Type | Method and Description |
|---|---|
org.onosproject.net.ConnectPoint |
connectPoint()
Retrieves the connection point that this interface maps to.
|
boolean |
equals(Object other) |
int |
hashCode() |
Set<org.onosproject.net.host.InterfaceIpAddress> |
ipAddresses()
Deprecated.
in Falcon release in favour of an ordered list
|
List<org.onosproject.net.host.InterfaceIpAddress> |
ipAddressesList()
Retrieves a list of IP addresses that are assigned to the interface in
the order that they were configured.
|
org.onlab.packet.MacAddress |
mac()
Retrieves the MAC address that is assigned to the interface.
|
String |
name()
Retrieves the name of the interface.
|
String |
toString() |
org.onlab.packet.VlanId |
vlan()
Retrieves the VLAN ID that is assigned to the interface.
|
public static final String NO_INTERFACE_NAME
public Interface(String name, org.onosproject.net.ConnectPoint connectPoint, List<org.onosproject.net.host.InterfaceIpAddress> ipAddresses, org.onlab.packet.MacAddress macAddress, org.onlab.packet.VlanId vlan)
name - name of the interfaceconnectPoint - the connect point this interface maps toipAddresses - list of IP addressesmacAddress - MAC addressvlan - VLAN IDpublic String name()
public org.onosproject.net.ConnectPoint connectPoint()
@Deprecated public Set<org.onosproject.net.host.InterfaceIpAddress> ipAddresses()
public List<org.onosproject.net.host.InterfaceIpAddress> ipAddressesList()
public org.onlab.packet.MacAddress mac()
public org.onlab.packet.VlanId vlan()