The mpls te protect-switch command configures the manual switching mode for a specified tunnel.
The mpls te protect-switch clear and undo mpls te protect-switch commands delete the manual switching mode for a specified tunnel.
By default, no manual switching mode for a specified tunnel is configured.
mpls te protect-switch { force | lock | manual }
mpls te protect-switch clear
undo mpls te protect-switch
Parameter | Description | Value |
---|---|---|
force | Forcibly directs traffic to a protection tunnel. | - |
lock | Locks traffic in the working tunnel. Being locked, traffic cannot be switched to a protection tunnel even if the working tunnel fails. | - |
manual | Enables manual switching. | - |
clear | Deletes the switching request manually configured on the current tunnel. | - |
Usage Scenario
If an LSP fault is detected, traffic switching is automatically triggered in a tunnel protection group. Alternatively, run the mpls te protect-switch command to trigger traffic switching.
MPLS OAM supports multiple traffic switching modes. These switching modes are prioritized. A newly configured switching mode takes effect only if its priority is higher than that of the existing switching mode.
Force switching mode: has the highest priority. If force switching is configured, traffic is forced to switch to a protection tunnel and does not switch back even if the working tunnel recovers. Both the mpls te protect-switch force command and the mpls te protect-switch lock command can trigger force switching, but force switching triggered by the latter command has a higher priority.
Signal failure mode: automatically triggers traffic switching if an LSP fault is detected.
Manual switching mode: manually switches traffic to a protection tunnel.
WTR mode: switches traffic back to a working tunnel after the WTR time expires. Although the WTR time is set, if a command is run to manually switch traffic, traffic will be switched immediately before the WTR time expires.
If a new local or remote request has a higher priority than an existing request manually configured using the mpls te protect-switch command, the APS state machine is changed, and the manual switching command is deleted. In the mpls te protect-switch command, the force and manual parameters, except the lock parameter, configure lower priority requests. After the mpls te protect-switch command with force or manual configured is run, the command is lost after a device is restarted. This situation is normal, in compliance with Recommendation G.8131.
Prerequisites
A tunnel protection group has been created by running the mpls te protection tunnel command.
Follow-up Procedure
The mpls te protect-switch clear command can be used to cancel force or manual switching.
# Switch traffic to the protection tunnel manually on Tunnel 1.
<HUAWEI> system-view [HUAWEI] interface tunnel 1 [HUAWEI-Tunnel1] mpls te protect-switch manual
# Delete the traffic switching to the protection tunnel on Tunnel 1.
<HUAWEI> system-view [HUAWEI] interface tunnel 1 [HUAWEI-Tunnel1] mpls te protect-switch clear