xentaur
view examples/example1.py @ 37:3245e12b66d5
+example1
author | igor |
---|---|
date | Tue Sep 25 23:31:23 2007 +0300 (2007-09-25) |
parents | |
children | f71b298798c2 |
line source
1 import os
2 domain=os.environ['xendomain']
4 network='netw'
6 domains = [ 'qua1', 'qua2', 'dyn3', 'qua4', 'qua5', 'dyn6', ]
7 domain_types = [ 'quagga', 'quagga', 'xenomips', 'quagga', 'quagga', 'xenomips', ]
8 bridges = [
9 'br1',
10 'br2',
11 'br3',
12 'br4',
13 'br5',
14 'br6',
15 ]
17 vbridges_table ={
18 'qua1' : [ 'br1' ],
19 'qua2' : [ 'br2', 'br5' ],
20 'dyn3' : [ 'br1', 'br2', 'br3' ],
21 'qua4' : [ 'br3', 'br4', 'br6' ],
22 'qua5' : [ 'br4' ],
23 'dyn6' : [ 'br5', 'br6' ],
25 }
27 hidden_bridges = []
28 broken_links = []
29 temporary_links = []
31 N=domains.index(domain)
32 if domain_types[N] == 'quagga':
33 memory = 64
34 else:
35 memory = 400
37 xenomips_dir='/home/nata/xenomips-images/'
38 ios_name='C7200-AD.BIN'
39 npe_type='npe-400'