[ldap_crans.py] Ajout de titanic-dhcp

Ca peut etre sympa que le DHCP soit a jour par moments

darcs-hash:20090401191721-ddb99-8ab7b06d67f41d2c0b7c24c1aa38f4e53712ca40.gz
This commit is contained in:
Michel Blockelet 2009-04-01 21:17:21 +02:00
parent b776b97298
commit 60e12e322c

View file

@ -1697,6 +1697,8 @@ class BaseProprietaire(BaseClasseCrans):
self.services_to_restart('ragnarok-dhcp')
else:
self.services_to_restart('rouge-dhcp')
# TODO : le rendre plus propre
self.services_to_restart('titanic-dhcp')
# Vérification si changement de bât, ce qui obligerai un changement d'IP
if 'adherentPayant' in self.modifs or 'chbre' in self.modifs and self.chbre() != '????':
@ -2935,6 +2937,8 @@ Contactez nounou si la MAC est bien celle d'une carte.""", 3)
self.services_to_restart('ragnarok-dhcp')
else:
self.services_to_restart('rouge-dhcp')
# TODO : le rendre plus propre
self.services_to_restart('titanic-dhcp')
if 'portTCPin' in self.modifs or 'portTCPout' in self.modifs or \
'portUDPin' in self.modifs or 'portUDPout' in self.modifs:
self.services_to_restart('komaz-ports', [self.ip()])
@ -3000,6 +3004,8 @@ Contactez nounou si la MAC est bien celle d'une carte.""", 3)
self.services_to_restart('ragnarok-dhcp')
else:
self.services_to_restart('rouge-dhcp')
# TODO : le rendre plus propre
self.services_to_restart('titanic-dhcp')
if self.exempt():
self.services_to_restart('surveillance_exemptions')