Make dns_servers option deprecated

CONF.network.dns_servers is not used anywhere, so this is to deprecate it.

Change-Id: I60ecad0e58394dcf912164095922276f4340f90b
This commit is contained in:
zhufl 2019-05-07 14:02:23 +08:00
parent 8688554660
commit e027ea931c
2 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,6 @@
---
deprecations:
- |
The config option ``CONF.network.dns_servers`` is no longer used
anywhere, so it is deprecated and will be removed in the future.

View File

@ -685,7 +685,10 @@ NetworkGroup = [
cfg.ListOpt('dns_servers',
default=["8.8.8.8", "8.8.4.4"],
help="List of dns servers which should be used"
" for subnet creation"),
" for subnet creation",
deprecated_for_removal=True,
deprecated_reason="This config option is no longer "
"used anywhere, so it can be removed."),
cfg.StrOpt('port_vnic_type',
choices=[None, 'normal', 'direct', 'macvtap'],
help="vnic_type to use when launching instances"