]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Get all interfaces for get_snat_sync_interfaces
authorKevin Benton <blak111@gmail.com>
Fri, 17 Apr 2015 12:10:26 +0000 (05:10 -0700)
committerKevin Benton <kevinbenton@buttewifi.com>
Sun, 3 May 2015 01:48:38 +0000 (01:48 +0000)
commit26284228dfc3c5f121f869dd6b2d2a492afaf659
tree36cb0440e74532802cb123b60ebe842745500369
parent195799fb5da4ed4338fbd2480841dd44d7b51628
Get all interfaces for get_snat_sync_interfaces

The get_snat_sync_interfaces method was being called for
each router individually during a sync, which resulted
in a new query to the database.

This patch eliminates that waste by querying for the snat
interfaces for all of the routers in the list at once.

Change-Id: I1e44a0cf15a70632e8b62ac89ce807a7a457747d
Partial-Bug: #1445412
neutron/db/l3_dvr_db.py