sonic-buildimage/platform/mellanox
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
..
docker-saiserver-mlnx [docker-saiserver]: upgrade docker saiserver to stretch for brcm/mlnx (#2983) 2019-06-08 16:27:19 -07:00
docker-syncd-mlnx [dockers] update mellanox syncd and pmon to buster (#4818) 2020-07-18 03:46:15 -07:00
docker-syncd-mlnx-rpc [Mellanox]Take advantage of sdk variable to customize the location where sdk_socket exists. (#4223) 2020-03-09 12:36:56 -07:00
hw-management [Mellanox] Update hw-mgmt package to V.7.0010.1000 for master (#4687) 2020-06-16 21:01:41 +03:00
issu-version [mellanox|ffb] ISSU version check (#2437) 2019-01-17 14:41:32 -08:00
mft [Mellanox] Add MFT DKMS build support. (#5088) 2020-08-03 13:52:40 +03:00
mlnx-platform-api [Python] Migrate applications/scripts to import sonic-py-common package (#5043) 2020-08-03 11:43:12 -07:00
mlnx-sai [mellanox]: Update SAI to 1.16.5 (#4873) 2020-07-12 18:08:51 +00:00
sdk-src [dockers] update mellanox syncd and pmon to buster (#4818) 2020-07-18 03:46:15 -07:00
.gitignore [mellanox] build SDK driver from open source (#3580) 2019-10-08 07:57:12 -07:00
docker-ptf-mlnx.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
docker-ptf-mlnx.mk [build]: add docker-ptf-* as stretch docker targets (#4516) 2020-05-01 11:20:33 -07:00
docker-saiserver-mlnx.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
docker-saiserver-mlnx.mk [build]: add docker-saiserver-* as stretch docker targets 2020-05-06 10:23:38 +00:00
docker-syncd-mlnx-rpc.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
docker-syncd-mlnx-rpc.mk [dockers] update mellanox syncd and pmon to buster (#4818) 2020-07-18 03:46:15 -07:00
docker-syncd-mlnx.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
docker-syncd-mlnx.mk [dockers] update mellanox syncd and pmon to buster (#4818) 2020-07-18 03:46:15 -07:00
fw.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
fw.mk [Mellanox] Update SDK to 4.4.0952, FW to *.2007.1280 (#4842) 2020-06-26 13:44:21 +03:00
hw-management.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
hw-management.mk [Mellanox] Update hw-mgmt package to V.7.0010.1000 for master (#4687) 2020-06-16 21:01:41 +03:00
issu-version.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
issu-version.mk [mellanox]: Add SSD FW update tool (#4351) 2020-04-13 18:13:19 +03:00
libsaithrift-dev.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
libsaithrift-dev.mk [sai and sairedis] advance sairedis sub-module and upgrade to matching Broadcom SAI build (#2488) 2019-02-16 10:14:18 -08:00
mft.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
mft.mk [Mellanox] Add MFT DKMS build support. (#5088) 2020-08-03 13:52:40 +03:00
mlnx-ffb.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
mlnx-ffb.mk [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
mlnx-ffb.sh [mellanox] Fix in mlnx-ffb.sh (#2676) 2019-03-18 08:53:35 -07:00
mlnx-fw-upgrade.j2 [Mellanox] Add sdk 4.4.0542 (#4227) 2020-03-09 17:58:49 +02:00
mlnx-onie-fw-update.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
mlnx-onie-fw-update.mk [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
mlnx-onie-fw-update.sh [Mellanox] Add ONIE and SSD platform components. (#4758) 2020-06-15 14:25:49 +03:00
mlnx-platform-api.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
mlnx-platform-api.mk Introduce sonic-py-common package (#5003) 2020-07-26 23:15:41 -07:00
mlnx-sai.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
mlnx-sai.mk [build]: wait for conflicts package to be uninstalled (#5039) 2020-07-27 10:46:20 -07:00
mlnx-ssd-fw-update.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
mlnx-ssd-fw-update.mk [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
mlnx-ssd-fw-update.sh [Mellanox] Add ONIE and SSD platform components. (#4758) 2020-06-15 14:25:49 +03:00
one-image.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
one-image.mk [mellanox]: Add SSD FW update tool (#4351) 2020-04-13 18:13:19 +03:00
platform.conf one image implementation (#215) 2017-01-29 11:33:33 -08:00
rules.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
rules.mk [build]: wait for conflicts package to be uninstalled (#5039) 2020-07-27 10:46:20 -07:00
sdk.dep [mellanox]: Add DPKG local caching support. (#4441) 2020-04-20 19:02:46 -07:00
sdk.mk [dockers] update mellanox syncd and pmon to buster (#4818) 2020-07-18 03:46:15 -07:00