The reroute command configures a revertive switching policy for a PW protection group with the master/slave PW redundancy mode.
The undo reroute command deletes the revertive switching policy for a PW protection group with the master/slave PW redundancy mode.
The default revertive switching policy for a PW protection group with the master/slave PW redundancy mode is delayed switchback, and the default delay is 30s. The default revertive switching policy for a PW protection group with the independent PW redundancy mode is immediate switchback.
The default revertive switching policy for a PW protection group with the master/slave PW redundancy mode is delayed switchback, and the default delay is 30s.
Parameter | Description | Value |
---|---|---|
delay delay-time |
Indicates that the revertive switching policy is delayed switchback. |
The value is an integer ranging from 10 to 10800, in seconds. The default value is 30s. |
immediately |
Indicates that the revertive switching policy is immediate switchback. |
- |
never |
Indicates that the revertive switching policy is non-revertive. Traffic is not switched back to the primary PW even after the primary PW recovers. Traffic will be switched back to the primary PW only when the secondary PW fails. |
- |
Usage Scenario
The reroute command can configure revertive switching policies for only PW protection groups with the master/slave PW redundancy mode. The revertive switching policy for PW protection groups with the independent PW redundancy mode is immediate switchback and cannot be modified.
Currently, three types of revertive switching policies are available:Prerequisites
The PW redundancy mode of the PW protection group has been configured as master/slave.
Configuration Impact
The revertive switching policy determines the switchback behavior of the traffic after the primary PW recovers.
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] vsi vsi1 [*HUAWEI-vsi-vsi1] pwsignal ldp [*HUAWEI-vsi-vsi1-ldp] vsi-id 1 [*HUAWEI-vsi-vsi1-ldp] protect-group group1 [*HUAWEI-vsi-vsi1-ldp-protect-group-group1] protect-mode pw-redundancy master [*HUAWEI-vsi-vsi1-ldp-protect-group-group1] reroute delay 60