]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
DVR: optimize check_ports_exist_on_l3_agent()
authorOleg Bondarev <obondarev@mirantis.com>
Wed, 2 Dec 2015 11:52:30 +0000 (14:52 +0300)
committerOleg Bondarev <obondarev@mirantis.com>
Fri, 25 Dec 2015 14:20:05 +0000 (17:20 +0300)
commit226c999de3e342bf7ce667e21f4ab685b7fd5622
tree8b836762a3ac8ea32366de45f43ab79152b0ed27
parentc2483b73c2ca6586d7b169511be50f85230fd0f7
DVR: optimize check_ports_exist_on_l3_agent()

Currently the function gets all ports on the subnet and iterates
through them to find dvr serviceable ports on a particular host.
This patch makes it a single DB query to see if any port exists
matching criterias.

Partial-Bug: #1513678
Change-Id: Ie17885497aacb8fda4a2c4a05f19d08991038557
Co-Authored-By: Oleg Bondarev <obondarev@mirantis.com>
neutron/common/utils.py
neutron/db/l3_agentschedulers_db.py