mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
* src/network_driver.c: forbid set Autostart on transcient networks
daniel
This commit is contained in:
parent
69d4634635
commit
e11013d19c
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user