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

Try get port operational speed from STATE DB #2030

Merged
merged 4 commits into from
Mar 15, 2022

Conversation

Junchao-Mellanox
Copy link
Collaborator

@Junchao-Mellanox Junchao-Mellanox commented Jan 24, 2022

HLD change: sonic-net/SONiC#932

What I did

Part of the fix for issue sonic-net/sonic-buildimage#9595

How I did it

For script intfutil, portstat, voqutil, try to get port operational speed from STATE_DB first. If speed value is not present or is "N/A" in STATE DB, try to get port operational speed from APPL_DB, this is for backward compatible

How to verify it

Extend existing unit test cases

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

keboliu
keboliu previously approved these changes Feb 14, 2022
scripts/portstat Outdated Show resolved Hide resolved
scripts/intfutil Show resolved Hide resolved
scripts/portstat Outdated Show resolved Hide resolved
scripts/intfutil Outdated Show resolved Hide resolved
prgeor
prgeor previously approved these changes Mar 7, 2022
@prgeor
Copy link
Contributor

prgeor commented Mar 7, 2022

@Junchao-Mellanox could you check the build failure?

@Junchao-Mellanox
Copy link
Collaborator Author

/azpw run Azure.sonic-utilities

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-utilities

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Junchao-Mellanox
Copy link
Collaborator Author

/azpw run Azure.sonic-utilities

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-utilities

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Junchao-Mellanox
Copy link
Collaborator Author

/azpw run Azure.sonic-utilities

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-utilities

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Junchao-Mellanox
Copy link
Collaborator Author

Did a rebase(no new change) to re-trigger the checkers, hope it fix the vs test failure.

@Junchao-Mellanox
Copy link
Collaborator Author

/azpw run Azure.sonic-utilities

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-utilities

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prgeor prgeor merged commit 93384ed into sonic-net:master Mar 15, 2022
judyjoseph pushed a commit that referenced this pull request Mar 20, 2022
* Try get port operatinal speed from STATE DB

* Fix review comment

* Fix review comment

* Fix unit test failure
@Junchao-Mellanox Junchao-Mellanox deleted the optimize-port-auto-neg branch March 29, 2022 01:54
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.

6 participants