Provide a default api_extensions_path for nvp_plugin

The NVP plugin has several extensions within it's plugin directory. In order
to tell quantum-server to load this, api_extensions_path must be set in
quantum.conf. This is sort of painful because one needs to set this value.

Fixes bug 1131469

Change-Id: I8d124aa93f79dbeb8b2abac1c27765d5ebf449c2
This commit is contained in:
Aaron Rosen 2013-02-21 15:50:21 -08:00
parent 8be1d0eeb0
commit f90f5a7762

View File

@ -120,6 +120,12 @@ def parse_config():
'default_interface_name':
nvp_conf[cluster_name].default_interface_name})
LOG.debug(_("Cluster options:%s"), clusters_options)
# If no api_extensions_path is provided set the following
if not cfg.CONF.api_extensions_path:
cfg.CONF.set_override(
'api_extensions_path',
'quantum/plugins/nicira/nicira_nvp_plugin/extensions')
return cfg.CONF.NVP, clusters_options