From 864765007879be3655cf0156964cd5c5b5050840 Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Sun, 15 Nov 2015 01:36:42 +0100 Subject: [PATCH] =?UTF-8?q?WhoIlo=20(=C3=A7a=20peut=20d=C3=A9panner)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gestion/tools/whosthere.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gestion/tools/whosthere.py b/gestion/tools/whosthere.py index 1f83f67b..b75876c1 100755 --- a/gestion/tools/whosthere.py +++ b/gestion/tools/whosthere.py @@ -271,6 +271,14 @@ class WhoKfet(WhosThere): self.set_ignore_inactive(privacy, wifi_only=privacy) self.populate_from_switch('backbone.adm.crans.org', 21) +class WhoIlo(WhosThere): + name = u"ilo" + + def do_scan(self): + # Tous les gens au 2B sont supposés actifs (local technique quoi) + # mais on cache quand-même les personnes connectées en WiFi + self.populate_from_switch('backbone.adm.crans.org', 29) + class Who2B(WhosThere): name = u"2B" @@ -313,6 +321,7 @@ if __name__ == '__main__': '2b': Who2B, 'kfet': WhoKfet, '4j': Who4J, + 'ilo': WhoIlo, } if '--warn-tpe' in sys.argv: warn=['tpe']