on affiche aussi les uplinks :-)

darcs-hash:20050924230936-4ec08-94787366bc7b47ce87d8299d1a64edb31b145663.gz
This commit is contained in:
chove 2005-09-25 01:09:36 +02:00
parent ab673b878a
commit 9ba8694074

View file

@ -26,8 +26,8 @@ class interroge_switch (threading.Thread) :
prise = sw.where_is_mac(mac)
if prise != None :
# on a trouvé une prise, on affiche si c'est pas un uplink
if 'uplink' not in sw.nom(None, prise) or switch == 'backbone' :
print "%-10s => prise %-2s : %s" % (self.switch, str(prise), sw.nom(None, prise))
# if 'uplink' not in sw.nom(None, prise) or switch == 'backbone' :
print "%-10s => prise %-2s : %s" % (self.switch.encode('iso-8859-15').replace('.adm.crans.org',''), str(prise), sw.nom(None, prise))
# on onterroge trois fois car il donne pas toujours les clients
for switch in ['backbone'] + all_switchs():