Skip to content

[chassis] get frontend or backend asic only when present in metadata#4442

Closed
arlakshm wants to merge 2 commits intosonic-net:masterfrom
arlakshm:fix_4441
Closed

[chassis] get frontend or backend asic only when present in metadata#4442
arlakshm wants to merge 2 commits intosonic-net:masterfrom
arlakshm:fix_4441

Conversation

@arlakshm
Copy link
Copy Markdown
Contributor

@arlakshm arlakshm commented Oct 8, 2021

Description of PR

Summary:
Fixes #4441

closes #4441

Type of change

  • [x ] Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911

Approach

What is the motivation for this PR?

In chassis, the test_update_testbed_metadata fails in the function collect_dut_info.
This is because, the current assumption is a multi asic device will have frontend and backend asic.
In case of the chassis that may not be true. The supervisor will have only backend or fabric asic and linecard will have only frontend asics. The PR address this issue

How did you do it?

Add check to get the asic_services of frontend and/or backend asic only when they are present on the DUT

How did you verify/test it?

run test_pretest.py

Any platform specific information?

None

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

Documentation

Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
@arlakshm arlakshm requested a review from a team as a code owner October 8, 2021 23:09
@arlakshm arlakshm requested review from smaheshm and wangxin October 8, 2021 23:09
@arlakshm arlakshm changed the title Fix 4441 [chassis] get frontend or backend asic only when present in metadata Oct 8, 2021
@sanmalho-git
Copy link
Copy Markdown
Contributor

@arlakshm FYI - I had addressed the changes in test_pretest in #4070.

@arlakshm
Copy link
Copy Markdown
Contributor Author

The change present is #4070. Closing this PR

@arlakshm arlakshm closed this Oct 15, 2021
@arlakshm arlakshm deleted the fix_4441 branch October 15, 2021 18:59
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.

[chassis] test_update_testbed_metadata fails on supervisor card

3 participants