def _list_instance_domains_fast(self, only_running=True):
    flags = libvirt.VIR_CONNECT_LIST_DOMAINS_ACTIVE
    if (not only_running):
        flags = (flags | libvirt.VIR_CONNECT_LIST_DOMAINS_INACTIVE)
    return self._conn.listAllDomains(flags)
def _list_instance_domains_fast(self, only_running=True):
    flags = libvirt.VIR_CONNECT_LIST_DOMAINS_ACTIVE
    if (not only_running):
        flags = (flags | libvirt.VIR_CONNECT_LIST_DOMAINS_INACTIVE)
    return self._conn.listAllDomains(flags)