_populate_subnets_for_ports was being called multiple
times for different interface types during the get_routers
process.
This patch eliminates those extra queries by deferring the
subnet information population until after all of the interfaces
have been looked up. Includes a function rename as well to
indicate that a function is only used internally.
Reviewed: https:/ /review. openstack. org/174843 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=9701bd47952 9ccc243e48fdb94 4c284d2921c376
Committed: https:/
Submitter: Jenkins
Branch: master
commit 9701bd479529ccc 243e48fdb944c28 4d2921c376
Author: Kevin Benton <email address hidden>
Date: Fri Apr 17 04:46:11 2015 -0700
L3 DB: Defer port DB subnet lookups
_populate_ subnets_ for_ports was being called multiple
times for different interface types during the get_routers
process.
This patch eliminates those extra queries by deferring the
subnet information population until after all of the interfaces
have been looked up. Includes a function rename as well to
indicate that a function is only used internally.
Change-Id: Ib46f685d72eb61 ecbaa2869e28fb1 73cd6d49552
Partial-bug: #1445412