mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 23:37:42 +00:00
network: bridge: Fix regression when defining persistent networks
Commit 0211fd6e04cdc402da20818df54299c6ded3d3cb introduced regression where newly defined networks were not made persistent. This patch makes the network persistent on each successful definition.
This commit is contained in:
parent
054bbfcbaa
commit
bb19491cf5
@ -3124,6 +3124,9 @@ static virNetworkPtr networkDefine(virConnectPtr conn, const char *xml) {
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* define makes the network persistent - always */
|
||||||
|
network->persistent = 1;
|
||||||
|
|
||||||
/* def was asigned */
|
/* def was asigned */
|
||||||
freeDef = false;
|
freeDef = false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user