Remove support for legacy VNFD templates.

From Mitaka version, Tacker supports TOSCA based VNFD templates.
Legacy templates were deprecated in newton. Server side already
commited in https://review.openstack.org/#/c/382786/.
Removing related checks in client side now.

Implements: blueprint deprecate-legacy-template-dsl
Change-Id: I60b683c6d63b6976d438ff6130d16ddbf0656940
This commit is contained in:
dharmendra 2016-10-06 18:46:10 +09:00
parent aa7249af3e
commit 27a9ed8a35
2 changed files with 1 additions and 6 deletions

View File

@ -64,8 +64,7 @@ class CreateVNFD(tackerV10.CreateCommand):
if parsed_args.vnfd_file:
with open(parsed_args.vnfd_file) as f:
vnfd = f.read()
if "tosca_definitions_version" in vnfd:
vnfd = yaml.load(vnfd, Loader=yaml.SafeLoader)
vnfd = yaml.load(vnfd, Loader=yaml.SafeLoader)
if parsed_args.vnfd:
vnfd = parsed_args.vnfd
if isinstance(vnfd, str):

View File

@ -404,10 +404,6 @@ class Client(ClientBase):
@APIParamsCall
def create_vnfd(self, body):
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'}]
return self.post(self.vnfds_path, body)