diff options
author | yunlong ying <ying.yunlong@zte.com.cn> | 2017-02-09 09:10:27 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@open-o.org> | 2017-02-09 09:10:27 +0000 |
commit | 2dc6dde9739d9064f4cb40939fa44f15730a409e (patch) | |
tree | 545e789e6f83ab96d1719241ac2b4fc99492830e /lcm | |
parent | e25ddc552d1a5f82d86c64666ba5977052ed97c1 (diff) | |
parent | 92e6a03c204c17100a786da0746ff513d475001b (diff) |
Merge "Decomposition instantiation process"
Diffstat (limited to 'lcm')
-rw-r--r-- | lcm/lcm/nf/vnfs/views.py | 3 | ||||
-rw-r--r-- | lcm/lcm/nf/vnfs/vnf_create/inst_vnf.py (renamed from lcm/lcm/nf/vnfs/create_vnfs.py) | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lcm/lcm/nf/vnfs/views.py b/lcm/lcm/nf/vnfs/views.py index c47e5004..d1818a5a 100644 --- a/lcm/lcm/nf/vnfs/views.py +++ b/lcm/lcm/nf/vnfs/views.py @@ -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) diff --git a/lcm/lcm/nf/vnfs/create_vnfs.py b/lcm/lcm/nf/vnfs/vnf_create/inst_vnf.py index 0dc5216c..258b863b 100644 --- a/lcm/lcm/nf/vnfs/create_vnfs.py +++ b/lcm/lcm/nf/vnfs/vnf_create/inst_vnf.py @@ -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 |