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
pettershao-ragilenetworks 8ceec5c843
[ruijie] Fix show version error info (#7541)
Fix following crash in `show version`:

```
Traceback (most recent call last):
  File "/usr/local/bin/decode-syseeprom", line 32, in instantiate_eeprom_object
    eeprom = sonic_platform.platform.Platform().get_chassis().get_eeprom()
AttributeError: module 'sonic_platform' has no attribute 'platform'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/decode-syseeprom", line 262, in <module>
    sys.exit(main())
  File "/usr/local/bin/decode-syseeprom", line 244, in main
    print_serial(use_db)
  File "/usr/local/bin/decode-syseeprom", line 169, in print_serial
    eeprom = instantiate_eeprom_object()
  File "/usr/local/bin/decode-syseeprom", line 34, in instantiate_eeprom_object
    log.log_error('Failed to obtain EEPROM object due to {}'.format(repr(e)))
NameError: name 'log' is not defined
```

Signed-off-by: pettershao-ragilenetworks <pettershao@ragilenetworks.com>
2021-05-06 14:53:20 -07:00
..
barefoot [Arista] Update platform configurations and library (#7527) 2021-05-06 10:59:22 -07:00
broadcom [ruijie] Fix show version error info (#7541) 2021-05-06 14:53:20 -07:00
cavium [dockers] label SONiC Docker with manifest (#5939) 2021-04-26 13:51:50 -07:00
centec [Centec][arm64] support new board E530-48s4x and E530-24x2q (#7189) 2021-05-01 10:37:07 -07:00
centec-arm64 [Centec][arm64] support new board E530-48s4x and E530-24x2q (#7189) 2021-05-01 10:37:07 -07:00
generic [dockers] Rename 'docker-snmp-sv2' to 'docker-snmp' (#4699) 2020-06-11 16:04:23 -07:00
innovium [dockers] label SONiC Docker with manifest (#5939) 2021-04-26 13:51:50 -07:00
marvell [dockers] label SONiC Docker with manifest (#5939) 2021-04-26 13:51:50 -07:00
marvell-arm64 [dockers] label SONiC Docker with manifest (#5939) 2021-04-26 13:51:50 -07:00
marvell-armhf [dockers] label SONiC Docker with manifest (#5939) 2021-04-26 13:51:50 -07:00
mellanox [Mellanox] Optimize SFP modules initialization (#7537) 2021-05-06 10:14:48 -07:00
nephos [dockers] label SONiC Docker with manifest (#5939) 2021-04-26 13:51:50 -07:00
p4 Add support to start fdbsyncd when orchagent docker starts (#5979) 2020-12-24 18:36:01 -08:00
pddf Invoking python3 installation for PDDF 2.0 PAI package (#7100) 2021-04-08 08:21:17 -07:00
template Add gearbox phy device files and a new physyncd docker to support VS gearbox phy feature (#4851) 2020-09-25 08:32:44 -07:00
vs [dockers] label SONiC Docker with manifest (#5939) 2021-04-26 13:51:50 -07:00