Exemplo n.º 1
0
 def sandesh_send_queue_set_handle_request(self, sandesh_req):
     # Set the send queue processing state
     if sandesh_req.enable is not None:
         if sandesh_req.enable:
             benable = True
         else:
             benable = False
         self._sandesh.set_send_queue(benable)
     # Return the send queue processing state
     send_queue_resp = SandeshSendQueueResponse(
         enable=self._sandesh.is_send_queue_enabled())
     send_queue_resp.response(sandesh_req.context(), sandesh=self._sandesh)
Exemplo n.º 2
0
 def sandesh_send_queue_set_handle_request(self, sandesh_req):
     # Set the send queue processing state
     if sandesh_req.enable is not None:
         if sandesh_req.enable:
             benable = True
         else:
             benable = False
         self._sandesh.set_send_queue(benable)
     # Return the send queue processing state
     send_queue_resp = SandeshSendQueueResponse(
         enable=self._sandesh.is_send_queue_enabled())
     send_queue_resp.response(sandesh_req.context())
Exemplo n.º 3
0
 def sandesh_send_queue_status_handle_request(self, sandesh_req):
     # Return the send queue processing state
     send_queue_resp = SandeshSendQueueResponse(
         enable=self._sandesh.is_send_queue_enabled())
     send_queue_resp.response(sandesh_req.context(), sandesh=self._sandesh)
Exemplo n.º 4
0
 def sandesh_send_queue_status_handle_request(self, sandesh_req):
     # Return the send queue processing state
     send_queue_resp = SandeshSendQueueResponse(
         enable=self._sandesh.is_send_queue_enabled())
     send_queue_resp.response(sandesh_req.context())