Class NiciraSetNshContextHeader

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

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

      Constructors 
      Constructor Description
      NiciraSetNshContextHeader​(org.onosproject.net.NshContextHeader nshCh, org.onosproject.net.flow.instructions.ExtensionTreatmentType type)
      Creates a new set nsh context header instruction.
    • Constructor Detail

      • NiciraSetNshContextHeader

        public NiciraSetNshContextHeader​(org.onosproject.net.NshContextHeader nshCh,
                                         org.onosproject.net.flow.instructions.ExtensionTreatmentType type)
        Creates a new set nsh context header instruction.
        Parameters:
        nshCh - nsh context header
        type - extension treatment type
    • Method Detail

      • nshCh

        public org.onosproject.net.NshContextHeader nshCh()
        Gets the nsh context header.
        Returns:
        nsh context header
      • 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