Skip to content

Commit

Permalink
Comment out tx power validation check and program the passed value (s…
Browse files Browse the repository at this point in the history
…onic-net#389)

* Comment out power validation check and program the passed value to the
eeprom write function.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Update c_cmis.py

---------

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
  • Loading branch information
abdosi authored Jul 28, 2023
1 parent 465f95e commit c99d311
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sonic_platform_base/sonic_xcvr/api/public/c_cmis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c99d311

Please sign in to comment.