mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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:
1 parent
b81b7c79d3
commit
a80b94ef60
2 files changed
+6
-2
No files matched your search
@@ -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'
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||