Class Ofdpa3SetMplsL2Port
- java.lang.Object
-
- org.onosproject.net.flow.AbstractExtension
-
- org.onosproject.driver.extensions.Ofdpa3SetMplsL2Port
-
- All Implemented Interfaces:
org.onosproject.net.flow.Extension,org.onosproject.net.flow.instructions.ExtensionTreatment
public class Ofdpa3SetMplsL2Port extends org.onosproject.net.flow.AbstractExtension implements org.onosproject.net.flow.instructions.ExtensionTreatmentOFDPA set MPLS L2 Port extension instruction.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedOfdpa3SetMplsL2Port()Constructs a new set MPLS L2 Port instruction.Ofdpa3SetMplsL2Port(java.lang.Integer mplsl2port)Constructs a new set MPLS L2 Port instruction with a given integer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeserialize(byte[] data)booleanequals(java.lang.Object obj)inthashCode()intmplsL2Port()Gets the MPLS L2 Port.byte[]serialize()java.lang.StringtoString()org.onosproject.net.flow.instructions.ExtensionTreatmentTypetype()-
Methods inherited from class org.onosproject.net.flow.AbstractExtension
getProperties, getPropertyValue, setPropertyValue
-
-
-
-
Constructor Detail
-
Ofdpa3SetMplsL2Port
protected Ofdpa3SetMplsL2Port()
Constructs a new set MPLS L2 Port instruction.
-
Ofdpa3SetMplsL2Port
public Ofdpa3SetMplsL2Port(java.lang.Integer mplsl2port)
Constructs a new set MPLS L2 Port instruction with a given integer.- Parameters:
mplsl2port- the MPLS L2 Port
-
-
Method Detail
-
mplsL2Port
public int mplsL2Port()
Gets the MPLS L2 Port.- Returns:
- MPLS L2 Port
-
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
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-