public abstract class VTNLayer4Match extends Object
VTNLayer4Match describes the condition for layer 4 protocol header
to match against packets.
Note that this class is not synchronized.
| Modifier and Type | Method and Description |
|---|---|
static VTNLayer4Match |
create(org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.Match match)
Create a new instance from the given MD-SAL flow match.
|
static VTNLayer4Match |
create(VtnLayer4Match vl4)
Create a new instance from the given
VtnLayer4Match instance. |
abstract short |
getInetProtocol(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpVersion ver)
Return an IP protocol number assigned to this protocol.
|
abstract boolean |
isEmpty()
Determine whether this instance does not specify any header field
or not.
|
abstract boolean |
match(FlowMatchContext ctx)
Determine whether the given layer 4 protocol header matches the
condition configured in this instance.
|
abstract void |
setConditionKey(StringBuilder builder)
Store strings used to construct flow condition key.
|
abstract void |
setMatch(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.MatchBuilder builder,
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpVersion ver)
Configure the condition represented by this instance into the given
MD-SAL flow match builder.
|
abstract VtnLayer4Match |
toVtnLayer4Match()
Return a
VtnLayer4Match instance which contains the condition
represented by this instance. |
abstract void |
verify()
Verify the contents of this instance.
|
public static final VTNLayer4Match create(VtnLayer4Match vl4) throws RpcException
VtnLayer4Match instance.vl4 - A VtnLayer4Match instance.VTNLayer4Match instance created from the given
VtnLayer4Match instance. Note that null is
returned if vl4 is null.RpcException - The given VtnLayer4Match instance is invalid.public static final VTNLayer4Match create(org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.Match match) throws RpcException
match - A MD-SAL flow match.VTNLayer4Match instance or null.NullPointerException - match is null.RpcException - match contains invalid condition against layer 4 protocol
header.public abstract void verify()
throws RpcException
RpcException - Verification failed.public abstract short getInetProtocol(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpVersion ver)
ver - An IpVersion instance which describes the
IP version.IllegalStateException - This layer 4 protocol is unavailable on the given IP version.public abstract VtnLayer4Match toVtnLayer4Match()
VtnLayer4Match instance which contains the condition
represented by this instance.VtnLayer4Match instance if this instance contains
the condition. null if this instance does not contain
any condition.public abstract void setMatch(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.MatchBuilder builder,
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpVersion ver)
builder - A MatchBuilder instance.ver - An IpVersion instance which describes the
IP version.public abstract boolean match(FlowMatchContext ctx)
ctx - A FlowMatchContext instance.true only if the given header matches all the
conditions configured in this instance.public abstract void setConditionKey(StringBuilder builder)
builder - A StringBuilder instance which contains strings
used to construct flow condition key.public abstract boolean isEmpty()
true only if this instance is empty.Copyright © 2018 OpenDaylight. All rights reserved.