Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mellanox] Update spf test related to error status when sw control is enabled #16573

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JibinBao
Copy link
Contributor

Description of PR

Update spf platform test related to error status, due to PR: sonic-net/sonic-buildimage#20964
When software control is enabled, the port error status is as follows:

  1. For active module, the expected state is OK
  2. For cmis passive module, the expected state is ModuleLowPwr
  3. For non cmis passive module, the expected state is 'Not supported'

When software control is disabled, the port error status keeps the original behaviour

Summary:
Fixes # (issue)

Type of change

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

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405
  • 202411

Approach

What is the motivation for this PR?

Update spf test related to error status when sw control is enabled

How did you do it?

When sw control is enabled, check the error stats as the following logic:

  1. For active module, the expected state is OK
  2. For cmis passive module, the expected state is ModuleLowPwr
  3. For non cmis passive module, the expected state is 'Not supported'

How did you verify/test it?

Run test_get_error_description and test_check_sfputil_error_status when sw control is enabled

Any platform specific information?

Mellanox

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

Documentation

…nic-buildimage#20964

When software control is enabled, the port error status is as follows:
1. For active module, the expected state is OK
2. For cmis passive module, the expected state is ModuleLowPwr
3. For non cmis passive module, the expected state is 'Not supported'

when software control is disabled, the port error status keep the original behaviour
@JibinBao JibinBao requested a review from prgeor as a code owner January 17, 2025 09:18
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

3 participants