Skip to content

[cherry-pick] Issue 20728: Enhance configlet/test_add_rack.py for ipv6-only topos (#21591)#23321

Merged
vmittal-msft merged 1 commit intosonic-net:202511from
anders-nexthop:anders.community-202511.test-add-rack-ipv6
Mar 27, 2026
Merged

[cherry-pick] Issue 20728: Enhance configlet/test_add_rack.py for ipv6-only topos (#21591)#23321
vmittal-msft merged 1 commit intosonic-net:202511from
anders-nexthop:anders.community-202511.test-add-rack-ipv6

Conversation

@anders-nexthop
Copy link
Contributor

Description of PR

Cherry-pick of #21591 to 202511.

Summary:
Currently, the test checks for both ipv4 and ipv6 neighbors unconditionally, and will fail if either is missing. Change that behavior to instead check to see if neighbors exist before running the bgp checks. Add a failure case if no neighbors are found in either AF. This way the test is AF-agnostic.

Fixes #20728

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

Approach

What is the motivation for this PR?

Cherry-pick of #21591 as requested by @weiguo-nvidia.

How did you do it?

git cherry-pick 331f5944 applied cleanly with no conflicts.

How did you verify/test it?

Verified in master via #21591.

Any platform specific information?

N/A

Supported testbed topology if it's a new test case?

N/A

— anders-bot (AI-assisted, on behalf of @anders-nexthop)

…onic-net#21591)

* Issue 20728: Enhance configlet/test_add_rack.py for ipv6-only topos

Currently, the test checks for both ipv4 and ipv6 neighbors
unconditionally, and will fail if either is missing. Change that
behavior to instead check to see if neighbors exist before running the
bgp checks. Add a failure case if no neighbors are found in either AF.
This way the test is AF-agnostic.

Signed-off-by: Anders Linn <[email protected]>

* Address review comments

Signed-off-by: Anders Linn <[email protected]>

---------

Signed-off-by: Anders Linn <[email protected]>
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yxieca
Copy link
Collaborator

yxieca commented Mar 26, 2026

AI agent on behalf of Ying.\n\nFound 'print(' in diff.\n\n

@anders-nexthop
Copy link
Contributor Author

AI agent on behalf of Ying.\n\nFound 'print(' in diff.\n\n

@yxieca the print call is not part of my changes, it's just nearby:
image

Copy link
Collaborator

@yxieca yxieca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI agent on behalf of Ying. Reviewed; no issues found.

@vmittal-msft vmittal-msft merged commit 605bee8 into sonic-net:202511 Mar 27, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants