summaryrefslogtreecommitdiffstats
path: root/lcm/lcm/nf/views/curd_vnf_views.py
diff options
context:
space:
mode:
authorbiancunkang <bian.cunkang@zte.com.cn>2018-08-10 16:46:46 +0800
committerbiancunkang <bian.cunkang@zte.com.cn>2018-08-10 16:46:46 +0800
commit148f5bd1f58b2b2f65d4e5783189b965b43925a2 (patch)
treebf525e20965ee61b0ab3203794523520601cc3f2 /lcm/lcm/nf/views/curd_vnf_views.py
parent433be1ff21f0a914cde6a45bb7ae431a1670e85f (diff)
Modify serializers and Create
Add terms additionalparams in terminate_vnf_req.py and the instantiationState in VnfInstanceSerializer Change-Id: I44888b20698909f47410bb83e6ee24b463d3e136 Issue-ID: VFC-1015 Signed-off-by: biancunkang <bian.cunkang@zte.com.cn>
Diffstat (limited to 'lcm/lcm/nf/views/curd_vnf_views.py')
-rw-r--r--lcm/lcm/nf/views/curd_vnf_views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lcm/lcm/nf/views/curd_vnf_views.py b/lcm/lcm/nf/views/curd_vnf_views.py
index 078053a8..efd85168 100644
--- a/lcm/lcm/nf/views/curd_vnf_views.py
+++ b/lcm/lcm/nf/views/curd_vnf_views.py
@@ -74,7 +74,8 @@ class CreateVnfAndQueryVnfs(APIView):
create_vnf_resp_serializer = VnfInstanceSerializer(data={"id": nf_inst.nfinstid,
"vnfProvider": nf_inst.vendor,
"vnfdVersion": nf_inst.version,
- "vnfPkgId": nf_inst.package_id})
+ "vnfPkgId": nf_inst.package_id,
+ "instantiationState": nf_inst.status})
if not create_vnf_resp_serializer.is_valid():
raise NFLCMException(create_vnf_resp_serializer.errors)
return Response(data=create_vnf_resp_serializer.data, status=status.HTTP_201_CREATED)