xentaur

changeset 42:e006fac33f05

dynamips platform
author igor
date Wed Oct 24 13:27:53 2007 +0300 (2007-10-24)
parents 8c00f233a1d4
children 61476759b5f1
files build-xenomips-image xendomain.py
line diff
     1.1 --- a/build-xenomips-image	Wed Oct 24 12:31:52 2007 +0300
     1.2 +++ b/build-xenomips-image	Wed Oct 24 13:27:53 2007 +0300
     1.3 @@ -23,8 +23,8 @@
     1.4  IOS_FS_SIZE=2048k
     1.5  IOS_FS_NAME=${XENOMIPS_IMAGES_DIR}/xenomips-ios1.img
     1.6  
     1.7 -DEBIAN_MIRROR=http://debian.osdn.org.ua/debian
     1.8 -DISTRO=sid
     1.9 +DEBIAN_MIRROR=ftp://debian.org.ua/debian
    1.10 +DISTRO=etch
    1.11  PACKAGES="openssh-server libc6-xen libelf1 libpcap0.8 screen nfs-common quagga tcpdump telnet ntpdate hping3 openntpd"
    1.12  DYNAMIPS_SOURCES=http://www.ipflow.utc.fr/dynamips/dynamips-0.2.7.tar.gz
    1.13  DYNAMIPS_BUILD_DIR=dynamips/
     2.1 --- a/xendomain.py	Wed Oct 24 12:31:52 2007 +0300
     2.2 +++ b/xendomain.py	Wed Oct 24 13:27:53 2007 +0300
     2.3 @@ -50,7 +50,15 @@
     2.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' ]
     2.5  root = "/dev/hda1 ro"
     2.6  
     2.7 -xenomips='/xenomips/ios/'+ios_name+' -t '+npe_type+' -m 00:16:3e:01:'+hex(int(N))[2:]+':01'
     2.8 +platform_option=""
     2.9 +if platform != '7200':
    2.10 +    platform_option=' -P '+platform
    2.11 +
    2.12 +npe_option=""
    2.13 +if platform == '7200':
    2.14 +    npe_option=" -t "+npe_type
    2.15 +
    2.16 +xenomips='/xenomips/ios/'+ios_name+platform_option+npe_option+' -m 00:16:3e:01:'+hex(int(N))[2:]+':01'
    2.17  
    2.18  for i in range(len(vbridges)-1):
    2.19   xenomips += ' -p '+str(i+1)+':PA-FE-TX'