xend: support blktap2 in xend blkif utils
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 7 May 2010 08:27:40 +0000 (09:27 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 7 May 2010 08:27:40 +0000 (09:27 +0100)
Support tap2 device type in xend blkif utils parse method.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
tools/python/xen/util/blkif.py

index c73a946a256b9570c52b8206fd1cba778c28d37f..cbe76b613f78d13110748c7e335f86f40e2acd64 100644 (file)
@@ -86,7 +86,7 @@ def _parse_uname(uname):
             else:
                 fn = "/dev/%s" %(fn,)
                
-        if typ == "tap":
+        if typ in ("tap", "tap2"):
             (taptype, fn) = fn.split(":", 1)
     return (fn, taptype)