]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Make get_security_groups() return security group rules
authorAaron Rosen <arosen@nicira.com>
Fri, 25 Jan 2013 19:30:18 +0000 (11:30 -0800)
committerAaron Rosen <arosen@nicira.com>
Mon, 28 Jan 2013 19:49:20 +0000 (11:49 -0800)
commitdc3e446aeccdd784c480b094b9285a5618e1b607
tree60da4d770612d13d0af3608119d0a1b19c151ab8
parent5db8a2235251a18f4fdeff31d30d3b95c4e1cb36
Make get_security_groups() return security group rules

In nova, get_security_groups() returns the security groups and their
security group rules. In order to implement the security group proxy
it needs to return this data to nova. This can be done using multiple
requests from nova-api to quantum i.e: get_security_groups(), then
get_security_group() for each group to obtain the rules. If one has a lot
of security groups this will generate a lot of requests. Adding this change
allows all the security groups and their rules to be returned in one shot.

Fix bug 1105399

Change-Id: Ib685960311221ac4e5fe0913c7e00e15ab74accb
quantum/db/securitygroups_db.py
quantum/tests/unit/test_extension_security_group.py