Class NiciraMatchNshSpi

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

    public final class NiciraMatchNshSpi
    extends org.onosproject.net.flow.AbstractExtension
    implements org.onosproject.net.flow.criteria.ExtensionSelector
    Implementation of NSH Service Path Id selector.
    • Constructor Summary

      Constructors 
      Constructor Description
      NiciraMatchNshSpi()
      Default constructor.
      NiciraMatchNshSpi​(org.onosproject.net.NshServicePathId nshSpi)
      Creates an instance with initialized Nsh Service Path ID.
    • Constructor Detail

      • NiciraMatchNshSpi

        public NiciraMatchNshSpi()
        Default constructor.
      • NiciraMatchNshSpi

        public NiciraMatchNshSpi​(org.onosproject.net.NshServicePathId nshSpi)
        Creates an instance with initialized Nsh Service Path ID.
        Parameters:
        nshSpi - nsh service path ID
    • Method Detail

      • nshSpi

        public org.onosproject.net.NshServicePathId nshSpi()
        Gets the network service path id to match.
        Returns:
        the nshSpi to match
      • type

        public org.onosproject.net.flow.criteria.ExtensionSelectorType type()
        Specified by:
        type in interface org.onosproject.net.flow.criteria.ExtensionSelector
      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object