sonic-buildimage/platform/mellanox/mlnx-platform-api/sonic_platform
Stephen Sun 90ddad48d1 [mellanox ]improve the method the type of sfp module is detected (#3846)
Fix the issue when an SFP module is plugged into a QSFP port via an adapter.

- How I did it
Originally the type of an SFP module is determined according to the SKU dictionary. However, it's possible that as SFP module is plugged into a QSFP port via an adapter. In this case, the EEPROM content will be parsed in the wrong format.
To address that we fetch the identifier value of an xSFP module and then get the type by parsing it.
2019-12-07 11:28:49 -08:00
..
__init__.py [Mellanox] optimize new platform api (#3289) 2019-08-28 11:59:37 -07:00
chassis.py [Mellanox]support led for fan/psu and fan's direction (#3795) 2019-12-04 11:40:42 -08:00
component.py [Mellanox]Resolve chassis broken due to inconsistent with latest sonic_platform_common (#3569) 2019-10-09 11:07:30 -07:00
eeprom.py [Mellanox]New platform api -- chassis part (#3082) 2019-07-04 14:29:58 +03:00
fan.py [Mellanox]support led for fan/psu and fan's direction (#3795) 2019-12-04 11:40:42 -08:00
platform.py [Mellanox]Resolve chassis broken due to inconsistent with latest sonic_platform_common (#3569) 2019-10-09 11:07:30 -07:00
psu.py [Mellanox]support led for fan/psu and fan's direction (#3795) 2019-12-04 11:40:42 -08:00
sfp_event.py [sonic_platform] Correct the wrong log identifiers (#3596) 2019-10-15 11:29:45 -07:00
sfp.py [mellanox ]improve the method the type of sfp module is detected (#3846) 2019-12-07 11:28:49 -08:00
thermal.py [sonic_platform] Correct the wrong log identifiers (#3596) 2019-10-15 11:29:45 -07:00
watchdog.py [Mellanox] Implement new fan platform API (#2747) 2019-04-21 14:34:28 -07:00