public class NiciraNat
extends org.onosproject.net.flow.AbstractExtension
implements org.onosproject.net.flow.instructions.ExtensionTreatment
| Constructor and Description |
|---|
NiciraNat()
Creates a new nat instruction.
|
NiciraNat(int flags,
int presentFlags,
int portMin,
int portMax,
org.onlab.packet.IpAddress ipAddressMin,
org.onlab.packet.IpAddress ipAddressMax)
Creates a new nat instruction.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(byte[] data) |
boolean |
equals(Object obj) |
int |
hashCode() |
int |
niciraNatFlags()
Get Nicira nat flags.
|
org.onlab.packet.IpAddress |
niciraNatIpAddressMax()
Get Nicira Nat max ip address.
|
org.onlab.packet.IpAddress |
niciraNatIpAddressMin()
Get Nicira Nat min ip address.
|
int |
niciraNatPortMax()
Get Nicira Nat max port.
|
int |
niciraNatPortMin()
Get Nicira Nat min port.
|
int |
niciraNatPresentFlags()
Get Nicira present flags.
|
byte[] |
serialize() |
String |
toString() |
org.onosproject.net.flow.instructions.ExtensionTreatmentType |
type() |
getProperties, getPropertyValue, setPropertyValuepublic NiciraNat()
public NiciraNat(int flags,
int presentFlags,
int portMin,
int portMax,
org.onlab.packet.IpAddress ipAddressMin,
org.onlab.packet.IpAddress ipAddressMax)
flags - nat flagspresentFlags - nat present flagsportMin - min portportMax - max portipAddressMin - min ip addressipAddressMax - max ip addresspublic org.onosproject.net.flow.instructions.ExtensionTreatmentType type()
type in interface org.onosproject.net.flow.instructions.ExtensionTreatmentpublic int niciraNatFlags()
public int niciraNatPresentFlags()
public int niciraNatPortMin()
public int niciraNatPortMax()
public org.onlab.packet.IpAddress niciraNatIpAddressMin()
public org.onlab.packet.IpAddress niciraNatIpAddressMax()
public void deserialize(byte[] data)
deserialize in interface org.onosproject.net.flow.Extensionpublic byte[] serialize()
serialize in interface org.onosproject.net.flow.Extension