DellEMC Z9332f: Platform API - Remove EEPROM Vendor Extension decoding (#8716)
This commit is contained in:
parent
f36952fea3
commit
b171e56e01
@ -51,12 +51,6 @@ class Eeprom(eeprom_tlvinfo.TlvInfoDecoder):
|
|||||||
tlv = eeprom[tlv_index:tlv_index + 2
|
tlv = eeprom[tlv_index:tlv_index + 2
|
||||||
+ eeprom[tlv_index + 1]]
|
+ eeprom[tlv_index + 1]]
|
||||||
code = "0x%02X" % tlv[0]
|
code = "0x%02X" % tlv[0]
|
||||||
|
|
||||||
if tlv[0] == self._TLV_CODE_VENDOR_EXT:
|
|
||||||
value = str((tlv[2] << 24) | (tlv[3] << 16) |
|
|
||||||
(tlv[4] << 8) | tlv[5])
|
|
||||||
value += tlv[6:6 + tlv[1]].decode('ascii')
|
|
||||||
else:
|
|
||||||
name, value = self.decoder(None, tlv)
|
name, value = self.decoder(None, tlv)
|
||||||
|
|
||||||
self.eeprom_tlv_dict[code] = value
|
self.eeprom_tlv_dict[code] = value
|
||||||
|
Reference in New Issue
Block a user