on change le mode de detection des switch, comme ca multiprise est prise en
compte et on a plus de hack pour backbone darcs-hash:20041106145855-4ec08-66c8a2065edafcbb0f2ffe845ee938ffc3412d26.gz
This commit is contained in:
parent
01bd33b05f
commit
a2ed774515
1 changed files with 2 additions and 5 deletions
|
@ -144,7 +144,7 @@ class autostatus(gen_config) :
|
||||||
bornes[ "3-" + m.nom() ] = [ m.nom().split(".")[0] , m.nom() , 'none' , 'nobody' , 'Inutilise' ]
|
bornes[ "3-" + m.nom() ] = [ m.nom().split(".")[0] , m.nom() , 'none' , 'nobody' , 'Inutilise' ]
|
||||||
|
|
||||||
# les switchs
|
# les switchs
|
||||||
elif 'bat' == m.nom()[0:3] or 'backbone.crans.org' == m.nom() :
|
elif 'switch' in m.info()[0].lower() :
|
||||||
|
|
||||||
# on convertit le bat# en bat#-0
|
# on convertit le bat# en bat#-0
|
||||||
if not "-" in m.nom().split(".")[0] :
|
if not "-" in m.nom().split(".")[0] :
|
||||||
|
@ -153,10 +153,7 @@ class autostatus(gen_config) :
|
||||||
index = m.nom().split(".")[0]
|
index = m.nom().split(".")[0]
|
||||||
|
|
||||||
# on ajoute au dictionnaire
|
# on ajoute au dictionnaire
|
||||||
if m.info() :
|
|
||||||
switchs[ index ] = [ m.nom().split(".")[0] , m.nom() , 'none' , 'nobody' , m.info()[0] ]
|
switchs[ index ] = [ m.nom().split(".")[0] , m.nom() , 'none' , 'nobody' , m.info()[0] ]
|
||||||
else :
|
|
||||||
switchs[ index ] = [ m.nom().split(".")[0] , m.nom() , 'none' , 'nobody' , 'Infos non disponibles' ]
|
|
||||||
|
|
||||||
# les serveurs
|
# les serveurs
|
||||||
else :
|
else :
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue