Enum OfdpaGroupHandlerUtility.OfdpaMplsGroupSubType
- java.lang.Object
-
- java.lang.Enum<OfdpaGroupHandlerUtility.OfdpaMplsGroupSubType>
-
- org.onosproject.driver.pipeline.ofdpa.OfdpaGroupHandlerUtility.OfdpaMplsGroupSubType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<OfdpaGroupHandlerUtility.OfdpaMplsGroupSubType>
- Enclosing class:
- OfdpaGroupHandlerUtility
public static enum OfdpaGroupHandlerUtility.OfdpaMplsGroupSubType extends java.lang.Enum<OfdpaGroupHandlerUtility.OfdpaMplsGroupSubType>
Helper enum to handle the different MPLS group types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description L2_VPNL3_VPNMPLS_ECMPMPLS_INTFMPLS_SWAP_LABELMPLS_TUNNEL_LABEL_1MPLS_TUNNEL_LABEL_2
-
Field Summary
Fields Modifier and Type Field Description static intOFDPA_GROUP_TYPE_SHIFTstatic intOFDPA_MPLS_SUBTYPE_SHIFT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description shortgetValue()Gets the value as an short.static OfdpaGroupHandlerUtility.OfdpaMplsGroupSubTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static OfdpaGroupHandlerUtility.OfdpaMplsGroupSubType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MPLS_INTF
public static final OfdpaGroupHandlerUtility.OfdpaMplsGroupSubType MPLS_INTF
-
L2_VPN
public static final OfdpaGroupHandlerUtility.OfdpaMplsGroupSubType L2_VPN
-
L3_VPN
public static final OfdpaGroupHandlerUtility.OfdpaMplsGroupSubType L3_VPN
-
MPLS_TUNNEL_LABEL_1
public static final OfdpaGroupHandlerUtility.OfdpaMplsGroupSubType MPLS_TUNNEL_LABEL_1
-
MPLS_TUNNEL_LABEL_2
public static final OfdpaGroupHandlerUtility.OfdpaMplsGroupSubType MPLS_TUNNEL_LABEL_2
-
MPLS_SWAP_LABEL
public static final OfdpaGroupHandlerUtility.OfdpaMplsGroupSubType MPLS_SWAP_LABEL
-
MPLS_ECMP
public static final OfdpaGroupHandlerUtility.OfdpaMplsGroupSubType MPLS_ECMP
-
-
Field Detail
-
OFDPA_GROUP_TYPE_SHIFT
public static final int OFDPA_GROUP_TYPE_SHIFT
- See Also:
- Constant Field Values
-
OFDPA_MPLS_SUBTYPE_SHIFT
public static final int OFDPA_MPLS_SUBTYPE_SHIFT
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static OfdpaGroupHandlerUtility.OfdpaMplsGroupSubType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OfdpaGroupHandlerUtility.OfdpaMplsGroupSubType c : OfdpaGroupHandlerUtility.OfdpaMplsGroupSubType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OfdpaGroupHandlerUtility.OfdpaMplsGroupSubType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getValue
public short getValue()
Gets the value as an short.- Returns:
- the value as an short
-
-