Commit 169713f2 authored by Gabriel Detraz's avatar Gabriel Detraz

Reconfiguration du service parefeu sur sable

parent f056d545
......@@ -247,33 +247,6 @@ class zbee(base_reconfigure):
from adherents import mail_bienvenue
self._do(mail_bienvenue(mails))
class komaz(base_reconfigure):
# Mimétisme de ma part -- xhub
def __fw6(self):
if not hasattr(self, '__real_fw6'):
from firewall6 import Update
self.__real_fw6 = Update()
return self.__real_fw6
def macip(self, ips):
cprint(u"Mise a jour correspondance MAC-IP", 'gras')
self._fw().mac_ip_maj(ips)
self.__fw6().macs([], 6)
def ports(self, ips):
self._fw().filtrage_ports_maj(ips)
#self.__fw6().ports(map(self.midt.from_ipv4, ips), 6)1
def blacklist(self, ips):
self._fw().blacklist_maj(ips)
self.__fw6().blacklist(6)
def classify(self, ips):
#self.__fw().classes_p2p_maj(ips)
pass
class fy(base_reconfigure):
def autostatus(self):
from autostatus import autostatus
......@@ -290,28 +263,28 @@ class isc(base_reconfigure):
self._do(dhcp(), db.search("mid=*")['machine'])
class sable(base_reconfigure):
def dhcp(self):
from gen_confs.dhcpd_new import dhcp
self._do(dhcp(), db.search("mid=*")['machine'])
#def dns(self):
# from gen_confs.bind import dns
# self._do(dns(), [])
# Mimétisme de ma part -- xhub
def __fw6(self):
if not hasattr(self, '__real_fw6'):
from firewall6 import Update
self.__real_fw6 = Update()
return self.__real_fw6
def filtrage_exemptions(self):
from gen_confs.filtrage import exemptions
self._do(exemptions())
def filtrage_machines(self):
from gen_confs.filtrage import machines
self._do(machines(), self._machines())
def macip(self, ips):
cprint(u"Mise a jour correspondance MAC-IP", 'gras')
self._fw().mac_ip_maj(ips)
self.__fw6().macs([], 6)
#self.__fw6().macs([], 6)
def ports(self, ips):
self._fw().filtrage_ports_maj(ips)
......@@ -319,12 +292,7 @@ class sable(base_reconfigure):
def blacklist(self, ips):
self._fw().blacklist_maj(ips)
self.__fw6().blacklist(6)
def classify(self, ips):
#self.__fw().classes_p2p_maj(ips)
pass
#self.__fw6().blacklist(6)
class silice(base_reconfigure):
......
Markdown is supported
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