public abstract class VTNInetMatch extends Object
VTNInetMatch describes the condition for IP header to match against
packets.
Note that this class is not synchronized.
| Modifier and Type | Method and Description |
|---|---|
static VTNInetMatch |
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 VTNInetMatch |
create(VTNEtherMatch eth,
VtnInetMatch ip)
Construct a new instance from the given pair of
VTNEtherMatch
and VtnInetMatch instances. |
boolean |
equals(Object o)
Determine whether the given object is identical to this object.
|
IpNetwork |
getDestinationNetwork()
Return the destination IP network to match against packets.
|
Short |
getDscp()
Return the IP DSCP field value to match against packets.
|
abstract int |
getEtherType()
Return an Ethernet type assigned to this IP protocol version.
|
abstract Class<? extends IpNetwork> |
getIpNetworkType()
Return a class to represent an IP address.
|
abstract org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpVersion |
getIpVersion()
Return An
IpVersion instance which describes the IP version. |
Short |
getProtocol()
Return the IP protocol number to match against packets.
|
IpNetwork |
getSourceNetwork()
Return the source IP network to match against packets.
|
int |
hashCode()
Return the hash code of this object.
|
boolean |
isEmpty()
Determine whether this instance does not specify any IP header field
or not.
|
boolean |
match(FlowMatchContext ctx)
Determine whether the given IP header matches the condition configured
in this instance.
|
void |
setConditionKey(StringBuilder builder)
Store strings used to construct flow condition key.
|
void |
setMatch(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.MatchBuilder builder)
Configure the condition represented by this instance into the given
MD-SAL flow match builder.
|
void |
setProtocol(Short proto)
Set the IP protocol number to match against packets.
|
VtnInetMatchBuilder |
toVtnInetMatchBuilder()
Return a
VtnInetMatchBuilder instance which contains the flow
condition configured in this instance. |
void |
verify()
Verify the contents of this instance.
|
public static final VTNInetMatch create(VTNEtherMatch eth, VtnInetMatch ip) throws RpcException
VTNEtherMatch
and VtnInetMatch instances.eth - A VTNEtherMatch instance.ip - A VtnInetMatch instance.VTNInetMatch instance or null.RpcException - The given condition is invalid.public static VTNInetMatch create(org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.Match match) throws RpcException
match - A MD-SAL flow match.VTNInetMatch instance or null.NullPointerException - match is null.RpcException - match contains invalid condition against IP header.public final IpNetwork getSourceNetwork()
IpNetwork instance if the source IP network is
specified. null if not specified.public final IpNetwork getDestinationNetwork()
IpNetwork instance if the destination IP network is
specified. null if not specified.public final Short getProtocol()
Short instance if the IP protocol number is
specified. null if not specified.public final void setProtocol(Short proto) throws RpcException
proto - A Short instance which represents the IP protocol
number to match against packets.
null matches every IP protocol.RpcException - The IP protocol number different from the given number is already
configured in this instance.public final Short getDscp()
Short instance if the IP DSCP value is specified.
null if not specified.public final VtnInetMatchBuilder toVtnInetMatchBuilder()
VtnInetMatchBuilder instance which contains the flow
condition configured in this instance.VtnInetMatchBuilder instance.public void setMatch(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.MatchBuilder builder)
builder - A MatchBuilder instance.public final boolean match(FlowMatchContext ctx)
The caller has to guarantee that the IP protocol version of the IP header matches this instance.
ctx - A FlowMatchContext instance.true only if the given packet header matches all
the conditions configured in this instance.public final void setConditionKey(StringBuilder builder)
builder - A StringBuilder instance which contains strings
used to construct flow condition key.public final void verify()
throws RpcException
RpcException - Verification failed.public final boolean isEmpty()
true only if this instance is empty.public abstract int getEtherType()
public abstract Class<? extends IpNetwork> getIpNetworkType()
public abstract org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpVersion getIpVersion()
IpVersion instance which describes the IP version.IpVersion instance.public final boolean equals(Object o)
Copyright © 2018 OpenDaylight. All rights reserved.