Class NiciraNshNp

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

    public class NiciraNshNp
    extends org.onosproject.net.flow.AbstractExtension
    implements org.onosproject.net.flow.instructions.ExtensionTreatment
    Nicira nshNp extension instruction to set next protocol value in nsh header.
    • Constructor Summary

      Constructors 
      Constructor Description
      NiciraNshNp​(byte nshNp)
      Creates a new nshNp instruction with given nsh np.
    • Constructor Detail

      • NiciraNshNp

        public NiciraNshNp​(byte nshNp)
        Creates a new nshNp instruction with given nsh np.
        Parameters:
        nshNp - nsh next protocol value
    • Method Detail

      • nshNp

        public byte nshNp()
        Gets the nsh np.
        Returns:
        nshNp
      • 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