The apply flex-algo command sets the Flex-Algo ID of a route.
The undo apply flex-algo command cancels the configuration.
By default, no Flex-Algo ID is set for a route.
Usage Scenario
Flex-Algo allows users to define an algorithm value (Flex-Algo ID) to identify a fixed algorithm and flexibly implement traffic engineering. In an SRv6 Flex-Algo route import scenario, you can run the apply flex-algo command to set a Flex-Algo ID.
Prerequisites
A route-policy has been configured using the route-policy command.
Configuration Impact
After a route matches a route-policy, the Flex-Algo ID of the route is changed.
Precautions
The apply flex-algo command takes effect only when IS-IS imports inter-process routes or BGP routes.