Class OfdpaSetVlanVid

  • All Implemented Interfaces:
    org.onosproject.net.flow.Extension, org.onosproject.net.flow.instructions.ExtensionTreatment
    Direct Known Subclasses:
    Ofdpa3SetOvid

    public class OfdpaSetVlanVid
    extends org.onosproject.net.flow.AbstractExtension
    implements org.onosproject.net.flow.instructions.ExtensionTreatment
    OFDPA set VLAN ID extension instruction.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected OfdpaSetVlanVid()
      Constructs a new set VLAN ID instruction.
        OfdpaSetVlanVid​(org.onlab.packet.VlanId vlanId)
      Constructs a new set VLAN ID instruction with given VLAN ID.
    • Constructor Detail

      • OfdpaSetVlanVid

        protected OfdpaSetVlanVid()
        Constructs a new set VLAN ID instruction.
      • OfdpaSetVlanVid

        public OfdpaSetVlanVid​(org.onlab.packet.VlanId vlanId)
        Constructs a new set VLAN ID instruction with given VLAN ID.
        Parameters:
        vlanId - VLAN ID
    • Method Detail

      • vlanId

        public org.onlab.packet.VlanId vlanId()
        Gets the VLAN ID.
        Returns:
        VLAN ID
      • type

        public org.onosproject.net.flow.instructions.ExtensionTreatmentType type()
        Specified by:
        type in interface org.onosproject.net.flow.instructions.ExtensionTreatment
      • deserialize

        public void deserialize​(byte[] data)
        Specified by:
        deserialize in interface org.onosproject.net.flow.Extension
      • serialize

        public byte[] serialize()
        Specified by:
        serialize in interface org.onosproject.net.flow.Extension
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object