The direct-route track degrade-cost command associates the cost of direct routes with the interface's status.
The undo direct-route track command deletes the association between the cost of direct routes and the interface's status.
By default, the cost of direct routes is not associated with the interface's status, and the default direct route cost is 0.
<HUAWEI> system-view [~HUAWEI] interface Eth-Trunk 1 [~HUAWEI] interface Virtual-Ethernet0/1/8 [*HUAWEI-Virtual-Ethernet0/1/8] ve-group 1 l3-access [~HUAWEI] interface Virtual-Ethernet0/1/8.1 [*HUAWEI-Virtual-Ethernet0/1/8.1] direct-route track Eth-Trunk 1 degrade-cost 30