Commit e43be4ef by tarokkk

adding docstring to constructor

parent 7e6bcfbb
...@@ -32,6 +32,18 @@ class VMInstance: ...@@ -32,6 +32,18 @@ class VMInstance:
graphics=None, graphics=None,
acpi=True): acpi=True):
'''Default Virtual Machine constructor '''Default Virtual Machine constructor
name - unique name for the instance
vcpu - nubmer of processors
memory_max - maximum virtual memory (actual memory maybe add late)
cpu_share - KVM process priority (0-100)
arch - libvirt arch parameter default x86_64
os_boot - boot device default hd
vm_type - hypervisor type default kvm
network_list - VMNetwork list
disk_list - VMDIsk list
context - Key-Value pars (not used)
graphics - Dict that keys are: type, listen, port, passwd
acpi - True/False to enable acpi
''' '''
self.name = name self.name = name
self.vcpu = vcpu self.vcpu = vcpu
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment