on itere 3 fois (empirique)
darcs-hash:20061005141424-f6463-f04569d72fa3f1381f72fe325c32f8318e0a3b5c.gz
This commit is contained in:
parent
80d16c6fd5
commit
b6188a14d0
1 changed files with 5 additions and 1 deletions
|
@ -25,7 +25,11 @@ class interroge_switch (threading.Thread) :
|
||||||
|
|
||||||
def run (self) :
|
def run (self) :
|
||||||
sw = hpswitch(self.switch)
|
sw = hpswitch(self.switch)
|
||||||
|
prise = None
|
||||||
|
iteration = 3
|
||||||
|
while (prise==None) & (iteration > 0):
|
||||||
prise = sw.where_is_mac(self.mac)
|
prise = sw.where_is_mac(self.mac)
|
||||||
|
iteration = iteration-1
|
||||||
if prise != None :
|
if prise != None :
|
||||||
self.tableau.append("%-10s => prise %-2s : %s" % (self.switch.encode('iso-8859-15').replace('.adm.crans.org',''), str(prise), sw.nom(None, prise)))
|
self.tableau.append("%-10s => prise %-2s : %s" % (self.switch.encode('iso-8859-15').replace('.adm.crans.org',''), str(prise), sw.nom(None, prise)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue