@Beta public class Interface extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
NO_INTERFACE_NAME |
| Constructor and Description |
|---|
Interface(String name,
ConnectPoint connectPoint,
List<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 |
|---|---|
ConnectPoint |
connectPoint()
Retrieves the connection point that this interface maps to.
|
boolean |
equals(Object other) |
int |
hashCode() |
Set<InterfaceIpAddress> |
ipAddresses()
Deprecated.
in Falcon release in favour of an ordered list
|
List<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, ConnectPoint connectPoint, List<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 ConnectPoint connectPoint()
@Deprecated public Set<InterfaceIpAddress> ipAddresses()
public List<InterfaceIpAddress> ipAddressesList()
public org.onlab.packet.MacAddress mac()
public org.onlab.packet.VlanId vlan()