[generate.py,ldap_crans.py] On ne programme plus la reconfiguration de services qui n'existent plus.

This commit is contained in:
Valentin Samir 2013-02-13 15:15:18 +01:00
parent ab5320bfd2
commit d735b21bb9
2 changed files with 0 additions and 48 deletions

View file

@ -1903,14 +1903,6 @@ class BaseProprietaire(BaseClasseCrans):
self.services_to_restart('classify', [m.ip()] )
self.services_to_restart('dns')
self.services_to_restart('dhcp-dhcp')
if isinstance(m, MachineWifi):
self.services_to_restart('conf_wifi_ng')
self.services_to_restart('gordon-dhcp')
else:
self.services_to_restart('sable-dhcp')
self.services_to_restart('dyson-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() != '????':
@ -3208,13 +3200,6 @@ Contactez nounou si la MAC est bien celle d'une carte.""", 3)
self.services_to_restart('macip', reconf_ip)
self.services_to_restart('classify', reconf_ip)
self.services_to_restart('dhcp-dhcp')
if isinstance(self, MachineWifi) or isinstance(self, BorneWifi):
self.services_to_restart('gordon-dhcp')
else:
self.services_to_restart('sable-dhcp')
# TODO : le rendre plus propre
self.services_to_restart('titanic-dhcp')
self.services_to_restart('dyson-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()])
@ -3281,14 +3266,6 @@ Contactez nounou si la MAC est bien celle d'une carte.""", 3)
# Services à redémarrer
self.services_to_restart('dhcp-dhcp')
if isinstance(self, MachineWifi):
self.services_to_restart('conf_wifi_ng')
self.services_to_restart('gordon-dhcp')
else:
self.services_to_restart('sable-dhcp')
self.services_to_restart('dyson-dhcp')
# TODO : le rendre plus propre
self.services_to_restart('titanic-dhcp')
if self.exempt():
self.services_to_restart('surveillance_exemptions')