From: Aaron Rosen Date: Thu, 21 Feb 2013 23:50:21 +0000 (-0800) Subject: Provide a default api_extensions_path for nvp_plugin X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=539ca3cb1071d3565205e0d50df8d3b2a96beb21;p=openstack-build%2Fneutron-build.git 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 --- diff --git a/quantum/plugins/nicira/nicira_nvp_plugin/QuantumPlugin.py b/quantum/plugins/nicira/nicira_nvp_plugin/QuantumPlugin.py index da5224444..40e860983 100644 --- a/quantum/plugins/nicira/nicira_nvp_plugin/QuantumPlugin.py +++ b/quantum/plugins/nicira/nicira_nvp_plugin/QuantumPlugin.py @@ -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