git://git.onelab.eu
/
nodemanager.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
First commit of LXC code
[nodemanager.git]
/
sliver_lxc.py
1
#
2
3
"""LXC slivers"""
4
5
class Sliver_LXC(accounts.Account):
6
"""This class wraps LXC commands"""
7
8
SHELL = '/bin/bash'
9
TYPE = 'sliver.LXC'
10
11
def __init__(self):
12
pass
13
14
@staticmethod
15
def create(name, rec = None):
16
print "TODO create"
17
18
@staticmethod
19
def destroy(name):
20
print "TODO destroy"
21
22
def start(self, delay=0):
23
print "TODO start"
24
25
def stop(self):
26
print "TODO stop"
27
28
def is_running(self):
29
print "TODO is_running"
30
31