Distinction des problmes rencontrs lors de l'interrogation des switchs.
darcs-hash:20051002132700-41617-b0ac177321821147575d30b079e62ff19baa72b3.gz
This commit is contained in:
parent
5fc7573c7b
commit
4fe9f5e79e
1 changed files with 6 additions and 4 deletions
|
@ -709,7 +709,7 @@ def prise_etat(chbre) :
|
||||||
f = u''
|
f = u''
|
||||||
try:
|
try:
|
||||||
# On met aussi l'état
|
# On met aussi l'état
|
||||||
from hptools import sw_chbre
|
from hptools import sw_chbre, ConversationError
|
||||||
prise = sw_chbre(chbre)
|
prise = sw_chbre(chbre)
|
||||||
f += u'prise %s' % prise.prise_brute
|
f += u'prise %s' % prise.prise_brute
|
||||||
rows, cols = get_screen_size()
|
rows, cols = get_screen_size()
|
||||||
|
@ -748,10 +748,12 @@ def prise_etat(chbre) :
|
||||||
f+= u', ' + coul(u'prise désactivée','rouge')
|
f+= u', ' + coul(u'prise désactivée','rouge')
|
||||||
else :
|
else :
|
||||||
f+= u', activée, lien non détecté'
|
f+= u', activée, lien non détecté'
|
||||||
|
except ConversationError:
|
||||||
|
# Switch non manageable ou down
|
||||||
|
f = u'info prise non dispo : erreur de communication'
|
||||||
except :
|
except :
|
||||||
# Switch non manageable
|
f = u'info prise non dispo : erreur prog'
|
||||||
f = u'informations prise non disponibles'
|
|
||||||
|
|
||||||
return f
|
return f
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue