ajout de la fonctionalit que Vince|| avait mise dans la version originale

darcs-hash:20050411211225-4ec08-ade8e196b06775b17ce6acbb913fa613068f97ff.gz
This commit is contained in:
chove 2005-04-11 23:12:25 +02:00
parent ec0e96fbfd
commit f3e6bdbe1b

View file

@ -6,6 +6,7 @@ sys.path.append('/usr/scripts/gestion')
from annuaires import reverse, all_switchs
from hptools import hpswitch
from time import sleep
from os import system
import threading
mac = ":".join([i.zfill(2) for i in sys.argv[1].split(":")]).lower()
@ -34,3 +35,6 @@ for switch in ['backbone'] + all_switchs():
while len(threading.enumerate()) > 1 :
sleep(1)
print
system('whos mac=%s' % mac)