metric

Function

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.

Format

metric metric-value

undo metric

undo metric metric-value

Parameters

Parameter Description Value
metric-value

TE Metric Value.

The value is an integer ranging from 1 to 16777215.

Views

Link attribute application view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-te write

Usage Guidelines

Usage Scenario

To set a metric for a Flex-Algo link, run the metric command in the Flex-Algo link attribute application view.

Example

# Set the metric to 20 in the Flex-Algo link attribute application view.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >