def test_get_enb_status(self): acs_state_machine = \ EnodebAcsStateMachineBuilder\ .build_acs_state_machine(EnodebDeviceName.BAICELLS) try: get_enb_status(acs_state_machine) except KeyError: self.fail('Getting eNB status should succeed after constructor ' 'runs.')
def _check_rf_tx_for_handler(self, handler: EnodebAcsStateMachine) -> None: status = get_enb_status(handler) if self._prev_rf_tx and not status.rf_tx_on: self._clear_stats() self._prev_rf_tx = status.rf_tx_on # Update status metrics update_status_metrics(status)
def _check_rf_tx_for_handler(self, handler: EnodebAcsStateMachine) -> None: if handler.device_cfg.has_parameter(ParameterName.RF_TX_STATUS): rf_tx = handler \ .device_cfg \ .get_parameter(ParameterName.RF_TX_STATUS) if self._prev_rf_tx is True and rf_tx is False: self._clear_stats() self._prev_rf_tx = rf_tx # Update status metrics status = get_enb_status(handler) update_status_metrics(status)