xentaur
diff xendomain.py @ 44:04f0c6694d1e
default network module
author | igor |
---|---|
date | Wed Oct 24 14:53:12 2007 +0300 (2007-10-24) |
parents | e006fac33f05 |
children | 9c7a4cfa9738 |
line diff
1.1 --- a/xendomain.py Wed Oct 24 13:27:53 2007 +0300 1.2 +++ b/xendomain.py Wed Oct 24 14:53:12 2007 +0300 1.3 @@ -60,8 +60,17 @@ 1.4 1.5 xenomips='/xenomips/ios/'+ios_name+platform_option+npe_option+' -m 00:16:3e:01:'+hex(int(N))[2:]+':01' 1.6 1.7 +defult_network_module={ 1.8 + '7200' : 'PA-FE-TX', 1.9 + '3600' : 'NM-1FE-TX', 1.10 + '3725' : 'NM-1FE-TX', 1.11 + '3745' : 'NM-1FE-TX', 1.12 + '2691' : 'NM-1FE-TX', 1.13 +} 1.14 +network_module=default_network_module[platform] 1.15 + 1.16 for i in range(len(vbridges)-1): 1.17 - xenomips += ' -p '+str(i+1)+':PA-FE-TX' 1.18 + xenomips += ' -p '+str(i+1)+':'+network_module 1.19 1.20 for i in range(len(vbridges)): 1.21 xenomips += ' -s '+str(i)+':0:gen_eth:eth'+str(i)