public final class L2Host extends Object
L2Host class specifies the location of layer 2 host.| Constructor and Description |
|---|
L2Host(int vlan,
SalPort sport)
Construct a new instance without specifying MAC address.
|
L2Host(long mac,
int vlan,
SalPort sport)
Construct a new instance.
|
L2Host(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress mac,
int vlan,
SalPort sport)
Construct a new instance.
|
L2Host(MacVlan mvlan,
SalPort sport)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Determine whether the given object is identical to this object.
|
MacVlan |
getHost()
Return a
MacVlan instance which represents a L2 host. |
SalPort |
getPort()
Return a
SalPort instance corresponding to a switch port. |
int |
hashCode()
Return the hash code of this object.
|
String |
toString()
Return a string representation of this object.
|
public L2Host(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress mac,
int vlan,
SalPort sport)
mac - A MAC address.vlan - VLAN ID.sport - A SalPort instance corresponding to a switch port
to which the host is connected.
Specifying null results in undefined behavior.public L2Host(long mac,
int vlan,
SalPort sport)
mac - A long integer value which represents a MAC address.vlan - VLAN ID.sport - A SalPort instance corresponding to a switch port
to which the host is connected.
Specifying null results in undefined behavior.public MacVlan getHost()
MacVlan instance which represents a L2 host.
Note that returned MacVlan instance keeps
MacVlan.UNDEFINED as MAC address if this instance does not
specify MAC address.
MacVlan instance.public SalPort getPort()
SalPort instance corresponding to a switch port.SalPort instance corresponding to a switch port to
which the host is connected.public boolean equals(Object o)
public int hashCode()
Copyright © 2018 OpenDaylight. All rights reserved.