Enum L2ModificationInstruction.L2SubType
- java.lang.Object
-
- java.lang.Enum<L2ModificationInstruction.L2SubType>
-
- org.onosproject.net.flow.instructions.L2ModificationInstruction.L2SubType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<L2ModificationInstruction.L2SubType>
- Enclosing class:
- L2ModificationInstruction
public static enum L2ModificationInstruction.L2SubType extends java.lang.Enum<L2ModificationInstruction.L2SubType>
Represents the type of traffic treatment.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEC_MPLS_TTL
MPLS TTL modification.ETH_DST
Ether dst modification.ETH_SRC
Ether src modification.MPLS_BOS
MPLS BOS instruction.MPLS_LABEL
MPLS Label modification.MPLS_POP
MPLS Pop modification.MPLS_PUSH
MPLS Push modification.TUNNEL_ID
Tunnel id modification.VLAN_ID
VLAN id modification.VLAN_PCP
VLAN priority modification.VLAN_POP
VLAN Pop modification.VLAN_PUSH
VLAN Push modification.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static L2ModificationInstruction.L2SubType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static L2ModificationInstruction.L2SubType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ETH_SRC
public static final L2ModificationInstruction.L2SubType ETH_SRC
Ether src modification.
-
ETH_DST
public static final L2ModificationInstruction.L2SubType ETH_DST
Ether dst modification.
-
VLAN_ID
public static final L2ModificationInstruction.L2SubType VLAN_ID
VLAN id modification.
-
VLAN_PCP
public static final L2ModificationInstruction.L2SubType VLAN_PCP
VLAN priority modification.
-
MPLS_LABEL
public static final L2ModificationInstruction.L2SubType MPLS_LABEL
MPLS Label modification.
-
MPLS_PUSH
public static final L2ModificationInstruction.L2SubType MPLS_PUSH
MPLS Push modification.
-
MPLS_POP
public static final L2ModificationInstruction.L2SubType MPLS_POP
MPLS Pop modification.
-
DEC_MPLS_TTL
public static final L2ModificationInstruction.L2SubType DEC_MPLS_TTL
MPLS TTL modification.
-
VLAN_POP
public static final L2ModificationInstruction.L2SubType VLAN_POP
VLAN Pop modification.
-
VLAN_PUSH
public static final L2ModificationInstruction.L2SubType VLAN_PUSH
VLAN Push modification.
-
TUNNEL_ID
public static final L2ModificationInstruction.L2SubType TUNNEL_ID
Tunnel id modification.
-
MPLS_BOS
public static final L2ModificationInstruction.L2SubType MPLS_BOS
MPLS BOS instruction.
-
-
Method Detail
-
values
public static L2ModificationInstruction.L2SubType[] 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 (L2ModificationInstruction.L2SubType c : L2ModificationInstruction.L2SubType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static L2ModificationInstruction.L2SubType 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
-
-