neutron/neutron
Swaminathan Vasudevan 062ad0a0a6 Change check_ports_exist_on_l3agent to pass the subnet_ids
The get_subnet_ids_on_router is called for every
available l3agent in check_ports_exist_on_l3agent.
This introduces un-necessary call to the same
function multiple times which is expensive since it
calls get_ports internally.

In large scale the time taken to schedule a VM
on a given N-Node increases.

By passing the subnet_ids to check_ports_exist_on_l3agent
we would be only calling once get_subnet_ids_on_router in
the get_l3_agent_candidates.

This patch addresses the above problem by calling
get_subnet_ids_on_router just once.

Change-Id: I9d130f98e07bfe571eee32b827ff9af4010ff0fb
Related-Bug: #1513678
2015-11-30 17:49:37 +00:00
..
agent Automatically generate neutron core configuration files 2015-11-27 15:22:59 +00:00
api Add availability_zone support for network 2015-11-25 22:34:09 +09:00
callbacks Merge "Add support for PluginWorker and Process creation notification" 2015-09-04 05:02:52 +00:00
cmd Merge "Use SIGUSR1 to notify l3 agent of changing prefix file" 2015-11-20 10:10:40 +00:00
common Automatically generate neutron core configuration files 2015-11-27 15:22:59 +00:00
core_extensions Forbid attaching rules if policy isn't accessible 2015-08-12 09:52:33 +00:00
db Change check_ports_exist_on_l3agent to pass the subnet_ids 2015-11-30 17:49:37 +00:00
debug Automatically generate neutron core configuration files 2015-11-27 15:22:59 +00:00
extensions Add availability_zone support for network 2015-11-25 22:34:09 +09:00
hacking Use assertFalse(observed) instead of assertEqual(False, observed) 2015-11-12 22:50:57 +09:00
ipam IPAM: add in missing exception translations 2015-11-22 06:25:47 -08:00
locale Imported Translations from Zanata 2015-11-29 06:23:53 +00:00
notifiers Use DEVICE_OWNER_COMPUTE constant everywhere 2015-11-14 18:54:17 +01:00
objects No network devices on network attached qos policies 2015-09-16 15:11:04 +02:00
openstack Last sync from oslo-incubator 2015-11-13 14:09:52 +00:00
pecan_wsgi Fixed a bunch of typos throughout Neutron 2015-10-30 08:54:41 -05:00
plugins Automatically generate neutron core configuration files 2015-11-27 15:22:59 +00:00
quota Merge "Remove duplicate deprecation messages for quota_items option" 2015-11-25 13:59:27 +00:00
scheduler Fix alignment in message and remove unused module 2015-11-26 08:16:45 +00:00
server Merge "Introduce a separate RPC server" into feature/pecan 2015-09-18 16:58:54 +00:00
services Fix Neutron flavor framework 2015-11-19 11:27:05 -08:00
tests Change check_ports_exist_on_l3agent to pass the subnet_ids 2015-11-30 17:49:37 +00:00
__init__.py Allow users to run 'tox -epy34' 2015-05-11 16:09:51 +02:00
auth.py Consume ConfigurableMiddleware from oslo_middleware 2015-10-08 17:59:43 +00:00
context.py Removed a pile of debtcollector removals from neutron.context 2015-10-06 18:28:40 +02:00
i18n.py oslo: migrate to namespace-less import paths 2015-02-05 15:09:32 +01:00
manager.py Fix Neutron flavor framework 2015-11-19 11:27:05 -08:00
neutron_plugin_base_v2.py Fix misspelled word in docstring 2015-11-20 17:08:47 +00:00
opts.py Automatically generate neutron core configuration files 2015-11-27 15:22:59 +00:00
policy.py Fixed multiple py34 gate issues 2015-10-08 14:13:56 +02:00
service.py Spawn dedicated rpc workers for state reports queue 2015-10-21 17:55:25 +04:00
version.py
worker.py Add support for PluginWorker and Process creation notification 2015-09-03 06:40:50 +00:00
wsgi.py Fixed a bunch of typos throughout Neutron 2015-10-30 08:54:41 -05:00