Correctifs pour le commit précédent, et de quoi tester le chaînage.

This commit is contained in:
Pierre-Elliott Bécue 2015-03-10 20:06:18 +01:00
parent 201377528c
commit f228493399
12 changed files with 99 additions and 16 deletions

View file

@ -11,9 +11,10 @@ This is the parser for firewall service.
"""
import lc_ldap.attributs
from gestion.trigger.host import record_parser
from gestion.trigger.host import record_parser, chaining
@record_parser(lc_ldap.attributs.macAddress.ldap_name, lc_ldap.attributs.ipHostNumber.ldap_name)
@chaining(0)
def send_mac_ip(ob_id, body, diff):
"""Computes mac_ip data to send from body and diff