]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
The change allows loading several service plugins along with core plugin.
authorEugene Nikanorov <enikanorov@mirantis.com>
Thu, 8 Nov 2012 14:44:02 +0000 (18:44 +0400)
committerEugene Nikanorov <enikanorov@mirantis.com>
Tue, 20 Nov 2012 05:37:34 +0000 (09:37 +0400)
commit925b4185f5857621926cb56b1422b1efdb13e7a6
tree3cca1071e340d70ceaddbadcd62ca4fdf1f84728
parenta06fd815bfeaf0ff2ac07e70e6aae1a2e58d799c
The change allows loading several service plugins along with core plugin.

The following functionality changes were made:
1. Multiple plugins are loaded one per type
2. QuantumManager now holds dictionary {plugin_type: plugin_instance}
   Core plugin is stored there as well
3. Extensions are checked against all loaded plugins
4. Service plugins are specified by service_plugins option in quantum.conf file
5. Provide basic interface for service plugins
6. Introduce dummy service plugin as example and PoC
7. Service plugin's REST calls get corresponding plugin's common prefix
8. Add UTs for new extension framework functionality and for QuantumManager

Implements: blueprint quantum-service-framework
Change-Id: I1d00d6f848937410bccd91c852ff0871a86d7bb8
13 files changed:
etc/quantum.conf
quantum/common/config.py
quantum/extensions/extensions.py
quantum/manager.py
quantum/plugins/__init__.py
quantum/plugins/common/__init__.py [new file with mode: 0644]
quantum/plugins/common/constants.py [new file with mode: 0644]
quantum/plugins/services/__init__.py [new file with mode: 0644]
quantum/plugins/services/dummy/__init__.py [new file with mode: 0644]
quantum/plugins/services/dummy/dummy_plugin.py [new file with mode: 0644]
quantum/plugins/services/service_base.py [new file with mode: 0644]
quantum/tests/unit/test_extensions.py
quantum/tests/unit/test_quantum_manager.py [new file with mode: 0644]