public final class VTNInet4Match extends VTNInetMatch
VTNInet4Match describes the condition for IPv4 header to match
against packets.
Note that this class is not synchronized.
| Constructor and Description |
|---|
VTNInet4Match()
Construct a new instance that matches every IPv4 packet.
|
VTNInet4Match(org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.IpMatchFields imatch,
org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.Ipv4MatchFields i4match)
Construct a new instance from the given
IpMatchFields and
Ipv4MatchFields instances. |
VTNInet4Match(IpNetwork src,
IpNetwork dst,
Short proto,
Short d)
Construct a new instance.
|
VTNInet4Match(Short proto)
Construct a new instance that matches the given IP protocol.
|
VTNInet4Match(VtnInetMatchFields vimatch)
Construct a new instance from the given
VtnInetMatchFields
instance. |
| Modifier and Type | Method and Description |
|---|---|
int |
getEtherType()
Return an Ethernet type assigned to this IP protocol version.
|
Class<Ip4Network> |
getIpNetworkType()
Return a class to represent an IP address.
|
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. |
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.
|
create, create, equals, getDestinationNetwork, getDscp, getProtocol, getSourceNetwork, hashCode, isEmpty, match, setConditionKey, setProtocol, toVtnInetMatchBuilder, verifypublic VTNInet4Match()
public VTNInet4Match(Short proto)
proto - A Short instance which represents the IP protocol
number to match against packets.
null matches every IP protocol.public VTNInet4Match(IpNetwork src, IpNetwork dst, Short proto, Short d) throws RpcException
src - A IpNetwork instance which specifies the source
IP address to match.
null matches every source IP address.dst - A IpNetwork instance which specifies the
destination IP address to match.
null matches every destination IP address.proto - A Short instance which represents the IP protocol
number to match against packets.
null matches every IP protocol.d - A DSCP field value to match.
null matches every DSCP field value.RpcException - The specified condition is invalid.public VTNInet4Match(VtnInetMatchFields vimatch) throws RpcException
VtnInetMatchFields
instance.vimatch - A VtnInetMatchFields instance.NullPointerException - vimatch is null.RpcException - vimatch contains invalid value.public VTNInet4Match(org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.IpMatchFields imatch,
org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.Ipv4MatchFields i4match)
throws RpcException
IpMatchFields and
Ipv4MatchFields instances.imatch - An IpMatchFields instance.i4match - An Ipv4MatchFields instance.RpcException - imatch or i4match contains invalid value.public void setMatch(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.MatchBuilder builder)
setMatch in class VTNInetMatchbuilder - A MatchBuilder instance.public int getEtherType()
getEtherType in class VTNInetMatchpublic Class<Ip4Network> getIpNetworkType()
getIpNetworkType in class VTNInetMatchpublic org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpVersion getIpVersion()
IpVersion instance which describes the IP version.getIpVersion in class VTNInetMatchIpVersion.Ipv4.Copyright © 2018 OpenDaylight. All rights reserved.