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

daniel
This commit is contained in:
Daniel Veillard committed 2009-06-03 13:52:06 +00:00
1 parent 69d4634635
commit e11013d19c
2 files changed
+10

No files matched your search

+4
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
+6
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) {