Preserve vif order

* src/xml-internal.c: apply patch from Hiroyuki Kaguchi to
  preserve the vif list order.
Daniel
This commit is contained in:
Daniel Veillard 2008-01-21 08:27:12 +00:00
parent d3043afe5c
commit 5912e7c233
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Mon Jan 21 09:25:12 CET 2008 Daniel Veillard <veillard@redhat.com>
* src/xml-internal.c: apply patch from Hiroyuki Kaguchi to
preserve the vif list order.
Mon Jan 21 09:06:28 CET 2008 Daniel Veillard <veillard@redhat.com>
* docs/API* docs/api.xsl docs/site.xsl docs/Makefile.am: remove the

View File

@ -2232,7 +2232,7 @@ virConfPtr xenXMParseXMLToConfig(virConnectPtr conn, const char *xml) {
}
vifs->type = VIR_CONF_LIST;
vifs->list = NULL;
for (i = 0; i < obj->nodesetval->nodeNr; i++) {
for (i = obj->nodesetval->nodeNr - 1; i >= 0; i--) {
virConfValuePtr thisVif;
char *vif = xenXMParseXMLVif(conn, obj->nodesetval->nodeTab[i], hvm);
if (!vif)