We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb5564c commit 007e93bCopy full SHA for 007e93b
sonic_platform_base/sonic_eeprom/eeprom_tlvinfo.py
@@ -406,6 +406,16 @@ def modelstr(self, e):
406
return super(TlvInfoDecoder, self).modelstr(e)
407
408
return t[2].decode("ascii")
409
+
410
411
+ def vendorstr(self, e):
412
+ '''
413
+ Returns the value field of the Vendor Name TLV as a string
414
415
+ (is_valid, t) = self.get_tlv_field(e, self._TLV_CODE_VENDOR_NAME)
416
+ if not is_valid:
417
+ return super(TlvInfoDecoder, self).vendorstr(e)
418
+ return t[2].decode("ascii")
419
420
421
def serial_number_str(self, e):
0 commit comments