MCPcopy
hub / github.com/retspen/webvirtcloud / get_node_info

Method get_node_info

vrtManager/hostdetails.py:57–68  ·  view source on GitHub ↗

Function return host server information: hostname, cpu, memory, ...

(self)

Source from the content-addressed store, hash-verified

55 return {'usage': diff_usage}
56
57 def get_node_info(self):
58 """
59 Function return host server information: hostname, cpu, memory, ...
60 """
61 info = []
62 info.append(self.wvm.getHostname())
63 info.append(self.wvm.getInfo()[0])
64 info.append(self.wvm.getInfo()[1] * 1048576)
65 info.append(self.wvm.getInfo()[2])
66 info.append(get_xml_path(self.wvm.getSysinfo(0), func=cpu_version))
67 info.append(self.wvm.getURI())
68 return info
69
70 def hypervisor_type(self):
71 """Return hypervisor type"""

Callers 1

overviewFunction · 0.80

Calls 1

get_xml_pathFunction · 0.90

Tested by

no test coverage detected