on affiche aussi les uplinks :-)
darcs-hash:20050924230936-4ec08-94787366bc7b47ce87d8299d1a64edb31b145663.gz
This commit is contained in:
parent
ab673b878a
commit
9ba8694074
1 changed files with 2 additions and 2 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue