]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
reload iptables rules on libvirtd restart
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)
This is the expected behaviour, I think - reloading libvirtd should
be a subset of restarting it.

Note, we reload the rules after we've determined which networks
are active (because we only add the rules for active networks)
and before we start autostart networks (to avoid re-adding the
rules).

* src/network/bridge_driver.c: reload iptables rules on startup

src/network/bridge_driver.c

index 766f8cd5849715b37b441f541345cf4fbd1c6aab..d5cab71b8c08a18c3b14cb70863508590614081b 100644 (file)
@@ -259,6 +259,7 @@ networkStartup(int privileged) {
         goto error;
 
     networkFindActiveConfigs(driverState);
+    networkReloadIptablesRules(driverState);
     networkAutostartConfigs(driverState);
 
     networkDriverUnlock(driverState);