Enum DestinationSet.DestinationSetType
- java.lang.Object
-
- java.lang.Enum<DestinationSet.DestinationSetType>
-
- org.onosproject.segmentrouting.grouphandler.DestinationSet.DestinationSetType
-
- All Implemented Interfaces:
Serializable,Comparable<DestinationSet.DestinationSetType>
- Enclosing class:
- DestinationSet
public static enum DestinationSet.DestinationSetType extends Enum<DestinationSet.DestinationSetType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description POP_BOSUsed to represent DestinationSetType where we need to pop an mpls label which has the bos bit set.POP_NOT_BOSUsed to represent DestinationSetType where we need to pop an mpls label which does not have the bos bit set.PUSH_BOSUsed to represent DestinationSetType where we need to push a single mpls label, that of the destination.PUSH_NONEUsed to represent DestinationSetType where the next hop is the same as the final destination.SWAP_BOSUsed to represent DestinationSetType where we swap the outer mpls label with a new one, and where the outer label has the bos bit set.SWAP_NOT_BOSUsed to represent DestinationSetType where we swap the outer mpls label with a new one, and where the outer label does not have the bos bit set.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetType()static DestinationSet.DestinationSetTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DestinationSet.DestinationSetType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUSH_NONE
public static final DestinationSet.DestinationSetType PUSH_NONE
Used to represent DestinationSetType where the next hop is the same as the final destination.
-
PUSH_BOS
public static final DestinationSet.DestinationSetType PUSH_BOS
Used to represent DestinationSetType where we need to push a single mpls label, that of the destination.
-
POP_BOS
public static final DestinationSet.DestinationSetType POP_BOS
Used to represent DestinationSetType where we need to pop an mpls label which has the bos bit set.
-
SWAP_BOS
public static final DestinationSet.DestinationSetType SWAP_BOS
Used to represent DestinationSetType where we swap the outer mpls label with a new one, and where the outer label has the bos bit set.
-
POP_NOT_BOS
public static final DestinationSet.DestinationSetType POP_NOT_BOS
Used to represent DestinationSetType where we need to pop an mpls label which does not have the bos bit set.
-
SWAP_NOT_BOS
public static final DestinationSet.DestinationSetType SWAP_NOT_BOS
Used to represent DestinationSetType where we swap the outer mpls label with a new one, and where the outer label does not have the bos bit set.
-
-
Method Detail
-
values
public static DestinationSet.DestinationSetType[] 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 (DestinationSet.DestinationSetType c : DestinationSet.DestinationSetType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DestinationSet.DestinationSetType 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
-
getType
public String getType()
-
-