xentaur
diff examples/example1.py @ 38:f71b298798c2
real topologies
author | igor |
---|---|
date | Fri Sep 28 13:03:15 2007 +0300 (2007-09-28) |
parents | 3245e12b66d5 |
children | 54b7c7ae50ec |
line diff
1.1 --- a/examples/example1.py Tue Sep 25 23:31:23 2007 +0300 1.2 +++ b/examples/example1.py Fri Sep 28 13:03:15 2007 +0300 1.3 @@ -3,8 +3,8 @@ 1.4 1.5 network='netw' 1.6 1.7 -domains = [ 'qua1', 'qua2', 'dyn3', 'qua4', 'qua5', 'dyn6', ] 1.8 -domain_types = [ 'quagga', 'quagga', 'xenomips', 'quagga', 'quagga', 'xenomips', ] 1.9 +domains = [ 'qua1', 'qua2', 'dyn3', 'qua4', 'qua5', 'dyn6', 'cisco1', 'cisco2' ] 1.10 +domain_types = [ 'quagga', 'quagga', 'xenomips', 'quagga', 'quagga', 'xenomips','cisco', 'cisco' ] 1.11 bridges = [ 1.12 'br1', 1.13 'br2', 1.14 @@ -12,6 +12,7 @@ 1.15 'br4', 1.16 'br5', 1.17 'br6', 1.18 + 'cat1', 1.19 ] 1.20 1.21 vbridges_table ={ 1.22 @@ -22,12 +23,17 @@ 1.23 'qua5' : [ 'br4' ], 1.24 'dyn6' : [ 'br5', 'br6' ], 1.25 1.26 + 'cisco1' : ['br6','cat1'], 1.27 + 'cisco2' : ['br6','cat1'], 1.28 } 1.29 1.30 hidden_bridges = [] 1.31 broken_links = [] 1.32 temporary_links = [] 1.33 1.34 +real_bridges=['cat1'] 1.35 +real_nodes=['cisco1','cisco2'] 1.36 + 1.37 N=domains.index(domain) 1.38 if domain_types[N] == 'quagga': 1.39 memory = 64