sonic-buildimage/device/celestica/x86_64-cel_e1031-r0/sonic_platform
Joe LeVeque 309a098b21
[201911][Python] Migrate applications/scripts to import sonic-py-common package (#5132)
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 to the 201911 branch in https://github.com/Azure/sonic-buildimage/pull/5063
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 a step toward resolving https://github.com/Azure/sonic-buildimage/issues/4999
2020-08-13 16:35:53 -07:00
..
__init__.py [platform/cel]: Add new API installer to pmon and base image (#3379) 2019-08-28 11:19:34 -07:00
chassis.py [device/celestica]: Fix xcvrd error (#3979) (#4345) 2020-04-01 01:24:55 -07:00
component.py [platform/cel]: Remove afulnx_64 (#3900) 2020-02-13 16:02:07 -08:00
eeprom.py [device/celestica]: Update Component APIs (#3510) 2019-09-27 12:44:16 -07:00
fan.py [device/celestica]: Update new platform APIs (#3415) 2019-09-06 14:58:12 -07:00
platform.py [platform-celestica] - Implement FAN APIs based on the new platform API (#2739) 2019-05-09 00:57:17 -07:00
psu.py [device/celestica]: Update new platform APIs (#3415) 2019-09-06 14:58:12 -07:00
sfp.py [201911][Python] Migrate applications/scripts to import sonic-py-common package (#5132) 2020-08-13 16:35:53 -07:00
thermal.py [platform/cel]: Add new API installer to pmon and base image (#3379) 2019-08-28 11:19:34 -07:00
watchdog.py [device/celestica] Implement Watchdog APIs based on the new platform API (#3123) 2019-07-08 11:26:27 -07:00