]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Perform a joined query for ports and security group associations
authorSalvatore Orlando <salv.orlando@gmail.com>
Sun, 28 Apr 2013 23:40:47 +0000 (01:40 +0200)
committerSalvatore Orlando <salv.orlando@gmail.com>
Fri, 3 May 2013 22:35:02 +0000 (00:35 +0200)
commit6f01194e9c30afc2656cef9b15fea5ae688e93d7
treeba2736441c60b6d67156afc1e1f2c27674b35af6
parent3ee00b19e5e87b271735e6ac9429269d0b04310d
Perform a joined query for ports and security group associations

bug 1174111

Instead of loading security group associations with a separate query
each time a port is loaded from the database, perform the load operation
with a join using a joined sqlalchemy relationship.
Also, this patch removes the need for invoking the mixin method
'extend_port_dict_security_group' from the plugin code.

Change-Id: I40b22281d45ff4f4bf8149211883799a9051c1a0
13 files changed:
quantum/api/v2/attributes.py
quantum/db/db_base_plugin_v2.py
quantum/db/securitygroups_db.py
quantum/db/securitygroups_rpc_base.py
quantum/plugins/brocade/QuantumPlugin.py
quantum/plugins/linuxbridge/lb_quantum_plugin.py
quantum/plugins/midonet/plugin.py
quantum/plugins/nec/nec_plugin.py
quantum/plugins/nicira/QuantumPlugin.py
quantum/plugins/openvswitch/ovs_quantum_plugin.py
quantum/plugins/ryu/ryu_quantum_plugin.py
quantum/tests/unit/test_extension_portsecurity.py
quantum/tests/unit/test_extension_security_group.py