]> git.ipfire.org Git - thirdparty/libvirt.git/commit
net: Remove dnsmasq and radvd files also when destroying transient nets
authorPeter Krempa <pkrempa@redhat.com>
Thu, 25 Oct 2012 14:13:57 +0000 (16:13 +0200)
committerCole Robinson <crobinso@redhat.com>
Sun, 9 Dec 2012 21:21:32 +0000 (16:21 -0500)
commitd3fd61769997a6c3bf36db2a8490b3d12cd2d73a
treece79f04d314ce47fc3ea3eef035aeffca24493e8
parentb16a4ca98b70708b0a99d7e30d3278af10b4d560
net: Remove dnsmasq and radvd files also when destroying transient nets

The network driver didn't care about config files when a network was
destroyed, just when it was undefined leaving behind files for transient
networks.

This patch splits out the cleanup code to a helper function that handles
the cleanup if the inactive network object is being removed and re-uses
this code when getting rid of inactive networks.
(cherry picked from commit e87af617fc3e5a69fb19319d43f58262e5e624ea)
src/network/bridge_driver.c