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/accton
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
..
x86_64-accton_as4630_54pe-r0 [device/accton] as4630_54pe add custom_led.bin file (#4534) 2020-05-20 12:51:51 -07:00
x86_64-accton_as5712_54x-r0 [device]Add check exception case when read port present fail (#4107) 2020-02-07 07:53:55 -08:00
x86_64-accton_as5812_54t-r0 [device]Add check exception case when read port present fail (#4107) 2020-02-07 07:53:55 -08:00
x86_64-accton_as5812_54x-r0 [device]Add check exception case when read port present fail (#4107) 2020-02-07 07:53:55 -08:00
x86_64-accton_as5835_54t-r0 [device][accton]: Update for AS5835-54T (#3272) 2020-05-21 02:35:48 -07:00
x86_64-accton_as5835_54x-r0 [device]Add check exception case when read port present fail (#4107) 2020-02-07 07:53:55 -08:00
x86_64-accton_as6712_32x-r0 Correct port mapping. (#4433) 2020-04-16 14:43:40 -07:00
x86_64-accton_as7116_54x-r0 [Python] Migrate applications/scripts to import sonic-py-common package (#5043) 2020-08-03 11:43:12 -07:00
x86_64-accton_as7212_54x-r0 [device]Add check exception case when read port present fail (#4107) 2020-02-07 07:53:55 -08:00
x86_64-accton_as7312_54x-r0 [accton]: Update AS7312-54X, AS7312-54XS, AS7315-27XB config.bcm file (#4702) 2020-06-09 09:56:53 -07:00
x86_64-accton_as7312_54xs-r0 [accton]: Update AS7312-54X, AS7312-54XS, AS7315-27XB config.bcm file (#4702) 2020-06-09 09:56:53 -07:00
x86_64-accton_as7315_27xb-r0 [accton]: Update AS7312-54X, AS7312-54XS, AS7315-27XB config.bcm file (#4702) 2020-06-09 09:56:53 -07:00
x86_64-accton_as7326_56x-r0 [device/accton] Remove linkscan_led_fw.bin file on as7326_56x (#4408) 2020-05-21 02:17:54 -07:00
x86_64-accton_as7512_32x-r0 [device]Add check exception case when read port present fail (#4107) 2020-02-07 07:53:55 -08:00
x86_64-accton_as7712_32x-r0 [device]Add check exception case when read port present fail (#4107) 2020-02-07 07:53:55 -08:00
x86_64-accton_as7716_32x-r0 [device]Add check exception case when read port present fail (#4107) 2020-02-07 07:53:55 -08:00
x86_64-accton_as7716_32xb-r0 [device]Add check exception case when read port present fail (#4107) 2020-02-07 07:53:55 -08:00
x86_64-accton_as7726_32x-r0 [device] Modify configuration and add led_proc_init.soc (#4418) 2020-05-01 06:34:54 -07:00
x86_64-accton_as7816_64x-r0 [device/accton]: rename the config.bcm due to that it just allow 1st row of TH2 to be breakout (#4295) 2020-05-21 02:23:39 -07:00
x86_64-accton_as9716_32d-r0 [device/accton] Modify interface name of port_config.ini on AS9716-32D (#4507) 2020-05-20 12:47:55 -07:00
x86_64-accton_minipack-r0 [device/accton] Modify as8000 configuration (#4446) 2020-05-01 05:36:04 -07:00