public final class VTNSetVlanIdAction extends VTNFlowAction
VTNSetVlanIdAction describes the flow action that sets the VLAN ID
into VLAN tag.| Constructor and Description |
|---|
VTNSetVlanIdAction(int vid)
Construct a new instance that sets the VLAN ID into VLAN tag.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendContents(StringBuilder builder)
Append strings which represents the contents of this instance into the
given
StringBuilder instance. |
boolean |
equals(Object o)
Determine whether the given object is identical to this object.
|
String |
getDescription(org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action act)
Return a brief description about the specified MD-SAL action.
|
int |
getVlanId()
Return the VLAN ID to be set.
|
int |
hashCode()
Return the hash code of this object.
|
static VtnSetVlanIdActionCase |
newVtnAction(Integer vid)
Create a new
VtnSetVlanIdActionCase instance. |
protected org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder |
set(org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder builder)
Set a MD-SAL action into the given action builder.
|
protected VtnFlowActionBuilder |
set(VtnFlowActionBuilder builder)
Set a VTN action into the given VTN flow action builder.
|
VtnSetVlanIdActionCase |
toVtnAction(org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action act)
Convert the given MD-SAL action instance into a
VtnAction
instance. |
cast, getErrorMessage, toActionBuilder, toString, toVtnFlowActionBuilderpublic VTNSetVlanIdAction(int vid)
vid - The VLAN ID to be set.public static VtnSetVlanIdActionCase newVtnAction(Integer vid)
VtnSetVlanIdActionCase instance.vid - An Integer instance which specifies the VLAN ID.VtnSetVlanIdActionCase instance.public int getVlanId()
public VtnSetVlanIdActionCase toVtnAction(org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action act) throws RpcException
VtnAction
instance.
Note that this method must not affect instance variables.
toVtnAction in class VTNFlowActionact - An Action instance.VtnAction instance.RpcException - Failed to convert the given instance.public String getDescription(org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action act) throws RpcException
Note that this method must not affect instance variables.
getDescription in class VTNFlowActionact - An Action instance.RpcException - An error occurred.protected VtnFlowActionBuilder set(VtnFlowActionBuilder builder)
set in class VTNFlowActionbuilder - A VtnFlowActionBuilder instance.builder.protected org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder set(org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder builder)
set in class VTNFlowActionbuilder - An ActionBuilder instance.builder.protected void appendContents(StringBuilder builder)
StringBuilder instance.appendContents in class VTNFlowActionbuilder - A StringBuilder instance.public boolean equals(Object o)
equals in class VTNFlowActiono - An object to be compared.true if identical. Otherwise false.public int hashCode()
hashCode in class VTNFlowActionCopyright © 2018 OpenDaylight. All rights reserved.