Function return host server information: hostname, cpu, memory, ...
(self)
| 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""" |
no test coverage detected