mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-29 17:33:09 +00:00
Deal with inactive virtual network in domain creation
This commit is contained in:
parent
4e51a21ccb
commit
74fb2b9704
@ -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
|
||||||
|
@ -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:
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user