Si un switch est pas joignable on continue quand mme.

darcs-hash:20050612155328-41617-86094bfbe7e3d7a235a4579b835c35f2ce9e507d.gz
This commit is contained in:
pauget 2005-06-12 17:53:28 +02:00
parent ea296f4f5b
commit dfff255e89

View file

@ -423,7 +423,11 @@ if __name__ == '__main__' :
for sw in switchs : for sw in switchs :
print sw print sw
s = hpswitch(sw) try:
for cmd in cmds : # Au cas ou le switch ne répondrai pas
print s.send_cmd(cmd) s = hpswitch(sw)
for cmd in cmds :
print s.send_cmd(cmd)
except :
print 'ERREUR'