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'