]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
L3 DB: Defer port DB subnet lookups
authorKevin Benton <blak111@gmail.com>
Fri, 17 Apr 2015 11:46:11 +0000 (04:46 -0700)
committerKevin Benton <blak111@gmail.com>
Tue, 21 Apr 2015 09:32:13 +0000 (02:32 -0700)
commit9701bd479529ccc243e48fdb944c284d2921c376
tree5ae3799c60190ec18b45c6ae1b95b64400a04f2d
parent3310c3c3d4c05c0d13f32f08f978ba4813e2a39a
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: Ib46f685d72eb61ecbaa2869e28fb173cd6d49552
Partial-bug: #1445412
neutron/db/l3_db.py
neutron/db/l3_dvr_db.py