]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Allow IPAM backend switch
authorPavel Bondar <pbondar@infoblox.com>
Wed, 4 Feb 2015 13:13:28 +0000 (16:13 +0300)
committerPavel Bondar <pbondar@infoblox.com>
Thu, 9 Jul 2015 08:58:22 +0000 (11:58 +0300)
commitb522896c3132ebde5dfe77fd1352df91d39d90e9
treeda221354b00e26add9afbfe17db4750a7a02e53f
parent1e3b4f119a182d139942aee17e328d4ba8dc16ac
Allow IPAM backend switch

Changed inheritance chain for NeutronDbPluginV2 to allow switching from
non-pluggable to pluggable IPAM implementation.
IpamNonPluggableBackend methods are called on it's instance,
instead of previous way where IpamNonPluggableBackend was parent for
NeutronDbPluginV2.
It allows switching IPAM implementation in set_ipam_backend
(IpamNonPluggableBackend to IpamPluggableBackend).
All methods that became public in IpamNonPluggableBackend were renamed.

This is refactoring step before Pluggable IPAM can be applied.

Partially-Implements: blueprint neutron-ipam

Change-Id: I81806a43ecc6f0a7b293ce3e70d09d1e266b9f02
neutron/db/db_base_plugin_common.py
neutron/db/db_base_plugin_v2.py
neutron/db/ipam_backend_mixin.py
neutron/db/ipam_non_pluggable_backend.py
neutron/tests/unit/db/test_db_base_plugin_v2.py
neutron/tests/unit/plugins/ml2/test_plugin.py
neutron/tests/unit/test_ipam.py [changed mode: 0755->0644]