ia64/xen-unstable

changeset 17640:900228550847

XM/XenAPI: Add blktap support when creating domains by xm through Xen API.

Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue May 13 09:48:40 2008 +0100 (2008-05-13)
parents 3ea09a104f5a
children 9da75b150015
files tools/python/xen/xm/xenapi_create.py
line diff
     1.1 --- a/tools/python/xen/xm/xenapi_create.py	Tue May 13 09:47:52 2008 +0100
     1.2 +++ b/tools/python/xen/xm/xenapi_create.py	Tue May 13 09:48:40 2008 +0100
     1.3 @@ -509,7 +509,7 @@ class sxp2xml:
     1.4                     if len(child) > 0 and child[0] == "device"]
     1.5                     
     1.6          vbds_sxp = map(lambda x: x[1], [device for device in devices
     1.7 -                                        if device[1][0] == "vbd"])
     1.8 +                                        if device[1][0] in ("vbd", "tap")])
     1.9  
    1.10          vifs_sxp = map(lambda x: x[1], [device for device in devices
    1.11                                          if device[1][0] == "vif"])