public class Interface
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NO_INTERFACE_NAME |
Constructor and Description |
---|
Interface(java.lang.String name,
ConnectPoint connectPoint,
java.util.List<InterfaceIpAddress> ipAddresses,
MacAddress macAddress,
VlanId vlan)
Creates new Interface with the provided configuration.
|
Interface(java.lang.String name,
ConnectPoint connectPoint,
java.util.List<InterfaceIpAddress> ipAddresses,
MacAddress macAddress,
VlanId vlan,
VlanId vlanUntagged,
java.util.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(java.lang.Object other) |
int |
hashCode() |
java.util.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.
|
java.lang.String |
name()
Retrieves the name of the interface.
|
java.lang.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.
|
java.util.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 java.lang.String NO_INTERFACE_NAME
public Interface(java.lang.String name, ConnectPoint connectPoint, java.util.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(java.lang.String name, ConnectPoint connectPoint, java.util.List<InterfaceIpAddress> ipAddresses, MacAddress macAddress, VlanId vlan, VlanId vlanUntagged, java.util.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 java.lang.String name()
public ConnectPoint connectPoint()
public java.util.List<InterfaceIpAddress> ipAddressesList()
public MacAddress mac()
public VlanId vlan()
public VlanId vlanUntagged()
public java.util.Set<VlanId> vlanTagged()
public VlanId vlanNative()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object