[dhcp_new,generate,switchs,ldap_crans] On ajoute dhcp à générate et son ip dans dhcp-snooping, on active le dhcp-nopping sur tous les vlan.

Ignore-this: c3a151a94e71f2bb4761a9ecc9707bcf

darcs-hash:20121025212409-3a55a-cd8c2857721d655c5dd67124a380fbe7eb5161b3.gz
This commit is contained in:
Valentin Samir 2012-10-25 23:24:09 +02:00
parent f33d5aa50b
commit ce443b9bfa
4 changed files with 39 additions and 7 deletions

View file

@ -1817,6 +1817,7 @@ class BaseProprietaire(BaseClasseCrans):
self.services_to_restart('macip', [m.ip()] )
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')
@ -3061,6 +3062,7 @@ Contactez nounou si la MAC est bien celle d'une carte.""", 3)
if reconf_ip:
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:
@ -3128,6 +3130,7 @@ Contactez nounou si la MAC est bien celle d'une carte.""", 3)
self._delete(self.dn, comment)
# 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')