From: xavileon Date: Fri, 21 Oct 2011 18:54:33 +0000 (-0400) Subject: First commit of LXC code X-Git-Tag: lxcbuild~18 X-Git-Url: http://git.onelab.eu/?p=nodemanager.git;a=commitdiff_plain;h=c3fa64a0e2836c1c5373ec76f5771f506b9136a8 First commit of LXC code --- diff --git a/sliver_lxc.py b/sliver_lxc.py new file mode 100644 index 0000000..49ebb1c --- /dev/null +++ b/sliver_lxc.py @@ -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" + +