sonic-buildimage/platform/mellanox/mlnx-platform-api/sonic_platform
Kebo Liu 0a19cb4de5
[Mellanox] Refactor platform API to remove dependency on database (#5468)
**- Why I did it**
- Platform API implementation using sonic-cfggen to get platform name and SKU name, which will fail when the database is not available.
- Chassis name is not correctly assigned, it shall be assigned with EEPROM TLV "Product Name", instead of SKU name  
- Chassis model is not implemented, it shall be assigned with EEPROM TLV "Part Number"

**- How I did it**

1. Chassis

> - Get platform name from /host/machine.conf
> - Remove get SKU name with sonic-cfggen
> - Get Chassis name and model from EEPROM TLV "Product Name" and "Part Number" 
> - Add function to return model

2. EEPROM

> - Add function to return product name and part number

3. Platform

> - Init EEPROM on the host side, so also can get the Chassis name model from EEPROM on the host side.
2020-09-26 11:20:43 -07:00
..
__init__.py Add thermal control support for SONiC (#3949) 2020-03-09 10:41:10 -07:00
chassis.py [Mellanox] Refactor platform API to remove dependency on database (#5468) 2020-09-26 11:20:43 -07:00
component.py [Mellanox] Add ONIE and SSD platform components. (#4758) 2020-06-15 14:25:49 +03:00
device_data.py [Mellanox] Enhancement for fan led management (#4437) 2020-05-13 10:01:32 -07:00
eeprom.py [Mellanox] Refactor platform API to remove dependency on database (#5468) 2020-09-26 11:20:43 -07:00
fan_drawer.py [Mellanox] Enhancement for fan led management (#4437) 2020-05-13 10:01:32 -07:00
fan.py [Mellanox] Change fan tolerance to 50% (#5018) 2020-07-23 11:18:26 -07:00
led.py [Mellanox] Add support for set/get system led status (#4829) 2020-07-13 10:22:39 -07:00
platform.py [Mellanox] Refactor platform API to remove dependency on database (#5468) 2020-09-26 11:20:43 -07:00
psu.py [Python] Migrate applications/scripts to import sonic-py-common package (#5043) 2020-08-03 11:43:12 -07:00
sfp_event.py [Python] Migrate applications/scripts to import sonic-py-common package (#5043) 2020-08-03 11:43:12 -07:00
sfp.py [Mellanox] Refactor SFP related platform API and plugins with new SDK API (#5326) 2020-09-11 13:23:23 -07:00
thermal_actions.py [Mellanox] Never disable kernel thermal algorithm at real-time (#4638) 2020-05-26 10:46:29 -07:00
thermal_conditions.py [Mellanox] Adjust dynamic minimum fan speed algorithm (#4476) 2020-04-27 20:52:57 -07:00
thermal_infos.py [Mellanox] thermal control enhancement for dynamic minimum fan speed and PSU fan speed policy (#4403) 2020-04-21 08:09:53 -07:00
thermal_manager.py [Mellanox] thermal control enhancement for dynamic minimum fan speed and PSU fan speed policy (#4403) 2020-04-21 08:09:53 -07:00
thermal.py [Python] Migrate applications/scripts to import sonic-py-common package (#5043) 2020-08-03 11:43:12 -07:00
watchdog.py [Mellanox] Implement new fan platform API (#2747) 2019-04-21 14:34:28 -07:00