Welcome to Lago’s documentation!¶
Contents¶
lago package¶
Submodules¶
lago.brctl module¶
lago.config module¶
lago.constants module¶
lago.dirlock module¶
lago.subnet_lease module¶
lago.sysprep module¶
lago.templates module¶
lago.utils module¶
-
class
lago.utils.
CommandStatus
[source]¶ Bases:
lago.utils.CommandStatus
-
class
lago.utils.
RollbackContext
(*args)[source]¶ Bases:
object
A context manager for recording and playing rollback. The first exception will be remembered and re-raised after rollback
Sample usage: > with RollbackContext() as rollback: > step1() > rollback.prependDefer(lambda: undo step1) > def undoStep2(arg): pass > step2() > rollback.prependDefer(undoStep2, arg)
More examples see tests/utilsTests.py @ vdsm code
-
lago.utils.
_CommandStatus
¶ alias of
CommandStatus
-
lago.utils.
drain_ssh_channel
(chan, stdin=None, stdout=<open file '<stdout>', mode 'w'>, stderr=<open file '<stderr>', mode 'w'>)[source]¶
lago.virt module¶
-
class
lago.virt.
BridgeNetwork
(env, spec)[source]¶ Bases:
lago.virt.Network
-
class
lago.virt.
NATNetwork
(env, spec)[source]¶ Bases:
lago.virt.Network
-
class
lago.virt.
VM
(env, spec)[source]¶ Bases:
object
VM properties: * name * cpus * memory * disks * metadata * network/mac addr
-
metadata
¶
-
-
class
lago.virt.
VirtEnv
(prefix, vm_specs, net_specs)[source]¶ Bases:
object
Env properties: * prefix * vms * net
- libvirt_con
-
libvirt_con
¶
-
class
lago.virt.
_SysVInitService
(vm, name)[source]¶ Bases:
lago.virt._Service
-
BIN_PATH
= '/sbin/service'¶
-
-
class
lago.virt.
_SystemdContainerService
(vm, name)[source]¶ Bases:
lago.virt._Service
-
BIN_PATH
= '/usr/bin/docker'¶
-
HOST_BIN_PATH
= '/usr/bin/systemctl'¶
-
-
class
lago.virt.
_SystemdService
(vm, name)[source]¶ Bases:
lago.virt._Service
-
BIN_PATH
= '/usr/bin/systemctl'¶
-