Skip to content

enable ipv6 topo for test_default_route replace https://github.com/sonic-net/sonic-mgmt/pull/21142#22126

Merged
yxieca merged 2 commits intosonic-net:masterfrom
yanmo96:yanmo96yanmo/ipv6_test_default_route_v2
Feb 10, 2026
Merged

enable ipv6 topo for test_default_route replace https://github.com/sonic-net/sonic-mgmt/pull/21142#22126
yxieca merged 2 commits intosonic-net:masterfrom
yanmo96:yanmo96yanmo/ipv6_test_default_route_v2

Conversation

@yanmo96
Copy link
Copy Markdown
Contributor

@yanmo96 yanmo96 commented Jan 26, 2026

Description of PR

Summary:
Fixes #19925

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?

To enable ipv6 only topo for test_default_route tests.

How did you do it?

Edit the test code to not require ipv4 when in ipv6 only topo situation.

How did you verify/test it?

Original PR at: #21142

Any platform specific information?

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

Documentation

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Added support for IPv6-only topology in route tests.

Signed-off-by: Yan Mo <andymo96@gmail.com>
Removed logical operator condition for xfail in test_default_route_set_src.

Signed-off-by: Yan Mo <andymo96@gmail.com>
@yanmo96 yanmo96 force-pushed the yanmo96yanmo/ipv6_test_default_route_v2 branch from 58e61a7 to f4e9496 Compare February 10, 2026 00:32
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@yanmo96 yanmo96 self-assigned this Feb 10, 2026
@yxieca yxieca merged commit 556e088 into sonic-net:master Feb 10, 2026
26 checks passed

pytest_assert(lo_ipv4, "cannot find ipv4 Loopback0 address")
if not ipv6_only:
pytest_assert(lo_ipv4, "cannot find ipv4 Loopback0 address")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This should be pytest_requires instead of pytest_assert?

Same for the next line below.

mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Feb 11, 2026
…c-net#22126)

What is the motivation for this PR?
To enable ipv6 only topo for test_default_route tests.

How did you do it?
Edit the test code to not require ipv4 when in ipv6 only topo situation.

How did you verify/test it?
Original PR at: sonic-net#21142

Signed-off-by: Yan Mo <andymo96@gmail.com>
Signed-off-by: mssonicbld <sonicbld@microsoft.com>
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202511: #22355

nnelluri-cisco pushed a commit to nnelluri-cisco/sonic-mgmt that referenced this pull request Feb 12, 2026
…c-net#22126)

What is the motivation for this PR?
To enable ipv6 only topo for test_default_route tests.

How did you do it?
Edit the test code to not require ipv4 when in ipv6 only topo situation.

How did you verify/test it?
Original PR at: sonic-net#21142

Signed-off-by: Yan Mo <andymo96@gmail.com>
Signed-off-by: nnelluri-cisco <nnelluri@cisco.com>
mssonicbld pushed a commit that referenced this pull request Feb 17, 2026
What is the motivation for this PR?
To enable ipv6 only topo for test_default_route tests.

How did you do it?
Edit the test code to not require ipv4 when in ipv6 only topo situation.

How did you verify/test it?
Original PR at: #21142

Signed-off-by: Yan Mo <andymo96@gmail.com>
Signed-off-by: mssonicbld <sonicbld@microsoft.com>
anilal-amd pushed a commit to anilal-amd/anilal-forked-sonic-mgmt that referenced this pull request Feb 19, 2026
…c-net#22126)

What is the motivation for this PR?
To enable ipv6 only topo for test_default_route tests.

How did you do it?
Edit the test code to not require ipv4 when in ipv6 only topo situation.

How did you verify/test it?
Original PR at: sonic-net#21142

Signed-off-by: Yan Mo <andymo96@gmail.com>
Signed-off-by: Zhuohui Tan <zhuohui.tan@amd.com>
fraserg-arista pushed a commit to fraserg-arista/sonic-mgmt that referenced this pull request Feb 24, 2026
…c-net#22126)

What is the motivation for this PR?
To enable ipv6 only topo for test_default_route tests.

How did you do it?
Edit the test code to not require ipv4 when in ipv6 only topo situation.

How did you verify/test it?
Original PR at: sonic-net#21142

Signed-off-by: Yan Mo <andymo96@gmail.com>
fraserg-arista pushed a commit to fraserg-arista/sonic-mgmt that referenced this pull request Feb 24, 2026
sonic-net#1031)

…nic-net/sonic-mgmt/pull/21142 (sonic-net#22126)

What is the motivation for this PR?
To enable ipv6 only topo for test_default_route tests.

How did you do it?
Edit the test code to not require ipv4 when in ipv6 only topo situation.

How did you verify/test it?
Original PR at: sonic-net#21142
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…lly (sonic-net#22126)

#### Why I did it
src/sonic-swss
```
* 40a1680e - (HEAD -> 202405, origin/202405) [vstest]: Fix MACsec test in the kernel 5.15 (sonic-net#3568) (5 days ago) [mssonicbld]
```
#### How I did it
#### How to verify it
#### Description for the changelog
ravaliyel pushed a commit to ravaliyel/sonic-mgmt that referenced this pull request Mar 12, 2026
…c-net#22126)

What is the motivation for this PR?
To enable ipv6 only topo for test_default_route tests.

How did you do it?
Edit the test code to not require ipv4 when in ipv6 only topo situation.

How did you verify/test it?
Original PR at: sonic-net#21142

Signed-off-by: Yan Mo <andymo96@gmail.com>
Signed-off-by: Ravali Yeluri (WIPRO LIMITED) <v-ryeluri@microsoft.com>
abhishek-nexthop pushed a commit to nexthop-ai/sonic-mgmt that referenced this pull request Mar 17, 2026
…c-net#22126)

What is the motivation for this PR?
To enable ipv6 only topo for test_default_route tests.

How did you do it?
Edit the test code to not require ipv4 when in ipv6 only topo situation.

How did you verify/test it?
Original PR at: sonic-net#21142

Signed-off-by: Yan Mo <andymo96@gmail.com>
Signed-off-by: Abhishek <abhishek@nexthop.ai>
ravaliyel pushed a commit to ravaliyel/sonic-mgmt that referenced this pull request Mar 27, 2026
…c-net#22126)

What is the motivation for this PR?
To enable ipv6 only topo for test_default_route tests.

How did you do it?
Edit the test code to not require ipv4 when in ipv6 only topo situation.

How did you verify/test it?
Original PR at: sonic-net#21142

Signed-off-by: Yan Mo <andymo96@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: route/test_default_route.py IPv6 only topo Not Supported

4 participants