Skip to content

Fix test_bgp_router_id.py for v6 topo#21455

Merged
StormLiangMS merged 2 commits intosonic-net:masterfrom
markx-arista:fix-test-bgp-router-id-v6-topo
Jan 16, 2026
Merged

Fix test_bgp_router_id.py for v6 topo#21455
StormLiangMS merged 2 commits intosonic-net:masterfrom
markx-arista:fix-test-bgp-router-id-v6-topo

Conversation

@markx-arista
Copy link
Copy Markdown
Contributor

Description of PR

Skip v4 neighbor checks for v6 topo.
Add new lookback_ipv6 fixture because IPv6 loopback IP is not directly used for route advertisement. Also add test_bgp_router_id_set_ipv6 for v6 topo only.
Delete xfail and add skip for test_bgp_router_id_set/test_bgp_router_id_set_ipv6 based on v6/non-v6 topo.

Summary:
Fixes #21454

Type of change

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

Back port request

  • 202412
  • 202505

Approach

What is the motivation for this PR?

test_bgp_router_id.py failed on v6 topo

How did you do it?

Skip v4 neighbor checks for v6 topo
Get correct IPv6 announced routes
Delete xfail and add proper skip

How did you verify/test it?

The test passed after the fix

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).

@markx-arista markx-arista force-pushed the fix-test-bgp-router-id-v6-topo branch from a2ac2cc to 97d6573 Compare November 26, 2025 22:57
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@markx-arista markx-arista changed the title Fix test_bgp_router_id.py for IPv6 only topos Fix test_bgp_router_id.py for v6 topo Nov 27, 2025
@markx-arista markx-arista reopened this Nov 27, 2025
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@markx-arista markx-arista force-pushed the fix-test-bgp-router-id-v6-topo branch from 97d6573 to 2b98b8f Compare December 4, 2025 20:30
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Skip v4 neighbor checks for v6 topo.
Add new lookback_ipv6 fixture because IPv6 loopback IP is not directly
used for route advertisement. Also add test_bgp_router_id_set_ipv6 for
v6 topo only.
Delete xfail and add skip for
test_bgp_router_id_set/test_bgp_router_id_set_ipv6 based on v6/non-v6
topo.

Signed-off-by: markxiao <[email protected]>
@markx-arista markx-arista force-pushed the fix-test-bgp-router-id-v6-topo branch from 2b98b8f to fb4460f Compare December 8, 2025 19:40
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@markx-arista markx-arista reopened this Dec 8, 2025
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@davidm-arista davidm-arista added Request for msft-202412 Branch Request for 202511 branch Request to backport a change to 202511 branch labels Dec 17, 2025
Copy link
Copy Markdown
Collaborator

@StormLiangMS StormLiangMS left a comment

Choose a reason for hiding this comment

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

LGTM

@StormLiangMS StormLiangMS merged commit da9e5f4 into sonic-net:master Jan 16, 2026
23 checks passed
@mssonicbld
Copy link
Copy Markdown
Collaborator

@markx-arista PR conflicts with 202511 branch

@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to msft-202412: Azure/sonic-mgmt.msft#962

PriyanshTratiya pushed a commit to PriyanshTratiya/sonic-mgmt that referenced this pull request Jan 21, 2026
Skip v4 neighbor checks for v6 topo.
Add new lookback_ipv6 fixture because IPv6 loopback IP is not directly
used for route advertisement. Also add test_bgp_router_id_set_ipv6 for
v6 topo only.
Delete xfail and add skip for
test_bgp_router_id_set/test_bgp_router_id_set_ipv6 based on v6/non-v6
topo.

Signed-off-by: markxiao <[email protected]>
Signed-off-by: Priyansh Tratiya <[email protected]>
AndoniSanguesa pushed a commit to AndoniSanguesa/sonic-mgmt that referenced this pull request Jan 21, 2026
Skip v4 neighbor checks for v6 topo.
Add new lookback_ipv6 fixture because IPv6 loopback IP is not directly
used for route advertisement. Also add test_bgp_router_id_set_ipv6 for
v6 topo only.
Delete xfail and add skip for
test_bgp_router_id_set/test_bgp_router_id_set_ipv6 based on v6/non-v6
topo.

Signed-off-by: markxiao <[email protected]>
Signed-off-by: Andoni Sanguesa <[email protected]>
AndoniSanguesa pushed a commit to AndoniSanguesa/sonic-mgmt that referenced this pull request Jan 21, 2026
Skip v4 neighbor checks for v6 topo.
Add new lookback_ipv6 fixture because IPv6 loopback IP is not directly
used for route advertisement. Also add test_bgp_router_id_set_ipv6 for
v6 topo only.
Delete xfail and add skip for
test_bgp_router_id_set/test_bgp_router_id_set_ipv6 based on v6/non-v6
topo.

Signed-off-by: markxiao <[email protected]>
Signed-off-by: Andoni Sanguesa <[email protected]>
saravanan-nexthop pushed a commit to nexthop-ai/sonic-mgmt that referenced this pull request Jan 22, 2026
Skip v4 neighbor checks for v6 topo.
Add new lookback_ipv6 fixture because IPv6 loopback IP is not directly
used for route advertisement. Also add test_bgp_router_id_set_ipv6 for
v6 topo only.
Delete xfail and add skip for
test_bgp_router_id_set/test_bgp_router_id_set_ipv6 based on v6/non-v6
topo.

Signed-off-by: markxiao <[email protected]>
Signed-off-by: Saravanan Sellappa <[email protected]>
@markx-arista
Copy link
Copy Markdown
Contributor Author

Cherry-pick PR to 202511: #22097

justin-oliver pushed a commit to justin-oliver/sonic-mgmt that referenced this pull request Jan 26, 2026
Skip v4 neighbor checks for v6 topo.
Add new lookback_ipv6 fixture because IPv6 loopback IP is not directly
used for route advertisement. Also add test_bgp_router_id_set_ipv6 for
v6 topo only.
Delete xfail and add skip for
test_bgp_router_id_set/test_bgp_router_id_set_ipv6 based on v6/non-v6
topo.

Signed-off-by: markxiao <[email protected]>
ytzur1 pushed a commit to ytzur1/sonic-mgmt that referenced this pull request Feb 2, 2026
Skip v4 neighbor checks for v6 topo.
Add new lookback_ipv6 fixture because IPv6 loopback IP is not directly
used for route advertisement. Also add test_bgp_router_id_set_ipv6 for
v6 topo only.
Delete xfail and add skip for
test_bgp_router_id_set/test_bgp_router_id_set_ipv6 based on v6/non-v6
topo.

Signed-off-by: markxiao <[email protected]>
Signed-off-by: Yael Tzur <[email protected]>
abhishek-nexthop pushed a commit to nexthop-ai/sonic-mgmt that referenced this pull request Feb 6, 2026
Skip v4 neighbor checks for v6 topo.
Add new lookback_ipv6 fixture because IPv6 loopback IP is not directly
used for route advertisement. Also add test_bgp_router_id_set_ipv6 for
v6 topo only.
Delete xfail and add skip for
test_bgp_router_id_set/test_bgp_router_id_set_ipv6 based on v6/non-v6
topo.

Signed-off-by: markxiao <[email protected]>
nnelluri-cisco pushed a commit to nnelluri-cisco/sonic-mgmt that referenced this pull request Feb 12, 2026
Skip v4 neighbor checks for v6 topo.
Add new lookback_ipv6 fixture because IPv6 loopback IP is not directly
used for route advertisement. Also add test_bgp_router_id_set_ipv6 for
v6 topo only.
Delete xfail and add skip for
test_bgp_router_id_set/test_bgp_router_id_set_ipv6 based on v6/non-v6
topo.

Signed-off-by: markxiao <[email protected]>
Signed-off-by: nnelluri-cisco <[email protected]>
rraghav-cisco pushed a commit to rraghav-cisco/sonic-mgmt that referenced this pull request Feb 13, 2026
Skip v4 neighbor checks for v6 topo.
Add new lookback_ipv6 fixture because IPv6 loopback IP is not directly
used for route advertisement. Also add test_bgp_router_id_set_ipv6 for
v6 topo only.
Delete xfail and add skip for
test_bgp_router_id_set/test_bgp_router_id_set_ipv6 based on v6/non-v6
topo.

Signed-off-by: markxiao <[email protected]>
Signed-off-by: Raghavendran Ramanathan <[email protected]>
anilal-amd pushed a commit to anilal-amd/anilal-forked-sonic-mgmt that referenced this pull request Feb 19, 2026
Skip v4 neighbor checks for v6 topo.
Add new lookback_ipv6 fixture because IPv6 loopback IP is not directly
used for route advertisement. Also add test_bgp_router_id_set_ipv6 for
v6 topo only.
Delete xfail and add skip for
test_bgp_router_id_set/test_bgp_router_id_set_ipv6 based on v6/non-v6
topo.

Signed-off-by: markxiao <[email protected]>
Signed-off-by: Zhuohui Tan <[email protected]>
abhishek-nexthop pushed a commit to nexthop-ai/sonic-mgmt that referenced this pull request Mar 17, 2026
Skip v4 neighbor checks for v6 topo.
Add new lookback_ipv6 fixture because IPv6 loopback IP is not directly
used for route advertisement. Also add test_bgp_router_id_set_ipv6 for
v6 topo only.
Delete xfail and add skip for
test_bgp_router_id_set/test_bgp_router_id_set_ipv6 based on v6/non-v6
topo.

Signed-off-by: markxiao <[email protected]>
Signed-off-by: Abhishek <[email protected]>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Mar 27, 2026
Skip v4 neighbor checks for v6 topo.
Add new lookback_ipv6 fixture because IPv6 loopback IP is not directly
used for route advertisement. Also add test_bgp_router_id_set_ipv6 for
v6 topo only.
Delete xfail and add skip for
test_bgp_router_id_set/test_bgp_router_id_set_ipv6 based on v6/non-v6
topo.

Signed-off-by: markxiao <[email protected]>
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: test_bgp_router_id.py failed on v6 topo

7 participants