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:
Peter Krempa 2013-01-11 11:10:34 +01:00
parent 054bbfcbaa
commit bb19491cf5

View File

@ -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;