

def ex_get_hypervisor_sysinfo(self):
    '\n        Retrieve hypervisor system information.\n\n        :rtype: ``dict``\n        '
    xml = self.connection.getSysinfo()
    etree = ET.XML(xml)
    attributes = ['bios', 'system', 'processor', 'memory_device']
    sysinfo = {
        
    }
    for attribute in attributes:
        element = etree.find(attribute)
        entries = self._get_entries(element=element)
        sysinfo[attribute] = entries
    return sysinfo

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/libvirt_driver.py LibvirtNodeDriver.ex_get_hypervisor_sysinfo/original