ia64/xen-unstable

changeset 9215:b13e54483c1a

Fix xmtest 13_create_multinic_pos.py to work with HVM.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
author stekloff@elm3b216.beaverton.ibm.com
date Fri Mar 10 00:49:08 2006 +0100 (2006-03-10)
parents e31f21fc391d
children 8c1badb84c3e
files tools/xm-test/tests/create/13_create_multinic_pos.py
line diff
     1.1 --- a/tools/xm-test/tests/create/13_create_multinic_pos.py	Thu Mar 09 23:07:27 2006 +0100
     1.2 +++ b/tools/xm-test/tests/create/13_create_multinic_pos.py	Fri Mar 10 00:49:08 2006 +0100
     1.3 @@ -5,8 +5,16 @@
     1.4  
     1.5  from XmTestLib import *
     1.6  
     1.7 -for i in range(0,10):
     1.8 -    config = {"vif": ['' for _ in range(0, i)]}
     1.9 +# The current device model, qemu-dm, only supports 8 MAX_NICS currently.
    1.10 +if ENABLE_HVM_SUPPORT:
    1.11 +    MAX_NICS = 8
    1.12 +    nic = "type=ioemu, bridge=xenbr0"
    1.13 +else:
    1.14 +    MAX_NICS = 10
    1.15 +    nic = ''
    1.16 +
    1.17 +for i in range(0,MAX_NICS):
    1.18 +    config = {"vif": [ nic ] * i}
    1.19      domain = XmTestDomain(extraConfig=config)
    1.20  
    1.21      try: