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(org.onlab.packet.MacAddress mac)
Creates a device id using the supplied MAC and default VLAN.
|
static HostId |
hostId(org.onlab.packet.MacAddress mac,
org.onlab.packet.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.
|
org.onlab.packet.MacAddress |
mac()
Returns the host MAC address.
|
String |
toString() |
org.onlab.packet.VlanId |
vlanId()
Returns the host MAC address.
|
public static final HostId NONE
public org.onlab.packet.MacAddress mac()
public org.onlab.packet.VlanId vlanId()
public static HostId hostId(String string)
string - device URI stringpublic static HostId hostId(org.onlab.packet.MacAddress mac, org.onlab.packet.VlanId vlanId)
mac - mac addressvlanId - vlan identifierpublic static HostId hostId(org.onlab.packet.MacAddress mac)
mac - mac addressCopyright © 2015. All rights reserved.