From ddfc320741abdd9fb58e83c719a17daee957b80f Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Wed, 13 May 2015 14:49:50 +0200 Subject: [PATCH] Nouveau vlan federez, id vlan 12 sur les switchs --- gestion/config/config.py | 2 ++ gestion/gen_confs/switchs2.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gestion/config/config.py b/gestion/config/config.py index 84a19edf..fb2d51e2 100644 --- a/gestion/config/config.py +++ b/gestion/config/config.py @@ -372,6 +372,8 @@ vlans = { 'isolement' : 9, # Vlan de tests de chiffrement DSI 'chiffrement': 11, + # Vlan federez-wifi + 'federez': 12, # VLan des appartements de l'ENS 'appts': 21, # Vlan evenementiel (install-party, etc) diff --git a/gestion/gen_confs/switchs2.py b/gestion/gen_confs/switchs2.py index d9aa966a..94aa5883 100755 --- a/gestion/gen_confs/switchs2.py +++ b/gestion/gen_confs/switchs2.py @@ -53,7 +53,7 @@ V_NO = 3 # Vlans disponibles ENABLED_VLANS = ['adherent', 'adm', 'wifi', 'v6only', 'accueil', 'isolement', - 'appts', 'event'] + 'appts', 'event', 'federez'] def vlan_id(name): """Vlan id of a name (filtre jinja)""" @@ -178,7 +178,7 @@ class Port(object): return V_NO elif self.bornes: if vlan in ['wifi', 'accueil', 'isolement', 'v6only', 'appts', - 'event']: + 'event', 'federez']: return V_TAGGED # Cas d'une borne dans une chambre: l'adherent doit pouvoir # se connecter