This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/device/mellanox/x86_64-mlnx_msn2700-r0
Joe LeVeque 3b89e5d467
[Python] Migrate applications/scripts to import sonic-py-common package (#5043)
As part of consolidating all common Python-based functionality into the new sonic-py-common package, this pull request:
1. Redirects all Python applications/scripts in sonic-buildimage repo which previously imported sonic_device_util or sonic_daemon_base to instead import sonic-py-common, which was added in https://github.com/Azure/sonic-buildimage/pull/5003
2. Replaces all calls to `sonic_device_util.get_platform_info()` to instead call `sonic_py_common.get_platform()` and removes any calls to `sonic_device_util.get_machine_info()` which are no longer necessary (i.e., those which were only used to pass the results to `sonic_device_util.get_platform_info()`.
3. Removes unused imports to the now-deprecated sonic-daemon-base package and sonic_device_util.py module

This is the next step toward resolving https://github.com/Azure/sonic-buildimage/issues/4999

Also reverted my previous change in which device_info.get_platform() would first try obtaining the platform ID string from Config DB and fall back to gathering it from machine.conf upon failure because this function is called by sonic-cfggen before the data is in the DB, in which case, the db_connect() call will hang indefinitely, which was not the behavior I expected. As of now, the function will always reference machine.conf.
2020-08-03 11:43:12 -07:00
..
ACS-MSN2700 [Mellanox] Update the buffer setting (#4989) 2020-07-30 14:22:08 +03:00
Mellanox-SN2700-C28D8 [Mellanox] Change port index in port_config.ini to 1-based (#4781) 2020-06-23 17:21:36 -07:00
Mellanox-SN2700-D48C8 [Mellanox] Change port index in port_config.ini to 1-based (#4781) 2020-06-23 17:21:36 -07:00
plugins [Python] Migrate applications/scripts to import sonic-py-common package (#5043) 2020-08-03 11:43:12 -07:00
default_sku [updategraph] add support to use preset config instead of default minigraph (#2050) 2018-09-21 22:01:10 -07:00
installer.conf [installer]: Move platform-specific files under new device/ tree (#450) 2017-03-29 04:17:49 -07:00
Mellanox-SN2700 [Mellanox]: Add Mellanox-SN2700 symlink (#1169) 2017-11-20 14:23:13 -08:00
platform_components.json [mellanox] Add fwutil platform components. (#3999) 2020-01-24 11:26:17 -08:00
platform_reboot [Mellanox] platform_reboot - sync & umount fs before power cycle (#3430) 2019-09-17 09:38:30 -07:00
platform_wait [mellanox]: Enhance pmon synchronization with hw-mgmt platform counters. (#3885) 2019-12-17 10:58:55 -08:00
pmon_daemon_control.json [PMON] Extend pmon daemon start control to lm-sensors and fancontrol (#4447) 2020-04-21 08:00:48 -07:00
sensors.conf [mellanox]: Upgraded hw-management V.2.0.0160. (#2643) 2019-03-06 18:51:46 -08:00
system_health_monitoring_config.json [Mellanox] Add system health configuration file for Mellanox platforms (#4834) 2020-07-13 10:20:22 -07:00
thermal_policy.json [Mellanox] Never disable kernel thermal algorithm at real-time (#4638) 2020-05-26 10:46:29 -07:00