-
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
[DellEMC]: Platform modules Python3 compliance and other changes #5609
Conversation
This pull request fixes 19 alerts when merging 86ee138 into bba5df0 - view on LGTM.com fixed alerts:
|
@ArunSaravananBalachandran: Do you intend to build a Python 3 version of your sonic_platform package in a separate PR? |
Have added a new commit to build and install Python3 version of sonic_platform package. |
This pull request fixes 19 alerts when merging 2045a5d into 812e1a3 - view on LGTM.com fixed alerts:
|
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.
FYI, I recently removed the get_serial_number()
method from chassis_base.py here, since it is redundant with the get_serial()
method inherited from DeviceBase. Please go ahead and remove the corresponding method definitions from your chassis.py files.
Thanks for the note. Updated the PR with the suggested changes. |
This pull request fixes 21 alerts when merging 1390e0f into 4c8b1c4 - view on LGTM.com fixed alerts:
|
Retest this please |
Check builds are not running. Will close and reopen PR in an attempt to fix ... |
Close and reopen PR appears to have worked :) |
Retest broadcom please |
… in Chassis class (#5649) The `get_serial_number()` method in the ChassisBase and ModuleBase classes was redundant, as the `get_serial()` method is inherited from the DeviceBase class. This method was removed from the base classes in sonic-platform-common and the submodule was updated in #5625. This PR aligns the existing vendor platform API implementations to remove the `get_serial_number()` methods and ensure the `get_serial()` methods are implemented, if they weren't previously. Note that this PR does not modify the Dell platform API implementations, as this will be handled as part of #5609
…ic-net#5609) - Make DellEMC platform modules Python3 compliant. - Change return type of PSU Platform APIs in DellEMC Z9264, S5232 and Thermal Platform APIs in S5232 to 'float'. - Remove multiple copies of pcisysfs.py. - PEP8 style changes for utility scripts. - Build and install Python3 version of sonic_platform package. - Fix minor Platform API issues.
… in Chassis class (sonic-net#5649) The `get_serial_number()` method in the ChassisBase and ModuleBase classes was redundant, as the `get_serial()` method is inherited from the DeviceBase class. This method was removed from the base classes in sonic-platform-common and the submodule was updated in sonic-net#5625. This PR aligns the existing vendor platform API implementations to remove the `get_serial_number()` methods and ensure the `get_serial()` methods are implemented, if they weren't previously. Note that this PR does not modify the Dell platform API implementations, as this will be handled as part of sonic-net#5609
- Why I did it
- How I did it
- How to verify it
UT Logs:
S6100_py2to3_logs.txt
S6000_py2to3_logs.txt
S5232_py2to3_logs.txt
Z9264_py2to3_logs.txt
- Which release branch to backport (provide reason below if selected)
- Description for the changelog
[DellEMC]: Platform modules Python3 compliance, Platform API fixes and other changes.
- A picture of a cute animal (not mandatory but encouraged)