Class NiciraNshNp
- java.lang.Object
-
- org.onosproject.net.flow.AbstractExtension
-
- org.onosproject.driver.extensions.NiciraNshNp
-
- All Implemented Interfaces:
org.onosproject.net.flow.Extension,org.onosproject.net.flow.instructions.ExtensionTreatment
public class NiciraNshNp extends org.onosproject.net.flow.AbstractExtension implements org.onosproject.net.flow.instructions.ExtensionTreatmentNicira nshNp extension instruction to set next protocol value in nsh header.
-
-
Constructor Summary
Constructors Constructor Description NiciraNshNp(byte nshNp)Creates a new nshNp instruction with given nsh np.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeserialize(byte[] data)booleanequals(Object obj)inthashCode()bytenshNp()Gets the nsh np.byte[]serialize()StringtoString()org.onosproject.net.flow.instructions.ExtensionTreatmentTypetype()-
Methods inherited from class org.onosproject.net.flow.AbstractExtension
getProperties, getPropertyValue, setPropertyValue
-
-
-
-
Method Detail
-
nshNp
public byte nshNp()
Gets the nsh np.- Returns:
- nshNp
-
type
public org.onosproject.net.flow.instructions.ExtensionTreatmentType type()
- Specified by:
typein interfaceorg.onosproject.net.flow.instructions.ExtensionTreatment
-
deserialize
public void deserialize(byte[] data)
- Specified by:
deserializein interfaceorg.onosproject.net.flow.Extension
-
serialize
public byte[] serialize()
- Specified by:
serializein interfaceorg.onosproject.net.flow.Extension
-
-