

def _libvirt_clear_all(self):
    conn = LibvirtManager.get_connection('test:///default')
    pool = conn.storagePoolLookupByName('default-pool')
    for domain in conn.listAllDomains():
        for snapshot in domain.listAllSnapshots(0):
            snapshot.delete()
        domain.destroy()
        domain.undefine()
    for network in vol.listAllNetworks():
        network.destroy()
        network.undefine()
    for vol in pool.listAllVolumes():
        vol.delete()

dataset/ETHPy150Open openstack/fuel-devops/devops/tests/driver/libvirt/base.py LibvirtTestCase._libvirt_clear_all/VarMisuse@74/102 `conn`->`vol`