Dsormais, le script ne plante pas quand un switch est injoignable.
darcs-hash:20070215063502-68412-d1de65f06a93c62c2577c026516760af6d3f948f.gz
This commit is contained in:
parent
ff4afe076b
commit
5b31412e1e
1 changed files with 5 additions and 1 deletions
|
@ -63,7 +63,11 @@ chambre = {}
|
||||||
for host in switchs:
|
for host in switchs:
|
||||||
progression.cycle()
|
progression.cycle()
|
||||||
switch = hpswitch(host)
|
switch = hpswitch(host)
|
||||||
for prise in range(1,switch.nb_prises()+1):
|
try:
|
||||||
|
nb_prises = switch.nb_prises()
|
||||||
|
except:
|
||||||
|
continue
|
||||||
|
for prise in range(1, nb_prises+1):
|
||||||
if prise < 10:
|
if prise < 10:
|
||||||
prise = '0%d'%prise
|
prise = '0%d'%prise
|
||||||
else :
|
else :
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue