def get_bal_heartbeat(self, device_id): self.log.info('Get-HeartBeat') try: obj = bal_pb2.BalHeartbeat() obj.device_id = device_id rebootStatus = yield self.stub.BalApiHeartbeat(obj, timeout=GRPC_TIMEOUT) self.log.info('OLT-HeartBeat-Response-Received-from', device=device_id, rebootStatus=rebootStatus) returnValue(rebootStatus) except Exception as e: self.log.info('OLT-HeartBeat-failed', exc=str(e))
def get_bal_heartbeat(self, device_id): self.log.info('Get HeartBeat') try: obj = bal_pb2.BalHeartbeat() obj.device_id = device_id rebootStatus = yield self.stub.BalApiHeartbeat(obj) self.log.info('OLT HeartBeat Response Received from', device=device_id, rebootStatus=rebootStatus) returnValue(rebootStatus) except Exception as e: self.log.info('OLT HeartBeat failed', exc=str(e))