-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Adding PDDF common framework enhancements. #12863
Conversation
…read functions in a PSU driver on the basis of byte, word or block read, 2) Enhancing PDDF parsing script support for CPU and PCH temperature reading, 3) Adding missing methods in PDDF common APIs
@jostar-yang @geans-pin @adyeung |
This pull request introduces 1 alert when merging e689a77 into c16b8db - view on LGTM.com new alerts:
Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. Please enable GitHub code scanning, which uses the same CodeQL engine ⚙️ that powers LGTM.com. For more information, please check out our post on the GitHub blog. |
Can you add "self.fans_psu_index+1" to get_position_in_parent() on pddf_fan.py for psu-fan case? |
That would be wrong. fan_index represents the actual index of the fan be it in fan_drawer or PSU. |
- Consolidating multiple read functions in a PSU driver on the basis of byte, word or block read, - Enhancing PDDF parsing script support for CPU and PCH temperature reading, - Adding missing methods in PDDF common APIs Why I did it - PSU driver changes are to optimize the code and increase the code coverage - PDDF parser script enhancements to accommodate the CPU and PCH temp reading using hwmon device path - Some of the new APIs were missing from the PDDF common platform classes How I did it Added code changes and verified them on AS7816 adn AS7726 platforms.
…platform feature sonic-net#14361 Why I did it Base on Adding PDDF common framework enhancements. sonic-net#12863 to modify pddf-device.json and platform API. Add code to pass pytest. How I did it Add needed code to sonic_platform and driver. How to verify it sonic-cli cmd: show platform {fan, temperature, firmware status, syseeprom, psustatus} sfputil cmd: show {presence, eeprom, lpmode} Verify function by sonic-mgmt tools: Test file path: /tests/platform_tests/api/ Test items: test_chassis.py, test_component.py, test_fan_drawer.py, test_psu.py, test_thermal.py, test_sfp.py
Why I did it
How I did it
Added code changes and verified them on AS7816 adn AS7726 platforms.
How to verify it
AS7816
AS7726
Which release branch to backport (provide reason below if selected)
Description for the changelog
Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)