le DHCP du G fonctionne
darcs-hash:20091119014948-61eff-af57553b28262390efe24e04ca147696d1ecb9e0.gz
This commit is contained in:
parent
f49f2546a8
commit
c44143fbbb
5 changed files with 20 additions and 8 deletions
|
@ -31,7 +31,7 @@ class dhcp(gen_config) :
|
|||
reseaux = { '10.2.9.0/24' : '/etc/dhcp3/generated/appartements.liste' }
|
||||
elif hostname == 'dyson':
|
||||
restart_cmd = '/etc/init.d/dhcp3-server restart'
|
||||
reseaux = { NETs['adh-g'][0] : '/etc/dhcp3/generate/adh-g.liste' }
|
||||
reseaux = { NETs['adh-g'][0] : '/etc/dhcp3/generated/adh-g.liste' }
|
||||
elif hostname == 'gordon':
|
||||
restart_cmd = '/etc/init.d/dhcp3-server restart'
|
||||
reseaux = { '138.231.144.0/21' : '/etc/dhcp3/generated/wifi.liste' }
|
||||
|
@ -77,6 +77,8 @@ class dhcp(gen_config) :
|
|||
for machine in self.machines :
|
||||
self.anim.cycle()
|
||||
for net in self.reseaux.keys() :
|
||||
ip = machine.ip()
|
||||
if '.151.' in ip: print ip
|
||||
if AddrInNet(machine.ip(), net) :
|
||||
host_template = self.host_template
|
||||
# variable pour remplir le template
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue