From 4b165cef911449ff2e5c764c7fd59afaf69b51a9 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Thu, 17 Sep 2015 00:37:40 +0200 Subject: [PATCH] =?UTF-8?q?Ouli=20:=20si=20pas=20de=20radius,=20on=20envoi?= =?UTF-8?q?e=20adh=20en=20non=20tagu=C3=A9=20sur=20tous=20les=20ports?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gestion/gen_confs/switchs2.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gestion/gen_confs/switchs2.py b/gestion/gen_confs/switchs2.py index e372fb1e..7395cf5a 100755 --- a/gestion/gen_confs/switchs2.py +++ b/gestion/gen_confs/switchs2.py @@ -568,7 +568,10 @@ def conf_switch(hostname): if name == 'adm' and not data['public']: vlan['ip_cfg'] = (gethostbyname(hostname), '255.255.255.0') if name == 'adherent': + # TODO : proprifier cela + # Si le switch est publique, adh en non tagué partout if data['public']: + vlan['untagged'] = u'1-' + unicode(switch['nombrePrises'][0]) vlan['ip_cfg'] = (gethostbyname(hostname), '255.255.248.0') # igmp snooping (multicast) mais nous ne sommes pas querier vlan['extra'] = 'ip igmp\nno ip igmp querier'