Turn off V1 API by default

Change-Id: Ia3179319c0a0e56a2e16b8d9c6dd80515c1bd36d
This commit is contained in:
Graham Hayes 2017-02-15 15:36:02 +00:00
parent 495cb491f4
commit 583d8eaf6e
3 changed files with 10 additions and 2 deletions

View File

@ -44,7 +44,10 @@ cfg.CONF.register_opts([
cfg.StrOpt('auth_strategy', default='keystone',
help='The strategy to use for auth. Supports noauth or '
'keystone'),
cfg.BoolOpt('enable-api-v1', default=True),
cfg.BoolOpt('enable-api-v1', default=False,
deprecated_for_removal=True,
deprecated_reason=("V1 API is being removed in a future"
"release")),
cfg.BoolOpt('enable-api-v2', default=True),
cfg.BoolOpt('enable-api-admin', default=False),
cfg.IntOpt('max_header_line', default=16384,

View File

@ -112,7 +112,7 @@ debug = False
#auth_strategy = keystone
# Enable Version 1 API (deprecated)
#enable_api_v1 = True
#enable_api_v1 = False
# Enabled API Version 1 extensions
# Can be one or more of : diagnostics, quotas, reports, sync, touch

View File

@ -0,0 +1,5 @@
---
critical:
- The ``v1`` API is now off by default. To re-enable the V1 API
please set ``enable_api_v1 = True`` in the ``[service:api]`` section
of your designate config file.