When an active NSX Edge fails, the NSX Control Plane ensures the failover happens to the standby NSX Edge node.
In your topology, where you have created L2 segments across multiple sites, each segment relies on two NSX Edge nodes that are in an Active/Standby configuration. For example, as shown in image 1, NSX Edge 1 is Active and NSX Edge 2 is standby node.
For communication between these NSX Edge that are not on the same subnet, communication between the stretched L2 segments happen over the NSX Edge VTEP addresses.
To ensure HA functionality for NSX Edge nodes, each NSX Edge node communicates the VTEP Group State Message to the control plane. In turn, the Control Plane communicates all VTEP group information received from the NSX Edge nodes to all transport nodes that host these stretched segments. The VTEP Group Message includes information about the latest state ofNSX Edge nodes - Active/Standby.
If NSX Edge 1 (active node) shuts down ungracefully or fails or goes into maintenance mode, the control plane cleans up or remove the VTEP entry of the failed NSX Edge node. So, the transport nodes know that the standby node is now the active node. When the stretched segments want to send traffic, they reach the active NSX Edge node and not to the failed one.
To view the HA state of the Active Edge VTEP after a failover: