* src/network_driver.c: forbid set Autostart on transcient networks

daniel
This commit is contained in:
Daniel Veillard 2009-06-03 13:52:06 +00:00
parent 69d4634635
commit e11013d19c
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Wed Jun 3 15:44:55 CEST 2009 Daniel Veillard <veillard@redhat.com>
* src/network_driver.c: forbid set Autostart on transcient networks
Wed Jun 3 14:30:52 BST 2009 Daniel P. Berrange <berrange@redhat.com>
* src/vbox/vbox_tmpl.c: Switch to positional struct initializers

View File

@ -1353,6 +1353,12 @@ static int networkSetAutostart(virNetworkPtr net,
goto cleanup;
}
if (!network->persistent) {
networkReportError(net->conn, NULL, net, VIR_ERR_INTERNAL_ERROR,
"%s", _("cannot set autostart for transient network"));
goto cleanup;
}
autostart = (autostart != 0);
if (network->autostart != autostart) {