diff options
author | MD IRSHAD SHEIKH <md.irshad.sheikh@huawei.com> | 2020-09-29 21:01:51 +0530 |
---|---|---|
committer | MD IRSHAD SHEIKH <md.irshad.sheikh@huawei.com> | 2020-09-29 22:20:08 +0530 |
commit | 7ae420b25aade14f12fb7c94a407f0f9fd6aff4e (patch) | |
tree | 49161a1c3b3dbd7ceb968b9b1b90355f6dd72709 /osdfapp.py | |
parent | b1d0b8f247738f6d638ee6eefb870f43a1b2790a (diff) |
Missing callback in NST selection
Issue-ID: OPTFRA-852
Signed-off-by: MD IRSHAD SHEIKH <md.irshad.sheikh@huawei.com>
Change-Id: I7e1d782d579fd5f4385802c6dfbdaa8bfaef7782
Diffstat (limited to 'osdfapp.py')
-rwxr-xr-x | osdfapp.py | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -30,7 +30,7 @@ from flask import request, g from osdf.apps.baseapp import app, run_app from apps.nst.models.api.nstSelectionRequest import NSTSelectionAPI from apps.pci.models.api.pciOptimizationRequest import PCIOptimizationAPI -from apps.nst.optimizers.nst_select_processor import process_nst_selection +from apps.nst.optimizers.nst_select_processor import NstSelection from apps.pci.optimizers.pci_opt_processor import process_pci_optimation from apps.placement.models.api.placementRequest import PlacementAPI from apps.placement.optimizers.conductor.remote_opt_processor import process_placement_opt @@ -127,8 +127,11 @@ def do_nst_selection(): request_json = request.get_json() req_id = request_json['requestInfo']['requestId'] NSTSelectionAPI(request_json).validate() - response = process_nst_selection(request_json, osdf_config) - return response + nst_selection = NstSelection(osdf_config, request_json) + nst_selection.start() + return req_accept(request_id=req_id, + transaction_id=request_json['requestInfo']['transactionId'], + request_status="accepted", status_message="") @app.route("/api/oof/v1/pci", methods=["POST"]) |