]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Minor refactoring for add_router_to_l3_agent
authorarmando-migliaccio <armamig@gmail.com>
Thu, 21 Aug 2014 00:36:06 +0000 (17:36 -0700)
committerEugene Nikanorov <enikanorov@mirantis.com>
Tue, 26 Aug 2014 21:00:08 +0000 (01:00 +0400)
commit968ab9006ecf3fe3f22c19ac219e7376eb718d77
tree471cd390fd2ee303d5327960cf558c59a3982611
parent3f16a695442d3e7eef152285c030e02c50ff63ec
Minor refactoring for add_router_to_l3_agent

This method is more complicated than it needs
to be, and it makes it difficult to target
fixes for it.

Furthermore, this method calls into
auto_schedule_routers, which duplicates some
of the DB calls already made in the above
mentioned method. This refactoring
is done in preparation of the performance
improvement.

Partial-bug: #1356121
Related-Bug: #1358636

Change-Id: I9a0cfa41a5f067949b964d39157def55c40bf9af
neutron/db/l3_agentschedulers_db.py