]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
refactor QuotaV2 import to match to other exts
authorMark McClain <mark.mcclain@dreamhost.com>
Sun, 6 Jan 2013 00:28:35 +0000 (19:28 -0500)
committerMark McClain <mark.mcclain@dreamhost.com>
Mon, 7 Jan 2013 04:33:29 +0000 (23:33 -0500)
commit31f09ab2ec394f98c6d2d37f9588a37a0d9eaf92
tree4e73358f49c1c9a7344565c6cbb5e8a2e213ee5d
parent2a10cd2b6c46ccff6bcfacfd3cebfb3b92fdb6f8
refactor QuotaV2 import to match to other exts

fixes bug 1096486

The previous code used a special extension loading mechanism to
selectively load the Quota model is the plugin matched and object path.
This was intended to load models required by plugins, but this loading
actually occurred after the db schema was created, so the model was not
always loaded.  This fix refactors the code to make the QuotaV2 ext
behave similarly to the other extensions ensuring the models are loaded
prior to database schema creation.

Change-Id: Id7d1f7ddee69bfc4419df375366319dedc3dc439
quantum/api/extensions.py
quantum/db/quota_db.py [moved from quantum/extensions/_quotav2_driver.py with 68% similarity]
quantum/extensions/_quotav2_model.py [deleted file]
quantum/extensions/quotasv2.py
quantum/plugins/cisco/tests/unit/v2/quantumv2.conf.cisco.test
quantum/plugins/linuxbridge/lb_quantum_plugin.py
quantum/plugins/nicira/nicira_nvp_plugin/QuantumPlugin.py
quantum/plugins/openvswitch/ovs_quantum_plugin.py
quantum/quota.py
quantum/tests/unit/cisco/test_network_plugin.py
quantum/tests/unit/test_quota_per_tenant_ext.py