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/platform/vs/docker-sonic-vs
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
..
50-default.conf [virtualswitch]: build docker-sonic-vs docker based on SAI virtual switch (#1065) 2017-10-23 22:01:42 -07:00
chassis_db.py [vs]: support virtual-chassis setup in vs docker (#4709) 2020-07-29 14:20:31 -07:00
database_config.json [vs]: support virtual-chassis setup in vs docker (#4709) 2020-07-29 14:20:31 -07:00
default_chassis_cfg.json [vs]: support virtual-chassis setup in vs docker (#4709) 2020-07-29 14:20:31 -07:00
Dockerfile.j2 [Python] Migrate applications/scripts to import sonic-py-common package (#5043) 2020-08-03 11:43:12 -07:00
hostname.j2 [vs]: support virtual-chassis setup in vs docker (#4709) 2020-07-29 14:20:31 -07:00
orchagent.sh [orchagent] Use mac address from config_db instead of from eth0 (#4166) 2020-02-20 19:16:14 -08:00
sonic-dev.gpg.key [vs]: add vlan configuration support in virtual switch (#1200) 2017-11-30 14:59:25 -08:00
start.sh [vs]: support virtual-chassis setup in vs docker (#4709) 2020-07-29 14:20:31 -07:00
supervisord.conf [vs]: support virtual-chassis setup in vs docker (#4709) 2020-07-29 14:20:31 -07:00