Package org.onosproject.segmentrouting
Enum TunnelHandler.Result
- java.lang.Object
-
- java.lang.Enum<TunnelHandler.Result>
-
- org.onosproject.segmentrouting.TunnelHandler.Result
-
- All Implemented Interfaces:
Serializable,Comparable<TunnelHandler.Result>
- Enclosing class:
- TunnelHandler
public static enum TunnelHandler.Result extends Enum<TunnelHandler.Result>
Result of tunnel creation or removal.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ID_EXISTSThe same tunnel ID exists already.INTERNAL_ERRORFailed to create/remove groups for the tunnel.SUCCESSSuccess.TUNNEL_EXISTSThe same tunnel exists already.TUNNEL_IN_USECannot remove the tunnel used by a policy.TUNNEL_NOT_FOUNDTunnel not found.WRONG_PATHMore than one router needs to specified to created a tunnel.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TunnelHandler.ResultvalueOf(String name)Returns the enum constant of this type with the specified name.static TunnelHandler.Result[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final TunnelHandler.Result SUCCESS
Success.
-
WRONG_PATH
public static final TunnelHandler.Result WRONG_PATH
More than one router needs to specified to created a tunnel.
-
TUNNEL_EXISTS
public static final TunnelHandler.Result TUNNEL_EXISTS
The same tunnel exists already.
-
ID_EXISTS
public static final TunnelHandler.Result ID_EXISTS
The same tunnel ID exists already.
-
TUNNEL_NOT_FOUND
public static final TunnelHandler.Result TUNNEL_NOT_FOUND
Tunnel not found.
-
TUNNEL_IN_USE
public static final TunnelHandler.Result TUNNEL_IN_USE
Cannot remove the tunnel used by a policy.
-
INTERNAL_ERROR
public static final TunnelHandler.Result INTERNAL_ERROR
Failed to create/remove groups for the tunnel.
-
-
Method Detail
-
values
public static TunnelHandler.Result[] 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 (TunnelHandler.Result c : TunnelHandler.Result.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TunnelHandler.Result 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
-
-