From: Keir Fraser Date: Tue, 13 May 2008 08:48:40 +0000 (+0100) Subject: XM/XenAPI: Add blktap support when creating domains by xm through Xen API. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14215^2~20 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=61341026d9923061982a78f544bb121ea28969c4;p=xen.git XM/XenAPI: Add blktap support when creating domains by xm through Xen API. Signed-off-by: Yosuke Iwamatsu --- diff --git a/tools/python/xen/xm/xenapi_create.py b/tools/python/xen/xm/xenapi_create.py index 11ccaed665..7c45564461 100644 --- a/tools/python/xen/xm/xenapi_create.py +++ b/tools/python/xen/xm/xenapi_create.py @@ -509,7 +509,7 @@ class sxp2xml: if len(child) > 0 and child[0] == "device"] vbds_sxp = map(lambda x: x[1], [device for device in devices - if device[1][0] == "vbd"]) + if device[1][0] in ("vbd", "tap")]) vifs_sxp = map(lambda x: x[1], [device for device in devices if device[1][0] == "vif"])