diff --git a/gestion/gen_confs/firewall4/base.py b/gestion/gen_confs/firewall4/base.py index bb3380cd..b161ecf4 100644 --- a/gestion/gen_confs/firewall4/base.py +++ b/gestion/gen_confs/firewall4/base.py @@ -131,7 +131,7 @@ class firewall(utils.firewall_tools) : def mac_ip_remove(self, mac, ip): machine = {'macAddress':[mac], 'ipHostNumber': [ip]} - self.test_mac_ip_dispatch(lambda set, data: set.ipset['mac_ip'][set].delete(data), machine) + self.test_mac_ip_dispatch(lambda set, data: self.ipset['mac_ip'][set].delete(data), machine) def test_mac_ip_dispatch(self, func, machine): """Détermine à quel set de mac-ip appliquer la fonction ``func`` (add, delete, append, ...)"""