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

[Libvir] [patch 5/9] Fix network iface XML output



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

Signed-off-by: Mark McLoughlin <markmc redhat com>

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

-- 


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