Class Ofdpa3MatchMplsL2Port

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

    public class Ofdpa3MatchMplsL2Port
    extends org.onosproject.net.flow.AbstractExtension
    implements org.onosproject.net.flow.criteria.ExtensionSelector
    OFDPA MPLS L2 Port extension match. MPLS L2 Port is a logical port and it is represented with an integer.
    • Constructor Detail

      • Ofdpa3MatchMplsL2Port

        protected Ofdpa3MatchMplsL2Port()
        OFDPA MPLS L2 Port extension match.
      • Ofdpa3MatchMplsL2Port

        public Ofdpa3MatchMplsL2Port​(int mplsl2port)
        Constructs a new MPLS L2 Port match 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.criteria.ExtensionSelectorType type()
        Specified by:
        type in interface org.onosproject.net.flow.criteria.ExtensionSelector
      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object