diff --git a/cccli/command/vm.py b/cccli/command/vm.py index d57e5bf30f2f8351c36760ca98edaa79c2e6e543..1818008cd87df2f51a6e03f64d7cd3cb14c845cf 100644 --- a/cccli/command/vm.py +++ b/cccli/command/vm.py @@ -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'''