The metric command sets a metric for a Flex-Algo link.
The undo metric command cancels the setting.
By default, no metric attribute is configured for a Flex-Algo link. After the te link-attribute-application flex-algo command is run on an interface, the metric of the Flex-Algo link is 10.
<HUAWEI> system-view [~HUAWEI] te attribute enable Warning: This operation will switch all TE common attributes configurations to TE mode. Continue? [Y/N]:Y [*HUAWEI] interface GigabitEthernet0/1/0 [*HUAWEI-GigabitEthernet0/1/0] te link-attribute-application flex-algo [*HUAWEI-GigabitEthernet0/1/0-te-link-attribute-application] metric 20