From b2de2e117cf17e6c11f67a1bfa59fac5985709cb Mon Sep 17 00:00:00 2001 From: bernat Date: Sun, 17 Oct 2004 02:15:47 +0200 Subject: [PATCH] Donne aussi le nom de la prise darcs-hash:20041017001547-d1718-889d51ce142fbb3c07cac2c8135718fd62545528.gz --- gestion/locate-mac.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gestion/locate-mac.py b/gestion/locate-mac.py index a7b9820f..32dc6ad8 100755 --- a/gestion/locate-mac.py +++ b/gestion/locate-mac.py @@ -7,8 +7,9 @@ from hptools import hpswitch from sys import argv for switch in ['backbone'] + all_switchs(): - prise = hpswitch(switch).where_is_mac(argv[1]) + sw = hpswitch(switch) + prise = sw.where_is_mac(argv[1]) if prise != None: - print "%-10s: %d" % (switch, prise) + print "%-10s: %d (%s)" % (switch, prise, sw.nom(None, prise)) else: print "%-10s: non trouvé" % switch