Skip to content

Fix GCU update speed case to use supported speed get from the dut#5843

Merged
liat-grozovik merged 1 commit intosonic-net:masterfrom
congh-nvidia:GCU_eth_interface
Jun 24, 2022
Merged

Fix GCU update speed case to use supported speed get from the dut#5843
liat-grozovik merged 1 commit intosonic-net:masterfrom
congh-nvidia:GCU_eth_interface

Conversation

@congh-nvidia
Copy link
Contributor

Description of PR

Summary:
The test_update_speed case now uses hard coded speed parameters, the speed params may not be supported by some DUTs(e.g. 20G speed is not supported by all nvidia platforms), need to be fixed.
This PR combines multiple commits in #5766 (Closed)

Type of change

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

Back port request

  • 201911
  • 202012

Approach

What is the motivation for this PR?

The test_update_speed case now uses hard coded speed parameters, the speed params may not be supported by some DUTs(e.g. 20G speed is not supported by all nvidia platforms). In order to run this case on all testbeds, need to use supported speeds got from the dut instead of the hardcoded speeds.

How did you do it?

Add a function to get the supported speeds from the dut, and use them in the test case.
The fix uses 2 valid speeds(randomly selected from all supported speeds) and 1 invalid speed(the value is not changed) just as it was before.
For vs setups, because there is no actual supported speed to get, still use the original hard coded valid speed params(20000, 40000).

How did you verify/test it?

Have run this case on 2 different testbeds with nvidia switches, all passed.

Any platform specific information?

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

Documentation

The replace speed test case uses hard coded speed parameters, the params may not be supported by some DUTs(e.g. 20G speed is not supported by all nvidia platforms)
So fix the case to get supported speeds from dut, and test with 2 random supported speed.
For vs setups without actual port speed, still use the origin hard coded speed.
@liat-grozovik liat-grozovik merged commit 7eb0e4c into sonic-net:master Jun 24, 2022
@liat-grozovik
Copy link
Collaborator

@congh-nvidia reelvant for 202012 branch?

@congh-nvidia
Copy link
Contributor Author

@congh-nvidia reelvant for 202012 branch?

No, 202012 doesn't support this feature.

@congh-nvidia congh-nvidia deleted the GCU_eth_interface branch October 17, 2024 02:11
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.

3 participants