# HG changeset patch # User igor # Date 1194717612 -7200 # Node ID 548bd71dc5fb772c6f24ac524199a57c88b1c479 # Parent 308b524d9a7047552bf7e9f192e5fdc4df434143 + example diff -r 308b524d9a70 -r 548bd71dc5fb examples/icnd2.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/icnd2.py Sat Nov 10 20:00:12 2007 +0200 @@ -0,0 +1,73 @@ +import os +domain=os.environ['xendomain'] + +network='icnd2' + +domains = [ + 'r1', 'r2', 'r3', 'r4', 'core', + 'sw1', 'sw2', 'sw3', + 'win1', 'win2', 'win3', + 'linux' + ] +domain_types = [ + 'cisco', 'cisco', 'cisco', 'cisco', 'cisco', + 'catalyst', 'catalyst', 'catalyst', + 'windows' , 'windows' , 'windows' , + 'linux' + ] +bridges = [ + 'sw1', 'sw2', 'sw3', + 'cross4', 'cross5', 'cross6', 'cross7', 'cross8', 'cross9', 'cross10' + ] + +vbridges_table ={ + 'r1': ['sw1:fa0/0', 'cross4:s0/0', 'cross5:s0/1'], + 'r2': ['sw2:fa0/0', 'cross6:s0/0', 'cross5:s0/1'], + 'r3': ['sw3:fa0/0', 'cross7:s0/0', 'cross8:s0/1'], + 'r4': ['cross9', 'cross8'], + 'core': ['cross4:s0/0','cross6:s0/1','cross7:s0/2','cross9:s0/3', 'cross10:eth0/0' ], + 'win1': ['sw1'], + 'win2': ['sw2'], + 'win3': ['sw3'], + 'linux': ['cross10'], +} + +bridge_bridge_table = { +} + +hidden_bridges = [] +cross_bridges= [ 'cross4', 'cross5', 'cross6', 'cross7', 'cross8', 'cross9', 'cross10' ] + +broken_links = [] +temporary_links = [] + +real_bridges=['sw1', 'sw2', 'sw3',] +real_nodes=['r1','r2','r3', 'r4', 'core', 'win1', 'win2', 'win3', 'linux'] + +N=domains.index(domain) +if domain_types[N] == 'quagga': + memory = 64 +else: + memory = 400 + +xenomips_dir='/home/nata/xenomips-images/' +ios_name='C7200-AD.BIN' +npe_type='npe-400' + +connection_table={ + 'sw1' : 'minicom -o ttyV0', + 'sw2' : 'minicom -o ttyV1', + 'sw3' : 'minicom -o ttyV2', + 'r1' : 'minicom -o ttyV3', + 'r2' : 'minicom -o ttyV4', + 'r3' : 'minicom -o ttyV5', + 'r4' : 'minicom -o ttyV7', + 'core' : 'minicom -o ttyV6', +} + + +# connection types: +# minicom +# vnc +# rdesktop +