提交 74fb2b97 编写于 作者: D Daniel P. Berrange

Deal with inactive virtual network in domain creation

上级 4e51a21c
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>
* src/qemu_driver.c: patch from Kaitlin Rupert, changing vcpu or
......
......@@ -2679,8 +2679,13 @@ int qemudBuildCommandLine(virConnectPtr conn,
switch (net->type) {
case QEMUD_NET_NETWORK:
case QEMUD_NET_BRIDGE:
ADD_ARG(qemudNetworkIfaceConnect(conn, driver, vm, net, vlan));
break;
{
char *tap = qemudNetworkIfaceConnect(conn, driver, vm, net, vlan);
if (tap == NULL)
goto error;
ADD_ARG(tap);
break;
}
case QEMUD_NET_ETHERNET:
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册