# HG changeset patch # User igor # Date 1190752283 -10800 # Node ID 3245e12b66d5c2cd66902a99e41c0125c048d493 # Parent 7bf7abe921238e486368bddeb362e57e1240af8f +example1 diff -r 7bf7abe92123 -r 3245e12b66d5 examples/example1.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/example1.py Tue Sep 25 23:31:23 2007 +0300 @@ -0,0 +1,40 @@ +import os +domain=os.environ['xendomain'] + +network='netw' + +domains = [ 'qua1', 'qua2', 'dyn3', 'qua4', 'qua5', 'dyn6', ] +domain_types = [ 'quagga', 'quagga', 'xenomips', 'quagga', 'quagga', 'xenomips', ] +bridges = [ + 'br1', + 'br2', + 'br3', + 'br4', + 'br5', + 'br6', + ] + +vbridges_table ={ + 'qua1' : [ 'br1' ], + 'qua2' : [ 'br2', 'br5' ], + 'dyn3' : [ 'br1', 'br2', 'br3' ], + 'qua4' : [ 'br3', 'br4', 'br6' ], + 'qua5' : [ 'br4' ], + 'dyn6' : [ 'br5', 'br6' ], + + } + +hidden_bridges = [] +broken_links = [] +temporary_links = [] + +N=domains.index(domain) +if domain_types[N] == 'quagga': + memory = 64 +else: + memory = 400 + +xenomips_dir='/home/nata/xenomips-images/' +ios_name='C7200-AD.BIN' +npe_type='npe-400' +