'Calls allocate_fixed_ip once for each network.'

def _allocate_fixed_ips(self, context, instance_id, host, networks, **kwargs):

    requested_networks = kwargs.get('requested_networks')
    addresses_by_network = {}
    if (requested_networks is not None):
        for request in requested_networks:
            addresses_by_network[request.network_id] = request.address
    for network in networks:
        if (network['uuid'] in addresses_by_network):
            address = addresses_by_network[network['uuid']]
        else:
            address = None
        self.allocate_fixed_ip(context, instance_id, network, address=address)
