Task to enable an object in the HAL.
- path: path of object to be enabled, e.g. "XPON.ONU.1"
- cntr: when enabling an XPON.ONU instance, tr181-xpon waits for a few seconds until the XPON.ONU instance has at least one EthernetUNI instance and one ANI instance. Enabling the XPON.ONU instance before tr181-xpon has discovered its EthernetUNI or ANI instance(s) might cause errors. E.g. the vendor module might already try to update the Status field of the EthernetUNI instance. This counter keeps track of how many times tr181-xpon checked the number of EthernetUNIs and ANIs of the XPON.ONU instance given by 'path'. If the counter goes above MAX_CHECKS_ON_NR_OF_UNIS_AND_ANIS, tr181-xpon enables the XPON.UNI instance even if its number of EthernetUNIs or ANIs is still 0. The field 'cntr' tracks more or less a number of seconds. By setting the MAX_CHECKS value to 4, tr181-xpon waits max about 4 to 5 seconds for both an EthernetUNI and ANI to appear. If 'path' refers to something else than an XPON.ONU instance, this counter is don't care.
- it: iterator to put it in s_rth_tasks
Definition at line 113 of file restore_to_hal.c.