Class NiciraMatchNshSi

  • All Implemented Interfaces:
    org.onosproject.net.flow.criteria.ExtensionSelector, org.onosproject.net.flow.Extension

    public final class NiciraMatchNshSi
    extends org.onosproject.net.flow.AbstractExtension
    implements org.onosproject.net.flow.criteria.ExtensionSelector
    Implementation of NSH Service Index(SI).
    • Constructor Summary

      Constructors 
      Constructor Description
      NiciraMatchNshSi()
      Default constructor.
      NiciraMatchNshSi​(org.onosproject.net.NshServiceIndex nshSi)
      Creates an instance with initialized Nsh Service Index.
    • Constructor Detail

      • NiciraMatchNshSi

        public NiciraMatchNshSi()
        Default constructor.
      • NiciraMatchNshSi

        public NiciraMatchNshSi​(org.onosproject.net.NshServiceIndex nshSi)
        Creates an instance with initialized Nsh Service Index.
        Parameters:
        nshSi - nsh service index
    • Method Detail

      • nshSi

        public org.onosproject.net.NshServiceIndex nshSi()
        Gets the nsh service index to match.
        Returns:
        the si to match
      • serialize

        public byte[] serialize()
        Specified by:
        serialize in interface org.onosproject.net.flow.Extension
      • deserialize

        public void deserialize​(byte[] data)
        Specified by:
        deserialize in interface org.onosproject.net.flow.Extension
      • type

        public org.onosproject.net.flow.criteria.ExtensionSelectorType type()
        Specified by:
        type in interface org.onosproject.net.flow.criteria.ExtensionSelector
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object