Skip IP range duplicate check in validate_bgp_peer_group for different vnets#4179
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Pull request overview
This PR modifies the BGP peer group validation logic to allow IP range reuse across different VRFs. Previously, duplicate IP ranges were rejected regardless of VRF context, but now the validation only flags duplicates when both the IP range and VRF match.
Key Changes
- Modified
validate_bgp_peer_groupto track IP ranges per VRF using tuple keys (ip, vrf_name) - Added logic to default missing
vrf_nameto "default" VRF - Updated error messages to include VRF information when reporting duplicates
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/azp run |
prsunny
left a comment
There was a problem hiding this comment.
lgtm @StormLiangMS , can you review and merge?
…rent Signed-off-by: alawing <[email protected]>
Signed-off-by: alawing <[email protected]>
Co-authored-by: Copilot <[email protected]> Signed-off-by: alawing <[email protected]>
Signed-off-by: alawing <[email protected]>
Signed-off-by: alawing <[email protected]>
Signed-off-by: alawing <[email protected]>
Co-authored-by: Copilot <[email protected]> Signed-off-by: alawing <[email protected]>
Signed-off-by: alawing <[email protected]>
Signed-off-by: alawing <[email protected]>
89462b3 to
ef8f334
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
…t vnets (sonic-net#4179) What I did Skip IP range duplicate check in validate_bgp_peer_group for different vnets Related issue: sonic-net#2145 How I did it Check duplicates only when both vnet_name and ip_range match How to verify it testbed tests and unit tests
|
Cherry-pick PR to 202511: #4215 |
|
Cherry-pick PR to msft-202506: Azure/sonic-utilities.msft#281 |
What I did
Skip IP range duplicate check in
validate_bgp_peer_groupfor different vnetsRelated issue: #2145
How I did it
Check duplicates only when both
vnet_nameandip_rangematchHow to verify it
testbed tests and unit tests