xentaur
diff xendomain.py @ 42:e006fac33f05
dynamips platform
author | igor |
---|---|
date | Wed Oct 24 13:27:53 2007 +0300 (2007-10-24) |
parents | 10444acb35f4 |
children | 04f0c6694d1e |
line diff
1.1 --- a/xendomain.py Fri Oct 12 17:31:34 2007 +0300 1.2 +++ b/xendomain.py Wed Oct 24 13:27:53 2007 +0300 1.3 @@ -50,7 +50,15 @@ 1.4 disk = [ 'file:'+xenomips_dir+'xenomips1.img,hda1,r', 'file:'+xenomips_dir+'xenomips-ios1.img,hda2,r', 'file:'+xenomips_dir+'xenomips-config'+N+'.img,hda3,w' ] 1.5 root = "/dev/hda1 ro" 1.6 1.7 -xenomips='/xenomips/ios/'+ios_name+' -t '+npe_type+' -m 00:16:3e:01:'+hex(int(N))[2:]+':01' 1.8 +platform_option="" 1.9 +if platform != '7200': 1.10 + platform_option=' -P '+platform 1.11 + 1.12 +npe_option="" 1.13 +if platform == '7200': 1.14 + npe_option=" -t "+npe_type 1.15 + 1.16 +xenomips='/xenomips/ios/'+ios_name+platform_option+npe_option+' -m 00:16:3e:01:'+hex(int(N))[2:]+':01' 1.17 1.18 for i in range(len(vbridges)-1): 1.19 xenomips += ' -p '+str(i+1)+':PA-FE-TX'