public final class VTNSetInetDscpAction extends FlowFilterAction
VTNSetInetDscpAction
describes the flow action that sets the DSCP
value into IP header.Constructor and Description |
---|
VTNSetInetDscpAction(short d)
Construct a new instance without specifying action order.
|
VTNSetInetDscpAction(short d,
Integer ord)
Construct a new instance with specifying action order.
|
VTNSetInetDscpAction(VtnSetInetDscpActionCase ac,
Integer ord)
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 |
apply(FlowActionContext ctx)
Apply this flow action to the given packet.
|
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.
|
String |
getDescription(VtnAction vact)
Return a brief description about the specified VTN action.
|
short |
getDscp()
Return the DSCP value to be set.
|
int |
hashCode()
Return the hash code of this object.
|
static VtnSetInetDscpActionCase |
newVtnAction(Short d)
Create a new
VtnSetInetDscpActionCase 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.
|
VTNSetInetDscpAction |
toFlowFilterAction(VtnAction vact,
Integer ord)
Convert the given
VtnAction instance into a
FlowFilterAction instance. |
VtnSetInetDscpActionCase |
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. |
protected void |
verifyImpl()
Verify the contents of this instance.
|
getIdentifier, getOrder, toVtnFlowAction, verify
cast, getErrorMessage, toActionBuilder, toString, toVtnFlowActionBuilder
public VTNSetInetDscpAction(short d)
d
- A DSCP value to be set.public VTNSetInetDscpAction(short d, Integer ord)
d
- A DSCP value to be set.ord
- An integer which determines the order of flow actions
in a flow entry.public VTNSetInetDscpAction(VtnSetInetDscpActionCase ac, Integer ord) throws RpcException
ac
- A VtnSetInetDscpActionCase
instance.ord
- An integer which determines the order of flow actions
in a flow entry.RpcException
- An invalid argument is specified.public static VtnSetInetDscpActionCase newVtnAction(Short d)
VtnSetInetDscpActionCase
instance.d
- A Short
instance which specifies the DSCP value.VtnSetInetDscpActionCase
instance.public short getDscp()
public VtnSetInetDscpActionCase 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 VTNFlowAction
act
- 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 VTNFlowAction
act
- An Action
instance.RpcException
- An error occurred.protected VtnFlowActionBuilder set(VtnFlowActionBuilder builder)
set
in class VTNFlowAction
builder
- 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 VTNFlowAction
builder
- An ActionBuilder
instance.builder
.protected void appendContents(StringBuilder builder)
StringBuilder
instance.appendContents
in class FlowFilterAction
builder
- A StringBuilder
instance.public boolean apply(FlowActionContext ctx)
apply
in class FlowFilterAction
ctx
- A FlowActionContext
instance.true
if this flow action has been actually applied.
false
if this flow action has been ignored.public String getDescription(VtnAction vact) throws RpcException
Note that this method must not affect instance variables.
getDescription
in class FlowFilterAction
vact
- A VtnAction
instance.RpcException
- An error occurred.public VTNSetInetDscpAction toFlowFilterAction(VtnAction vact, Integer ord) throws RpcException
VtnAction
instance into a
FlowFilterAction
instance.toFlowFilterAction
in class FlowFilterAction
vact
- A VtnAction
instance.ord
- An integer which determines the order of flow actions
in a flow filter.FlowFilterAction
instance.RpcException
- Failed to convert the given instance.protected void verifyImpl() throws RpcException
verifyImpl
in class FlowFilterAction
RpcException
- Verification failed.public boolean equals(Object o)
equals
in class FlowFilterAction
o
- An object to be compared.true
if identical. Otherwise false
.public int hashCode()
hashCode
in class FlowFilterAction
Copyright © 2018 OpenDaylight. All rights reserved.