Check whether the database is updated
authorying.yunlong <ying.yunlong@zte.com.cn>
Thu, 9 Feb 2017 08:11:31 +0000 (16:11 +0800)
committerying.yunlong <ying.yunlong@zte.com.cn>
Thu, 9 Feb 2017 08:11:31 +0000 (16:11 +0800)
Change-Id: I2b98e7246a6c644a5b73a5767a2e60a35a1ca784
Issue-Id: GVNFM-16
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
lcm/lcm/nf/vnfs/vnf_create/create_vnf_identifier.py

index 0eb4474..bb7f80a 100644 (file)
@@ -62,4 +62,7 @@ class CreateVnf:
                                    localizationLanguage='EN_US',create_time=now_time())
         is_exist = NfInstModel.objects.filter(nf_name=self.vnf_instance_mame).exists()
         logger.debug("check_ns_inst_name_exist::is_exist=%s" % is_exist)
+        vnf_inst = NfInstModel.objects.get(nfinstid=self.nf_inst_id)
+        logger.debug('id is [%s],name is [%s],vnfd_id is [%s],description is [%s],create_time is [%s]' %
+            (vnf_inst.nfinstid, vnf_inst.nf_name, vnf_inst.vnfdid, vnf_inst.nf_desc, vnf_inst.create_time))
         return self.nf_inst_id
\ No newline at end of file