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)
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())
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)
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())