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

[libvirt] [PATCH] fix network interface parsing



Hi All,

While testing libvirt 0.4.5 and 0.4.6 I noticed only one network
interface in domain xml for a xen guest regardless of number actually
assigned.  Turns out the last interface parsed is always placed on head
of nets list instead of appending to tail.  Patch attached.

Cheers,
Jim


Index: libvirt-0.4.6/src/xend_internal.c
===================================================================
--- libvirt-0.4.6.orig/src/xend_internal.c
+++ libvirt-0.4.6/src/xend_internal.c
@@ -1890,6 +1890,8 @@ xenDaemonParseSxprNets(virConnectPtr con
                 prev->next = net;
             else
                 def->nets = net;
+
+            prev = net;
             vif_index++;
         }
     }

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