'Rebuild the dnsmasq config and signal the dnsmasq to reload.'

def reload_allocations(self):

    if (not self._enable_dhcp()):
        self.disable()
        LOG.debug('Killing    dnsmasq    for    network    since    all    subnets    have    turned    off    DHCP:    %s', self.network.id)
        return
    if (not self.interface_name):
        LOG.debug('Agent    does    not    have    an    interface    on    this    network    anymore,    skipping    reload:    %s', self.network.id)
        return
    self._release_unused_leases()
    self._spawn_or_reload_process(reload_with_HUP=True)
    LOG.debug('Reloading    allocations    for    network:    %s', self.network.id)
    self.device_manager.update(self.network, self.interface_name)
