mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
network: bridge: Fix regression when defining persistent networks
Commit 0211fd6e04
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;
|
||||
}
|
||||
|
||||
/* define makes the network persistent - always */
|
||||
network->persistent = 1;
|
||||
|
||||
/* def was asigned */
|
||||
freeDef = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user