The mpls l2vpn switchover command switches traffic from the primary PW to the secondary PW.
The undo mpls l2vpn switchover command disables traffic switchover and switches traffic back to the primary PW.
By default, traffic switchover is not configured.
Usage Scenario
In master/slave PW redundancy mode, the traffic is transmitted over the primary PW in normal situations. If you want the traffic to be transmitted over the secondary PW due to reasons such as device upgrade or service re-deployment, you can use the mpls l2vpn switchover command to forcibly switch traffic from the primary PW to the secondary PW. After the device is upgraded or services are re-deployed, you can run the undo mpls l2vpn switchover command to forcibly switch traffic from the secondary PW to the primary PW.
If the secondary PW fails after traffic is forcibly switched to the secondary PW, the traffic will be switched back to the primary PW.
Prerequisites
The primary and secondary PWs have been established and are in the Up state.
Precautions
A PW switchover will be performed after you run the mpls l2vpn switchover or undo mpls l2vpn switchover command. If the PW to be switched to is Down or unavailable, the switchover fails.
Traffic cannot be switched from the primary PW to a bypass PW.
The two commands apply to only PWs working in master/slave mode. In a VLL FRR scenario, use the manual-set pw-ac-fault command to forcibly switch over PWs.