def _allocate_fixed_ips(self, context, instance_id, host, networks,
                            **kwargs):
        requested_networks = kwargs.get('requested_networks')
        for network in networks:
            address = None
            if requested_networks is not None:
                for address in (fixed_ip for (uuid, fixed_ip) in \
                              requested_networks if network['uuid'] == uuid):
                    break

            self.allocate_fixed_ip(context, instance_id,
                                   network, address=address)
Check whether an RPC object is currently pending.
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/network/manager.py/FlatManager._allocate_fixed_ips--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/datastore/datastore_rpc.py/BaseConnection.is_pending