From 772fd71a443b11168dc5716a6a39ccdec26fb318 Mon Sep 17 00:00:00 2001 From: bernat Date: Tue, 3 Jan 2006 17:24:27 +0100 Subject: [PATCH] On prend en compte le cas o une borne est sur la mme prise qu'une chambre. darcs-hash:20060103162427-d1718-50516c21e698ac3406178cca3d442ce2e9e36563.gz --- gestion/gen_confs/switchs.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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)