Class NiciraSetNshSi

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

    public class NiciraSetNshSi
    extends org.onosproject.net.flow.AbstractExtension
    implements org.onosproject.net.flow.instructions.ExtensionTreatment
    Nicira set NSH SI extension instruction.
    • Constructor Summary

      Constructors 
      Constructor Description
      NiciraSetNshSi​(org.onosproject.net.NshServiceIndex nshSi)
      Creates a new set nsh si instruction with given si.
    • Constructor Detail

      • NiciraSetNshSi

        public NiciraSetNshSi​(org.onosproject.net.NshServiceIndex nshSi)
        Creates a new set nsh si instruction with given si.
        Parameters:
        nshSi - nsh service index
    • Method Detail

      • nshSi

        public org.onosproject.net.NshServiceIndex nshSi()
        Gets the nsh service index.
        Returns:
        nsh service index
      • type

        public org.onosproject.net.flow.instructions.ExtensionTreatmentType type()
        Specified by:
        type in interface org.onosproject.net.flow.instructions.ExtensionTreatment
      • 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