public final class VTNSetDlSrcAction extends VTNDlAddrAction
VTNSetDlSrcAction describes the flow action that sets the source
MAC address into Ethernet header.| Constructor and Description |
|---|
VTNSetDlSrcAction(EtherAddress addr)
Construct a new instance without specifying action order.
|
VTNSetDlSrcAction(EtherAddress addr,
Integer ord)
Construct a new instance with specifying action order.
|
VTNSetDlSrcAction(VtnSetDlSrcActionCase ac,
Integer ord)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(FlowActionContext ctx)
Apply this flow action to the given packet.
|
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.
|
static VtnSetDlSrcActionCase |
newVtnAction(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress mac)
Create a new
VtnSetDlSrcActionCase 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.
|
VTNSetDlSrcAction |
toFlowFilterAction(VtnAction vact,
Integer ord)
Convert the given
VtnAction instance into a
FlowFilterAction instance. |
VtnSetDlSrcActionCase |
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. |
appendContents, equals, getAddress, getDescription, getDescription, getMacAddress, hashCode, noMacAddress, verifyImplgetIdentifier, getOrder, toVtnFlowAction, verifycast, getErrorMessage, toActionBuilder, toString, toVtnFlowActionBuilderpublic VTNSetDlSrcAction(EtherAddress addr)
addr - An EtherAddress instance which represents the
MAC address to be set.public VTNSetDlSrcAction(EtherAddress addr, Integer ord)
addr - An EtherAddress instance which represents the
MAC address to be set.ord - An integer which determines the order of flow actions
in a flow entry.public VTNSetDlSrcAction(VtnSetDlSrcActionCase ac, Integer ord) throws RpcException
ac - A VtnSetDlSrcActionCase instance.ord - An integer which determines the order of flow actions
in a flow entry.RpcException - An invalid argument is specified.public static VtnSetDlSrcActionCase newVtnAction(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress mac)
VtnSetDlSrcActionCase instance.mac - A MacAddress instance which specifies the MAC
address.VtnSetDlSrcActionCase instance.public VtnSetDlSrcActionCase 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.public boolean apply(FlowActionContext ctx)
apply in class FlowFilterActionctx - 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 FlowFilterActionvact - A VtnAction instance.RpcException - An error occurred.public VTNSetDlSrcAction toFlowFilterAction(VtnAction vact, Integer ord) throws RpcException
VtnAction instance into a
FlowFilterAction instance.toFlowFilterAction in class FlowFilterActionvact - 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.Copyright © 2018 OpenDaylight. All rights reserved.