Skip to content

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

Merged
kperumalbfn merged 1 commit intosonic-net:202411from
JibinBao:cp_sfp_error_state_202411
Jun 30, 2025
Merged

[Mellanox] Update spf test related to error status when sw control is enabled#19264
kperumalbfn merged 1 commit intosonic-net:202411from
JibinBao:cp_sfp_error_state_202411

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, when cmis ver is 3.0, the expected state is ModuleLowPwr, else it is OK
  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

… enabled (sonic-net#16573)

* Update spf platform test related to error status, due to 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 keep the original behaviour

* fix issue caused by the vs

* sfp test just run on physical setup

* update sfp tests

1. For cmis passive module, when cmis ver is 3.0, the expected state is ModuleLowPwr, else it is OK
@JibinBao JibinBao requested a review from prgeor as a code owner June 30, 2025 07:42
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kperumalbfn
Copy link
Collaborator

Auto cherry-pick PR - #19273

Copy link
Contributor

@prabhataravind prabhataravind left a comment

Choose a reason for hiding this comment

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

Approving cherry-pick as this is confirmed to fix the issue.

@kperumalbfn kperumalbfn merged commit 5c8d5f0 into sonic-net:202411 Jun 30, 2025
14 checks passed
nnelluri-cisco pushed a commit to nnelluri-cisco/sonic-mgmt that referenced this pull request Jul 1, 2025
… enabled (sonic-net#16573) (sonic-net#19264)

[Mellanox] Update spf test related to error status when sw control is enabled
sdszhang pushed a commit to sdszhang/sonic-mgmt that referenced this pull request Aug 2, 2025
Code sync sonic-net/sonic-mgmt:202411 => 202412

```
*   fb53396 (HEAD -> code-sync-202412, origin/code-sync-202412) r12f 250701:1725 - Merge remote-tracking branch 'base/202411' into code-sync-202412
|\
| * 54633cb (base/202411) prabhataravind 250701:0928 - Add t1-28-lag and t1-48-lag to tests_mark_conditions.yaml (sonic-net#19274)
| * 9a23c16 Cong Hou 250416:2355 - Align the sensors data for SN4280 with sonic-buildimage PR#21845 (sonic-net#17747)
| * 8b2d2cd Jibin Bao 250306:0835 - add watchdog test data for x86_64-nvidia_sn4280-r0 (sonic-net#17312)
| * 5c8d5f0 Jibin Bao 250701:0045 - [Mellanox] Update spf test related to error status when sw control is enabled (sonic-net#16573) (sonic-net#19264)
| * 0bea309 Yawen 250411:1620 - add hwsku V64 (sonic-net#17897)
| * 8ab9e6b zitingguo-ms 250628:1755 - [test_static_route] Skip PT0 neighbor when checking route redistribution (sonic-net#19226)
| * 4276be3 prabhataravind 250627:1827 - Support t1-48-lag topo for acl tests (sonic-net#19236)
| * e070035 Wenda Chu 250625:1719 - Skip multiple servers testbed parsing on branch 202411 (sonic-net#19158)
| * 0e5645d xwjiang-ms 250625:1619 - Roll back ceos image version since it's causing bgp failure (sonic-net#19180)
| * 7625d06 ganglv 250624:1548 - Fix configuration after gnmi test (sonic-net#19150)
| * 25e2e55 zitingguo-ms 250624:2000 - [ACL] Record service ports individually and add them to the acl_table_ports (sonic-net#19168)
```
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.

4 participants