@@ -187,20 +187,12 @@ def get_transceiver_info_firmware_versions(self):
187187 return [ActiveFirmware , InactiveFirmware ]
188188
189189 def get_transceiver_bulk_status (self ):
190- rx_los = self .get_rx_los ()
191- tx_fault = self .get_tx_fault ()
192- tx_disable = self .get_tx_disable ()
193- tx_disabled_channel = self .get_tx_disable_channel ()
194190 temp = self .get_module_temperature ()
195191 voltage = self .get_voltage ()
196192 tx_bias = self .get_tx_bias ()
197193 rx_power = self .get_rx_power ()
198194 tx_power = self .get_tx_power ()
199- read_failed = rx_los is None or \
200- tx_fault is None or \
201- tx_disable is None or \
202- tx_disabled_channel is None or \
203- temp is None or \
195+ read_failed = temp is None or \
204196 voltage is None or \
205197 tx_bias is None or \
206198 rx_power is None or \
@@ -209,15 +201,11 @@ def get_transceiver_bulk_status(self):
209201 return None
210202
211203 bulk_status = {
212- "rx_los" : all (rx_los ) if self .get_rx_los_support () else 'N/A' ,
213- "tx_fault" : all (tx_fault ) if self .get_tx_fault_support () else 'N/A' ,
214- "tx_disabled_channel" : tx_disabled_channel ,
215204 "temperature" : temp ,
216205 "voltage" : voltage
217206 }
218207
219208 for i in range (1 , self .NUM_CHANNELS + 1 ):
220- bulk_status ["tx%ddisable" % i ] = tx_disable [i - 1 ] if self .get_tx_disable_support () else 'N/A'
221209 bulk_status ["tx%dbias" % i ] = tx_bias [i - 1 ]
222210 bulk_status ["rx%dpower" % i ] = float ("{:.3f}" .format (self .mw_to_dbm (rx_power [i - 1 ]))) if rx_power [i - 1 ] != 'N/A' else 'N/A'
223211 bulk_status ["tx%dpower" % i ] = float ("{:.3f}" .format (self .mw_to_dbm (tx_power [i - 1 ]))) if tx_power [i - 1 ] != 'N/A' else 'N/A'
@@ -1659,6 +1647,8 @@ def get_transceiver_status(self):
16591647 rxoutput_status_hostlane6 = BOOLEAN ; rx output status on host lane 6
16601648 rxoutput_status_hostlane7 = BOOLEAN ; rx output status on host lane 7
16611649 rxoutput_status_hostlane8 = BOOLEAN ; rx output status on host lane 8
1650+ tx_disable = BOOLEAN ; tx disable status
1651+ tx_disabled_channel = INTEGER ; disabled TX channels
16621652 txfault = BOOLEAN ; tx fault flag on media lane
16631653 txlos_hostlane1 = BOOLEAN ; tx loss of signal flag on host lane 1
16641654 txlos_hostlane2 = BOOLEAN ; tx loss of signal flag on host lane 2
@@ -1777,6 +1767,13 @@ def get_transceiver_status(self):
17771767 if rx_output_status_dict :
17781768 for lane in range (1 , self .NUM_CHANNELS + 1 ):
17791769 trans_status ['rxoutput_status_hostlane%d' % lane ] = rx_output_status_dict .get ('RxOutputStatus%d' % lane )
1770+ tx_disabled_channel = self .get_tx_disable_channel ()
1771+ if tx_disabled_channel is not None :
1772+ trans_status ['tx_disabled_channel' ] = tx_disabled_channel
1773+ tx_disable = self .get_tx_disable ()
1774+ if tx_disable is not None :
1775+ for lane in range (1 , self .NUM_CHANNELS + 1 ):
1776+ trans_status ['tx%ddisable' % lane ] = tx_disable [lane - 1 ]
17801777 tx_fault = self .get_tx_fault ()
17811778 if tx_fault :
17821779 for lane in range (1 , self .NUM_CHANNELS + 1 ):
0 commit comments