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

@ -13,10 +13,11 @@ This currently is used for mac/IP updates of LDAP database.
"""
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)
def send_mac_ip(ob_id, body, diff):
@chaining(1)
def dhcp(ob_id, body, diff):
"""Computes mac_ip data to send from body and diff
The dict contains lists of tuples, so we can iterate on them