'Called when fixed IP is allocated or deallocated.'

def update_dns(self, context, network_ids):

    if CONF.fake_network:
        return
    LOG.debug('Update    DNS    for    network    ids:    %s', network_ids)
    networks = [network for network in objects.NetworkList.get_by_host(context, self.host) if (network.multi_host and (network.id in network_ids))]
    for network in networks:
        dev = self.driver.get_dev(network)
        self.driver.update_dns(context, dev, network)
