Repository navigation
fix: allow multiple subnet for fd in a RP - #788
Merged
Merged
Conversation
abhay-nutanix
marked this pull request as draft
September 21, 2026 11:17
abhay-nutanix
force-pushed
the
issue/recoveryPlan
branch
from
September 25, 2026 06:34
017f3ed to
e32ecee
Compare
abhay-nutanix
force-pushed
the
issue/recoveryPlan
branch
from
September 25, 2026 06:40
e32ecee to
c4ca38c
Compare
abhay-nutanix
marked this pull request as ready for review
September 25, 2026 06:40
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #788 +/- ##
===========================================
+ Coverage 43.96% 54.20% +10.24%
===========================================
Files 18 32 +14
Lines 2593 6261 +3668
===========================================
+ Hits 1140 3394 +2254
- Misses 1417 2550 +1133
- Partials 36 317 +281 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
vijayaraghavanr31
approved these changes
Sep 25, 2026
Vedansh074
approved these changes
Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The vHA domain recovery-plan generation previously supported only a single subnet per failure domain (it used fd.Spec.Subnets[0] and ignored the rest) and required both metro failure domains to be paired strictly by list position. This PR generalizes the network mapping to support multiple subnets per failure domain, and pairs the two failure domains' subnets by their L2 network identity (network layer, VLAN ID/VNI, CIDR) rather than by list position.
Motivation
A metro spans two Prism Elements, each with its own Prism subnet objects (distinct names/UUIDs) that represent the same underlying L2 networks. Real deployments frequently have more than one subnet per site, and the two sites may:
The old logic could not represent multi-subnet configs and would mispair or reject these valid setups.
What changed