Beispiel #1
0
 def GetStatus(self, _=None, context=None) -> ServiceStatus:
     """
     Get eNodeB status
     Note: input variable defaults used so this can be either called locally
     or as an RPC.
     """
     status = dict(get_service_status(self.state_machine_manager))
     status_message = ServiceStatus()
     status_message.meta.update(status)
     return status_message
Beispiel #2
0
 def GetStatus(self, _=None, context=None) -> ServiceStatus:
     """
     Get eNodeB status
     Note: input variable defaults used so this can be either called locally
     or as an RPC.
     """
     print_grpc(
         Void(),
         self._print_grpc_payload,
         "GetStatus Request:",
     )
     status = dict(get_service_status(self.state_machine_manager))
     status_message = ServiceStatus()
     status_message.meta.update(status)
     print_grpc(
         status_message,
         self._print_grpc_payload,
         "GetStatus Response:",
     )
     return status_message