diff --git a/gestion/gen_confs/switchs.py b/gestion/gen_confs/switchs.py index 37f279b4..5d1350fc 100755 --- a/gestion/gen_confs/switchs.py +++ b/gestion/gen_confs/switchs.py @@ -312,6 +312,14 @@ exit # Vlan wifi uniquement if wifi == 1 : prise_params['nom'] = "Wifi_%s" % m.nom().split(".")[0] + # Certaines bornes sont dans des chambres, est-ce le cas ? + if prise_chbres.has_key(annu_prise): + chbres = prise_chbres[annu_prise] + prise_params['nom'] += '+Chambre' + if len(chbres) > 1 : prise_params['nom'] += 's' + for chbre in chbres : + prise_params['nom'] += '_%s%s' % (bat.upper(), chbre) + vlans['default_untagged'].append(prise) else : prise_params['nom'] = "Wifi" vlans['hotspot_tagged'].append(prise)