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

[action] [PR:16176] T2/snappi: Use natsort instead of sort for sorting the asic list in disable_pfcwd and enable_pfcwd functions. #16291

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

mssonicbld
Copy link
Collaborator

Description of PR

Summary:
Even after #15863, the problem is still seen in RP. The issue is that the sort() function only sorts alphabetically, not numerically. So we need to use natsort module instead of normal sort() in these functions.

Type of change

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

Back port request

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

Approach

What is the motivation for this PR?

Seeing a lot of loganalyzer messages, but in RP only.

How did you do it?

Change sort to natsort().

How did you verify/test it?

Running in my TB, I don't see the LA error anymore.

Any platform specific information?

T2 mAsic only.

…d and enable_pfcwd functions. (sonic-net#16176)

Description of PR
Summary:
Even after sonic-net#15863, the problem is still seen in RP. The issue is that the sort() function only sorts alphabetically, not numerically. So we need to use natsort module instead of normal sort() in these functions.

Approach
What is the motivation for this PR?
Seeing a lot of loganalyzer messages, but in RP only.

How did you do it?
Change sort to natsort().

How did you verify/test it?
Running in my TB, I don't see the LA error anymore.

Any platform specific information?
T2 mAsic only.

co-authorized by: jianquanye@microsoft.com
@mssonicbld
Copy link
Collaborator Author

/azp run

@mssonicbld
Copy link
Collaborator Author

Original PR: #16176

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit d671010 into sonic-net:202405 Jan 2, 2025
13 checks passed
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.

2 participants