xentaur

annotate examples/example1.py @ 51:b9536e00100a

exec timeout 0
author igor
date Thu Oct 25 21:27:01 2007 +0300 (2007-10-25)
parents f71b298798c2
children 308b524d9a70
rev   line source
igor@37 1 import os
igor@37 2 domain=os.environ['xendomain']
igor@37 3
igor@37 4 network='netw'
igor@37 5
igor@39 6 domains = [ 'qua1', 'qua2', 'dyn3', 'qua4', 'qua5', 'dyn6', 'cisco1', 'linux1', 'windows1', 'mac1' ]
igor@39 7 domain_types = [ 'quagga', 'quagga', 'xenomips', 'quagga', 'quagga', 'xenomips','cisco', 'linux', 'windows', 'macosx' ]
igor@37 8 bridges = [
igor@37 9 'br1',
igor@37 10 'br2',
igor@37 11 'br3',
igor@37 12 'br4',
igor@37 13 'br5',
igor@37 14 'br6',
igor@38 15 'cat1',
igor@39 16 'cat2',
igor@37 17 ]
igor@37 18
igor@37 19 vbridges_table ={
igor@39 20 'qua1' : [ 'br1' ],
igor@39 21 'qua2' : [ 'br2', 'br5' ],
igor@39 22 'dyn3' : [ 'br1', 'br2', 'br3' ],
igor@39 23 'qua4' : [ 'br3', 'br4', 'br6' ],
igor@39 24 'qua5' : [ 'br4' ],
igor@39 25 'dyn6' : [ 'br5', 'br6' ],
igor@39 26 'cisco1' : ['br6','cat1'],
igor@39 27 'linux1' : ['cat1'],
igor@39 28 'windows1' : ['cat1'],
igor@39 29 'mac1' : ['cat1'],
igor@39 30 }
igor@39 31
igor@39 32 bridge_bridge_table = {
igor@39 33 'cat2' : [ 'br1' ],
igor@39 34 }
igor@37 35
igor@37 36 hidden_bridges = []
igor@37 37 broken_links = []
igor@37 38 temporary_links = []
igor@37 39
igor@39 40 real_bridges=['cat1', 'cat2']
igor@38 41 real_nodes=['cisco1','cisco2']
igor@38 42
igor@37 43 N=domains.index(domain)
igor@37 44 if domain_types[N] == 'quagga':
igor@37 45 memory = 64
igor@37 46 else:
igor@37 47 memory = 400
igor@37 48
igor@37 49 xenomips_dir='/home/nata/xenomips-images/'
igor@37 50 ios_name='C7200-AD.BIN'
igor@37 51 npe_type='npe-400'
igor@37 52