[libvirt] [PATCH 1/2] network: remove autostart flag from network when undefining it

Peter Krempa pkrempa at redhat.com
Wed Apr 17 08:40:44 UTC 2013


When turning a started persistent network into a transient one we forgot
to remove the autostart flag that is no longer valid at that point.
---
 src/network/bridge_driver.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c
index e8b314a..bca6bd9 100644
--- a/src/network/bridge_driver.c
+++ b/src/network/bridge_driver.c
@@ -3193,6 +3193,7 @@ networkUndefine(virNetworkPtr net) {

     /* make the network transient */
     network->persistent = 0;
+    network->autostart = 0;
     virNetworkDefFree(network->newDef);
     network->newDef = NULL;

-- 
1.8.1.5




More information about the libvir-list mailing list