diff --git a/ChangeLog b/ChangeLog index 42a3fb6fd4c711f378f1af9ee4fc16d6d832f073..3ea28d0773455711ccb408ace57fb23258a9b375 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Mar 2 12:25:58 EST 2009 Cole Robinson + + * src/network_driver.c src/network_conf.c: Mark 'defined' networks + as persistent. + Mon Mar 2 17:35:09 CET 2009 Daniel Veillard * docs/schemas/domain.rng src/domain_conf.c src/domain_conf.h diff --git a/src/network_conf.c b/src/network_conf.c index e19f0fe3abf0cdf153ec134af8cde00a0c63ee06..6ad0d01fd78d1bf25dc9b2991512a4724615aa81 100644 --- a/src/network_conf.c +++ b/src/network_conf.c @@ -747,6 +747,7 @@ virNetworkObjPtr virNetworkLoadConfig(virConnectPtr conn, goto error; net->autostart = autostart; + net->persistent = 1; VIR_FREE(configFile); VIR_FREE(autostartLink); diff --git a/src/network_driver.c b/src/network_driver.c index 3c765c8ec6f09921e2d4bad56efeaa311564fa64..4b9c6666233613441d4e005664301d32aee133d8 100644 --- a/src/network_driver.c +++ b/src/network_driver.c @@ -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) {