Package org.onosproject.net.behaviour
Enum TunnelDescription.Type
- java.lang.Object
-
- java.lang.Enum<TunnelDescription.Type>
-
- org.onosproject.net.behaviour.TunnelDescription.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<TunnelDescription.Type>
- Enclosing interface:
- TunnelDescription
public static enum TunnelDescription.Type extends Enum<TunnelDescription.Type>
Tunnel technology type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GENEVE
Signifies that this is a L3 tunnel.GRE
Signifies that this is a L3 tunnel.MPLS
Signifies that this is a MPLS tunnel.OCH
Signifies that this is a L0 OCH tunnel.ODUK
Signifies that this is a L1 OTN tunnel.VLAN
Signifies that this is a L2 tunnel.VXLAN
Signifies that this is a DC L2 extension tunnel.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TunnelDescription.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static TunnelDescription.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MPLS
public static final TunnelDescription.Type MPLS
Signifies that this is a MPLS tunnel.
-
VLAN
public static final TunnelDescription.Type VLAN
Signifies that this is a L2 tunnel.
-
VXLAN
public static final TunnelDescription.Type VXLAN
Signifies that this is a DC L2 extension tunnel.
-
GRE
public static final TunnelDescription.Type GRE
Signifies that this is a L3 tunnel.
-
GENEVE
public static final TunnelDescription.Type GENEVE
Signifies that this is a L3 tunnel.
-
ODUK
public static final TunnelDescription.Type ODUK
Signifies that this is a L1 OTN tunnel.
-
OCH
public static final TunnelDescription.Type OCH
Signifies that this is a L0 OCH tunnel.
-
-
Method Detail
-
values
public static TunnelDescription.Type[] 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 (TunnelDescription.Type c : TunnelDescription.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TunnelDescription.Type valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-