Deprecate infra_driver and mgmt_driver

infra_driver will be automatically figured out
in the VNF instantiation based on target VIM type
mgmt_driver is specified in the TOSCA template
per-VDU and the value the client API is ignored

Both these attributes will be removed in Ocata.

Change-Id: Ic59d7f8af6e4b1a27f4125f57d8165dc1011ce9e
Closes-bug: #1524243
This commit is contained in:
digambar 2016-08-25 15:10:16 +05:30 committed by Sridhar Ramaswamy
parent c047bf9db2
commit ced23fe6ab
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,4 @@
---
deprecations:
- infra_driver and mgmt_driver attributes in VNFD client
attribute is deprecated and will be removed in Ocata.

View File

@ -403,6 +403,11 @@ class Client(ClientBase):
_logger.warning("VNFD legacy templates are deprecated. Please "
"use NFV TOSCA templates.")
body[self._VNFD]['service_types'] = [{'service_type': 'vnfd'}]
_logger.warning(
"Passing infra_driver and mgmt_driver in the VNFD"
" API is deprecated. infra_driver will be automatically"
" derived from target vim type. mgmt_driver will be"
" derived from TOSCA template values.")
body[self._VNFD]['infra_driver'] = 'heat'
body[self._VNFD]['mgmt_driver'] = 'noop'
else: