diff --git a/device/accton/x86_64-accton_as4630_54te-r0/sonic_platform/sfp.py b/device/accton/x86_64-accton_as4630_54te-r0/sonic_platform/sfp.py index b6a2384f9..0aad3b648 100644 --- a/device/accton/x86_64-accton_as4630_54te-r0/sonic_platform/sfp.py +++ b/device/accton/x86_64-accton_as4630_54te-r0/sonic_platform/sfp.py @@ -167,7 +167,7 @@ def get_tx_disable(self): A Boolean, True if tx_disable is enabled, False if disabled """ if self.port_num < 49: #Copper port, no sysfs - return False + return [False] if self.port_num < 53: tx_disable = False @@ -175,9 +175,12 @@ def get_tx_disable(self): tx_path = "{}{}{}".format(CPLD_I2C_PATH, '/module_tx_disable_', self.port_num) tx_disable=self._api_helper.read_txt_file(tx_path) if tx_disable is not None: - return tx_disable + if tx_disable == '1': + return [True] + else: + return [False] else: - return False + return [False] else: api = self.get_xcvr_api()