Implement alternate node target fields
Implements the last additional hypervisor selector fields: vCPUs. Addresses #11
This commit is contained in:
@ -73,6 +73,14 @@ class VMInstance:
|
||||
|
||||
return memory
|
||||
|
||||
def getvcpus(self):
|
||||
try:
|
||||
vcpus = int(self.dom.info()[3])
|
||||
except:
|
||||
vcpus = 0
|
||||
|
||||
return vcpus
|
||||
|
||||
# Manage local node domain_list
|
||||
def addDomainToList(self):
|
||||
if not self.domuuid in self.thishypervisor.domain_list:
|
||||
|
Reference in New Issue
Block a user