]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Extract CommonDBMixin to a separate file
authorEugene Nikanorov <enikanorov@mirantis.com>
Wed, 9 Jul 2014 10:47:01 +0000 (14:47 +0400)
committerEugene Nikanorov <enikanorov@mirantis.com>
Thu, 10 Jul 2014 09:04:30 +0000 (13:04 +0400)
commitcbd89e75d34c048c15c52dc828b1df7443c540d6
tree14f6dd25e03518abfaeba7e6ac4f1d1d83bd689c
parent1cf3b80549821ed41ef51257a954ab9ce73c8f93
Extract CommonDBMixin to a separate file

db_base_plugin_v2 imports too much modules that are not necessary
usually, so extract CommonDBMixin in different file.
Plus using db_base_plugin_v2 for some types of modules can lead to
cycles in imports, this refactoring should resolve the issue.

Closes-Bug: #1340145
Change-Id: Idb027d7c5cee2d5bc7598f805c56c55fd4aca048
12 files changed:
neutron/db/common_db_mixin.py [new file with mode: 0644]
neutron/db/db_base_plugin_v2.py
neutron/db/firewall/firewall_db.py
neutron/db/loadbalancer/loadbalancer_db.py
neutron/db/metering/metering_db.py
neutron/db/vpn/vpn_db.py
neutron/plugins/ml2/drivers/l2pop/db.py
neutron/plugins/nuage/nuagedb.py
neutron/services/l3_router/l3_apic.py
neutron/services/l3_router/l3_router_plugin.py
neutron/tests/unit/cisco/n1kv/test_n1kv_db.py
neutron/tests/unit/test_l3_plugin.py