[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]