

def get_all_devices(self, devtype=None):
    'Returns all devices for a guest\n\n        :param devtype: a LibvirtConfigGuestDevice subclass class\n\n        :returns: a list of LibvirtConfigGuestDevice instances\n        '
    try:
        config = vconfig.LibvirtConfigGuest()
        config.parse_str(self._domain.XMLDesc(0))
    except Exception:
        return []
    devs = []
    for dev in config.devices:
        if ((devtype is None) or isinstance(dev, devtype)):
            config.append(dev)
    return devs

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/libvirt/guest.py Guest.get_all_devices/VarMisuse@85/160 `devs`->`config`