xentaur

annotate 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
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@38 6 domains = [ 'qua1', 'qua2', 'dyn3', 'qua4', 'qua5', 'dyn6', 'cisco1', 'cisco2' ]
igor@38 7 domain_types = [ 'quagga', 'quagga', 'xenomips', 'quagga', 'quagga', 'xenomips','cisco', 'cisco' ]
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@37 16 ]
igor@37 17
igor@37 18 vbridges_table ={
igor@37 19 'qua1' : [ 'br1' ],
igor@37 20 'qua2' : [ 'br2', 'br5' ],
igor@37 21 'dyn3' : [ 'br1', 'br2', 'br3' ],
igor@37 22 'qua4' : [ 'br3', 'br4', 'br6' ],
igor@37 23 'qua5' : [ 'br4' ],
igor@37 24 'dyn6' : [ 'br5', 'br6' ],
igor@37 25
igor@38 26 'cisco1' : ['br6','cat1'],
igor@38 27 'cisco2' : ['br6','cat1'],
igor@37 28 }
igor@37 29
igor@37 30 hidden_bridges = []
igor@37 31 broken_links = []
igor@37 32 temporary_links = []
igor@37 33
igor@38 34 real_bridges=['cat1']
igor@38 35 real_nodes=['cisco1','cisco2']
igor@38 36
igor@37 37 N=domains.index(domain)
igor@37 38 if domain_types[N] == 'quagga':
igor@37 39 memory = 64
igor@37 40 else:
igor@37 41 memory = 400
igor@37 42
igor@37 43 xenomips_dir='/home/nata/xenomips-images/'
igor@37 44 ios_name='C7200-AD.BIN'
igor@37 45 npe_type='npe-400'
igor@37 46