summaryrefslogtreecommitdiffstats
path: root/nova/flags.py
diff options
context:
space:
mode:
authorBrian Lamar <brian.lamar@rackspace.com>2012-02-08 15:29:02 -0500
committerBrian Lamar <brian.lamar@rackspace.com>2012-02-08 16:08:02 -0500
commitfdd92c4ad987407dae96ab46a36e0db407ded718 (patch)
tree6df94882683b2ce426d8af0b4c2844cee868767a /nova/flags.py
parent799713e4db7f55ccc6acaa033fa082075e28a6a9 (diff)
downloadnova-fdd92c4ad987407dae96ab46a36e0db407ded718.tar.gz
nova-fdd92c4ad987407dae96ab46a36e0db407ded718.tar.xz
nova-fdd92c4ad987407dae96ab46a36e0db407ded718.zip
Added ability to load specific extensions.
For example, the following nova.conf configuration file: --osapi_compute_extension=nova.api.openstack.compute.contrib.select_extensions --osapi_compute_ext_list=Createserverext,Extended_status Would load only the Createserverext and Extended_status extensions. Change-Id: I8c2a444683c6e4114875827b44ef01e457eb94ac
Diffstat (limited to 'nova/flags.py')
-rw-r--r--nova/flags.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/nova/flags.py b/nova/flags.py
index de352c2d6..85e031d45 100644
--- a/nova/flags.py
+++ b/nova/flags.py
@@ -313,11 +313,21 @@ global_opts = [
cfg.StrOpt('ec2_path',
default='/services/Cloud',
help='suffix for ec2'),
+ cfg.ListOpt('osapi_compute_ext_list',
+ default=[],
+ help='Specify list of extensions to load when using osapi_'
+ 'compute_extension option with nova.api.openstack.'
+ 'compute.contrib.select_extensions'),
cfg.MultiStrOpt('osapi_compute_extension',
default=[
'nova.api.openstack.compute.contrib.standard_extensions'
],
help='osapi compute extension to load'),
+ cfg.ListOpt('osapi_volume_ext_list',
+ default=[],
+ help='Specify list of extensions to load when using osapi_'
+ 'volume_extension option with nova.api.openstack.'
+ 'volume.contrib.select_extensions'),
cfg.MultiStrOpt('osapi_volume_extension',
default=[
'nova.api.openstack.volume.contrib.standard_extensions'