- /opt/jumpscale7/lib/JumpScale/lib/lxc/Lxc.py
Methods
def btrfsSubvolCopy
arguments
def btrfsSubvolDelete
arguments
def btrfsSubvolExists
arguments
def btrfsSubvolList
arguments
def btrfsSubvolNew
arguments
def create
arguments
- name = ''
- stdout = True
- base = 'base'
- start = False
- nameserver = '8.8.8.8'
- replace = True
@param name if "" then will be an incremental nr
def destroy
arguments
def destroyAll
arguments
def execute
arguments
def exportRsync
arguments
- name
- backupname
- key = 'pub'
def exportTgz
arguments
def getConfig
arguments
def getIp
arguments
def getPid
arguments
def getProcessList
arguments
@return [["$name",$pid,$mem,$parent],....,[$mem,$cpu]]
last one is sum of mem & cpu
def importRsync
arguments
- backupname
- name
- basename = ''
- key = 'pub'
@param basename is the name of a start of a machine locally, will be used as basis and
then the source will be synced over it
def importTgz
arguments
def list
arguments
names of running & stopped machines
@return (running,stopped)
def networkSet
arguments
- machinename
- netname = 'pub0'
- pubips = []
- bridge = 'public'
- gateway
def networkSetPrivateVXLan
arguments
def pushSSHKey
arguments
def removeRedundantFiles
arguments
def setHostName
arguments
def start
arguments
- name
- stdout = True
- test = True
def stop
arguments