summaryrefslogtreecommitdiffstats
path: root/lcm
diff options
context:
space:
mode:
Diffstat (limited to 'lcm')
-rw-r--r--lcm/lcm/nf/vnf_cancel/delete_vnf_identifier.py3
-rw-r--r--lcm/lcm/nf/vnf_create/create_vnf_identifier.py7
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)