mirror of
https://github.com/retspen/webvirtcloud
synced 2026-03-23 11:04:49 +00:00
Update hostdetails.py
Add support for get version daemons(hypervisor, libvirt) on hosts
This commit is contained in:
parent
4ce76f57c6
commit
8b08b24d51
1 changed files with 8 additions and 0 deletions
|
|
@ -70,3 +70,11 @@ class wvmHostDetails(wvmConnect):
|
||||||
def hypervisor_type(self):
|
def hypervisor_type(self):
|
||||||
"""Return hypervisor type"""
|
"""Return hypervisor type"""
|
||||||
return get_xml_path(self.get_cap_xml(), "/capabilities/guest/arch/domain/@type")
|
return get_xml_path(self.get_cap_xml(), "/capabilities/guest/arch/domain/@type")
|
||||||
|
|
||||||
|
def hypervisor_version(self):
|
||||||
|
"""Return hypervisor version"""
|
||||||
|
return self.wvm.getVersion()
|
||||||
|
|
||||||
|
def lib_version(self):
|
||||||
|
"""Return libvirt library version"""
|
||||||
|
return self.wvm.getLibVersion()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue