sonic-buildimage/device
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
..
accton [Python] Migrate applications/scripts to import sonic-py-common package (#5043) 2020-08-03 11:43:12 -07:00
alphanetworks [devices]: Add snh60b0-640f device (Tomhawk2) & snh60a0-320fv2 device 32x100G (Tomhawk) (#2129) 2018-10-10 18:33:51 -07:00
arista Skip thermalctld for arista platforms (#4893) 2020-07-12 18:08:51 +00:00
barefoot Added skip_fancontrol, skip_thermalctld for Newport (#5027) 2020-07-24 19:25:02 -07:00
broadcom/x86_64-bcm_xlr-r0 [brcm-th-svk]: Fix errors in BCM956960K switch (#4390) 2020-04-10 09:25:52 -07:00
celestica [Python] Migrate applications/scripts to import sonic-py-common package (#5043) 2020-08-03 11:43:12 -07:00
centec [devices]: Centec x86 goldengate platforms and devices update (#4248) 2020-04-17 00:38:48 -07:00
cig [device] set the port state to default down for device cig and ingrasys s9130 and s9230 (#4618) 2020-05-21 02:14:51 -07:00
dell [DellEMC] S52xx fix SFP reset in 1.0 API (#4858) 2020-06-27 12:02:53 -07:00
delta [platform/delta]: Add a new supported platform, Delta-agc032 (#4602) 2020-05-27 09:33:02 -07:00
facebook/x86_64-facebook_wedge100-r0 [updategraph] add support to use preset config instead of default minigraph (#2050) 2018-09-21 22:01:10 -07:00
ingrasys [device] set the port state to default down for device cig and ingrasys s9130 and s9230 (#4618) 2020-05-21 02:14:51 -07:00
inventec [Inventec][D6356] Update Inventec 6356 (#3839) 2020-02-10 12:26:48 -08:00
juniper [Python] Migrate applications/scripts to import sonic-py-common package (#5043) 2020-08-03 11:43:12 -07:00
marvell [marvell] skip thermal control daemon for marvell device (#4703) 2020-06-09 09:20:51 -07:00
mellanox [Python] Migrate applications/scripts to import sonic-py-common package (#5043) 2020-08-03 11:43:12 -07:00
mitac/x86_64-mitac_ly1200_b32h0_c3-r0 [updategraph] add support to use preset config instead of default minigraph (#2050) 2018-09-21 22:01:10 -07:00
pegatron/x86_64-pegatron_porsche-r0 [fix]: various minor fixes (#2246) 2018-11-10 13:39:30 -08:00
quanta [Quanta/platform] Update IX1B to support Stretch (#2358) 2019-08-15 02:25:43 -07:00
virtual/x86_64-kvm_x86_64-r0 [kvm]: disable pmon daemons on kvm vs platform (#4461) 2020-04-22 11:03:16 -07:00
wnc/x86_64-wnc_osw1800-r0 [barefoot][build] Fixed BFN platform build failure (#3766) 2019-11-19 22:14:29 -08:00