The color flex-algo command configures a mapping between a color value and a Flex-Algo.
The undo color flex-algo command deletes the mapping between a color value and a Flex-Algo.
By default, no mappings between color values and Flex-Algos are configured.
Usage Scenario
When a BGP route with a specific color value is specified for a VPN, the VPN uses the color value to find the mapped SR-MPLS Flex-Algo LSP. The BGP route is then recursed to this LSP for data packet forwarding on the backbone network. To configure a mapping between a color value and an SR-MPLS Flex-Algo, run the color flex-algo command in the Flex-Algo and color mapping view.
Note that one color value can be mapped to only one Flex-Algo, but one Flex-Algo can be mapped to multiple color values.