VLAN hotspot sur les uplinks
darcs-hash:20051230092755-d1718-eba28aae4ba05557275b36a20960c9a6170db424.gz
This commit is contained in:
parent
2f7730024f
commit
fd91d75efa
1 changed files with 11 additions and 2 deletions
|
@ -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)] :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue