public final class VTNVlanMapConfig extends Object
VTNVlanMapConfig describes configuration information about a
VLAN mapping configured in a vBridge.| Modifier and Type | Field and Description |
|---|---|
static String |
NODE_ID_ANY
A pseudo node-id that indicates no physical switch is specified.
|
| Constructor and Description |
|---|
VTNVlanMapConfig(VtnVlanMapConfig vvmc)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
createMapId(SalNode snode,
org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId vid)
Construct an identifier for a VLAN mapping.
|
static String |
createMapId(VtnVlanMapConfig cfg)
Construct an identifier for a VLAN mapping.
|
boolean |
equals(Object o)
Determine whether the given object is identical to this object.
|
String |
getMapId()
Return an identifier for this VLAN mapping.
|
NodeVlan |
getNodeVlan()
Return a
NodeVlan instance which specifies the target VLAN. |
SalNode |
getTargetNode()
Return the target switch identifier.
|
int |
getVlanId()
Return the VLAN ID to be mapped.
|
int |
hashCode()
Return the hash code of this object.
|
VlanMapConfig |
toVlanMapConfig()
Convert this instance into a
VlanMapConfig instance. |
void |
verify()
Verify the contents of this instance.
|
public static final String NODE_ID_ANY
public VTNVlanMapConfig(VtnVlanMapConfig vvmc) throws RpcException
vvmc - A VtnVlanMapConfig instance.RpcException - vvmc contains invalid configuration.public static String createMapId(SalNode snode, org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId vid)
snode - A SalNode instance which specifies the physical
switch. null indicates no switch is speciifed.vid - A VlanId instance which indicates the VLAN ID.
Specifying null results in undefined behavior.public static String createMapId(VtnVlanMapConfig cfg)
cfg - A VtnVlanMapConfig instance.null otherwise.public SalNode getTargetNode()
SalNode instance if the target switch is configured.
null if not configured.public int getVlanId()
public NodeVlan getNodeVlan()
NodeVlan instance which specifies the target VLAN.NodeVlan instance.public String getMapId()
public VlanMapConfig toVlanMapConfig()
VlanMapConfig instance.VlanMapConfig instance.public void verify()
throws RpcException
RpcException - Verification failed.public boolean equals(Object o)
Copyright © 2018 OpenDaylight. All rights reserved.