xentaur

changeset 45:9c7a4cfa9738

many platforms support
author igor
date Wed Oct 24 15:17:30 2007 +0300 (2007-10-24)
parents 04f0c6694d1e
children 85794a582ef5
files build-xenomips-image xendomain.py
line diff
     1.1 --- a/build-xenomips-image	Wed Oct 24 14:53:12 2007 +0300
     1.2 +++ b/build-xenomips-image	Wed Oct 24 15:17:30 2007 +0300
     1.3 @@ -2,8 +2,8 @@
     1.4  
     1.5  DYNAMIPS_BUILD=no
     1.6  XENOMIPS_FS_BUILD=no
     1.7 -CONFIG_FS_BUILD=yes
     1.8 -IOS_FS_BUILD=no
     1.9 +CONFIG_FS_BUILD=no
    1.10 +IOS_FS_BUILD=yes
    1.11  
    1.12  XENOMIPS_DIR="files/"
    1.13  XENOMIPS_IMAGES_DIR="/xen/images/"
     2.1 --- a/xendomain.py	Wed Oct 24 14:53:12 2007 +0300
     2.2 +++ b/xendomain.py	Wed Oct 24 15:17:30 2007 +0300
     2.3 @@ -58,9 +58,13 @@
     2.4  if platform == '7200':
     2.5      npe_option=" -t "+npe_type
     2.6  
     2.7 -xenomips='/xenomips/ios/'+ios_name+platform_option+npe_option+' -m 00:16:3e:01:'+hex(int(N))[2:]+':01'
     2.8 +mac_option=' -m 00:16:3e:01:'+hex(int(N))[2:]+':01'
     2.9 +if platform != '7200':
    2.10 +    mac_option =''
    2.11  
    2.12 -defult_network_module={
    2.13 +xenomips='/xenomips/ios/'+ios_name+platform_option+npe_option+mac_option
    2.14 +
    2.15 +default_network_module={
    2.16      '7200' : 'PA-FE-TX',
    2.17      '3600' : 'NM-1FE-TX',
    2.18      '3725' : 'NM-1FE-TX',
    2.19 @@ -69,8 +73,9 @@
    2.20  }
    2.21  network_module=default_network_module[platform]
    2.22  
    2.23 -for i in range(len(vbridges)-1):
    2.24 - xenomips += ' -p '+str(i+1)+':'+network_module
    2.25 +for i in range(len(vbridges)):
    2.26 +    if platform!= '7200' or i!=0:
    2.27 +        xenomips += ' -p '+str(i)+':'+network_module
    2.28  
    2.29  for i in range(len(vbridges)):
    2.30   xenomips += ' -s '+str(i)+':0:gen_eth:eth'+str(i)