sonic-buildimage/platform/mellanox/mlnx-platform-api/sonic_platform
Stephen Sun 346b916c0e
[Mellanox] Enhance Python3 support for platform API (#7410) (#7910)
- Why I did it
This is to back-port Azure 7410 to 202012 branch.
Enhance the Python3 support for platform API. Originally, some platform APIs call SDK API which didn't support Python 3. Now the Python 3 APIs have been supported in SDK 4.4.3XXX, Python3 is completely supported by platform API

- How I did it
Start all platform daemons from python3
1. Remove #/usr/bin/env python at the beginning of each platform API file as the platform API won't be started as daemons but be imported from other daemons.
2. Adjust SDK API calls accordingly

Signed-off-by: Stephen Sun <stephens@nvidia.com>
2021-06-18 09:46:41 -07:00
..
__init__.py Add thermal control support for SONiC (#3949) 2020-03-09 10:41:10 -07:00
chassis.py [Mellanox] Enhance Python3 support for platform API (#7410) (#7910) 2021-06-18 09:46:41 -07:00
component.py [Mellanox] Enhance Python3 support for platform API (#7410) (#7910) 2021-06-18 09:46:41 -07:00
device_data.py [Mellanox] Adopt single way to get fan direction for all ASIC types (#7386) 2021-05-05 09:34:25 -07:00
eeprom.py [mellanox][platform api] fix a missing import time module (#6458) 2021-01-15 08:20:57 -08:00
fan_drawer.py [Mellanox] Enhance Python3 support for platform API (#7410) (#7910) 2021-06-18 09:46:41 -07:00
fan.py [Mellanox] Enhance Python3 support for platform API (#7410) (#7910) 2021-06-18 09:46:41 -07:00
led.py Fix issue: should not initialize led color in __init__ file as platform API will be called by multiple daemons (#7114) 2021-03-26 17:40:42 +00:00
platform.py [Mellanox] Enhance Python3 support for platform API (#7410) (#7910) 2021-06-18 09:46:41 -07:00
psu.py [Mellanox] Enhance Python3 support for platform API (#7410) (#7910) 2021-06-18 09:46:41 -07:00
sfp_event.py [Mellanox] Enhance Python3 support for platform API (#7410) (#7910) 2021-06-18 09:46:41 -07:00
sfp.py [Mellanox] Enhance Python3 support for platform API (#7410) (#7910) 2021-06-18 09:46:41 -07:00
thermal_actions.py [Mellanox] Never disable kernel thermal algorithm at real-time (#4638) 2020-05-26 10:46:29 -07:00
thermal_conditions.py Fix dynamic minimum fan table issue caused by python3 (#6690) 2021-02-16 15:28:43 -08:00
thermal_infos.py [Mellanox] clear fan from chassis._fan_list (#7682) 2021-05-31 04:32:40 +00:00
thermal_manager.py [mellaonox]: No need enable thermal zones in thermal_manager.deinitialize since they are enabled by default (#7556) 2021-05-24 22:07:14 +00:00
thermal.py [Mellanox] Enhance Python3 support for platform API (#7410) (#7910) 2021-06-18 09:46:41 -07:00
utils.py [Mellanox] Support max/min speed for PSU fan (#5682) 2020-10-26 12:47:12 -07:00
watchdog.py [Mellanox] Enhance Python3 support for platform API (#7410) (#7910) 2021-06-18 09:46:41 -07:00