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, List<org.onosproject.net.flow.instructions.ExtensionTreatment> actions)
      Creates a new nicicra ct instruction.
    • Constructor Detail

      • NiciraCt

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

        public NiciraCt​(int flags,
                        long zoneSrc,
                        int zone,
                        short recircTable,
                        int alg,
                        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 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 Object