diff options
author | ying.yunlong <ying.yunlong@zte.com.cn> | 2018-04-11 18:08:10 +0800 |
---|---|---|
committer | ying.yunlong <ying.yunlong@zte.com.cn> | 2018-04-11 18:08:10 +0800 |
commit | c0754969338db2e5aa946af63827c11a517ea176 (patch) | |
tree | 534fd1f2b8f011d73e0b39e5cbee091588cf8506 /lcm | |
parent | 0287cfda3889d77d72731b25de5ef946d9a6695b (diff) |
Standardized vfc-vnflcm log output
Change-Id: I90bf81f1e9c391ce24ded3eef377cdf39d03483f
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_cancel/delete_vnf_identifier.py | 3 | ||||
-rw-r--r-- | lcm/lcm/nf/vnf_create/create_vnf_identifier.py | 7 |
2 files changed, 0 insertions, 10 deletions
diff --git a/lcm/lcm/nf/vnf_cancel/delete_vnf_identifier.py b/lcm/lcm/nf/vnf_cancel/delete_vnf_identifier.py index 42e52d6f..c0940303 100644 --- a/lcm/lcm/nf/vnf_cancel/delete_vnf_identifier.py +++ b/lcm/lcm/nf/vnf_cancel/delete_vnf_identifier.py @@ -42,9 +42,6 @@ class DeleteVnf: vnf_insts = NfInstModel.objects.filter(nfinstid=self.nf_inst_id) if not vnf_insts.exists(): logger.warn('VnfInst(%s) does not exist' % self.nf_inst_id) - # sel_vnf = vnf_insts[0] - # if sel_vnf.status != 'NOT_INSTANTIATED': - # raise NFLCMException("Don't allow to delete vnf(status:[%s])" % sel_vnf.status) def delete_info_from_db(self): NfInstModel.objects.filter(nfinstid=self.nf_inst_id).delete() diff --git a/lcm/lcm/nf/vnf_create/create_vnf_identifier.py b/lcm/lcm/nf/vnf_create/create_vnf_identifier.py index 5f5dedab..24768aea 100644 --- a/lcm/lcm/nf/vnf_create/create_vnf_identifier.py +++ b/lcm/lcm/nf/vnf_create/create_vnf_identifier.py @@ -57,12 +57,7 @@ class CreateVnf: vnfdid=self.vnfd_id, vnfSoftwareVersion='', create_time=now_time()) - vnf_inst = NfInstModel.objects.get(nfinstid=self.nf_inst_id) - logger.debug('id is [%s],name is [%s],vnfd_id is [%s],vnfd_model is [%s],' - 'description is [%s],create_time is [%s]' % - (vnf_inst.nfinstid, vnf_inst.nf_name, vnf_inst.vnfdid, - vnf_inst.vnfd_model, vnf_inst.nf_desc, vnf_inst.create_time)) resp = { 'id': vnf_inst.nfinstid, 'vnfInstanceName': vnf_inst.nf_name, @@ -78,9 +73,7 @@ class CreateVnf: return resp def check_valid(self): - logger.debug("CreateVnf--check_valid::> %s" % self.data) is_exist = NfInstModel.objects.filter(nf_name=self.vnf_instance_mame).exists() - logger.debug("check_valid::is_exist=%s" % is_exist) if is_exist: raise NFLCMException('VNF is already exist.') vnf_package_info = query_vnfpackage_by_id(self.csar_id) |