def send_dba_mode(self): get_dba_mode = PAS5211MsgGetDbaMode() for id in CHANNELS: self.send_state.append(False) self.send(self.p(get_dba_mode, channel_id=id)) log.debug("[SENT] PAS5211MsgGetDbaMode") raise self.wait_dba_mode()
def timeout_wait_dba_mode(self): if self.retries < MAX_RETRIES: self.retries += 1 self.send( self.p(PAS5211MsgGetDbaMode(), channel_id=self.channel_id)) else: raise self.error( 'Did not get DBA mode for {}; dropping activation event for {}' .format(self.target, hexstring(self.serial_number)))
def wait_for_set_alloc_id(self, pkt): log.debug('wait_for_set_alloc_id') if PAS5211MsgSetOnuAllocIdResponse in pkt: self.send( self.p(PAS5211MsgGetDbaMode(), channel_id=self.channel_id)) raise self.wait_dba_mode()
def wait_for_set_alloc_id(self, pkt): if PAS5211MsgSetOnuAllocIdResponse in pkt: self.send(self.px(PAS5211MsgGetDbaMode())) raise self.wait_dba_mode()