mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +00:00
Mark 'defined' networks as persistent.
This commit is contained in:
parent
09fb8845a7
commit
895247b76b
@ -1,3 +1,8 @@
|
||||
Mon Mar 2 12:25:58 EST 2009 Cole Robinson <crobinso@redhat.com>
|
||||
|
||||
* src/network_driver.c src/network_conf.c: Mark 'defined' networks
|
||||
as persistent.
|
||||
|
||||
Mon Mar 2 17:35:09 CET 2009 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* docs/schemas/domain.rng src/domain_conf.c src/domain_conf.h
|
||||
|
@ -747,6 +747,7 @@ virNetworkObjPtr virNetworkLoadConfig(virConnectPtr conn,
|
||||
goto error;
|
||||
|
||||
net->autostart = autostart;
|
||||
net->persistent = 1;
|
||||
|
||||
VIR_FREE(configFile);
|
||||
VIR_FREE(autostartLink);
|
||||
|
@ -1153,6 +1153,8 @@ static virNetworkPtr networkDefine(virConnectPtr conn, const char *xml) {
|
||||
goto cleanup;
|
||||
def = NULL;
|
||||
|
||||
network->persistent = 1;
|
||||
|
||||
if (virNetworkSaveConfig(conn,
|
||||
driver->networkConfigDir,
|
||||
network->newDef ? network->newDef : network->def) < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user