[barefoot] Fixes for platform API (#6487)

There was a mismatch with Eeprom class methods names and methods called from Eeprom class.

Signed-off-by: Antonina Melnyk antoninax.melnyk@intel.com
This commit is contained in:
Antonina Melnyk 2021-01-25 02:32:18 +02:00 committed by GitHub
parent 46b3bd5503
commit da7f80d70b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,14 +136,17 @@ class Eeprom(eeprom_tlvinfo.TlvInfoDecoder):
return True
def serial_number_str(self):
def serial_str(self):
return self.eeprom.prod_ser_num
def system_eeprom_info(self):
return self.eeprom.__dict__
def get_base_mac(self):
return self.eeprom.ext_mac_addr
def base_mac_addr(self):
return self.eeprom.ext_mac_addr.rstrip('\x00')
def part_number_str(self):
return self.eeprom.prod_part_num
def modelstr(self):
return self.eeprom.prod_name