public final class VTNPushVlanAction extends VTNFlowAction
VTNPushVlanAction describes the flow action that adds a VLAN tag
into packet.| Constructor and Description |
|---|
VTNPushVlanAction()
Construct a new instance that adds an IEEE 802.1q VLAN tag.
|
VTNPushVlanAction(VlanType type)
Construct a new instance.
|
| 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.
|
VlanType |
getVlanType()
Return the VLAN type for a new VLAN tag.
|
int |
hashCode()
Return the hash code of this object.
|
static VtnPushVlanActionCase |
newVtnAction(VlanType vtype)
Create a new
VtnPushVlanActionCase 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.
|
VtnPushVlanActionCase |
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 VTNPushVlanAction()
public static VtnPushVlanActionCase newVtnAction(VlanType vtype)
VtnPushVlanActionCase instance.vtype - A VlanType instance which specifies the type of
the VLAN tag.VtnPushVlanActionCase instance.public VlanType getVlanType()
VlanType instance.public VtnPushVlanActionCase 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.