mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
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:
parent
06902a6f18
commit
45012bc85b
@ -3192,6 +3192,7 @@ networkUndefine(virNetworkPtr net) {
|
||||
|
||||
/* make the network transient */
|
||||
network->persistent = 0;
|
||||
network->autostart = 0;
|
||||
virNetworkDefFree(network->newDef);
|
||||
network->newDef = NULL;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user