]> git.ipfire.org Git - thirdparty/libvirt.git/commit
reload iptables rules simply by re-adding them
authorMark McLoughlin <markmc@redhat.com>
Thu, 10 Dec 2009 11:27:17 +0000 (11:27 +0000)
committerMark McLoughlin <markmc@redhat.com>
Thu, 10 Dec 2009 11:27:17 +0000 (11:27 +0000)
commit98895e93868272e4b8569595585628d8038c5117
treee70ea3d156d5ea1357bc0e781bec9df15cf57d47
parent1b9d0744937a2f44b88577408f9eb9a879c00881
reload iptables rules simply by re-adding them

Currently, when we add iptables rules, we keep them on a list so that
we can easily reload them on e.g. 'service libvirtd reload'.

However, we don't save this list to disk, so if libvirtd is restarted
we lose the ability to reload the rules.

The fix is simple - just re-add the damn things on reload.

Note, we delete the rules before re-adding them, just like the current
behaviour of iptRulesReload().

* src/network/bridge_driver.c: re-add the iptables rules on reload.
src/network/bridge_driver.c