From 5af6f9f16d2f14f69084074710d99d9866f568c5 Mon Sep 17 00:00:00 2001 From: abdosi <58047199+abdosi@users.noreply.github.com> Date: Thu, 27 Jul 2023 19:34:15 -0700 Subject: [PATCH] Comment out tx power validation check and program the passed value (#389) * Comment out power validation check and program the passed value to the eeprom write function. Signed-off-by: Abhishek Dosi * Update c_cmis.py --------- Signed-off-by: Abhishek Dosi --- sonic_platform_base/sonic_xcvr/api/public/c_cmis.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/sonic_platform_base/sonic_xcvr/api/public/c_cmis.py b/sonic_platform_base/sonic_xcvr/api/public/c_cmis.py index 6a94df544..bb7e3a703 100644 --- a/sonic_platform_base/sonic_xcvr/api/public/c_cmis.py +++ b/sonic_platform_base/sonic_xcvr/api/public/c_cmis.py @@ -143,9 +143,6 @@ def set_tx_power(self, tx_power): Return True if the provision succeeds, False if it fails ''' min_prog_tx_output_power, max_prog_tx_output_power = self.get_supported_power_config() - if tx_power > max_prog_tx_output_power or tx_power < min_prog_tx_output_power: - raise ValueError('Provisioned TX power out of range. Max: %.1f; Min: %.1f dBm.' - %(max_prog_tx_output_power, min_prog_tx_output_power)) status = self.xcvr_eeprom.write(consts.TX_CONFIG_POWER, tx_power) time.sleep(1) return status