xentaur

annotate examples/example1.py @ 37:3245e12b66d5

+example1
author igor
date Tue Sep 25 23:31:23 2007 +0300 (2007-09-25)
parents
children f71b298798c2
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@37 6 domains = [ 'qua1', 'qua2', 'dyn3', 'qua4', 'qua5', 'dyn6', ]
igor@37 7 domain_types = [ 'quagga', 'quagga', 'xenomips', 'quagga', 'quagga', 'xenomips', ]
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@37 15 ]
igor@37 16
igor@37 17 vbridges_table ={
igor@37 18 'qua1' : [ 'br1' ],
igor@37 19 'qua2' : [ 'br2', 'br5' ],
igor@37 20 'dyn3' : [ 'br1', 'br2', 'br3' ],
igor@37 21 'qua4' : [ 'br3', 'br4', 'br6' ],
igor@37 22 'qua5' : [ 'br4' ],
igor@37 23 'dyn6' : [ 'br5', 'br6' ],
igor@37 24
igor@37 25 }
igor@37 26
igor@37 27 hidden_bridges = []
igor@37 28 broken_links = []
igor@37 29 temporary_links = []
igor@37 30
igor@37 31 N=domains.index(domain)
igor@37 32 if domain_types[N] == 'quagga':
igor@37 33 memory = 64
igor@37 34 else:
igor@37 35 memory = 400
igor@37 36
igor@37 37 xenomips_dir='/home/nata/xenomips-images/'
igor@37 38 ios_name='C7200-AD.BIN'
igor@37 39 npe_type='npe-400'
igor@37 40