[PATCH 0/2] fix re-attach of bridge device for <interface type='bridge'>

Laine Stump laine at redhat.com
Fri Jan 8 07:42:46 UTC 2021


For a long time I thought this worked, but during discussion in a
bugzilla report one day I realized it only worked properly for
<interface type='network'> - we're not even trying to reattach bridges
during libvirtd restart for type='bridge' (i.e. no associated libvirt
network).

These two patches together fix that problem.

Laine Stump (2):
  call virDomainNetNotifyActualDevice() for all interface types
  use g_autoptr for (almost) all virConnectPtrs used with
    virGetConnectNetwork()

 src/conf/domain_conf.c   |  3 +--
 src/libxl/libxl_driver.c | 24 +++++++++---------------
 src/lxc/lxc_driver.c     | 17 +++++------------
 src/lxc/lxc_process.c    | 19 +++++++------------
 src/qemu/qemu_process.c  |  9 ++++-----
 5 files changed, 26 insertions(+), 46 deletions(-)

-- 
2.29.2




More information about the libvir-list mailing list