The mpls switch-l2vc encapsulation reroute command configures the PW switchback policy on the S-PE where the primary and secondary PWs are configured and are determined in master/slave mode. This command is applicable to the VLL FRR mode and the master/slave mode of PW redundancy.
The undo mpls switch-l2vc encapsulation reroute command deletes the PW switchback policy.
By default, in master/slave mode of PW redundancy, the switchback policy is configured as delayed switchback with the delay being 30 seconds.
mpls switch-l2vc ip-address vc-id encapsulation { ethernet | ip-interworking | ip-layer2 | vlan } reroute { delay delay-time | immediately | never }
undo mpls switch-l2vc ip-address vc-id encapsulation { ethernet | ip-interworking | ip-layer2 | vlan } reroute { delay delay-time | immediately | never }