WhoIlo (ça peut dépanner)
This commit is contained in:
parent
dba410ceaf
commit
8647650078
1 changed files with 9 additions and 0 deletions
|
@ -271,6 +271,14 @@ class WhoKfet(WhosThere):
|
||||||
self.set_ignore_inactive(privacy, wifi_only=privacy)
|
self.set_ignore_inactive(privacy, wifi_only=privacy)
|
||||||
self.populate_from_switch('backbone.adm.crans.org', 21)
|
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):
|
class Who2B(WhosThere):
|
||||||
name = u"2B"
|
name = u"2B"
|
||||||
|
|
||||||
|
@ -313,6 +321,7 @@ if __name__ == '__main__':
|
||||||
'2b': Who2B,
|
'2b': Who2B,
|
||||||
'kfet': WhoKfet,
|
'kfet': WhoKfet,
|
||||||
'4j': Who4J,
|
'4j': Who4J,
|
||||||
|
'ilo': WhoIlo,
|
||||||
}
|
}
|
||||||
if '--warn-tpe' in sys.argv:
|
if '--warn-tpe' in sys.argv:
|
||||||
warn=['tpe']
|
warn=['tpe']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue