neutron/neutron/tests/unit/db
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
..
metering COMMON_PREFIXES cleanup - patch 1/5 2015-07-02 17:05:27 -07:00
quota Removed a pile of debtcollector removals from neutron.context 2015-10-06 18:28:40 +02:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test_agents_db.py Add periodic agents health check. 2015-10-01 09:21:54 +00:00
test_agentschedulers_db.py Change check_ports_exist_on_l3agent to pass the subnet_ids 2015-11-30 17:49:37 +00:00
test_allowedaddresspairs_db.py Fixed a bunch of typos throughout Neutron 2015-10-30 08:54:41 -05:00
test_db_base_plugin_common.py Replace to_dict() calls with a function decorator 2015-08-03 11:42:25 +03:00
test_db_base_plugin_v2.py Add availability_zone support for network 2015-11-25 22:34:09 +09:00
test_dvr_mac_db.py Remove unused delete_dvr_mac_address method 2015-11-16 15:56:47 -05:00
test_ipam_backend_mixin.py DB, IPAM & RPC changes for IPv6 Prefix Delegation 2015-08-05 12:22:22 +01:00
test_ipam_non_pluggable_backend.py Move tests for non pluggable ipam backend 2015-08-19 13:09:02 +03:00
test_ipam_pluggable_backend.py Add new config option for IPv6 Prefix Delegation 2015-11-06 16:35:02 +00:00
test_l3_db.py Refactor _populate_ports_for_subnets for testability 2015-10-19 22:31:43 +00:00
test_l3_dvr_db.py Change check_ports_exist_on_l3agent to pass the subnet_ids 2015-11-30 17:49:37 +00:00
test_l3_hamode_db.py Delete HA network when last HA router is deleted 2015-11-25 16:18:05 -05:00
test_migration.py neutron-db-manage: expose alembic 'heads' command 2015-11-20 17:39:11 +01:00
test_securitygroups_db.py Fix callback registry notification for security group rule 2015-06-22 17:19:44 +03:00