xentaur

view examples/example1.py @ 58:58381d1fe31b

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