diff --git a/gestion/gen_confs/switchs.py b/gestion/gen_confs/switchs.py index f0228ac2..24286b18 100644 --- a/gestion/gen_confs/switchs.py +++ b/gestion/gen_confs/switchs.py @@ -428,21 +428,21 @@ exit elif m.Nom().find('.adm.crans.org')!=-1 : adm+=1 else : autres+=1 if autres==0 and adm==0 : - # Vlan wifi uniquement - if wifi == 1 : - prise_params['nom'] = "Wifi_%s" % m.nom().split(".")[0] - vlans['default'].append(prise) - # 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) - else : - prise_params['nom'] = "Wifi" + # Vlan wifi required vlans['hotspot_tagged'].append(prise) vlans['wifi_tagged'].append(prise) + if wifi == 1 : + prise_params['nom'] = "Wifi_%s" % m.nom().split(".")[0] + else : + prise_params['nom'] = "Wifi" + # Certaines bornes sont dans des chambres, est-ce le cas ? + if prise_chbres.has_key(annu_prise): + vlans['default'].append(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) elif wifi==0 and autres==0 : # Vlan adm uniquement if adm == 1 :