Class NiciraSetNshSpi

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

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

      Constructors 
      Constructor Description
      NiciraSetNshSpi​(org.onosproject.net.NshServicePathId nshSpi)
      Creates a new set nsh spi instruction with given spi.
    • Constructor Detail

      • NiciraSetNshSpi

        public NiciraSetNshSpi​(org.onosproject.net.NshServicePathId nshSpi)
        Creates a new set nsh spi instruction with given spi.
        Parameters:
        nshSpi - nsh service path id
    • Method Detail

      • nshSpi

        public org.onosproject.net.NshServicePathId nshSpi()
        Gets the nsh service path id.
        Returns:
        nsh service path id
      • 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