]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Optimize querying for security groups
authorSudheendra Murthy <sumurthy@ebay.com>
Fri, 2 May 2014 22:25:28 +0000 (15:25 -0700)
committerThomas Goirand <thomas@goirand.fr>
Mon, 9 Jun 2014 15:06:54 +0000 (23:06 +0800)
commita10ca5912a375ee2b8c0219ca33d578c6b2bb2ea
tree21196c9ef7fa53b7cdc5b0af59d85530dda5b2a7
parentb2c44c173c94c3a3f8afacd845fcd55a10f40ebf
Optimize querying for security groups

In the check for all security groups on port belong to tenant,
add a filter to get security groups for the tenant which are in
common with the security groups of the port.

Change-Id: I66f31755525fca37f9dbce6fb43e475791f82495
Closes-Bug: #1315097
(cherry picked from commit 89b01ca24ba95e36568352b4e5c7abf0cd04e4af)
neutron/db/securitygroups_db.py