From: Keir Fraser Date: Tue, 11 May 2010 07:31:16 +0000 (+0100) Subject: xm: explicitly differentiate between tap and tap2 in config parsing. X-Git-Tag: 4.1.0-rc1~1278 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=dc21ec2b12dc52137d01e89876e4d190ab3f9d37;p=xen.git xm: explicitly differentiate between tap and tap2 in config parsing. From: Jim Fehlig Signed-off-by: Keir Fraser --- diff --git a/tools/python/xen/xm/create.py b/tools/python/xen/xm/create.py index 71c1e63d39..7a2eb142ce 100644 --- a/tools/python/xen/xm/create.py +++ b/tools/python/xen/xm/create.py @@ -787,8 +787,10 @@ def configure_disks(config_devs, vals): """Create the config for disks (virtual block devices). """ for (uname, dev, mode, backend, protocol) in vals.disk: - if uname.startswith('tap:'): + if uname.startswith('tap2:'): cls = 'tap2' + elif uname.startswith('tap:'): + cls = 'tap' else: cls = 'vbd' diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py index de119996b8..33d734fe1c 100644 --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -2634,8 +2634,10 @@ def xm_usb_list_assignable_devices(args): def parse_block_configuration(args): dom = args[0] - if args[1].startswith('tap:'): + if args[1].startswith('tap2:'): cls = 'tap2' + elif args[1].startswith('tap:'): + cls = 'tap' else: cls = 'vbd'