Skip to content
Snippets Groups Projects
Commit 2d9d4da8 authored by Seblu's avatar Seblu
Browse files

add command restart

parent d32f6204
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,16 @@ class Command_destroy(VmCommand):
def usage(self):
return "Usage: destroy [--raw] [--direct] [--force] [--help] <tql>"
class Command_restart(VmCommand):
'''Restart a vm'''
def __call__(self, argv):
self._vm_action(argv, "&role=vm&status=running")
def usage(self):
return "Usage: restart [--raw] [--direct] [--force] [--help] <tql>"
class Command_pause(VmCommand):
'''Pause a running vm'''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment