From: Mark McLoughlin Date: Thu, 10 Dec 2009 11:27:17 +0000 (+0000) Subject: reload iptables rules on libvirtd restart X-Git-Tag: v0.7.5~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=534664c372369cbee866383c38c91be2308bace9;p=thirdparty%2Flibvirt.git reload iptables rules on libvirtd restart 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 --- diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c index 766f8cd584..d5cab71b8c 100644 --- a/src/network/bridge_driver.c +++ b/src/network/bridge_driver.c @@ -259,6 +259,7 @@ networkStartup(int privileged) { goto error; networkFindActiveConfigs(driverState); + networkReloadIptablesRules(driverState); networkAutostartConfigs(driverState); networkDriverUnlock(driverState);