Class NiciraNat

  • All Implemented Interfaces:
    org.onosproject.net.flow.Extension, org.onosproject.net.flow.instructions.ExtensionTreatment

    public class NiciraNat
    extends org.onosproject.net.flow.AbstractExtension
    implements org.onosproject.net.flow.instructions.ExtensionTreatment
    Nicira nat extension instruction.
    • Constructor Summary

      Constructors 
      Constructor 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deserialize​(byte[] data)  
      boolean equals​(java.lang.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()  
      java.lang.String toString()  
      org.onosproject.net.flow.instructions.ExtensionTreatmentType type()  
      • Methods inherited from class org.onosproject.net.flow.AbstractExtension

        getProperties, getPropertyValue, setPropertyValue
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.onosproject.net.flow.Extension

        getProperties, getPropertyValue, setPropertyValue
    • Constructor Detail

      • NiciraNat

        public NiciraNat()
        Creates a new nat instruction.
      • NiciraNat

        public NiciraNat​(int flags,
                         int presentFlags,
                         int portMin,
                         int portMax,
                         org.onlab.packet.IpAddress ipAddressMin,
                         org.onlab.packet.IpAddress ipAddressMax)
        Creates a new nat instruction.
        Parameters:
        flags - nat flags
        presentFlags - nat present flags
        portMin - min port
        portMax - max port
        ipAddressMin - min ip address
        ipAddressMax - max ip address
    • Method Detail

      • type

        public org.onosproject.net.flow.instructions.ExtensionTreatmentType type()
        Specified by:
        type in interface org.onosproject.net.flow.instructions.ExtensionTreatment
      • niciraNatFlags

        public int niciraNatFlags()
        Get Nicira nat flags.
        Returns:
        flags
      • niciraNatPresentFlags

        public int niciraNatPresentFlags()
        Get Nicira present flags.
        Returns:
        present flags
      • niciraNatPortMin

        public int niciraNatPortMin()
        Get Nicira Nat min port.
        Returns:
        min port
      • niciraNatPortMax

        public int niciraNatPortMax()
        Get Nicira Nat max port.
        Returns:
        max port
      • niciraNatIpAddressMin

        public org.onlab.packet.IpAddress niciraNatIpAddressMin()
        Get Nicira Nat min ip address.
        Returns:
        min ipaddress
      • niciraNatIpAddressMax

        public org.onlab.packet.IpAddress niciraNatIpAddressMax()
        Get Nicira Nat max ip address.
        Returns:
        max ipaddress
      • deserialize

        public void deserialize​(byte[] data)
        Specified by:
        deserialize in interface org.onosproject.net.flow.Extension
      • serialize

        public byte[] serialize()
        Specified by:
        serialize in interface org.onosproject.net.flow.Extension
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object