]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
API extension and DB support for service types
authorSalvatore Orlando <salv.orlando@gmail.com>
Fri, 7 Dec 2012 14:33:48 +0000 (06:33 -0800)
committerSalvatore Orlando <salv.orlando@gmail.com>
Tue, 8 Jan 2013 01:21:42 +0000 (17:21 -0800)
commit3eb2cfc011a7be4060c9232bc804869dd4673ca7
tree9650a52ec23c931a994596b580942bbcd07ac695
parentdbf0b22abb5a55e3bab5eb335eb47cd843a7a43d
API extension and DB support for service types

Blueprint quantum-service-type

This patch allows for managing service types through the API.
The default service type is specified in the configuration file.
The patch also provides a 'dummy' API extension, which uses the
'dummy' service plugin, as a PoC for usage of service type.
The dummy API extension is used in unit tests only.

Change-Id: I97d400b941fa7925b0efa0fd0d35c07419ff6bfa
18 files changed:
etc/policy.json
etc/quantum.conf
quantum/api/v2/base.py
quantum/common/exceptions.py
quantum/db/migration/alembic_migrations/versions/48b6f43f7471_service_type.py [new file with mode: 0644]
quantum/db/servicetype_db.py [new file with mode: 0644]
quantum/extensions/servicetype.py [new file with mode: 0644]
quantum/plugins/common/constants.py
quantum/plugins/services/dummy/__init__.py [deleted file]
quantum/plugins/services/dummy/dummy_plugin.py [deleted file]
quantum/plugins/services/service_base.py
quantum/tests/etc/quantum.conf.test
quantum/tests/unit/dummy_plugin.py [new file with mode: 0644]
quantum/tests/unit/metaplugin/test_metaplugin.py
quantum/tests/unit/test_config.py [new file with mode: 0644]
quantum/tests/unit/test_db_plugin.py
quantum/tests/unit/test_quantum_manager.py
quantum/tests/unit/test_servicetype.py [new file with mode: 0644]