xentaur
diff examples/example1.py @ 45:9c7a4cfa9738
many platforms support
author | igor |
---|---|
date | Wed Oct 24 15:17:30 2007 +0300 (2007-10-24) |
parents | f71b298798c2 |
children | 308b524d9a70 |
line diff
1.1 --- a/examples/example1.py Fri Sep 28 13:03:15 2007 +0300 1.2 +++ b/examples/example1.py Wed Oct 24 15:17:30 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', 'cisco1', 'cisco2' ] 1.8 -domain_types = [ 'quagga', 'quagga', 'xenomips', 'quagga', 'quagga', 'xenomips','cisco', 'cisco' ] 1.9 +domains = [ 'qua1', 'qua2', 'dyn3', 'qua4', 'qua5', 'dyn6', 'cisco1', 'linux1', 'windows1', 'mac1' ] 1.10 +domain_types = [ 'quagga', 'quagga', 'xenomips', 'quagga', 'quagga', 'xenomips','cisco', 'linux', 'windows', 'macosx' ] 1.11 bridges = [ 1.12 'br1', 1.13 'br2', 1.14 @@ -13,25 +13,31 @@ 1.15 'br5', 1.16 'br6', 1.17 'cat1', 1.18 + 'cat2', 1.19 ] 1.20 1.21 vbridges_table ={ 1.22 - 'qua1' : [ 'br1' ], 1.23 - 'qua2' : [ 'br2', 'br5' ], 1.24 - 'dyn3' : [ 'br1', 'br2', 'br3' ], 1.25 - 'qua4' : [ 'br3', 'br4', 'br6' ], 1.26 - 'qua5' : [ 'br4' ], 1.27 - 'dyn6' : [ 'br5', 'br6' ], 1.28 - 1.29 - 'cisco1' : ['br6','cat1'], 1.30 - 'cisco2' : ['br6','cat1'], 1.31 - } 1.32 + 'qua1' : [ 'br1' ], 1.33 + 'qua2' : [ 'br2', 'br5' ], 1.34 + 'dyn3' : [ 'br1', 'br2', 'br3' ], 1.35 + 'qua4' : [ 'br3', 'br4', 'br6' ], 1.36 + 'qua5' : [ 'br4' ], 1.37 + 'dyn6' : [ 'br5', 'br6' ], 1.38 + 'cisco1' : ['br6','cat1'], 1.39 + 'linux1' : ['cat1'], 1.40 + 'windows1' : ['cat1'], 1.41 + 'mac1' : ['cat1'], 1.42 +} 1.43 + 1.44 +bridge_bridge_table = { 1.45 + 'cat2' : [ 'br1' ], 1.46 +} 1.47 1.48 hidden_bridges = [] 1.49 broken_links = [] 1.50 temporary_links = [] 1.51 1.52 -real_bridges=['cat1'] 1.53 +real_bridges=['cat1', 'cat2'] 1.54 real_nodes=['cisco1','cisco2'] 1.55 1.56 N=domains.index(domain)