-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[Nokia ixs7215] Platform API 2.0 improvements #6787
Conversation
This commit provides the following platform API 2.0 improvements for the Nokia ixs7215 platform. - add support for Fan and PSU eeproms - bug fixes in platform firmware status and update logic - unit test enhancements and bug fixes - add platform specific reboot script - relocate pcie.yaml file
platform/marvell-armhf/sonic-platform-nokia/7215/sonic_platform/component.py
Outdated
Show resolved
Hide resolved
Remove trailing spaces in firmware update command as per review comment.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix LGTM alerts. Note that the "Wrong name for an argument in a class instantiation" alerts may be false alarms if you are overriding inherited methods. Please let me know if you have any questions.
Thanks Joe. The multiply defined variable is an error on my part which I will fix in a new commit. |
Fix bug detected by LGTM - multiply defined function name
This pull request introduces 4 alerts when merging e8a4ed9 into 7790a74 - view on LGTM.com new alerts:
|
Since other vendors have already merged code with these approaches, I an OK with allowing these alerts for the time being. However, we eventually need to clean this up. I have not investigated what can be done to eliminate these, but different vendors have taken different approaches to creating their sonic-platform package. I would suggest looking at the different implementations and see if you can find an approach which eliminates these alerts.
Again, I am OK with allowing this alert for now. This is more of a false alarm because there are multiple sonic-platform packages, some which override and some which don't, and LGTM compares to the wrong definition. In the future, we may want to look into adding these parameters with default values in the base class or finding a different approach. |
/AzurePipelines run |
Commenter does not have sufficient privileges for PR 6787 in repo Azure/sonic-buildimage |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
Thanks Joe. |
I'd love to be able to if possible. We're looking into it. |
Can we get this one merged and backported to 202012? |
- Improve sonic-mgmt platform test suite pass rate - Improve coverage of platform unit tests - Provide platform specific reboot logic as per platform porting guide - Fix bug due to pcie.yaml file being located in the wrong directory
- Improve sonic-mgmt platform test suite pass rate - Improve coverage of platform unit tests - Provide platform specific reboot logic as per platform porting guide - Fix bug due to pcie.yaml file being located in the wrong directory
This PR provides the following platform API 2.0 improvements for the Nokia
ixs7215 platform.
Why I did it
This PR has been created for the following reasons
How I did it
Various code changes to platform API 2.0 logic
How to verify it
Verify all 'show platform' commands work as expected
Verify pass rate of sonic-mgmt platform test suite
Which release branch to backport (provide reason below if selected)
Description for the changelog
A picture of a cute animal (not mandatory but encouraged)