public final class VTNIcmpMatch extends VTNLayer4Match
VTNIcmpMatch describes the condition for ICMP header to match
against packets.
Note that this class is not synchronized.
| Constructor and Description |
|---|
VTNIcmpMatch()
Construct a new instance that matches every ICMP packet.
|
VTNIcmpMatch(org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.Icmpv4MatchFields imatch)
Create a new instance from the given
Icmpv4MatchFields instance. |
VTNIcmpMatch(Short type,
Short code)
Construct a new instance.
|
VTNIcmpMatch(VtnIcmpMatchFields vimatch)
Create a new instance from the given
VtnIcmpMatchFields
instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Determine whether the given object is identical to this object.
|
Short |
getIcmpCode()
Return the ICMP code to match against packets.
|
Short |
getIcmpType()
Return the ICMP type to match against packets.
|
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.
|
int |
hashCode()
Return the hash code of this object.
|
boolean |
isEmpty()
Determine whether this instance does not specify any header field
or not.
|
boolean |
match(FlowMatchContext ctx)
Determine whether the given layer 4 protocol 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,
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.
|
VtnIcmpMatch |
toVtnLayer4Match()
Return a
VtnIcmpMatch instance which contains the condition
represented by this instance. |
void |
verify()
Verify the contents of this instance.
|
create, createpublic VTNIcmpMatch()
public VTNIcmpMatch(Short type, Short code) throws RpcException
type - The ICMP type to match.
null matches every ICMP type.code - The ICMP code to match.
null matches every ICMP code.RpcException - The specified condition is invalid.public VTNIcmpMatch(VtnIcmpMatchFields vimatch) throws RpcException
VtnIcmpMatchFields
instance.vimatch - An VtnIcmpMatchFields instance.NullPointerException - vimatch is null.RpcException - vimatch contains invalid value.public VTNIcmpMatch(org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.Icmpv4MatchFields imatch)
throws RpcException
Icmpv4MatchFields instance.imatch - An Icmpv4MatchFields instance.NullPointerException - imatch is null.RpcException - imatch contains invalid value.public Short getIcmpType()
Short instance which indicates the ICMP type to
match. null if the ICMP type is not specified.public Short getIcmpCode()
Short instance which indicates the ICMP code to
match. null if the ICMP code is not specified.public void verify()
throws RpcException
verify in class VTNLayer4MatchRpcException - Verification failed.public short getInetProtocol(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpVersion ver)
getInetProtocol in class VTNLayer4Matchver - An IpVersion instance which describes the
IP version.IllegalStateException - ver is not IpVersion.Ipv4.public VtnIcmpMatch toVtnLayer4Match()
VtnIcmpMatch instance which contains the condition
represented by this instance.toVtnLayer4Match in class VTNLayer4MatchVtnIcmpMatch instance if this instance contains
the condition. null if this instance does not contain
any condition.public 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)
setMatch in class VTNLayer4Matchbuilder - A MatchBuilder instance.ver - An IpVersion instance which describes the
IP version.IllegalStateException - ver is not IpVersion.Ipv4.public boolean match(FlowMatchContext ctx)
match in class VTNLayer4Matchctx - A FlowMatchContext instance.true only if the given header matches all the
conditions configured in this instance.public void setConditionKey(StringBuilder builder)
setConditionKey in class VTNLayer4Matchbuilder - A StringBuilder instance which contains strings
used to construct flow condition key.public boolean isEmpty()
isEmpty in class VTNLayer4Matchtrue only if this instance is empty.public boolean equals(Object o)
Copyright © 2018 OpenDaylight. All rights reserved.