Ejemplo n.º 1
0
 def reset_server(self, server_name):
     """
     Reset server SM
     """
     self._begin_op()
     db_session = self.db_session
     server_sm = find_server_byname(db_session, server_name)
     exec_server_sm(server_sm, ServerSMReset) 
     self._finish_op()
Ejemplo n.º 2
0
 def disable_server(self, server_name):
     """
     Disable a server
     """
     self._begin_op()
     db_session = self.db_session
     server_sm = find_server_byname(db_session, server_name)
     exec_server_sm(server_sm, ServerSMDisable) 
     self._finish_op()