From 2d9d4da8122d48e8d76c4533836b2a3f8011d9c1 Mon Sep 17 00:00:00 2001
From: Seblu <sebastien.luttringer@smartjog.com>
Date: Tue, 8 Feb 2011 11:38:30 +0100
Subject: [PATCH] add command restart

---
 cccli/command/vm.py | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/cccli/command/vm.py b/cccli/command/vm.py
index d57e5bf..1818008 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'''
 
-- 
GitLab