The flex-algo color-mapping command creates or displays the Flex-Algo and color mapping view.
The undo flex-algo color-mapping command deletes the Flex-Algo and color mapping view.
By default, the Flex-Algo and color mapping view is not created.
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 a Flex-Algo, you need to first run the flex-algo color-mapping command to create and enter the Flex-Algo and color mapping view, and then run the color flex-algo command in this view.