diff --git a/gestion/gen_confs/switchs.py b/gestion/gen_confs/switchs.py index 6b14a113..aea660b5 100755 --- a/gestion/gen_confs/switchs.py +++ b/gestion/gen_confs/switchs.py @@ -75,7 +75,12 @@ vlan 3 %(prises_wifi)s no ip address exit -;------------------------------------------------------- Accès d'adminsitration +vlan 4 + name "Hotspot" + %(prises_hotspot)s + no ip address + exit +;------------------------------------------------------- Accès d'administration no telnet-server no web-management aaa authentication ssh login public-key @@ -269,6 +274,7 @@ exit params[key] = [] vlans = { 'wifi_tagged' : [] , 'wifi_untagged' : [] , + 'hotspot_tagged' : [], 'hotspot_untagged' : [], 'adm_tagged' : [] , 'adm_untagged' : [] , 'default_tagged' : [] , 'default_untagged' : [] } @@ -287,6 +293,7 @@ exit vlans['default_untagged'].append(prise) vlans['adm_tagged'].append(prise) vlans['wifi_tagged'].append(prise) + vlans['hotspot_tagged'].append(prise) params['INTERFACES_CONF'] += self.interface_template % prise_params continue @@ -307,6 +314,7 @@ exit prise_params['nom'] = "Wifi_%s" % m.nom().split(".")[0] else : prise_params['nom'] = "Wifi" + #vlans['hotspot_untagged'].append(prise) vlans['wifi_untagged'].append(prise) elif wifi==0 and autres==0 : # Vlan adm uniquement @@ -321,6 +329,7 @@ exit vlans['default_untagged'].append(prise) vlans['adm_tagged'].append(prise) vlans['wifi_tagged'].append(prise) + vlans['hotspot_tagged'].append(prise) params['INTERFACES_CONF'] += self.interface_template % prise_params continue @@ -404,7 +413,7 @@ exit vlans[key]=mk_list(prises) # Config des vlan - for v in ('default', 'adm', 'wifi') : + for v in ('default', 'adm', 'wifi', 'hotspot') : params['prises_%s' % v] = '' for t in ('tagged' , 'untagged') : if vlans['%s_%s' % (v,t)] :