]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
network: remove autostart flag from network when undefining it
authorPeter Krempa <pkrempa@redhat.com>
Wed, 17 Apr 2013 08:13:35 +0000 (10:13 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 18 Apr 2013 07:44:14 +0000 (09:44 +0200)
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

index 3b279801f1698937cb467b331588b1a86e3a274f..6ea09faad8b46791760680e462cec4a3776c8189 100644 (file)
@@ -3192,6 +3192,7 @@ networkUndefine(virNetworkPtr net) {
 
     /* make the network transient */
     network->persistent = 0;
+    network->autostart = 0;
     virNetworkDefFree(network->newDef);
     network->newDef = NULL;