public final class PortVlan extends Object
PortVlan class represents a pair of the physical switch port and
the VLAN ID.| Constructor and Description |
|---|
PortVlan(SalPort sport,
int vid)
Construct a new instance.
|
PortVlan(String value)
Construct a new instance from the given string.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Determine whether the given object is identical to this object.
|
SalPort |
getPort()
Return a
SalPort instance associated with the physical switch
port. |
int |
getVlanId()
Return the VLAN ID.
|
int |
hashCode()
Return the hash code of this object.
|
String |
toString()
Return a string representation of this object.
|
public PortVlan(SalPort sport, int vid)
sport - A SalPort instance associated with the physical
switch port.
Specifying null results in undefined behavior.vid - VLAN ID.public PortVlan(String value) throws RpcException
value - A string concatenated a node-connector-id and a VLAN ID
with "@".RpcException - An invalid value is specified to value.public SalPort getPort()
SalPort instance associated with the physical switch
port.SalPort instance.public int getVlanId()
public boolean equals(Object o)
public int hashCode()
Copyright © 2018 OpenDaylight. All rights reserved.