Commit ebf69f91 authored by Valentin Samir's avatar Valentin Samir
Browse files

[generate] La fonction en question n'est pas un attribut de classe mais bien une fonction interne

parent da5df76d
......@@ -145,7 +145,7 @@ class base_reconfigure:
service.machines = machines
service.reconfigure()
def __fw(self):
def _fw(self):
if not hasattr(self, '__real_fw'):
from firewall4 import firewall
self.__real_fw = firewall()
......@@ -153,11 +153,11 @@ class base_reconfigure:
def macip(self, ips):
cprint(u"Mise a jour correspondance MAC-IP", 'gras')
self.__fw().mac_ip_maj(ips)
self._fw().mac_ip_maj(ips)
def blacklist(self, ips):
cprint(u"Mise a jour des blacklists", 'gras')
self.__fw().blacklist_maj(ips)
self._fw().blacklist_maj(ips)
class redisdead(base_reconfigure):
def droits(self):
......@@ -248,15 +248,15 @@ class komaz(base_reconfigure):
def macip(self, ips):
cprint(u"Mise a jour correspondance MAC-IP", 'gras')
self.__fw().mac_ip_maj(ips)
self._fw().mac_ip_maj(ips)
self.__fw6().macs([], 6)
def ports(self, ips):
self.__fw().filtrage_ports_maj(ips)
self._fw().filtrage_ports_maj(ips)
#self.__fw6().ports(map(self.midt.from_ipv4, ips), 6)
def blacklist(self, ips):
self.__fw().blacklist_maj(ips)
self._fw().blacklist_maj(ips)
self.__fw6().blacklist(6)
def classify(self, ips):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment