Commit a4892f17 authored by Gabriel Detraz's avatar Gabriel Detraz

Crée le batiment r

parent c1cce482
......@@ -48,7 +48,7 @@ def _need_conn(f):
return first_connect
# Le v est virtuel.
bat_switchs = ["a", "b", "c", "g", "h", "i", "j", "m", "o", "p", "v"]
bat_switchs = ["a", "b", "c", "g", "h", "i", "j", "m", "o", "p", "r", "v"]
class ChbreNotFound(ValueError):
"""Lorsqu'une chambre n'existe pas"""
......@@ -238,6 +238,10 @@ uplink_prises={ 'a' :
122: 'uplink->backbone', 123: 'uplink->backbone (unused)',
124: 'uplink->batp-0'
} ,
'r' :
{
27 : 'uplink->backbone', 28 : 'libre-service',
} ,
'v' :
{
23: 'uplink', 24 : 'uplink',
......
......@@ -814,4 +814,4 @@ dhcp_servers = ['dhcp.adm.crans.org', 'isc.adm.crans.org']
bats_virtuels = ['v']
# Liste des batiments
liste_bats = ['a', 'b', 'c', 'h', 'i', 'j', 'm', 'g', 'p', 'k']
liste_bats = ['a', 'b', 'c', 'h', 'i', 'j', 'm', 'g', 'p', 'k', 'r']
......@@ -50,7 +50,7 @@ V_UNTAGGED = 2
V_NO = 3
# Vlans disponibles
ENABLED_VLANS = ['adherent', 'adm', 'switchs', 'wifi', 'v6only', 'accueil', 'isolement',
ENABLED_VLANS = ['adherent', 'adm', 'switches', 'wifi', 'v6only', 'accueil', 'isolement',
'appts', 'event', 'federez']
def vlan_id(vlans):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment