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,
         MacAddress macAddress,
         VlanId vlan)
Creates new Interface with the provided configuration. 
 | 
Interface(String name,
         ConnectPoint connectPoint,
         List<InterfaceIpAddress> ipAddresses,
         MacAddress macAddress,
         VlanId vlan,
         VlanId vlanUntagged,
         Set<VlanId> vlanTagged,
         VlanId vlanNative)
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()  | 
List<InterfaceIpAddress> | 
ipAddressesList()
Retrieves a list of IP addresses that are assigned to the interface in
 the order that they were configured. 
 | 
MacAddress | 
mac()
Retrieves the MAC address that is assigned to the interface. 
 | 
String | 
name()
Retrieves the name of the interface. 
 | 
String | 
toString()  | 
VlanId | 
vlan()
Retrieves the VLAN ID that is assigned to the interface. 
 | 
VlanId | 
vlanNative()
Retrieves the VLAN ID that is assigned to untagged packets on this
 tagged interface. 
 | 
Set<VlanId> | 
vlanTagged()
Retrieves the set of VLAN IDs that are allowed on this interface. 
 | 
VlanId | 
vlanUntagged()
Retrieves the VLAN ID that is assigned to untagged packets. 
 | 
public static final String NO_INTERFACE_NAME
public Interface(String name, ConnectPoint connectPoint, List<InterfaceIpAddress> ipAddresses, MacAddress macAddress, VlanId vlan)
name - name of the interfaceconnectPoint - the connect point this interface maps toipAddresses - list of IP addressesmacAddress - MAC addressvlan - VLAN IDpublic Interface(String name, ConnectPoint connectPoint, List<InterfaceIpAddress> ipAddresses, MacAddress macAddress, VlanId vlan, VlanId vlanUntagged, Set<VlanId> vlanTagged, VlanId vlanNative)
name - name of the interfaceconnectPoint - the connect point this interface maps toipAddresses - list of IP addressesmacAddress - MAC addressvlan - VLAN IDvlanUntagged - untagged VLAN.
                     Cannot be used with vlanTagged or vlanNative.vlanTagged - tagged VLANs.
                     Cannot be used with vlanUntagged.vlanNative - native vLAN. Optional.
                     Can only be used when vlanTagged is specified. Cannot be used with vlanUntagged.public String name()
public ConnectPoint connectPoint()
public List<InterfaceIpAddress> ipAddressesList()
public MacAddress mac()
public VlanId vlan()
public VlanId vlanUntagged()
public Set<VlanId> vlanTagged()
public VlanId vlanNative()