Previously[1] I patched libvirt to add the virDomainGetConnect and
virNetworkGetConnect functions. The rationale for these is explained
here[2].
The attached patch makes the Python bindings use these functions instead
of storing the connection object explicitly.
Rich.
[
1]https://www.redhat.com/archives/libvir-list/2007-June/msg00365.html
[
2]https://www.redhat.com/archives/libvir-list/2007-June/msg00352.html