N9K – Migration from one vPC Pair to Another Pair with HSRP

Initial config:
- Form vPC from a pair of SD towards SS.
- SD001&SD002 vPC uses LACP while SD003&SD004 vPC uses manual method.
- There are 2 L2 links between SD001 & SD004 and between SD002 a& SD003.
- STP is running on all devices. SDs have higher STP priority (lower value).
- Vlan gateways with HSRP are on SD001 & SD002.
1. Initial Config
2. Initial Status
2.1 STP Status
Since there are 2 independent L2 links between 2 pairs of vPC devices, STP blocks one port on SD004. There are no blocked ports on other SDs.

2.2 vPC Status
2.3 HSRP Status
2.4 Port-Channel Summary
3. Back-to-Back vPC between 2 Pairs of SDs
4. Move VLAN Gateway from a Pair of SD to another.
Currently both VLAN gateways are configured on SD001 & SD002.

Move the standby VLAN gateway from SD002 to SD004. After a quick while, SD004 becomes the HSRP standby router. Traffic is not affected as no change is done to the active HSRP router.
Increase the HSRP priority on SD004. After the preempt delay, it will become the active HSRP router within no time. I do the long ping from SS02 to SS01. There is not a single packet drop.

Then move the VLAN gateway from SD001 to SD003. It will become the standby HSRP router. Decrease the priority of SD004 HSRP priority to default. The role will swap to normal.
