Deprecate 'accessIPv4'/'accessIPv6' attributes

Nova now return these two attributes with empty value,
deprecated them.

Change-Id: Id176d8cbc332cb02ff4f1523993ee5b232e0aa15
This commit is contained in:
huangtianhua 2017-07-07 12:30:25 +08:00 committed by Zane Bitter
parent 28ce9f3ad4
commit fc57076d3c
2 changed files with 17 additions and 2 deletions

View File

@ -703,12 +703,20 @@ class Server(server_base.BaseServer, sh.SchedulerHintsMixin,
ACCESSIPV4: attributes.Schema(
_('The manually assigned alternative public IPv4 address '
'of the server.'),
type=attributes.Schema.STRING
type=attributes.Schema.STRING,
support_status=support.SupportStatus(
status=support.DEPRECATED,
version='14.0.0',
previous_status=support.SupportStatus(version='2015.1')),
),
ACCESSIPV6: attributes.Schema(
_('The manually assigned alternative public IPv6 address '
'of the server.'),
type=attributes.Schema.STRING
type=attributes.Schema.STRING,
support_status=support.SupportStatus(
status=support.DEPRECATED,
version='14.0.0',
previous_status=support.SupportStatus(version='2015.1'))
),
CONSOLE_URLS: attributes.Schema(
_("URLs of server's consoles. "

View File

@ -0,0 +1,7 @@
---
deprecations:
- |
The ``accessIPv4`` and ``accessIPv6`` attributes of the
``OS::Nova::Server`` resource are now deprecated, since Nova returns empty
values for them. Use the ``addresses`` attribute instead to get IP
addresses.