< Home

protect-switch (protect-group view)

Function

The protect-switch command triggers a manual protection switchover or cancels the manual switchover in a protection group.

Format

protect-switch { manual | clear }

Parameters

Parameter Description Value

manual

Forcibly performs a PW switchover to switch traffic from the high-priority primary PW to the low-priority backup PW.

-

clear

Cancels the manual PW switchover to switch traffic from the low-priority backup PW back to the high-priority primary PW.

-

Views

protect-group view

Default Level

2. Configuration level

Usage Guidelines

Usage Scenario

If you want to maintain the device where the primary PW in a PW protection group resides, you must use a command to switch traffic from the primary PW to the secondary PW first. After the device where the primary PW resides is stable, you need to use this command to switch traffic back from the secondary PW to the primary PW.

Prerequisites

A PW protection group has been created and the PW redundancy mode is master/slave. The primary and secondary PWs have joined the PW protection group and their status is Up.

Precautions

After you run the protect-switch manual command, traffic switches from the primary PW to the secondary PW. After you run the protect-switch clear command, traffic switches from the secondary PW to the primary PW.

After you run the protect-switch manual command, service traffic is always transmitted over the low-priority backup PW. To enable service traffic to be transmitted over a high-priority PW, run the protect-switch clear command to cancel the manual switchover. The manual switchover is also cancelled when the priorities of the primary and backup PWs change in some situations, for example, a PW is Down or you change their priority values. In these situations, the system selects the PW with a higher priority to transmit service traffic.

Example

# Forcibly perform an active/standby PW switchover in the current PW protection group.

<HUAWEI> system-view
[HUAWEI] vsi vsi1
[HUAWEI-vsi-vsi1] pwsignal ldp
[HUAWEI-vsi-vsi1-ldp] protect-group group1
[HUAWEI-vsi-vsi1-ldp-protect-group-group1] protect-switch manual
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >