mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
Fixed bridge networking for QEMU
This commit is contained in:
parent
348209ca26
commit
1109ba44e2
@ -1,3 +1,9 @@
|
||||
Tue Mar 27 10:46:00 EDT 2007 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
* qemud/conf.c: Fixed bridged config to refer to 'bridge' attribute
|
||||
instead of 'dev' attribte on the <source> element, thus complying
|
||||
with schema.
|
||||
|
||||
Tue Mar 27 10:39:00 EDT 2007 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
* src/xen_internal.c: Fix handling of PAE flags in capabilities XML
|
||||
|
@ -508,7 +508,7 @@ static struct qemud_vm_net_def *qemudParseInterfaceXML(struct qemud_server *serv
|
||||
} else if ((network == NULL) &&
|
||||
(net->type == QEMUD_NET_BRIDGE) &&
|
||||
(xmlStrEqual(cur->name, BAD_CAST "source"))) {
|
||||
bridge = xmlGetProp(cur, BAD_CAST "dev");
|
||||
bridge = xmlGetProp(cur, BAD_CAST "bridge");
|
||||
} else if ((network == NULL) &&
|
||||
((net->type == QEMUD_NET_SERVER) ||
|
||||
(net->type == QEMUD_NET_CLIENT) ||
|
||||
@ -2549,7 +2549,7 @@ char *qemudGenerateXML(struct qemud_server *server,
|
||||
break;
|
||||
|
||||
case QEMUD_NET_BRIDGE:
|
||||
if (bufferVSprintf(buf, " <source dev='%s'/>\n", net->dst.bridge.brname) < 0)
|
||||
if (bufferVSprintf(buf, " <source bridge='%s'/>\n", net->dst.bridge.brname) < 0)
|
||||
goto no_memory;
|
||||
if (net->dst.bridge.ifname[0] != '\0') {
|
||||
if (bufferVSprintf(buf, " <target dev='%s'/>\n", net->dst.bridge.ifname) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user