We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34b5819 commit 1fc2c3dCopy full SHA for 1fc2c3d
scripts/decode-syseeprom
@@ -36,9 +36,6 @@ def main():
36
37
platform_path = '/'.join([PLATFORM_ROOT, platform])
38
39
- # Currently, don't support eeprom db on Arista platform
40
- if 'arista' in platform_path:
41
- support_eeprom_db = False
42
#
43
# Currently we only support board eeprom decode.
44
@@ -55,6 +52,12 @@ def main():
55
52
class_ = getattr(m, 'board')
56
53
t = class_('board', '','','')
57
54
+ # Currently, don't support eeprom db on Arista platform
+ platforms_without_eeprom_db = ['arista', 'kvm']
+ if any(platform in platform_path for platform in platforms_without_eeprom_db)\
58
+ or t.getattr('read_eeprom_db', None) == None:
59
+ support_eeprom_db = False
60
+
61
62
# execute the command
63
0 commit comments