Merge "VNFD legacy template deprecation warning"
This commit is contained in:
commit
eebea81587
@ -378,6 +378,10 @@ class Client(ClientBase):
|
|||||||
@APIParamsCall
|
@APIParamsCall
|
||||||
def create_vnfd(self, body=None):
|
def create_vnfd(self, body=None):
|
||||||
if body is not None:
|
if body is not None:
|
||||||
|
if ("tosca_definitions_version" not in
|
||||||
|
body[self._VNFD]['attributes']['vnfd']):
|
||||||
|
_logger.warning("VNFD legacy templates are deprecated. Please "
|
||||||
|
"use NFV TOSCA templates.")
|
||||||
body[self._VNFD]['service_types'] = [{'service_type': 'vnfd'}]
|
body[self._VNFD]['service_types'] = [{'service_type': 'vnfd'}]
|
||||||
body[self._VNFD]['infra_driver'] = 'heat'
|
body[self._VNFD]['infra_driver'] = 'heat'
|
||||||
body[self._VNFD]['mgmt_driver'] = 'noop'
|
body[self._VNFD]['mgmt_driver'] = 'noop'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user