public final class HostId extends ElementId
| Modifier and Type | Field and Description | 
|---|---|
static HostId | 
NONE
Represents either no host, or an unspecified host; used for creating
 open ingress/egress edge links. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object obj)  | 
int | 
hashCode()  | 
static HostId | 
hostId(MacAddress mac)
Creates a device id using the supplied MAC and default VLAN. 
 | 
static HostId | 
hostId(MacAddress mac,
      VlanId vlanId)
Creates a device id using the supplied MAC & VLAN ID. 
 | 
static HostId | 
hostId(String string)
Creates a device id using the supplied ID string. 
 | 
MacAddress | 
mac()
Returns the host MAC address. 
 | 
String | 
toString()  | 
VlanId | 
vlanId()
Returns the host vlan Id. 
 | 
public static final HostId NONE
public MacAddress mac()
public VlanId vlanId()
public static HostId hostId(String string)
string - device URI stringpublic static HostId hostId(MacAddress mac, VlanId vlanId)
mac - mac addressvlanId - vlan identifierpublic static HostId hostId(MacAddress mac)
mac - mac address