public abstract class VTNPortAction extends FlowFilterAction
VTNPortAction describes the flow action that sets the port number
for IP transport layer protocol into packet.| Modifier | Constructor and Description |
|---|---|
protected |
VTNPortAction(int p)
Construct a new instance without specifying action order.
|
protected |
VTNPortAction(int p,
Integer ord)
Construct a new instance with specifying action order.
|
protected |
VTNPortAction(VtnPortActionFields act,
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 |
equals(Object o)
Determine whether the given object is identical to this object.
|
protected String |
getDescription(String name,
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber port)
Return a description about the specified MD-SAL action.
|
protected String |
getDescription(String name,
VtnPortActionFields act)
Return a description about the specified VTN action.
|
int |
getPort()
Return the port number to be set.
|
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber |
getPortNumber()
Return the port number to be set as a
PortNumber instance. |
protected int |
getPortNumber(VtnPortActionFields vport)
Return the port number configured in the given
VtnPortActionFields instance. |
int |
hashCode()
Return the hash code of this object.
|
protected RpcException |
noPortNumber(Object obj)
Return an exception which indicates no port number is specified.
|
protected void |
verifyImpl()
Verify the contents of this instance.
|
apply, getDescription, getIdentifier, getOrder, toFlowFilterAction, toVtnFlowAction, verifycast, getDescription, getErrorMessage, set, set, toActionBuilder, toString, toVtnAction, toVtnFlowActionBuilderprotected VTNPortAction(int p)
p - The port numbet to be set.protected VTNPortAction(int p,
Integer ord)
p - The port numbet to be set.ord - An integer which determines the order of flow actions
in a flow entry.protected VTNPortAction(VtnPortActionFields act, Integer ord) throws RpcException
act - A VtnPortActionFields instance.ord - An integer which determines the order of flow actions
in a flow entry.RpcException - An invalid argument is specified.public final int getPort()
public final org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber getPortNumber()
PortNumber instance.PortNumber instance.protected final int getPortNumber(VtnPortActionFields vport)
VtnPortActionFields instance.vport - A VtnPortActionFields instance.protected final RpcException noPortNumber(Object obj)
obj - An object to be added to the error message.RpcException instance.protected final String getDescription(String name, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber port)
name - The name of the flow action.port - A PortNumber instance.protected final String getDescription(String name, VtnPortActionFields act)
name - The name of the flow action.act - A VtnPortActionFields instance.protected final void verifyImpl()
throws RpcException
verifyImpl in class FlowFilterActionRpcException - Verification failed.protected final void appendContents(StringBuilder builder)
StringBuilder instance.appendContents in class FlowFilterActionbuilder - A StringBuilder instance.public final boolean equals(Object o)
equals in class FlowFilterActiono - An object to be compared.true if identical. Otherwise false.public final int hashCode()
hashCode in class FlowFilterActionCopyright © 2018 OpenDaylight. All rights reserved.