From 35b9f19ec2ca0b6e07845e04e0e0495e96a92dc3 Mon Sep 17 00:00:00 2001 From: Jostar Yang Date: Tue, 31 Aug 2021 11:47:53 +0800 Subject: [PATCH] Fix code error for qsfp theshold offset --- .../x86_64-accton_as7816_64x-r0/sonic_platform/sfp.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/device/accton/x86_64-accton_as7816_64x-r0/sonic_platform/sfp.py b/device/accton/x86_64-accton_as7816_64x-r0/sonic_platform/sfp.py index 682b93682f87..2f796509755c 100644 --- a/device/accton/x86_64-accton_as7816_64x-r0/sonic_platform/sfp.py +++ b/device/accton/x86_64-accton_as7816_64x-r0/sonic_platform/sfp.py @@ -339,9 +339,6 @@ def get_transceiver_info(self): (offset + XCVR_VENDOR_DATE_OFFSET), XCVR_VENDOR_DATE_WIDTH) sfp_vendor_date_data = sfpi_obj.parse_vendor_date( sfp_vendor_date_raw, 0) - - sfp_dom_capability_raw = self.__read_eeprom_specific_bytes( - (offset + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH) transceiver_info_dict = dict.fromkeys(self.info_dict_keys, 'N/A') compliance_code_dict = dict() @@ -531,7 +528,8 @@ def get_transceiver_threshold_info(self): if not self.get_presence() or not sfpd_obj: return {} - offset = QSFP_PAGE03_OFFSET + + offset = QSFP_PAGE03_OFFSET transceiver_dom_threshold_dict = dict.fromkeys( self.threshold_dict_keys, 'N/A')