igor@37: import os igor@37: domain=os.environ['xendomain'] igor@37: igor@37: network='netw' igor@37: igor@38: domains = [ 'qua1', 'qua2', 'dyn3', 'qua4', 'qua5', 'dyn6', 'cisco1', 'cisco2' ] igor@38: domain_types = [ 'quagga', 'quagga', 'xenomips', 'quagga', 'quagga', 'xenomips','cisco', 'cisco' ] igor@37: bridges = [ igor@37: 'br1', igor@37: 'br2', igor@37: 'br3', igor@37: 'br4', igor@37: 'br5', igor@37: 'br6', igor@38: 'cat1', igor@37: ] igor@37: igor@37: vbridges_table ={ igor@37: 'qua1' : [ 'br1' ], igor@37: 'qua2' : [ 'br2', 'br5' ], igor@37: 'dyn3' : [ 'br1', 'br2', 'br3' ], igor@37: 'qua4' : [ 'br3', 'br4', 'br6' ], igor@37: 'qua5' : [ 'br4' ], igor@37: 'dyn6' : [ 'br5', 'br6' ], igor@37: igor@38: 'cisco1' : ['br6','cat1'], igor@38: 'cisco2' : ['br6','cat1'], igor@37: } igor@37: igor@37: hidden_bridges = [] igor@37: broken_links = [] igor@37: temporary_links = [] igor@37: igor@38: real_bridges=['cat1'] igor@38: real_nodes=['cisco1','cisco2'] igor@38: igor@37: N=domains.index(domain) igor@37: if domain_types[N] == 'quagga': igor@37: memory = 64 igor@37: else: igor@37: memory = 400 igor@37: igor@37: xenomips_dir='/home/nata/xenomips-images/' igor@37: ios_name='C7200-AD.BIN' igor@37: npe_type='npe-400' igor@37: