diff --git a/reddwarfclient/mcli.py b/reddwarfclient/mcli.py index 6f4dd48e..8f40dcf0 100644 --- a/reddwarfclient/mcli.py +++ b/reddwarfclient/mcli.py @@ -138,6 +138,22 @@ class InstanceCommands(object): except: print sys.exc_info()[1] + def stop(self, id): + """Stop MySQL on the given instance.""" + dbaas = common.get_client() + try: + result = dbaas.management.stop(id) + except: + print sys.exc_info()[1] + + def reboot(self, id): + """Reboot the instance.""" + dbaas = common.get_client() + try: + result = dbaas.management.reboot(id) + except: + print sys.exec_info()[1] + class StorageCommands(object): """Commands to list devices info"""