From bb36650f87dd4b30e9ebbbb4409444b4482338b5 Mon Sep 17 00:00:00 2001 From: Chris Yeoh Date: Fri, 17 May 2013 16:53:37 +0930 Subject: Adds ability to black/whitelist v3 API extensions Adds a config option which will blacklist specific v3 API extensions from being loaded even if they are detected. Adds a config option which if the list is not empty will stop any v3 API extension from being loaded unless it is in the whitelist. No filtering occurs if the whitelist is empty Creates a config option group osapi_v3 to hold the two new options and osapi_v3_enabled renamed to just enabled within the new group Partially implements blueprint v3-api-extension-framework Change-Id: Iec7fdb073b933791b0110dae485538c9080f2670 --- etc/nova/nova.conf.sample | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) (limited to 'etc') diff --git a/etc/nova/nova.conf.sample b/etc/nova/nova.conf.sample index 569c2d391..29778a556 100644 --- a/etc/nova/nova.conf.sample +++ b/etc/nova/nova.conf.sample @@ -412,14 +412,6 @@ #quantum_metadata_proxy_shared_secret= -# -# Options defined in nova.api.openstack -# - -# Whether the V3 API is enabled or not -#osapi_v3_enabled=False - - # # Options defined in nova.api.openstack.common # @@ -2880,4 +2872,25 @@ #keymap=en-us +[osapi_v3] + +# +# Options defined in nova.api.openstack +# + +# Whether the V3 API is enabled or not +#enabled=False + +# If the list is not empty then a v3 API extension +# will only be loaded if it exists in this list. +# Specify the extension aliases here +#extensions_whitelist= + +# A list of v3 API extensions to never load. +# Specify the extension aliases here. +# Note that if an extension is in both the blacklist and +# and whitelist then it will not be loaded +#extensions_blacklist= + + # Total option count: 584 -- cgit