# HG changeset patch # User igor # Date 1193221673 -10800 # Node ID e006fac33f0563fb9474df2596657fef1ad3b132 # Parent 8c00f233a1d4dba7b93033fab1adbaeee890c9f5 dynamips platform diff -r 8c00f233a1d4 -r e006fac33f05 build-xenomips-image --- a/build-xenomips-image Wed Oct 24 12:31:52 2007 +0300 +++ b/build-xenomips-image Wed Oct 24 13:27:53 2007 +0300 @@ -23,8 +23,8 @@ IOS_FS_SIZE=2048k IOS_FS_NAME=${XENOMIPS_IMAGES_DIR}/xenomips-ios1.img -DEBIAN_MIRROR=http://debian.osdn.org.ua/debian -DISTRO=sid +DEBIAN_MIRROR=ftp://debian.org.ua/debian +DISTRO=etch PACKAGES="openssh-server libc6-xen libelf1 libpcap0.8 screen nfs-common quagga tcpdump telnet ntpdate hping3 openntpd" DYNAMIPS_SOURCES=http://www.ipflow.utc.fr/dynamips/dynamips-0.2.7.tar.gz DYNAMIPS_BUILD_DIR=dynamips/ diff -r 8c00f233a1d4 -r e006fac33f05 xendomain.py --- a/xendomain.py Wed Oct 24 12:31:52 2007 +0300 +++ b/xendomain.py Wed Oct 24 13:27:53 2007 +0300 @@ -50,7 +50,15 @@ 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' ] root = "/dev/hda1 ro" -xenomips='/xenomips/ios/'+ios_name+' -t '+npe_type+' -m 00:16:3e:01:'+hex(int(N))[2:]+':01' +platform_option="" +if platform != '7200': + platform_option=' -P '+platform + +npe_option="" +if platform == '7200': + npe_option=" -t "+npe_type + +xenomips='/xenomips/ios/'+ios_name+platform_option+npe_option+' -m 00:16:3e:01:'+hex(int(N))[2:]+':01' for i in range(len(vbridges)-1): xenomips += ' -p '+str(i+1)+':PA-FE-TX'