xentaur
view examples/icnd2.py @ 60:e7b9761c03e8
info() + logo()
author | igor |
---|---|
date | Sun Nov 11 20:57:50 2007 +0200 (2007-11-11) |
parents | |
children |
line source
1 import os
2 domain=os.environ['xendomain']
4 network='icnd2'
6 domains = [
7 'r1', 'r2', 'r3', 'r4', 'core',
8 'sw1', 'sw2', 'sw3',
9 'win1', 'win2', 'win3',
10 'linux'
11 ]
12 domain_types = [
13 'cisco', 'cisco', 'cisco', 'cisco', 'cisco',
14 'catalyst', 'catalyst', 'catalyst',
15 'windows' , 'windows' , 'windows' ,
16 'linux'
17 ]
18 bridges = [
19 'sw1', 'sw2', 'sw3',
20 'cross4', 'cross5', 'cross6', 'cross7', 'cross8', 'cross9', 'cross10'
21 ]
23 vbridges_table ={
24 'r1': ['sw1:fa0/0', 'cross4:s0/0', 'cross5:s0/1'],
25 'r2': ['sw2:fa0/0', 'cross6:s0/0', 'cross5:s0/1'],
26 'r3': ['sw3:fa0/0', 'cross7:s0/0', 'cross8:s0/1'],
27 'r4': ['cross9', 'cross8'],
28 'core': ['cross4:s0/0','cross6:s0/1','cross7:s0/2','cross9:s0/3', 'cross10:eth0/0' ],
29 'win1': ['sw1'],
30 'win2': ['sw2'],
31 'win3': ['sw3'],
32 'linux': ['cross10'],
33 }
35 bridge_bridge_table = {
36 }
38 hidden_bridges = []
39 cross_bridges= [ 'cross4', 'cross5', 'cross6', 'cross7', 'cross8', 'cross9', 'cross10' ]
41 broken_links = []
42 temporary_links = []
44 real_bridges=['sw1', 'sw2', 'sw3',]
45 real_nodes=['r1','r2','r3', 'r4', 'core', 'win1', 'win2', 'win3', 'linux']
47 N=domains.index(domain)
48 if domain_types[N] == 'quagga':
49 memory = 64
50 else:
51 memory = 400
53 xenomips_dir='/home/nata/xenomips-images/'
54 ios_name='C7200-AD.BIN'
55 npe_type='npe-400'
57 connection_table={
58 'sw1' : 'minicom -o ttyV0',
59 'sw2' : 'minicom -o ttyV1',
60 'sw3' : 'minicom -o ttyV2',
61 'r1' : 'minicom -o ttyV3',
62 'r2' : 'minicom -o ttyV4',
63 'r3' : 'minicom -o ttyV5',
64 'r4' : 'minicom -o ttyV7',
65 'core' : 'minicom -o ttyV6',
66 }
69 # connection types:
70 # minicom
71 # vnc
72 # rdesktop