From 9ba869407457780d328a117008b61a2d24cc6dfe Mon Sep 17 00:00:00 2001 From: chove Date: Sun, 25 Sep 2005 01:09:36 +0200 Subject: [PATCH] on affiche aussi les uplinks :-) darcs-hash:20050924230936-4ec08-94787366bc7b47ce87d8299d1a64edb31b145663.gz --- gestion/tools/locate-mac.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gestion/tools/locate-mac.py b/gestion/tools/locate-mac.py index df7032e2..fee04670 100755 --- a/gestion/tools/locate-mac.py +++ b/gestion/tools/locate-mac.py @@ -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():