We weren't handling the network interface type correctly
and also outputting incorrect XML

Signed-off-by: Mark McLoughlin <[EMAIL PROTECTED]>

Index: libvirt/qemud/conf.c
===================================================================
--- libvirt.orig/qemud/conf.c
+++ libvirt/qemud/conf.c
@@ -1876,6 +1876,7 @@ char *qemudGenerateXML(struct qemud_serv
             "server",
             "client",
             "mcast",
+            "network",
             "vde",
         };
         if (qemudBufferPrintf(&buf, "    <interface type='%s'>\n",
@@ -1890,7 +1891,7 @@ char *qemudGenerateXML(struct qemud_serv
             goto no_memory;
 
         if (net->type == QEMUD_NET_NETWORK) {
-            if (qemudBufferPrintf(&buf, "      <network name='%s'", 
net->dst.network.name) < 0)
+            if (qemudBufferPrintf(&buf, "      <source network='%s'", 
net->dst.network.name) < 0)
                 goto no_memory;
 
             if (net->dst.network.tapifname[0] != '\0' &&

-- 

--
Libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to