Methods
|
|
|
|
__init__
|
__init__ (
self,
realmachine,
name,
addr="",
macaddr="",
disks=None,
networks=None,
memory=32,
vmgroup=1,
**keywords,
)
|
|
__repr__
|
__repr__ ( self )
|
|
__str__
|
__str__ ( self )
|
|
_get_addr
|
_get_addr ( self )
Returns the value of self.__addr
|
|
_get_disks
|
_get_disks ( self )
Returns a list of disks allocated to a VM
|
|
_get_macaddr
|
_get_macaddr ( self )
Returns the MAC address assigned to a VM
|
|
_get_macaddrs
|
_get_macaddrs ( self )
Returns the MAC addresses assigned to a VM
|
|
_get_memory
|
_get_memory ( self )
Returns the amount of memory allocated to a VM
|
|
_get_networks
|
_get_networks ( self )
Returns a list of networks allocated to a VM
|
|
_get_realmachine
|
_get_realmachine ( self )
Returns the MAC address assigned to a VM
|
|
_get_status
|
_get_status ( self )
Returns the status of a VM
|
|
_get_vmgroup
|
_get_vmgroup ( self )
Returns the vmgroup assigned to a VM
|
|
_get_vmname
|
_get_vmname ( self )
Returns the name assigned to a VM
|
|
_set_memory
|
_set_memory ( self, memory )
Sets the amount of memory allocated to a VM
|
|
_set_status
|
_set_status ( self, status )
Sets the status of a VM
|
|
_set_vmgroup
|
_set_vmgroup ( self, vmgroup )
Sets the vmgroup assigned to a VM
|
|
start
|
start ( self )
Abstract method to start a VM
|
|
stop
|
stop ( self )
Abstract method to stop a VM
|