sonic-buildimage/platform/mellanox/mlnx-platform-api/sonic_platform
shlomibitton 6d38654034
[Mellanox] PSU led platform API fixes (#6214)
- Why I did it
Fix setting PSU led to 'green' or 'red' states.
Fix return False if unsupported color request.
Remove 'off' option for PSU led API since it is not supported in Mellanox.

- How I did it
Fix import missing information.
Return 'False' when unsupported led color is requested, preventing an exception.

- How to verify it
Try to set PSU LED to different status with Mellanox platform device.
Try to set PSU LED color to unsupported color with Mellanox platform device.
2020-12-24 01:11:48 -08:00
..
__init__.py [201911][thermal control] Backport feature from master branch (#4677) 2020-06-08 11:20:43 -07:00
chassis.py [Mellanox] Re-initialize SFP object when detecting a new SFP insertion (#5695) 2020-10-30 09:04:26 -07:00
component.py [Mellanox] Add ONIE and SSD platform components. (#4764) 2020-06-15 13:04:44 +03:00
device_data.py [Mellanox] Update dynamic minimum table for 4700, 3420 and 4600C (#5388) 2020-10-06 06:04:06 +00:00
eeprom.py [Mellanox] Remove eeprom cache file when first time init eeprom object (#6071) 2020-12-04 13:26:23 -08:00
fan.py [Mellanox] [201911] Fix issue: set fan led in certain order causes incorrect physical fan led color (#6019) 2020-11-26 10:09:48 +02:00
led.py [Mellanox] PSU led platform API fixes (#6214) 2020-12-24 01:11:48 -08:00
platform.py [Mellanox] Refactor platform API to remove dependency on database (#5468) 2020-10-06 11:30:16 -07:00
psu.py [Mellanox] PSU led platform API fixes (#6214) 2020-12-24 01:11:48 -08:00
sfp_event.py [201911][Python] Migrate applications/scripts to import sonic-py-common package (#5132) 2020-08-13 16:35:53 -07:00
sfp.py [Mellanox] Fix for QSFP-DD channel status (#5900) 2020-11-14 12:26:28 -08:00
thermal_actions.py [201911][thermal control] Backport feature from master branch (#4677) 2020-06-08 11:20:43 -07:00
thermal_conditions.py [201911][thermal control] Backport feature from master branch (#4677) 2020-06-08 11:20:43 -07:00
thermal_infos.py [201911][thermal control] Backport feature from master branch (#4677) 2020-06-08 11:20:43 -07:00
thermal_manager.py [201911][thermal control] Backport feature from master branch (#4677) 2020-06-08 11:20:43 -07:00
thermal.py Fix issue: there should be 2 cpu core temperature sensors in 3420 (#5402) 2020-10-04 16:58:17 +03:00
utils.py [Mellanox] Support max/min speed for PSU fan (#5682) (#5801) 2020-11-17 18:17:37 +02:00
watchdog.py [Mellanox] Implement new fan platform API (#2747) 2019-04-21 14:34:28 -07:00