sonic-net / sonic-platform-common

Python packages which provide a common interface to platform-specific hardware peripherals in SONiC
Other
46 stars 175 forks source link

[action] [PR:491] Make is_flat_memory more robust (#491) #497

Closed mssonicbld closed 2 months ago

mssonicbld commented 2 months ago

True when the module is flat memory False when the module is not flat memory None when the EEPROM read returns None or empty bytearray When it returns None, we should not assume that the module is NOT a flat memory. Instead, it would be safer to treat it as a flat memory.

mssonicbld commented 2 months ago

Original PR: https://github.com/sonic-net/sonic-platform-common/pull/491