Decomposition instantiation process
authorying.yunlong <ying.yunlong@zte.com.cn>
Thu, 9 Feb 2017 08:28:20 +0000 (16:28 +0800)
committerying.yunlong <ying.yunlong@zte.com.cn>
Thu, 9 Feb 2017 08:28:20 +0000 (16:28 +0800)
Change-Id: I4579af8d50ad18901564cd8546a060b16ca1486c
Issue-Id: GVNFM-7
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
lcm/lcm/nf/vnfs/views.py
lcm/lcm/nf/vnfs/vnf_create/inst_vnf.py [moved from lcm/lcm/nf/vnfs/create_vnfs.py with 97% similarity]

index c47e500..d1818a5 100644 (file)
@@ -19,6 +19,7 @@ from rest_framework.response import Response
 from rest_framework.views import APIView
 
 from lcm.nf.vnfs.vnf_create.create_vnf_identifier import CreateVnf
+from lcm.nf.vnfs.vnf_create.inst_vnf import InstVnf
 from lcm.pub.utils.jobutil import JobUtil
 from lcm.pub.utils.values import ignore_case_get
 
@@ -52,7 +53,7 @@ class InstantiateVnf(APIView):
         job_id = JobUtil.create_job('NF', 'CREATE', nf_inst_id)
         JobUtil.add_job_status(job_id, 0, "INST_VNF_READY")
 
-        # CreateVnfs(data, nf_inst_id, job_id).start()
+        InstVnf(data, nf_inst_id, job_id).start()
         rsp = {"jobId": job_id}
         return Response(data=rsp, status=status.HTTP_202_ACCEPTED)
 
similarity index 97%
rename from lcm/lcm/nf/vnfs/create_vnfs.py
rename to lcm/lcm/nf/vnfs/vnf_create/inst_vnf.py
index 0dc5216..258b863 100644 (file)
@@ -21,9 +21,9 @@ from lcm.pub.exceptions import NFLCMException
 logger = logging.getLogger(__name__)
 
 
-class CreateVnfs(Thread):
+class InstVnf(Thread):
     def __init__(self, data, nf_inst_id, job_id):
-        super(CreateVnfs, self).__init__()
+        super(InstVnf, self).__init__()
         self.data = data
         self.nf_inst_id = nf_inst_id
         self.job_id = job_id