Class NiciraCt
- java.lang.Object
-
- org.onosproject.net.flow.AbstractExtension
-
- org.onosproject.driver.extensions.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.ExtensionTreatmentNicira ct extension instruction.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeserialize(byte[] data)booleanequals(java.lang.Object obj)inthashCode()intniciraCtAlg()Get Nicira Conntrack alg.intniciraCtFlags()Get Nicira Conntrack flags.java.util.List<org.onosproject.net.flow.instructions.ExtensionTreatment>niciraCtNestActions()Get Nicira Conntrack Recirc table.shortniciraCtRecircTable()Get Nicira Conntrack Recirc table.intniciraCtZone()Get Nicira Conntrack zone.longniciraCtZoneSrc()Get Nicira Conntrack zone src.byte[]serialize()java.lang.StringtoString()org.onosproject.net.flow.instructions.ExtensionTreatmentTypetype()-
Methods inherited from class org.onosproject.net.flow.AbstractExtension
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 zonerecircTable- Recirculate to a specific table or 0xff for no recirculationalg- Well-known port number for the protocol, 0 indicates no ALG is requiredactions- a sequence of zero or more OpenFlow actions
-
-
Method Detail
-
type
public org.onosproject.net.flow.instructions.ExtensionTreatmentType type()
- Specified by:
typein interfaceorg.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:
deserializein interfaceorg.onosproject.net.flow.Extension
-
serialize
public byte[] serialize()
- Specified by:
serializein interfaceorg.onosproject.net.flow.Extension
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-