xentaur

diff xentaur.py @ 62:e838c1223b89

Делаются какие-то попытки интегрировать в Xentaur
управление разнообразными доменами.
author igor
date Thu Feb 21 21:41:20 2008 +0200 (2008-02-21)
parents 6471afbee150
children 07c6777758dc
line diff
     1.1 --- a/xentaur.py	Mon Dec 03 08:36:13 2007 +0200
     1.2 +++ b/xentaur.py	Thu Feb 21 21:41:20 2008 +0200
     1.3 @@ -13,8 +13,9 @@
     1.4  link_object={}
     1.5  bridge_object={}
     1.6  
     1.7 -network='mini'
     1.8 -domain='dyn1'
     1.9 +network='ids2007dec'
    1.10 +domain='fbsd1'
    1.11 +
    1.12  #network='snrs'
    1.13  #domain='dyn1'
    1.14  from xendomain import *
    1.15 @@ -365,7 +366,7 @@
    1.16          return self.name+" [color=white,shape=plaintext,label=\"  "+self.name+"\",shapefile=\"shapes/all/"+\
    1.17          domain_types[domains.index(self.name)]+".png\",fontcolor=black,fontsize=16,target=\"http://google.com\"]"
    1.18      def console_string(self):
    1.19 -        if self.type == 'quagga' or self.type == 'xenomips':
    1.20 +        if self.type in [ 'quagga', 'xenomips', 'freebsd', 'linux' ]:
    1.21              return "sudo xm console "+self.name
    1.22          elif self.name in real_bridges or self.name in real_nodes:
    1.23              return "echo Press enter to connect; read line; "+connection_table[self.name]