sonic-buildimage/platform/mellanox/mlnx-platform-api/sonic_platform
Junchao-Mellanox 18cf719d6a
[Mellanox] Use sysfs for sfp reset/LPM/presence (#14130)
- Why I did it
The current implementation of SFP reset, LPM, present relies on SDK API. This PR moves the implementation to SDK sysfs. By this PR, it gains following benefit:
1. SDK sysfs provides better performance.
2. Host side and container side share the same code.
3. Code is much cleaner.

- How I did it
Use SDK sysfs to implement SFP reset, LPM, present.

- How to verify it
1. Manual test.
2. Unit test.
2023-05-24 17:24:34 +03:00
..
__init__.py [Mellanox] Add NVIDIA Copyright header to "mellanox" files (#8799) 2021-10-17 19:03:02 +03:00
chassis.py [Mellanox] Support UID LED in platform API (#11592) 2023-05-16 08:24:39 +03:00
component.py Remove \n from the end of fs_path in ONIEUpdater (#12465) 2022-10-23 09:59:20 +03:00
cpu_thermal_control.py [Mellanox] Add CPU thermal control for Nvidia platforms (#10202) 2022-03-21 09:54:52 -07:00
device_data.py [Mellanox] get LED capability from capability file (#14584) 2023-05-10 20:53:50 +03:00
eeprom.py [Mellanox] Check system eeprom existence in a retry manner (#13884) 2023-02-21 19:40:16 +02:00
fan_drawer.py [Mellanox] add PSU fan direction support (#14508) 2023-05-15 21:34:54 +03:00
fan.py [Mellanox] add PSU fan direction support (#14508) 2023-05-15 21:34:54 +03:00
led.py [Mellanox] Support UID LED in platform API (#11592) 2023-05-16 08:24:39 +03:00
module.py [Mellanox] Remove TODO comments which are no longer needed (#13023) 2022-12-14 09:57:48 +02:00
pcie.py [Mellanox] Add NVIDIA Copyright header to "mellanox" files (#8799) 2021-10-17 19:03:02 +03:00
platform.py [Mellanox] Refactor Mellanox platform API to support dynamic port configuration (#8422) 2021-10-25 07:59:06 +03:00
psu.py [Mellanox] Support per PSU slope value for PSU power threshold (#13757) 2023-02-14 08:55:28 +02:00
sfp_event.py [Mellanox] Fix issue: cannot find label port for logical port when logical port number is larger than 64 (#13710) 2023-02-21 08:14:29 +02:00
sfp.py [Mellanox] Use sysfs for sfp reset/LPM/presence (#14130) 2023-05-24 17:24:34 +03:00
thermal_actions.py [Mellanox] Update NVIDIA License header for files changed since 1.1.2022 (#10289) 2022-03-23 13:19:25 +02:00
thermal_conditions.py [Mellanox] Update NVIDIA License header for files changed since 1.1.2022 (#10289) 2022-03-23 13:19:25 +02:00
thermal_infos.py [Mellanox] Fan speed should not be 100% when PSU is powered off (#9258) 2021-11-24 14:56:00 +02:00
thermal_manager.py [Mellanox] Add CPU thermal control for Nvidia platforms (#10202) 2022-03-21 09:54:52 -07:00
thermal.py [Mellanox] Add new thermal sensors for SN5600 (#12671) 2022-11-14 11:10:33 -08:00
utils.py [Mellanox] Check system eeprom existence in a retry manner (#13884) 2023-02-21 19:40:16 +02:00
vpd_parser.py [Mellanox] Auto correct PSU voltage threshold (WA) (#10394) 2022-04-14 08:14:40 +03:00
watchdog.py [Mellanox] Add NVIDIA Copyright header to "mellanox" files (#8799) 2021-10-17 19:03:02 +03:00