Class NiciraMatchNshSpi
- java.lang.Object
-
- org.onosproject.net.flow.AbstractExtension
-
- org.onosproject.driver.extensions.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.ExtensionSelectorImplementation 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeserialize(byte[] data)booleanequals(java.lang.Object obj)inthashCode()org.onosproject.net.NshServicePathIdnshSpi()Gets the network service path id to match.byte[]serialize()java.lang.StringtoString()org.onosproject.net.flow.criteria.ExtensionSelectorTypetype()-
Methods inherited from class org.onosproject.net.flow.AbstractExtension
getProperties, getPropertyValue, setPropertyValue
-
-
-
-
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:
typein interfaceorg.onosproject.net.flow.criteria.ExtensionSelector
-
serialize
public byte[] serialize()
- Specified by:
serializein interfaceorg.onosproject.net.flow.Extension
-
deserialize
public void deserialize(byte[] data)
- Specified by:
deserializein interfaceorg.onosproject.net.flow.Extension
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-