From 9794b45b63075e930a46771a28100ab9584933f5 Mon Sep 17 00:00:00 2001 From: bernat Date: Sun, 23 Apr 2006 15:28:33 +0200 Subject: [PATCH] Quand on ajoute/enleve des machines, il faut refaire la classification des paquets. darcs-hash:20060423132833-d1718-6cbf8ffdbebb11efc852bb60f86e9830757a89c0.gz --- gestion/ldap_crans.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 39d35b3b..70a6133a 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -1506,6 +1506,7 @@ class base_proprietaire(base_classes_crans): if 'paiement' in self.modifs or (config.bl_carte_et_definitif and test_carte): for m in self.machines(): self.services_to_restart('macip', [m.ip()] ) + self.services_to_restart('classify', [m.ip()] ) self.services_to_restart('dns') if isinstance(m, MachineWifi): self.services_to_restart('conf_wifi_ng') @@ -2565,6 +2566,7 @@ class Machine(base_classes_crans): # Reconfiguration firewalls et dhcps if reconf_ip: self.services_to_restart('macip', reconf_ip) + self.services_to_restart('classify', reconf_ip) if isinstance(self, MachineWifi): self.services_to_restart('ragnarok-dhcp') else: @@ -2637,6 +2639,7 @@ class Machine(base_classes_crans): self.services_to_restart('dns') self.services_to_restart('macip', [self.ip()]) + self.services_to_restart('classify', [self.ip()]) def portTCPin(self, ports=None): """ Ports TCP ouverts depuis l'extérieur pour la machine """