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.
This commit is contained in:
Peter Krempa 2013-04-17 10:13:35 +02:00
parent 06902a6f18
commit 45012bc85b

View File

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