Skip to content

fix test_bgp_facts_ipv6_only on modular with different linecards#25499

Open
peterbailey-arista wants to merge 1 commit into
sonic-net:masterfrom
peterbailey-arista:fix-test-verify-bgp-facts
Open

fix test_bgp_facts_ipv6_only on modular with different linecards#25499
peterbailey-arista wants to merge 1 commit into
sonic-net:masterfrom
peterbailey-arista:fix-test-verify-bgp-facts

Conversation

@peterbailey-arista

Copy link
Copy Markdown
Contributor

Description of PR

The test incorrectly uses duthost to check if the current front end host is multi-asic or not. When the thread starts for each front end host `duthost`` will have been defined by the loop but it will not necessarily be the correct host when verify_bgp_facts is called.

The test fails on a modular where the linecards have different numbers of asics because containers on a multi-asic LC are not the same as containers on a single-asic LC. The loop re-assigns duthost each iteration but each thread is sharing that same object.

Fix is to use the passed dut object.

Type of change

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

Back port request

  • 202311
  • 202405
  • 202411
  • 202505
  • 202511
  • 202512
  • 202605

Approach

What is the motivation for this PR?

Fix test failure seen on modular chassis.

How did you do it?

Fix is to use the passed dut object instead of duthost object defined by the loop.

How did you verify/test it?

ran ip/test_mgmt_ipv6_only.py with the change.

Any platform specific information?

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

Documentation

The test incorrectly uses `duthost` to check if the current front end host is multi-asic or not.
When the thread starts for each front end host `duthost`` will have been defined by the loop
but it will not necessarily be the correct host when verify_bgp_facts is called.

The test fails on a modular where the linecards have different numbers of asics
because containers on a multi-asic LC are not the same as containers on a single-asic LC.
The loop re-assigns duthost each iteration but each thread is sharing that same object.

Signed-off-by: Peter <peterbailey@arista.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@peterbailey-arista peterbailey-arista force-pushed the fix-test-verify-bgp-facts branch from f91c79e to 7c0a65c Compare June 19, 2026 20:59
@azure-pipelines

Copy link
Copy Markdown
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.

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld added Request for 202511 branch Request to backport a change to 202511 branch Request for 202605 branch labels Jun 20, 2026
@mssonicbld

Copy link
Copy Markdown
Collaborator

This PR has backport request for branch(es): 202511,202605.
Added label(s) for branch(es) 202511,202605.

---Powered by SONiC BuildBot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Request for 202511 branch Request to backport a change to 202511 branch Request for 202605 branch

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants