Class NiciraCt

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

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

      Constructors 
      Constructor Description
      NiciraCt()
      Creates a new nicicra ct instruction.
      NiciraCt​(int flags, long zoneSrc, int zone, short recircTable, int alg, java.util.List<org.onosproject.net.flow.instructions.ExtensionTreatment> actions)
      Creates a new nicicra ct 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 niciraCtAlg()
      Get Nicira Conntrack alg.
      int niciraCtFlags()
      Get Nicira Conntrack flags.
      java.util.List<org.onosproject.net.flow.instructions.ExtensionTreatment> niciraCtNestActions()
      Get Nicira Conntrack Recirc table.
      short niciraCtRecircTable()
      Get Nicira Conntrack Recirc table.
      int niciraCtZone()
      Get Nicira Conntrack zone.
      long niciraCtZoneSrc()
      Get Nicira Conntrack zone src.
      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

      • NiciraCt

        public NiciraCt()
        Creates a new nicicra ct instruction.
      • NiciraCt

        public NiciraCt​(int flags,
                        long zoneSrc,
                        int zone,
                        short recircTable,
                        int alg,
                        java.util.List<org.onosproject.net.flow.instructions.ExtensionTreatment> actions)
        Creates a new nicicra ct instruction.
        Parameters:
        flags - zero or commit(0x01)
        zoneSrc - If 'zone_src' is nonzero, this specifies that the zone should be sourced from a field zone_src[ofs:ofs+nbits].
        zone - this is the union of zone_imm and zone_ofs_nbits If 'zone_src' is zero, then the value of 'zone_imm' will be used as the connection tracking zone
        recircTable - Recirculate to a specific table or 0xff for no recirculation
        alg - Well-known port number for the protocol, 0 indicates no ALG is required
        actions - a sequence of zero or more OpenFlow actions
    • Method Detail

      • type

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

        public int niciraCtFlags()
        Get Nicira Conntrack flags.
        Returns:
        flags
      • niciraCtZone

        public int niciraCtZone()
        Get Nicira Conntrack zone.
        Returns:
        zone
      • niciraCtZoneSrc

        public long niciraCtZoneSrc()
        Get Nicira Conntrack zone src.
        Returns:
        zoneSrc
      • niciraCtAlg

        public int niciraCtAlg()
        Get Nicira Conntrack alg.
        Returns:
        alg
      • niciraCtRecircTable

        public short niciraCtRecircTable()
        Get Nicira Conntrack Recirc table.
        Returns:
        recirc table
      • niciraCtNestActions

        public java.util.List<org.onosproject.net.flow.instructions.ExtensionTreatment> niciraCtNestActions()
        Get Nicira Conntrack Recirc table.
        Returns:
        list extension treatment
      • 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