mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-06-06 12:29:37 +00:00
instance template change to instances as group of hosts. bootstrap.min.css and js updated. some info added.
This commit is contained in:
@@ -454,11 +454,13 @@ class wvmConnect(object):
|
||||
netdevice.append(interface)
|
||||
return netdevice
|
||||
|
||||
def get_host_instances(self):
|
||||
def get_host_instances(self, raw_mem_size=False):
|
||||
vname = {}
|
||||
def get_info(doc):
|
||||
mem = util.get_xpath(doc, "/domain/currentMemory")
|
||||
mem = int(mem) / 1024
|
||||
if raw_mem_size:
|
||||
mem = int(mem) * (1024*1024)
|
||||
cur_vcpu = util.get_xpath(doc, "/domain/vcpu/@current")
|
||||
if cur_vcpu:
|
||||
vcpu = cur_vcpu
|
||||
|
||||
Reference in New Issue
Block a user