예제 #1
0
파일: bal.py 프로젝트: shculpepper/voltha
 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))
예제 #2
0
파일: bal.py 프로젝트: bm2535/voltha
 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))