Commit Graph

118 Commits

Author SHA1 Message Date
Joe LeVeque
8011edc307
[platform] Remove references to deprecated get_serial_number() method in Chassis class (#5649)
The `get_serial_number()` method in the ChassisBase and ModuleBase classes was redundant, as the `get_serial()` method is inherited from the DeviceBase class. This method was removed from the base classes in sonic-platform-common and the submodule was updated in https://github.com/Azure/sonic-buildimage/pull/5625.

This PR aligns the existing vendor platform API implementations to remove the `get_serial_number()` methods and ensure the `get_serial()` methods are implemented, if they weren't previously.

Note that this PR does not modify the Dell platform API implementations, as this will be handled as part of https://github.com/Azure/sonic-buildimage/pull/5609
2020-10-17 22:00:14 -07:00
jostar-yang
a92986c605
[as7326-56x]Fix port_eeprom i2c mapping (#5466)
**- Why I did it**
There is error i2c mapping for port 11,12 and port 19, 20. 

**- How I did it**
Fix to correct i2c mapping

Co-authored-by: Jostar Yang <jostar_yang@accton.com.tw>
2020-09-26 11:21:31 -07:00
abdosi
a6a10f05b7
In SAI 3.5 by default we are supporting 256 Group with 64 Memeber each. (#5400)
However in SAI 3.7 default behaviout got changes to 128 Group and 128
    Memeber each.

    This change is to make sure we are using same ECMP Group/Memeber Per
    Group for 3.7 also so that behaviour is consistent.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2020-09-22 11:21:12 -07:00
abdosi
b6efb49817
Update bcm soc property bcm_num_cos from 8 to 10 (#5314)
as needed by SAI 3.7 and above. Without this change
Warmboot fails from 3.5 to 3.7 as Braodcoam Datastructure
gets corrupted after warm-boot.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2020-09-04 07:40:17 -07:00
brandonchuang
8793814d53
[Device] Disabled thermalctld for Accton platforms (#5276)
Disable thermalctld on Accton platforms until support is added as to avoid logs flooding

Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2020-08-31 17:09:19 -07:00
jostar-yang
e87de49ecb
[as9716-32d] Add to support lpmode for sfputil (#5171)
Implement code to set/get lpmode for as9716-32d platform
2020-08-13 11:19:14 -07:00
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
Joe LeVeque
9905d9382d
[devices] Update SFP keys to align with new standard (#4975)
Align SFP key names with new standard defined in https://github.com/Azure/sonic-platform-common/pull/97

- hardwarerev -> hardware_rev
- serialnum -> serial
- manufacturename -> manufacturer
- modelname -> model
- Connector -> connector
2020-07-16 13:03:50 -07:00
chihhan123
23ddfb866e
[accton]: Update AS7312-54X, AS7312-54XS, AS7315-27XB config.bcm file (#4702)
Update AS7312-54X,AS7312-54XS,AS7315-27XB config.bcm file to make sure there is no the following error message.

configuration: format error in /usr/share/sonic/hwsku/th-as7312-48x25G+6x100G.config.bcm on line 110 (ignored)#15
2020-06-09 09:56:53 -07:00
Polly Hsu
5fefee67d7
[device][accton]: Update for AS5835-54T (#3272)
* [device][accton]: Update for AS5835-54T

* [device][accton]: Update for AS5835-54T to delete its config.bcm off-loading to the self-brought up of the Broadcom SAI version, 3.5.2.3 due to SONiC not supported.

* [device][accton]: Add config.bcm for AS5835-54T
* Ran config_checker passed on our config.bcm, however, we off-loaded the needed MV2 SDK config setting to our self-brought up SAI libraries due to the compatibility of config_check among SONiC different branches.
[-] help_cli_enable=1
[-] ifp_inports_support_enable=1
[-] memlist_enable=1
[-] port_flex_enable=1
[-] reglist_enable=1

* [device][accton]: Update config.bcm for AS5835-54T based on the latest config_checker

Co-authored-by: Polly Hsu <pollyhsu2git@gmail.com>
2020-05-21 02:35:48 -07:00
ChiouRung Haung
3f061da48f
[device/accton]: rename the config.bcm due to that it just allow 1st row of TH2 to be breakout (#4295)
- What I did
  1. Rename the config.bcm to th2-as7816-64x25G-48x100G_row1.config.bcm,
     due to that it just allow 1st row of TH2 to be breakout
  2. Add port_flex_enable to support dynamic port breakout.
  3. Remove the loopback port due to it would make syncd terminate.
     => The port_config.ini doesn't include the loopback ports.
        When portsorch start, it would compare the ports in SDK and port_config.ini.
        Portsorch would remove the loopback ports due to the loopback ports didn't been defined in port_config.ini
        But the broadcom SAI doesn't support remove port for th2.
        So it would return fail and syncd would terminate.

- How I did it

- How to verify it
  Run with the new SONiC image and syncd would not terminate

Signed-off-by: chiourung_huang <chiourung_huang@edge-core.com>
2020-05-21 02:23:39 -07:00
dereksun01
d4b89b1909
[device/accton] Remove linkscan_led_fw.bin file on as7326_56x (#4408) 2020-05-21 02:17:54 -07:00
dereksun01
19b224be14
[device/accton] as4630_54pe add custom_led.bin file (#4534) 2020-05-20 12:51:51 -07:00
chihhan123
9b48f5746c
[device/accton] Modify interface name of port_config.ini on AS9716-32D (#4507) 2020-05-20 12:47:55 -07:00
dereksun01
6706e5ab12
[device/accton] Add pre-emphasis parameters for as4630_54pe (#4604) 2020-05-18 09:55:30 -07:00
dereksun01
34cad97f30
[device] Modify configuration and add led_proc_init.soc (#4418)
- Modify configuration file path in sai.profile.
- Modify configuration file for as7726_32x.
- Add led_proc_init.soc and custom_led.bin
2020-05-01 06:34:54 -07:00
dereksun01
3f1c3dda99
[device/accton] Modify as8000 configuration (#4446) 2020-05-01 05:36:04 -07:00
dereksun01
506e9546c9
[device] Upgrade as4630_54pe for new platform (#4268)
- Add port auto-negotiation attribute.
- Add CPLD command to disable mode.
2020-05-01 05:27:32 -07:00
jostar-yang
9129378097
[accton/as9716-32d] add support get_transceiver_change_event (#4105)
Co-authored-by: Jostar Yang <jostar_yang@accton.com.tw>
2020-04-22 22:54:48 -07:00
chihhan123
c5e98443ba
[device/acction] Support AS9716-32D(R0BA) (#4449)
- add led_proc_init.soc
- update config.bcm
2020-04-22 11:47:04 -07:00
Sheng-Chien, Cheng
6df0e4be0a
Correct port mapping. (#4433) 2020-04-16 14:43:40 -07:00
Joe LeVeque
21aff7fdeb
[device/accton] Fix Python error for as7116-54x (#4391)
Fix syntax error
2020-04-08 23:03:47 -07:00
jostar-yang
c9059992a0
[AS9716-32D]:Support 0x57 and 0x56 eeprom (#4103)
* [AS9716-32D]:Support 0x57 and 0x56 eeprom

* Add checking sysfs use 0x57 or 0x56

Co-authored-by: Jostar Yang <jostar_yang@accton.com.tw>
2020-03-21 14:26:55 -07:00
jostar-yang
a6efbaed97
[device]Add check exception case when read port present fail (#4107)
Modify get_psu_presence(). Move read() and close() to "try: ... except IOError:" To avoid when read
port present sysfs fail. This exception will let sfputil.py to exit. So "sfputil show eeprom" can't show other port status.
2020-02-07 07:53:55 -08:00
brandonchuang
38b7d30295 [device] as7326-56x: Fix the default low power mode on issue (#4047)
Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2020-01-23 12:20:20 -08:00
Polly Hsu
1e05a41c7f [device][accton]: Update for AS7326-56X complying the BCM SAI 3.5.3.1m-26 (#3830)
* [device][accton]: Update for AS7326-56X complying the Broadcom SAI latest version 3.5.3.1m-26
* Update Accton-AS7326-56X to adapt xxx.config.bcm based on the latest update of Device-Specific File Directory Structure.
* Update Accton-AS7326-56X LED BIN complying the Broadcom SAI latest version 3.5.3.1m-26
Signed-off-by: polly_hsu@edge-core.com
* [device][accton]: Merge the SDK config with #3103 (Fix Accton as7326 port breakouk)
Signed-off-by: Polly Hsu <pollyhsu2git@gmail.com>
2019-12-19 06:29:19 +00:00
dereksun01
6e926a1842 [device]: rename as5835_54x configuration file (#3429)
Signed-off-by: derek_sun <derek_sun@edge-core.com>
2019-11-09 14:16:16 -08:00
simonJi2018
b2e15f2318 [device/accton] Platform2.0 API Implementation for accton as7116-54x (#3622)
Implement Component platform2.0 API for accton as7116-54x platform
2019-11-08 21:49:46 -08:00
dereksun01
6c0ab4b926 [device] accton device of as5812_54t supports SAI and modify as5812_54t periphery (#3663)
- Support as5812_54t SAI.
- Modify as5812_54t periphery.

Signed-off-by: derek_sun <derek_sun@edge-core.com>
2019-11-07 16:24:42 -08:00
brandonchuang
7d4093d6ed [device/platform] Add reset in sfputil.py for Accton AS7326-56X (#3685)
Add reset in sfputil.py for as7326-56x.

Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2019-11-06 18:57:08 -08:00
Roy Lee
4d8a01c26c [device] as4630-54pe: update sfputil for get_transceiver_change_event. (#3315)
Signed-off-by: roy_lee <roy_lee@accton.com>
2019-10-16 18:01:38 -07:00
brandonchuang
a97b15e0ec [device/as5835-54t] Implement get_transceiver_change_event() in sfputil.py (#3485)
Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2019-09-23 14:27:18 -07:00
Roy Lee
9179990ba1 [device][accton] Add as5812-54t. (#3428)
* Verified as5812_54t platfrom, except SDK and monitor.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Add as5812-54t to build its debian package.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Use the right cpld read/write api.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Update device paths.
Signed-off-by: roy_lee <roy_lee@accton.com>

* update psu driver, correct python lib location.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Give a default return value.
Signed-off-by: roy_lee <roy_lee@accton.com>
2019-09-10 22:07:13 -07:00
Polly Hsu
3323e9b817 [device][accton]: ADD the Accton new device support, AS9716-32D (#3372) 2019-08-28 21:39:40 -07:00
brandonchuang
47a9a614bd [device] Add pmon_daemon_control.json for accton (#3340)
Add pmon_daemon_control.json for accton devices which do not need led_control

Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2019-08-15 01:27:38 -07:00
jostar-yang
ff6437eaaa [devices]: Add support fpga drv and pimutility for minipack platform (#3053) 2019-08-15 00:50:13 -07:00
brandonchuang
c605dd2192 [as5835-54x] Implement get_transceiver_change_event() in sfputil.py (#3308)
Signed-off-by: brandon_chuang <brandon_chuang@CicadaBuildServer.accton.com.tw>
2019-08-13 14:24:41 -07:00
Roy Lee
b45c1aca73 [device] Adding platform support for Accton as7315-27xb (#3301)
This switch has 27 fiber ports, 4x25G, 20x10G , and 3x100G ports ports.
CPU: Intel ® Atom™ Processor C3508,1.6GHz
BMC: None
MAC: Broadcom BCM88470 (Qumran AX).
MISC: Support IEEE1588v2, hot-swappable PSU, hot-swappable fan tray.

But notice here, BCM88470 is not supported for SAI now.
So the syncd container is not running so far.

Signed-off-by: roy_lee <roy_lee@accton.com>
2019-08-08 01:13:46 -07:00
simonJi2018
49f3b22de5 [device] various improvement for nephos devices (#3139)
Add fan control for as7116-54x
Modify sfputil.py to support sfp insert and remove events for as7116-54x
Modify port_config.nps to set port default admin down
Modify port_config.ini for add speed attr
Code format optimization like remove newline
Modify buffers_defaults_t0 and t1, change ingress_lossless_pool mode from dynamic to static
Add nephos_dac.nps and nephos_opt.nps for support difference dac and fiber module
2019-08-07 09:33:56 -07:00
Roy Lee
efe9438c61 [Accton] Correct port index and offer the default speed. (#3213)
* [as5712-54x]
Verified with index from 1.
Add qsfp_event() for command "show interaface trancerver".
Signed-off-by: roy_lee <roy_lee@accton.com>

* [as6712-32x]
Add default port speed.
Verified with index from 1.

Signed-off-by: roy_lee <roy_lee@accton.com>

* [as7726-32x]
Add default port speed.
Verified with index from 1.
Signed-off-by: roy_lee <roy_lee@accton.com>

* [as7712-32x]
Add default port speed.
Verified with index from 1.
Signed-off-by: roy_lee <roy_lee@accton.com>

* [as5812-54x]
Add default port speed.
Verified with index from 1.

Signed-off-by: roy_lee <roy_lee@accton.com>

* [as5712-54x]
Update port-config with 1-based index.
Signed-off-by: roy_lee <roy_lee@accton.com>

* [as5812-54x]
Somehow the service may block, use type=simple to work-around.
Add syslog function for monitor.
Signed-off-by: roy_lee <roy_lee@accton.com>

* [as7716-32x]
Update port-config with 1-based index.
Signed-off-by: roy_lee <roy_lee@accton.com>

* [as7816-64x]
Update port-config with 1-based index.
Implement sfputil change_event.
Signed-off-by: roy_lee <roy_lee@accton.com>

* [as7326-56x]
Update port-config with 1-based index.
Implement sfputil change_event.

Signed-off-by: roy_lee <roy_lee@accton.com>

* Remove debug code.
Signed-off-by: roy_lee <roy_lee@accton.com>

* [as7312-54x]
Update port-config with 1-based index and default port speed.

Signed-off-by: roy_lee <roy_lee@accton.com>
2019-07-24 12:14:43 -07:00
Roy Lee
9c4d23427b [device][accton]: add support for as7312-54xs (#3140)
* Add driver and util for peripherals of as7312-54xs, most are copied from as7312-54s.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Add default port speed and index from 1.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Update i2c addr of psus.
Add system logging for monitor.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Correct syntax of module_dirs.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Validate sfputil after tested.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Correct the index of eeprom mapping.
Signed-off-by: roy_lee <roy_lee@accton.com>
2019-07-18 07:30:22 -07:00
dereksun01
ef3b817f5a [device] Update as5835_54x port_config.ini (#3181)
Signed-off-by: derek_sun <derek_sun@edge-core.com>
2019-07-18 06:24:55 -07:00
Steven LU
083f8586c7 [device]: Adjust port-mapping to allow 1st row of TH2 to be breakout (#3144) 2019-07-16 08:35:05 -07:00
dereksun01
acf1a53ac2 [device]: Modify as5835_54x port_config.ini (#3130)
Signed-off-by: derek_sun <derek_sun@edge-core.com>
2019-07-10 17:17:51 -07:00
brandonchuang
5a89cf5733 [device][platform] add platform as5835-54t, accton. (#3119)
Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2019-07-06 14:53:02 -07:00
brandonchuang
206ca1b092 [devices]: Add lpmode in sfputil.py for Accton AS7716-32X (#3039)
Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2019-07-03 06:49:38 -07:00
Steven LU
810bc0d2ed [devices]: Fix Accton as7326 port breakout (#3103) 2019-07-03 06:48:42 -07:00
brandonchuang
d0981c4d58 [devices]: Add lpmode in sfputil.py for Accton AS7312-54X (#3006)
Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2019-07-03 06:46:14 -07:00
brandonchuang
2ec473cdd1 [devices]: Add lpmode in sfputil.py for Accton AS7312-54XS (#3007)
Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2019-07-02 11:39:59 -07:00
brandonchuang
8b225d3ca1 [devices]: Add lpmode in sfputil.py for Accton AS7512 (#3005)
Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2019-06-28 21:50:30 -07:00