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(java.lang.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(java.lang.String string)
Creates a device id using the supplied ID string.
|
MacAddress |
mac()
Returns the host MAC address.
|
java.lang.String |
toString() |
VlanId |
vlanId()
Returns the host vlan Id.
|
public static final HostId NONE
public MacAddress mac()
public VlanId vlanId()
public static HostId hostId(java.lang.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 addresspublic java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object