sonic-buildimage/platform/mellanox/mlnx-platform-api/sonic_platform
Stephen Sun a554ddc91d [Mellanox] Adopt single way to get fan direction for all ASIC types (#7386)
#### Why I did it
Adopt a single way to get fan direction for all ASIC types.
It depends on hw-mgmt V.7.0010.2000.2303. Depends on https://github.com/Azure/sonic-buildimage/pull/7419

#### How I did it
Originally, the get_direction was implemented by fetching and parsing `/var/run/hw-management/system/fan_dir` on the Spectrum-2 and the Spectrum-3 systems. It isn't supported on the Spectrum system.
Now, it is implemented by fetching `/var/run/hw-management/thermal/fanX_dir` for all the platforms.

Signed-off-by: Stephen Sun <stephens@nvidia.com>
2021-05-05 09:34:25 -07:00
..
__init__.py Add thermal control support for SONiC (#3949) 2020-03-09 10:41:10 -07:00
chassis.py Fix issue: exception occurred during chassis object being destroyed (#7446) 2021-04-29 10:10:25 -07:00
component.py [Mellanox] Ensure concrete platform API classes call base class initializer (#6854) 2021-03-04 21:23:05 +00: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] Adopt single way to get fan direction for all ASIC types (#7386) 2021-05-05 09:34:25 -07:00
fan.py [Mellanox] Adopt single way to get fan direction for all ASIC types (#7386) 2021-05-05 09:34:25 -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] Initialize PSU API on both host and docker side (#7075) 2021-04-07 20:36:02 +03:00
psu.py [Mellanox] Add support for SN4600 system (#6879) 2021-03-04 21:23:05 +00:00
sfp_event.py [Mellanox] [platform API] Fix “local variable 'label_port' referenced before assignment” error (#6419) 2021-01-15 08:16:06 -08:00
sfp.py [sonic-platform-common] Update submodule (#6742) 2021-02-16 15:29:28 -08: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] thermal control enhancement for dynamic minimum fan speed and PSU fan speed policy (#4403) 2020-04-21 08:09:53 -07:00
thermal_manager.py [Mellanox] thermal control enhancement for dynamic minimum fan speed and PSU fan speed policy (#4403) 2020-04-21 08:09:53 -07:00
thermal.py [Mellanox] Add support for SN4600 system (#6879) 2021-03-04 21:23:05 +00:00
utils.py [Mellanox] Support max/min speed for PSU fan (#5682) 2020-10-26 12:47:12 -07:00
watchdog.py [Mellanox] Ensure concrete platform API classes call base class initializer (#6854) 2021-03-04 21:23:05 +00:00