Commit 2757ae4b authored by Gabriel Detraz's avatar Gabriel Detraz

Attention temporaire, ip sur le vlan 4

parent f607cf55
......@@ -50,7 +50,7 @@ V_UNTAGGED = 2
V_NO = 3
# Vlans disponibles
ENABLED_VLANS = ['adherent', 'adm', 'wifi', 'v6only', 'accueil', 'isolement',
ENABLED_VLANS = ['adherent', 'adm', 'switchs', 'wifi', 'v6only', 'accueil', 'isolement',
'appts', 'event', 'federez']
def vlan_id(vlans):
......@@ -571,6 +571,8 @@ def conf_switch(hostname):
vlan[attr].extend(p)
if name == 'adm' and not data['public']:
vlan['ip_cfg'] = (gethostbyname(hostname), '255.255.255.0')
if name == 'switchs':
vlan['ip_cfg'] = (gethostbyname(hostname).replace('136','100'), '255.255.255.0')
if name == 'adherent':
# TODO : proprifier cela
# Si le switch est publique, adh en non tagué partout
......
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