[firewall_new] Utilisation de firewall_new dans regenerate macip
Ignore-this: 478b4193e24e87f5d49cd7f5faf9b8f9 Une solution plus propre dans generate.py serait la bienvenue ... darcs-hash:20120229003444-28565-24c4e1aa6e34229d67143c8c55a715d0dd14042e.gz
This commit is contained in:
parent
62bb8ed1eb
commit
3169b58f2e
2 changed files with 8 additions and 8 deletions
|
@ -125,7 +125,11 @@ class base_reconfigure:
|
|||
service.reconfigure()
|
||||
|
||||
def macip(self, ips):
|
||||
import firewall
|
||||
if hostname in ['gordon','komaz']:
|
||||
import firewall_new
|
||||
firewall = firewall_new
|
||||
else:
|
||||
import firewall
|
||||
cprint(u"Mise a jour correspondance MAC-IP", 'gras')
|
||||
eval("firewall.firewall_%s()" % hostname).mac_ip_maj(ips)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue