[patch 5/9] Fix network iface XML output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Mark McLoughlin <markmc@xxxxxxxxxx>

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' &&

-- 


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]