[DellEMC]: Platform modules Python3 compliance and other changes#5609
[DellEMC]: Platform modules Python3 compliance and other changes#5609jleveque merged 3 commits intosonic-net:masterfrom
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:
|
jleveque
left a comment
There was a problem hiding this comment.
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)