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
|
%(prises_wifi)s
|
||||||
no ip address
|
no ip address
|
||||||
exit
|
exit
|
||||||
;------------------------------------------------------- Accès d'adminsitration
|
vlan 4
|
||||||
|
name "Hotspot"
|
||||||
|
%(prises_hotspot)s
|
||||||
|
no ip address
|
||||||
|
exit
|
||||||
|
;------------------------------------------------------- Accès d'administration
|
||||||
no telnet-server
|
no telnet-server
|
||||||
no web-management
|
no web-management
|
||||||
aaa authentication ssh login public-key
|
aaa authentication ssh login public-key
|
||||||
|
@ -269,6 +274,7 @@ exit
|
||||||
params[key] = []
|
params[key] = []
|
||||||
|
|
||||||
vlans = { 'wifi_tagged' : [] , 'wifi_untagged' : [] ,
|
vlans = { 'wifi_tagged' : [] , 'wifi_untagged' : [] ,
|
||||||
|
'hotspot_tagged' : [], 'hotspot_untagged' : [],
|
||||||
'adm_tagged' : [] , 'adm_untagged' : [] ,
|
'adm_tagged' : [] , 'adm_untagged' : [] ,
|
||||||
'default_tagged' : [] , 'default_untagged' : [] }
|
'default_tagged' : [] , 'default_untagged' : [] }
|
||||||
|
|
||||||
|
@ -287,6 +293,7 @@ exit
|
||||||
vlans['default_untagged'].append(prise)
|
vlans['default_untagged'].append(prise)
|
||||||
vlans['adm_tagged'].append(prise)
|
vlans['adm_tagged'].append(prise)
|
||||||
vlans['wifi_tagged'].append(prise)
|
vlans['wifi_tagged'].append(prise)
|
||||||
|
vlans['hotspot_tagged'].append(prise)
|
||||||
params['INTERFACES_CONF'] += self.interface_template % prise_params
|
params['INTERFACES_CONF'] += self.interface_template % prise_params
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
@ -307,6 +314,7 @@ exit
|
||||||
prise_params['nom'] = "Wifi_%s" % m.nom().split(".")[0]
|
prise_params['nom'] = "Wifi_%s" % m.nom().split(".")[0]
|
||||||
else :
|
else :
|
||||||
prise_params['nom'] = "Wifi"
|
prise_params['nom'] = "Wifi"
|
||||||
|
#vlans['hotspot_untagged'].append(prise)
|
||||||
vlans['wifi_untagged'].append(prise)
|
vlans['wifi_untagged'].append(prise)
|
||||||
elif wifi==0 and autres==0 :
|
elif wifi==0 and autres==0 :
|
||||||
# Vlan adm uniquement
|
# Vlan adm uniquement
|
||||||
|
@ -321,6 +329,7 @@ exit
|
||||||
vlans['default_untagged'].append(prise)
|
vlans['default_untagged'].append(prise)
|
||||||
vlans['adm_tagged'].append(prise)
|
vlans['adm_tagged'].append(prise)
|
||||||
vlans['wifi_tagged'].append(prise)
|
vlans['wifi_tagged'].append(prise)
|
||||||
|
vlans['hotspot_tagged'].append(prise)
|
||||||
|
|
||||||
params['INTERFACES_CONF'] += self.interface_template % prise_params
|
params['INTERFACES_CONF'] += self.interface_template % prise_params
|
||||||
continue
|
continue
|
||||||
|
@ -404,7 +413,7 @@ exit
|
||||||
vlans[key]=mk_list(prises)
|
vlans[key]=mk_list(prises)
|
||||||
|
|
||||||
# Config des vlan
|
# Config des vlan
|
||||||
for v in ('default', 'adm', 'wifi') :
|
for v in ('default', 'adm', 'wifi', 'hotspot') :
|
||||||
params['prises_%s' % v] = ''
|
params['prises_%s' % v] = ''
|
||||||
for t in ('tagged' , 'untagged') :
|
for t in ('tagged' , 'untagged') :
|
||||||
if vlans['%s_%s' % (v,t)] :
|
if vlans['%s_%s' % (v,t)] :
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue