sonic-buildimage/platform/mellanox/mlnx-platform-api
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
..
sonic_platform [Mellanox] PSU led platform API fixes (#6214) 2020-12-24 01:11:48 -08:00
tests [201911][thermal control] Backport feature from master branch (#4677) 2020-06-08 11:20:43 -07:00
.gitignore [201911][thermal control] Backport feature from master branch (#4677) 2020-06-08 11:20:43 -07:00
pytest.ini [201911][thermal control] Backport feature from master branch (#4677) 2020-06-08 11:20:43 -07:00
setup.cfg [201911][thermal control] Backport feature from master branch (#4677) 2020-06-08 11:20:43 -07:00
setup.py [201911][thermal control] Backport feature from master branch (#4677) 2020-06-08 11:20:43 -07:00