sonic-buildimage/platform/mellanox/mlnx-platform-api/sonic_platform
Junchao-Mellanox 7caa70d2d6
[Mellanox] Fixes issue: CLI sfputil does not work based on sonic platform API (#7018)
#### Why I did it

Recently, CLI sfputil replace the old sonic platform utils with sonic platform API. However, sonic platform API does not support SFP low power mode and reset related operation. The PR is to fix it.

The change to replace platform utils with sonic platform API was reverted on 202012, once this PR is merged, we can cherry-pick these two PRs to 202012 together.

#### How I did it

In low power mode and reset related operation, use "docker exec" if the command is running on host side.
2021-03-11 18:54:33 -08:00
..
__init__.py Add thermal control support for SONiC (#3949) 2020-03-09 10:41:10 -07:00
chassis.py [Mellanox] Add support for SN4600 system (#6879) 2021-02-25 09:30:43 +02:00
component.py [Mellanox] Ensure concrete platform API classes call base class initializer (#6854) 2021-02-25 11:06:22 -08:00
device_data.py [Mellanox] Add support for SN4600 system (#6879) 2021-02-25 09:30:43 +02:00
eeprom.py [mellanox][platform api] fix a missing import time module (#6458) 2021-01-15 08:01:11 -08:00
fan_drawer.py [Mellanox] Implement new platform API for SONiC physical entity mib extension (#5645) 2020-11-16 18:56:03 -08:00
fan.py [Mellanox] Add python3 support for Mellanox platform API (#6175) 2020-12-11 10:51:31 -08:00
led.py [Mellanox] PSU led platform API fixes (#6213) 2020-12-22 14:54:40 -08:00
platform.py [Mellanox] Fixes issue: CLI sfputil does not work based on sonic platform API (#7018) 2021-03-11 18:54:33 -08:00
psu.py [Mellanox] Add support for SN4600 system (#6879) 2021-02-25 09:30:43 +02:00
sfp_event.py [Mellanox] [platform API] Fix “local variable 'label_port' referenced before assignment” error (#6419) 2021-01-12 10:43:57 -08:00
sfp.py [Mellanox] Fixes issue: CLI sfputil does not work based on sonic platform API (#7018) 2021-03-11 18:54:33 -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-07 11:21:44 +02: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] Ensure concrete platform API classes call base class initializer (#6854) 2021-02-25 11:06:22 -08:00
utils.py [Mellanox] Fixes issue: CLI sfputil does not work based on sonic platform API (#7018) 2021-03-11 18:54:33 -08:00
watchdog.py [Mellanox] Ensure concrete platform API classes call base class initializer (#6854) 2021-02-25 11:06:22 -08:00