sonic-buildimage/platform/mellanox/mlnx-platform-api/sonic_platform
Kebo Liu 5ec164b694 [Mellanox] [platform API] Fix “local variable 'label_port' referenced before assignment” error (#6419)
In rare case can see that xcvrd failed due to "UnboundLocalError: local variable 'label_port' referenced before assignment"

Init "label_port" as None at the beginning of the function, to avoid the case that "label_port" not assigned.
2021-02-18 18:10:54 -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 [Mellanox] [platform API] Fix “local variable 'label_port' referenced before assignment” error (#6419) 2021-02-18 18:10:54 -08: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