Enum DestinationSet.DestinationSetType

    • 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 name
        NullPointerException - if the argument is null
      • getType

        public String getType()