]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Provide a default api_extensions_path for nvp_plugin
authorAaron Rosen <arosen@nicira.com>
Thu, 21 Feb 2013 23:50:21 +0000 (15:50 -0800)
committerAaron Rosen <arosen@nicira.com>
Thu, 21 Feb 2013 23:52:33 +0000 (15:52 -0800)
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

quantum/plugins/nicira/nicira_nvp_plugin/QuantumPlugin.py

index da5224444f07ac81cb5550e68031dcf97797cccd..40e860983cbd4937ff4afe48f4b3fd150ffc6c7f 100644 (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