le DHCP du G fonctionne

darcs-hash:20091119014948-61eff-af57553b28262390efe24e04ca147696d1ecb9e0.gz
This commit is contained in:
Stephane Glondu 2009-11-19 02:49:48 +01:00
parent f49f2546a8
commit c44143fbbb
5 changed files with 20 additions and 8 deletions

View file

@ -259,6 +259,10 @@ exit
# Batiment et numéro du switch
bat = switch[3].lower()
sw_num = int(switch[5])
dhcp_server = self.dhcp_server
# Au bâtiment G, on utilise un autre serveur DHCP
if bat == 'g':
dhcp_server = '138.231.151.1'
# Conf radius
sys.path.append('/usr/scripts/gestion/secrets')
from secrets import radius_key
@ -271,7 +275,7 @@ exit
params = { 'switch' : switch, 'bat' : bat.upper() ,
'radius_key' : radius_key ,
'radius-serveurs' : rad[:-1] % tuple(self.rad_servs),
'dhcp': self.dhcp_server}
'dhcp': dhcp_server}
self.aff.cycle()