xentaur
diff examples/icnd2.py @ 68:f652fab38c7a
ec2 parameters small fixes
author | Igor Chubin <igor@chub.in> |
---|---|
date | Mon Jan 11 19:36:56 2010 +0200 (2010-01-11) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/examples/icnd2.py Mon Jan 11 19:36:56 2010 +0200 1.3 @@ -0,0 +1,73 @@ 1.4 +import os 1.5 +domain=os.environ['xendomain'] 1.6 + 1.7 +network='icnd2' 1.8 + 1.9 +domains = [ 1.10 + 'r1', 'r2', 'r3', 'r4', 'core', 1.11 + 'sw1', 'sw2', 'sw3', 1.12 + 'win1', 'win2', 'win3', 1.13 + 'linux' 1.14 + ] 1.15 +domain_types = [ 1.16 + 'cisco', 'cisco', 'cisco', 'cisco', 'cisco', 1.17 + 'catalyst', 'catalyst', 'catalyst', 1.18 + 'windows' , 'windows' , 'windows' , 1.19 + 'linux' 1.20 + ] 1.21 +bridges = [ 1.22 + 'sw1', 'sw2', 'sw3', 1.23 + 'cross4', 'cross5', 'cross6', 'cross7', 'cross8', 'cross9', 'cross10' 1.24 + ] 1.25 + 1.26 +vbridges_table ={ 1.27 + 'r1': ['sw1:fa0/0', 'cross4:s0/0', 'cross5:s0/1'], 1.28 + 'r2': ['sw2:fa0/0', 'cross6:s0/0', 'cross5:s0/1'], 1.29 + 'r3': ['sw3:fa0/0', 'cross7:s0/0', 'cross8:s0/1'], 1.30 + 'r4': ['cross9', 'cross8'], 1.31 + 'core': ['cross4:s0/0','cross6:s0/1','cross7:s0/2','cross9:s0/3', 'cross10:eth0/0' ], 1.32 + 'win1': ['sw1'], 1.33 + 'win2': ['sw2'], 1.34 + 'win3': ['sw3'], 1.35 + 'linux': ['cross10'], 1.36 +} 1.37 + 1.38 +bridge_bridge_table = { 1.39 +} 1.40 + 1.41 +hidden_bridges = [] 1.42 +cross_bridges= [ 'cross4', 'cross5', 'cross6', 'cross7', 'cross8', 'cross9', 'cross10' ] 1.43 + 1.44 +broken_links = [] 1.45 +temporary_links = [] 1.46 + 1.47 +real_bridges=['sw1', 'sw2', 'sw3',] 1.48 +real_nodes=['r1','r2','r3', 'r4', 'core', 'win1', 'win2', 'win3', 'linux'] 1.49 + 1.50 +N=domains.index(domain) 1.51 +if domain_types[N] == 'quagga': 1.52 + memory = 64 1.53 +else: 1.54 + memory = 400 1.55 + 1.56 +xenomips_dir='/home/nata/xenomips-images/' 1.57 +ios_name='C7200-AD.BIN' 1.58 +npe_type='npe-400' 1.59 + 1.60 +connection_table={ 1.61 + 'sw1' : 'minicom -o ttyV0', 1.62 + 'sw2' : 'minicom -o ttyV1', 1.63 + 'sw3' : 'minicom -o ttyV2', 1.64 + 'r1' : 'minicom -o ttyV3', 1.65 + 'r2' : 'minicom -o ttyV4', 1.66 + 'r3' : 'minicom -o ttyV5', 1.67 + 'r4' : 'minicom -o ttyV7', 1.68 + 'core' : 'minicom -o ttyV6', 1.69 +} 1.70 + 1.71 + 1.72 +# connection types: 1.73 +# minicom 1.74 +# vnc 1.75 +# rdesktop 1.76 +