]> 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)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 2 Nov 2012 12:28:40 +0000 (13:28 +0100)
commite87af617fc3e5a69fb19319d43f58262e5e624ea
treefe66a52664e870283f389e19e156a5967b064f1f
parent23ae3fe4256ba634babc6818b8cb7bbd3664a95a
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.
src/network/bridge_driver.c