diff options
author | ying.yunlong <ying.yunlong@zte.com.cn> | 2018-04-12 16:18:10 +0800 |
---|---|---|
committer | ying.yunlong <ying.yunlong@zte.com.cn> | 2018-04-12 16:18:10 +0800 |
commit | 68f003bbc30b5c8537fbefcfbd1517b393fea8b0 (patch) | |
tree | 633467732ecc776e3d688080a3d6c7775740c5d7 /lcm | |
parent | 979ff2244f03ee4c736f6a5f7fe8e5e70a9cd6de (diff) |
Modify vfc-vnflcm vnf creation
Change-Id: I59afffbf29895849a12385c272eacf1837f00698
Issue-ID: VFC-873
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'lcm')
-rw-r--r-- | lcm/lcm/nf/vnf_create/create_vnf_identifier.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lcm/lcm/nf/vnf_create/create_vnf_identifier.py b/lcm/lcm/nf/vnf_create/create_vnf_identifier.py index 24768aea..34329a52 100644 --- a/lcm/lcm/nf/vnf_create/create_vnf_identifier.py +++ b/lcm/lcm/nf/vnf_create/create_vnf_identifier.py @@ -28,11 +28,9 @@ logger = logging.getLogger(__name__) class CreateVnf: def __init__(self, data): self.data = data - self.vnfd_id = ignore_case_get(self.data, "vnfdId") + self.csar_id = ignore_case_get(self.data, "vnfdId") self.vnf_instance_mame = ignore_case_get(self.data, "vnfInstanceName") self.description = ignore_case_get(self.data, "vnfInstanceDescription") - self.vnfd = None - self.csar_id = self.vnfd_id def do_biz(self): self.nf_inst_id = str(uuid.uuid4()) @@ -54,7 +52,7 @@ class CreateVnf: vnfd_model='', status='NOT_INSTANTIATED', nf_desc=self.description, - vnfdid=self.vnfd_id, + vnfdid=self.csar_id, vnfSoftwareVersion='', create_time=now_time()) vnf_inst = NfInstModel.objects.get(nfinstid=self.nf_inst_id) @@ -94,6 +92,7 @@ class CreateVnf: vnfd_model=self.vnfd_info, status='NOT_INSTANTIATED', nf_desc=self.description, - vnfdid=self.vnfd_id, + vnfdid=self.csar_id, vnfSoftwareVersion=vnfsoftwareversion, create_time=now_time()) + logger.debug('Create VNF instance[%s] success', self.nf_inst_id) |