From 2748a74671627eb39b81c7d704b3df97d1393dcb Mon Sep 17 00:00:00 2001 From: bernat Date: Mon, 28 Feb 2005 15:04:14 +0100 Subject: [PATCH] Attribution dans 138.231.151.0/24 pour les personnels ENS (pour les firewaliser) darcs-hash:20050228140414-d1718-26481814490aca19334891949847df2dcb8c993a.gz --- gestion/ldap_crans.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 55a779eb..f2f139b8 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -1945,7 +1945,11 @@ class machine(base_classes_crans) : # Dans quel réseau la machine doit-elle être placée ? if self.__typ == 'wifi' : - net = config.NETs['wifi'] + if self.proprietaire().etudes(0) == "ENS" and self.proprietaire().etudes(1) == "8": + # Personnel ENS + net = config.NETs['wifi-ens'] + else: + net = config.NETs['wifi'] elif self.__typ == 'borne' : net = config.NETs['bornes'] elif self.proprietaire().__class__ == crans :