summaryrefslogtreecommitdiffstats
path: root/lcm
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2017-04-24 11:27:02 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2017-04-24 11:27:02 +0800
commitc187cc4423e6da0377a661cd5d5770ffbfa046f7 (patch)
treec999bf5d1540f4b30499ab7b6e7859fbcc5d770c /lcm
parent7e26607a9fac4a4d0ac87c1bc75abc1112a750fe (diff)
Modify code of gvnfm vnflcm
Change-Id: Ie9b0d69fb4d0ed9acadf5f493c9bd7f1bc85d705 Issue-Id: GVNFM-50 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'lcm')
-rw-r--r--lcm/lcm/nf/vnfs/vnf_create/inst_vnf.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lcm/lcm/nf/vnfs/vnf_create/inst_vnf.py b/lcm/lcm/nf/vnfs/vnf_create/inst_vnf.py
index a34ad8f3..d242bd8d 100644
--- a/lcm/lcm/nf/vnfs/vnf_create/inst_vnf.py
+++ b/lcm/lcm/nf/vnfs/vnf_create/inst_vnf.py
@@ -214,7 +214,7 @@ class InstVnf(Thread):
'resourceName': vs.name, 'resourceType': 'volume'}})
content_args = {
"status": 'result',
- "nfInstanceId": self.nf_inst_id,
+ "vnfInstanceId": self.nf_inst_id,
"operation": 'instantiate',
"jobId": self.job_id,
'affectedVnfc': affected_vnfc,
@@ -222,6 +222,10 @@ class InstVnf(Thread):
'affectedVirtualStorage': affected_vs,
'affectedCp': affected_cp
}
+ vnfmInfo = NfvoRegInfoModel.objects.filter(nfvoid=self.nf_inst_id)
+ if len(vnfmInfo) == 0:
+ raise NFLCMException('nf_inst_id(%s) does not exist in NfvoRegInfoModel' % self.nf_inst_id)
+ content_args['VNFMID'] = vnfmInfo[0].vnfminstid
logger.info('content_args=%s' % content_args)
resp = notify_lcm_to_nfvo(json.dumps(content_args))
logger.info('[NF instantiation] get lcm response %s' % resp)