ajout de la fonctionalit que Vince|| avait mise dans la version originale
darcs-hash:20050411211225-4ec08-ade8e196b06775b17ce6acbb913fa613068f97ff.gz
This commit is contained in:
parent
ec0e96fbfd
commit
f3e6bdbe1b
1 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,7 @@ sys.path.append('/usr/scripts/gestion')
|
||||||
from annuaires import reverse, all_switchs
|
from annuaires import reverse, all_switchs
|
||||||
from hptools import hpswitch
|
from hptools import hpswitch
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
from os import system
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
mac = ":".join([i.zfill(2) for i in sys.argv[1].split(":")]).lower()
|
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 :
|
while len(threading.enumerate()) > 1 :
|
||||||
sleep(1)
|
sleep(1)
|
||||||
|
|
||||||
|
print
|
||||||
|
system('whos mac=%s' % mac)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue