Class NiciraMatchNshContextHeader

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

    public final class NiciraMatchNshContextHeader
    extends org.onosproject.net.flow.AbstractExtension
    implements org.onosproject.net.flow.criteria.ExtensionSelector
    Implementation of Nsh context header criterion.
    • Constructor Detail

      • NiciraMatchNshContextHeader

        public NiciraMatchNshContextHeader​(org.onosproject.net.flow.criteria.ExtensionSelectorType type)
        Constructor to create Nsh context header.
        Parameters:
        type - extension selector type
    • Method Detail

      • nshContextHeader

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