xm: explicitly differentiate between tap and tap2 in config parsing.

From: Jim Fehlig <jfehlig@novell.com>
Signed-off-by: Keir Fraser <Keir.Fraser@eu.citrix.com>
xen-unstable changeset:   21338:a915a11908e3
xen-unstable date:        Tue May 11 08:31:16 2010 +0100
This commit is contained in:
Keir Fraser committed 2010-05-11 08:40:52 +01:00
1 parent b81b7c79d3
commit a80b94ef60
2 files changed
+6 -2

No files matched your search

+3 -1
View File
@@ -783,8 +783,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'
+3 -1
View File
@@ -2487,8 +2487,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'
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.