'Resync the dhcp state at the configured interval.'

@utils.exception_logger()
def _periodic_resync_helper(self):

    while True:
        eventlet.sleep(self.conf.resync_interval)
        if self.needs_resync_reasons:
            reasons = self.needs_resync_reasons
            self.needs_resync_reasons = collections.defaultdict(list)
            for (net, r) in reasons.items():
                if (not net):
                    net = '*'
                LOG.debug('resync    (%(network)s):    %(reason)s', {'reason': r, 'network': net})
            self.sync_state(reasons.keys())
