public final class NodeVlan extends Object
NodeVlan class represents a pair of the physical switch and a
VLAN ID.| Constructor and Description |
|---|
NodeVlan(SalNode snode,
int vid)
Construct a new instance which specifies the VLAN network.
|
NodeVlan(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.
|
SalNode |
getNode()
Return the node associated with the physical switch.
|
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 NodeVlan(SalNode snode, int vid)
snode - A SalNode associated with the physical switch.
Specifying null means that no physical switch is
specified.vid - VLAN ID.public NodeVlan(String value) throws RpcException
value - A string concatenated a node-id and a VLAN ID with "@".RpcException - An invalid value is specified to value.public SalNode getNode()
SalNode object.
null is returned if no physical switch is specified.public int getVlanId()
public boolean equals(Object o)
public int hashCode()
Copyright © 2018 OpenDaylight. All rights reserved.