neutron/neutron/tests/unit
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 Merge "Use diffs for iptables restore instead of all rules" 2015-11-26 19:52:14 +00:00
api Add availability_zone support for network 2015-11-25 22:34:09 +09:00
callbacks Improve callback registry devref documentation and usability 2015-08-12 10:15:07 -07:00
cmd Add IPDevice.exists() method 2015-10-01 13:47:07 -04:00
common Merge "Make sure we return unicode strings for process output" 2015-11-24 05:13:18 +00:00
core_extensions QoS core extension: fixed dict extension when QoS policy is unset 2015-08-08 15:44:27 +02: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 Merge "Use compare-and-swap for IpamAvailabilityRange" 2015-11-20 22:05:59 +00:00
notifiers Use DEVICE_OWNER_* for 'network:*' constants 2015-11-16 20:45:36 -08:00
objects Use DEVICE_OWNER_COMPUTE constant everywhere 2015-11-14 18:54:17 +01:00
plugins Merge "Don't drop ARP table jump during OVS rewiring" 2015-11-26 06:57:12 +00:00
quota Fixed a bunch of typos throughout Neutron 2015-10-30 08:54:41 -05:00
scheduler Change check_ports_exist_on_l3agent to pass the subnet_ids 2015-11-30 17:49:37 +00:00
services Get rid of ConfigParser code in ProviderConfiguration 2015-09-21 10:55:56 -07:00
tests Merge "Different approach to indicate failure on SystemExit" 2015-07-16 06:57:16 +00:00
__init__.py oslo: migrate to namespace-less import paths 2015-02-05 15:09:32 +01:00
_test_extension_portbindings.py Context: Remove logic for read_deleted and deprecate it 2015-06-09 13:50:03 -07:00
dummy_plugin.py Fixed a bunch of typos throughout Neutron 2015-10-30 08:54:41 -05:00
extension_stubs.py Removes the use of mutables as default args 2015-10-29 07:57:31 -07:00
test_auth.py Use assertFalse(observed) instead of assertEqual(False, observed) 2015-11-12 22:50:57 +09:00
test_context.py Python 3: fix test_context 2015-07-27 16:57:08 +02:00
test_manager.py Fix Neutron flavor framework 2015-11-19 11:27:05 -08:00
test_policy.py Use DEVICE_OWNER_* for 'network:*' constants 2015-11-16 20:45:36 -08:00
test_service.py Refactor TestRpcWorker and TestWorkerService 2015-06-16 15:49:48 +03:00
test_wsgi.py Make sure we return unicode strings for process output 2015-11-20 16:49:51 +01:00
testlib_api.py Improve fixture usage. 2015-07-01 14:53:48 +12:00