diff options
author | yangyan <yangyanyj@chinamobile.com> | 2019-10-23 16:53:52 +0800 |
---|---|---|
committer | yangyan <yangyanyj@chinamobile.com> | 2019-10-23 16:53:57 +0800 |
commit | 5b6dcb725c52fdcedeb1ebd681915ee0843cc6e0 (patch) | |
tree | 233ed97c1011fc7ef31f66553fa26c264d682bf5 | |
parent | 750b42228d3bf3c2945a31bc1410473ceda7da48 (diff) |
fix the bug about ns_sfc
Change-Id: I2e48f4c0edb20cba857b85791df5b1fd60157529
Issue-ID: VFC-1561
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
-rw-r--r-- | lcm/ns_sfcs/views/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lcm/ns_sfcs/views/views.py b/lcm/ns_sfcs/views/views.py index 68abd9dc..10103fa6 100644 --- a/lcm/ns_sfcs/views/views.py +++ b/lcm/ns_sfcs/views/views.py @@ -184,7 +184,6 @@ class SfcView(APIView): logger.info("service_function_chain_instanceid : %s" % ignorcase_get(request.data, 'nsInstanceId')) logger.info("service_function_chain_sdncontrollerid : %s" % ignorcase_get(request.data, 'sdnControllerId')) logger.info("service_function_chain_fpindex : %s" % ignorcase_get(request.data, 'fpindex')) - ns_model_data = json.loads(request.data['context']) req_serializer = CreateSfcReqSerializer(data=request.data) if not req_serializer.is_valid(): @@ -192,6 +191,7 @@ class SfcView(APIView): except Exception as e: logger.error("Exception occurs: %s", e.args[0]) logger.error(traceback.format_exc()) + ns_model_data = json.loads(request.data['context']) data = { 'nsinstid': ignorcase_get(request.data, 'nsInstanceId'), "ns_model_data": ns_model_data, |