xm: Add "tap2" to attach blocktap disks to VM

I detected a problem when using XenAPI.  When I started a VM by
using xm create command, blocktap disks were not attached to the
VM.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
Keir Fraser committed 2009-09-03 09:49:41 +01:00
1 parent 28807cd268
commit 4dd7eb9f09
1 file changed
+1 -1
+1 -1
View File
@@ -594,7 +594,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] in ("vbd", "tap")])
if device[1][0] in ("vbd", "tap", "tap2")])
vifs_sxp = map(lambda x: x[1], [device for device in devices
if device[1][0] == "vif"])
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.