The mpls te lock command locks tunnel configurations.
The undo mpls te lock command unlocks tunnel configurations.
By default, no tunnel configurations are locked.
Usage Scenario
In service delivery, a controller delivers tunnel configurations to a forwarder. The forwarder uses the obtained configurations to create a tunnel or modify an existing tunnel. To prevent users from modifying such tunnel configurations, the controller delivers the mpls te lock command to lock the configurations, in addition to configurations to the NetEngine 8000 F. Before you modify the configuration of a tunnel, run the undo mpls te lock command to unlock the tunnel configuration on the tunnel interface.
Prerequisites
MPLS TE has been configured as a tunnel protocol using the tunnel-protocol mpls te command.
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] mpls te [*HUAWEI-mpls] quit [*HUAWEI] interface tunnel 1 [*HUAWEI-Tunnel1] tunnel-protocol mpls te [*HUAWEI-Tunnel1] mpls te lock
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] mpls te [*HUAWEI-mpls] quit [*HUAWEI] interface tunnel 1 [*HUAWEI-Tunnel1] tunnel-protocol mpls te [*HUAWEI-Tunnel1] undo mpls te lock