First commit of LXC code
authorxavileon <xleon@ac.upc.edu>
Fri, 21 Oct 2011 18:54:33 +0000 (14:54 -0400)
committerxavileon <xleon@ac.upc.edu>
Fri, 21 Oct 2011 18:54:33 +0000 (14:54 -0400)
sliver_lxc.py [new file with mode: 0644]

diff --git a/sliver_lxc.py b/sliver_lxc.py
new file mode 100644 (file)
index 0000000..49ebb1c
--- /dev/null
@@ -0,0 +1,31 @@
+#
+
+"""LXC slivers"""
+
+class Sliver_LXC(accounts.Account):
+    """This class wraps LXC commands"""
+
+    SHELL = '/bin/bash'
+    TYPE = 'sliver.LXC'
+
+    def __init__(self):
+        pass
+    
+    @staticmethod
+    def create(name, rec = None):
+        print "TODO create"
+        
+    @staticmethod
+    def destroy(name):
+        print "TODO destroy"
+
+    def start(self, delay=0):
+        print "TODO start"
+    
+    def stop(self):
+        print "TODO stop"
+    
+    def is_running(self):
+        print "TODO is_running"
+
+