WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Fix xm network-list through the Xen-API f

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Fix xm network-list through the Xen-API for managed domains.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 20 Mar 2007 13:30:24 -0700
Delivery-date: Tue, 20 Mar 2007 13:30:36 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1174412074 0
# Node ID 92f14ace389cd7bdb3809c149e584aa331b92958
# Parent  07d1bd92ade8cde4ed6862d76f8a60309b539ec8
Fix xm network-list through the Xen-API for managed domains.

Signed-off-by: Tom Wilkie <tom.wilkie@xxxxxxxxx>
---
 tools/python/xen/xm/main.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 07d1bd92ade8 -r 92f14ace389c tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Tue Mar 20 17:33:35 2007 +0000
+++ b/tools/python/xen/xm/main.py       Tue Mar 20 17:34:34 2007 +0000
@@ -1692,7 +1692,8 @@ def xm_network_list(args):
         vif_refs = server.xenapi.VM.get_VIFs(get_single_vm(dom))
         vif_properties = \
             map(server.xenapi.VIF.get_runtime_properties, vif_refs)
-        devs = map(lambda x: [x.get('handle'), map2sxp(x)], vif_properties)
+        devs = map(lambda (handle, properties): [handle, map2sxp(properties)],
+                   zip(range(len(vif_properties)), vif_properties))
     else:
         devs = server.xend.domain.getDeviceSxprs(dom, 'vif')
         

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Fix xm network-list through the Xen-API for managed domains., Xen patchbot-unstable <=