]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Avoid an extra database query in schedule_snat_router
authorMichael Smith <michael.smith6@hp.com>
Tue, 2 Sep 2014 17:09:12 +0000 (17:09 +0000)
committerSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Mon, 15 Sep 2014 05:50:18 +0000 (22:50 -0700)
commit5a36f0ad24903a3a8ec213840ab164834917a32e
tree616e3a0747ff0e4f6f36232c1b9f858c3f61c847
parent1d00d17d9cef7af11a5eace3ebcb7c8a03b5e3ea
Avoid an extra database query in schedule_snat_router

bind_snat_servicenode already knows the chosen_agent.  By waiting
until after it is called, we can use it to avoid another db query.

Closes-bug: #1353266
Closes-bug: #1356639
Co-Authored-By: Swaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Change-Id: Iba5668b2717e188d5289ede982bfc1b46f4eeb5b
neutron/db/l3_dvrscheduler_db.py
neutron/tests/unit/test_l3_schedulers.py