Correctifs pour le commit précédent, et de quoi tester le chaînage.
This commit is contained in:
parent
201377528c
commit
f228493399
12 changed files with 99 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue