The peer virtual-link te metric command sets a metric for a peer virtual link.
The undo peer virtual-link te metric command cancels the configuration.
By default, no metric is configured for a virtual link.
Usage Scenario
You can run the peer virtual-link te metric command to set a metric for a virtual link between BGP peers. The metric is used by the controller to calculate routes.
Prerequisites
A virtual link across an L3 network has been constructed using the peer virtual-link command. The device has been enabled to report topology information to the controller based on the virtual link for path computation.
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 2001:db8:1::1 as-number 100 [*HUAWEI-bgp] peer 2001:db8:1::1 egress-engineering srv6 [*HUAWEI-bgp] peer 2001:db8:1::1 virtual-link [*HUAWEI-bgp] peer 2001:db8:1::1 virtual-link te metric 20