Deal with inactive virtual network in domain creation

This commit is contained in:
Daniel P. Berrange 2008-06-12 10:19:24 +00:00
parent 4e51a21ccb
commit 74fb2b9704
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Thu Jun 12 11:18:08 BST 2008 Daniel P. Berrange <berrange@redhat.com>
* src/qemu_conf.c: Deal with failure due to inactive virtual
network when creating domain.
Thu Jun 12 10:53:08 CEST 2008 Daniel Veillard <veillard@redhat.com> Thu Jun 12 10:53:08 CEST 2008 Daniel Veillard <veillard@redhat.com>
* src/qemu_driver.c: patch from Kaitlin Rupert, changing vcpu or * src/qemu_driver.c: patch from Kaitlin Rupert, changing vcpu or

View File

@ -2679,8 +2679,13 @@ int qemudBuildCommandLine(virConnectPtr conn,
switch (net->type) { switch (net->type) {
case QEMUD_NET_NETWORK: case QEMUD_NET_NETWORK:
case QEMUD_NET_BRIDGE: case QEMUD_NET_BRIDGE:
ADD_ARG(qemudNetworkIfaceConnect(conn, driver, vm, net, vlan)); {
char *tap = qemudNetworkIfaceConnect(conn, driver, vm, net, vlan);
if (tap == NULL)
goto error;
ADD_ARG(tap);
break; break;
}
case QEMUD_NET_ETHERNET: case QEMUD_NET_ETHERNET:
{ {