sonic-buildimage/platform/broadcom
Xin Wang 9fe128c8e8
Fix issue of parsing syseeprom value with whitespace in middle (#10021)
Fixes #10020

Why I did it
The platform api for parsing syseeprom information read from STATE DB has issue
with parsing the value part that has whitespace in the middle. The current
code assumes that the value part does not have whitespace. So everything after
the whitespace will be ignored. The syseeprom values returned from platform
API do not match the output of "show platform syseeprom".

How I did it
This change improved the regular expression for parsing syseeprom values to
accommodate whitespaces in the value.

How to verify it
Locally updated the code on a dx010 device. Call the platform API:
```
>>> import sonic_platform
>>> platform = sonic_platform.platform.Platform()
>>> chassis = platform.get_chassis()
>>> chassis.get_system_eeprom_info()
{'0x21': 'DX010', '0x22': 'R0872-F0020-02', '0x23': 'DX010B2F030A27BY200002', '0x24': '00:E0:EC:E7:71:0F', '0x25': '11/03/2020 21:22:56', '0x26': '3', '0x27': 'Seastone', '0x28': 'RANGELEY', '0x29': '2014.08', '0x2A': '131', '0x2B': 'CELESTICA', '0x2C': 'THA', '0x2D': 'Celestica', '0x2E': '1.0.5', '0x2F': 'LB', '0xFD': '', '0xFE': '0xAAB39BDB'}
```

Signed-off-by: Xin Wang <xiwang5@microsoft.com>
2022-02-23 10:33:34 +08:00
..
docker-saiserver-brcm Generate sai.profile from j2 tempalte when saiserver start (#10022) 2022-02-22 18:33:16 -08:00
docker-syncd-brcm [Monit] Deprecate the feature of monitoring the critical processes by Monit (#7676) 2021-06-04 10:16:53 -07:00
docker-syncd-brcm-dnx Remove the monit_syncd, from docker-syncd-brcm-dnx. (#8003) 2021-06-29 12:53:05 -07:00
docker-syncd-brcm-dnx-rpc New sonic-buildimage images for Broadcom DNX ASIC family. (#7598) 2021-06-22 11:12:22 -07:00
docker-syncd-brcm-rpc [syncd-rpc] Install Libboost Atomic 1.71, Libqtcore And Libqtnetwork (#6689) 2021-02-10 02:26:31 -08:00
saibcm-modules Update Broadcom SAI to version 6.0.0.13 (#9789) 2022-01-20 23:15:12 -08:00
saibcm-modules-dnx@3fc83d5e5f Update Broadcom SAI to version 6.0.0.13 (#9789) 2022-01-20 23:15:12 -08:00
sonic-platform-modules-accton [AS7712-32X] Add to support PDDF (#8040) 2022-02-10 22:09:50 +05:30
sonic-platform-modules-alphanetworks [SFP-Refactor] Modify transceiver key name (#9447) 2021-12-09 12:38:45 +05:30
sonic-platform-modules-arista@516ece8126 [Arista] Update platform submodules (#9895) 2022-02-02 16:23:45 +05:30
sonic-platform-modules-brcm-xlr-gts [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
sonic-platform-modules-cel Fix issue of parsing syseeprom value with whitespace in middle (#10021) 2022-02-23 10:33:34 +08:00
sonic-platform-modules-dell DellEMC: Fix Z9332f thermalctld warning logs (#9943) 2022-02-10 09:16:58 -08:00
sonic-platform-modules-delta [sonic-linux-kernel]: security update to kernel 4.19.152 (#6490) 2021-02-06 21:02:06 -08:00
sonic-platform-modules-ingrasys [platform-modules]: fix compile issues for platform driver under 4.19 2020-04-17 04:51:51 +00:00
sonic-platform-modules-inventec [SFP-Refactor] Modify transceiver key name (#9447) 2021-12-09 12:38:45 +05:30
sonic-platform-modules-juniper Update SAI modules for Nokia and Juniper for Bullseye and 5.10 kernel 2021-11-10 15:27:22 -08:00
sonic-platform-modules-mitac [sonic-linux-kernel]: security update to kernel 4.19.152 (#6490) 2021-02-06 21:02:06 -08:00
sonic-platform-modules-nokia@ded0344a68 Update Nokia sonic-platform submodule (#9963) 2022-02-13 17:18:39 -08:00
sonic-platform-modules-quanta [SFP-Refactor] Modify transceiver key name (#9447) 2021-12-09 12:38:45 +05:30
sonic-platform-modules-ragile [ragile] support 32c and 4s platform (#8824) 2021-11-17 23:49:06 -08:00
sonic-platform-modules-ruijie [SFP-Refactor] Modify transceiver key name (#9447) 2021-12-09 12:38:45 +05:30
docker-pde.dep [PDE]: introduce the SONiC Platform Development Env (#7510) 2021-07-24 16:24:43 -07:00
docker-pde.mk Remove --net=host from run options for containers 2021-08-12 23:18:01 -07:00
docker-saiserver-brcm.dep [build]: support for DPKG local caching (#4117) 2020-03-11 20:04:52 -07:00
docker-saiserver-brcm.mk [SAIServerV2] Build SAI Serverv2 docker (#9509) 2022-02-08 02:56:34 -08:00
docker-syncd-brcm-dnx-rpc.dep New sonic-buildimage images for Broadcom DNX ASIC family. (#7598) 2021-06-22 11:12:22 -07:00
docker-syncd-brcm-dnx-rpc.mk Make changes needed to build a basic Broadcom image 2021-11-10 15:27:22 -08:00
docker-syncd-brcm-dnx.dep New sonic-buildimage images for Broadcom DNX ASIC family. (#7598) 2021-06-22 11:12:22 -07:00
docker-syncd-brcm-dnx.mk For syncd, specify that they're Buster-based containers in the template file instead of the individual container definitions 2021-11-10 15:27:22 -08:00
docker-syncd-brcm-rpc.dep [build]: support for DPKG local caching (#4117) 2020-03-11 20:04:52 -07:00
docker-syncd-brcm-rpc.mk Make changes needed to build a basic Broadcom image 2021-11-10 15:27:22 -08:00
docker-syncd-brcm.dep [build]: Fix syncd dpkg cache dependency issue (#6680) 2021-02-04 09:03:14 -08:00
docker-syncd-brcm.mk For syncd, specify that they're Buster-based containers in the template file instead of the individual container definitions 2021-11-10 15:27:22 -08:00
libsaithrift-dev.dep [build]: support for DPKG local caching (#4117) 2020-03-11 20:04:52 -07:00
libsaithrift-dev.mk Bump Thrift version from 0.13.0 to 0.14.1 (#9881) 2022-02-15 16:39:47 -08:00
one-aboot.dep [build]: support for DPKG local caching (#4117) 2020-03-11 20:04:52 -07:00
one-aboot.mk [Arista] Update driver submodules (#9393) 2021-12-08 11:33:36 -08:00
one-image.dep [build]: support for DPKG local caching (#4117) 2020-03-11 20:04:52 -07:00
one-image.mk [ragile] support 32c and 4s platform (#8824) 2021-11-17 23:49:06 -08:00
platform-modules-accton.dep [build]: support for DPKG local caching (#4117) 2020-03-11 20:04:52 -07:00
platform-modules-accton.mk [Platform] Accton add to support as9726-32d platform. (#7479) 2021-05-11 19:06:36 -07:00
platform-modules-alphanetworks.dep [build]: support for DPKG local caching (#4117) 2020-03-11 20:04:52 -07:00
platform-modules-alphanetworks.mk [Alphanetworks] Add new platform SNJ60D0-320F (#8780) 2021-10-22 12:37:39 -07:00
platform-modules-arista.dep [build]: support for DPKG local caching (#4117) 2020-03-11 20:04:52 -07:00
platform-modules-arista.mk [Arista] Update driver submodules (#9393) 2021-12-08 11:33:36 -08:00
platform-modules-brcm-xlr-gts.dep [build]: support for DPKG local caching (#4117) 2020-03-11 20:04:52 -07:00
platform-modules-brcm-xlr-gts.mk [build]: add buster docker as the last step of the build proces 2020-04-16 10:26:18 +00:00
platform-modules-cel.dep [build]: support for DPKG local caching (#4117) 2020-03-11 20:04:52 -07:00
platform-modules-cel.mk [build]: add buster docker as the last step of the build proces 2020-04-16 10:26:18 +00:00
platform-modules-dell.dep [build]: support for DPKG local caching (#4117) 2020-03-11 20:04:52 -07:00
platform-modules-dell.mk Added Support for Dell EMC S5212f in SONiC (#8678) 2021-10-26 12:52:03 -07:00
platform-modules-delta.dep [build]: support for DPKG local caching (#4117) 2020-03-11 20:04:52 -07:00
platform-modules-delta.mk [platform/delta]: Add a new supported platform, Delta-agc032 (#4602) 2020-05-27 09:33:02 -07:00
platform-modules-ingrasys.dep [build]: support for DPKG local caching (#4117) 2020-03-11 20:04:52 -07:00
platform-modules-ingrasys.mk [build]: add buster docker as the last step of the build proces 2020-04-16 10:26:18 +00:00
platform-modules-inventec.dep [build]: support for DPKG local caching (#4117) 2020-03-11 20:04:52 -07:00
platform-modules-inventec.mk [Inventec] Add support for D6332 platform (#5304) 2020-10-20 11:37:16 -07:00
platform-modules-juniper.dep [build]: support for DPKG local caching (#4117) 2020-03-11 20:04:52 -07:00
platform-modules-juniper.mk [build]: add buster docker as the last step of the build proces 2020-04-16 10:26:18 +00:00
platform-modules-mitac.dep [build]: support for DPKG local caching (#4117) 2020-03-11 20:04:52 -07:00
platform-modules-mitac.mk [build]: add buster docker as the last step of the build proces 2020-04-16 10:26:18 +00:00
platform-modules-nokia.dep Added Nokia IXR7250E support (#7809) 2021-08-17 12:26:04 -07:00
platform-modules-nokia.mk Added Nokia IXR7250E support (#7809) 2021-08-17 12:26:04 -07:00
platform-modules-quanta.dep [build]: support for DPKG local caching (#4117) 2020-03-11 20:04:52 -07:00
platform-modules-quanta.mk [Quanta] Add and update platform and device files (#6971) 2021-06-21 09:24:41 -07:00
platform-modules-ragile.dep [Platform/Ragile] Support RA-B6510-48v8c platform (#7620) 2021-06-03 10:51:01 -07:00
platform-modules-ragile.mk [ragile] support 32c and 4s platform (#8824) 2021-11-17 23:49:06 -08:00
platform-modules-ruijie.dep [Ruijie] Add ruijie platform & device (#4954) 2021-02-24 16:45:27 -08:00
platform-modules-ruijie.mk [Ruijie] Add ruijie platform & device (#4954) 2021-02-24 16:45:27 -08:00
platform-modules-s6000.dep [build]: support for DPKG local caching (#4117) 2020-03-11 20:04:52 -07:00
platform.conf one image implementation (#215) 2017-01-29 11:33:33 -08:00
raw-image.dep [build]: support for DPKG local caching (#4117) 2020-03-11 20:04:52 -07:00
raw-image.mk Flashrom refactoring for broadcom platforms (#7693) 2021-06-22 15:29:21 -07:00
rules.dep [build]: Enable the cache build for the platform ragile and ruijie. (#8414) 2021-08-11 02:04:30 -07:00
rules.mk Build Arista platform module 2021-11-10 15:27:22 -08:00
sai-modules.dep [build]: Update the make cache mode for opennsl-module-dnx (#8391) 2021-08-10 07:27:01 -07:00
sai-modules.mk Update Broadcom SAI to version 6.0.0.13 (#9789) 2022-01-20 23:15:12 -08:00
sai.dep New sonic-buildimage images for Broadcom DNX ASIC family. (#7598) 2021-06-22 11:12:22 -07:00
sai.mk [BRCMSAI 6.0.0.13-1] Fix Cancun file directory at new location causing TD3 platform boot issue (#9922) 2022-02-07 08:56:06 -08:00
sonic-pde-tests.dep [PDE]: introduce the SONiC Platform Development Env (#7510) 2021-07-24 16:24:43 -07:00
sonic-pde-tests.mk [PDE]: introduce the SONiC Platform Development Env (#7510) 2021-07-24 16:24:43 -07:00