mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Fix xm network-list through the Xen-API for managed domains.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
This commit is contained in:
1 parent
f7bff36895
commit
5ce79470d8
1 file changed
+2
-1
@@ -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')
|
||||
|
||||
|
||||