Load tables of service plugins when migration auto generation

When we run "neutron-db-manage revision --autogenerate", it detects
table deletion of service plugins even when they are configured.
We need to load tables of service plugins to teach alembic such
tables exist.

Change-Id: I9186d36496069c8253683bd200326b80a6565fa6
Closes-Bug: #1218338
This commit is contained in:
Akihiro MOTOKI 2013-08-29 21:08:06 +09:00
parent 94d7df11fc
commit 58f9c3e54f

View File

@ -40,7 +40,8 @@ plugin_class_path = neutron_config.core_plugin
active_plugins = [plugin_class_path]
active_plugins += neutron_config.service_plugins
plugin_klass = importutils.import_class(plugin_class_path)
for class_path in active_plugins:
importutils.import_class(class_path)
# set the target for 'autogenerate' support
target_metadata = model_base.BASEV2.metadata