Merge "Deprecate infra_driver and mgmt_driver"

This commit is contained in:
Jenkins 2016-08-26 22:34:28 +00:00 committed by Gerrit Code Review
commit 542a2bb083
2 changed files with 9 additions and 0 deletions

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

@ -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: