xentaur
view 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 source
1 import os
2 domain=os.environ['xendomain']
4 network='netw'
6 domains = [ 'qua1', 'qua2', 'dyn3', 'qua4', 'qua5', 'dyn6', 'cisco1', 'cisco2' ]
7 domain_types = [ 'quagga', 'quagga', 'xenomips', 'quagga', 'quagga', 'xenomips','cisco', 'cisco' ]
8 bridges = [
9 'br1',
10 'br2',
11 'br3',
12 'br4',
13 'br5',
14 'br6',
15 'cat1',
16 ]
18 vbridges_table ={
19 'qua1' : [ 'br1' ],
20 'qua2' : [ 'br2', 'br5' ],
21 'dyn3' : [ 'br1', 'br2', 'br3' ],
22 'qua4' : [ 'br3', 'br4', 'br6' ],
23 'qua5' : [ 'br4' ],
24 'dyn6' : [ 'br5', 'br6' ],
26 'cisco1' : ['br6','cat1'],
27 'cisco2' : ['br6','cat1'],
28 }
30 hidden_bridges = []
31 broken_links = []
32 temporary_links = []
34 real_bridges=['cat1']
35 real_nodes=['cisco1','cisco2']
37 N=domains.index(domain)
38 if domain_types[N] == 'quagga':
39 memory = 64
40 else:
41 memory = 400
43 xenomips_dir='/home/nata/xenomips-images/'
44 ios_name='C7200-AD.BIN'
45 npe_type='npe-400'