1
0
Fork 0
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:
savichev 2016-06-15 11:29:51 +05:00 committed by GitHub
parent 4ce76f57c6
commit 8b08b24d51

View file

@ -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()