diff options
author | maopengzhang <zhang.maopeng1@zte.com.cn> | 2018-10-16 16:12:30 +0800 |
---|---|---|
committer | maopengzhang <zhang.maopeng1@zte.com.cn> | 2018-10-16 16:12:30 +0800 |
commit | 6c00859aca94942a6d79947ee90b3423fab86e92 (patch) | |
tree | 04183bc5f88c80e1e902077e1bc316fa296f4ec5 | |
parent | 9738b5dcc1c26c0e58c8ba37c606ed5e4018d4a7 (diff) |
remove additional_param_for_ns in Create VNF
remove additional_param_for_ns in Create VNF
Change-Id: I9c63301b0f5b5376d33f94046a0d67934d93f674
Issue-ID: VFC-1041
Signed-off-by: maopengzhang <zhang.maopeng1@zte.com.cn>
-rw-r--r-- | lcm/ns/views/inst_ns_view.py | 1 | ||||
-rw-r--r-- | lcm/ns_vnfs/views/views.py | 1 | ||||
-rw-r--r-- | lcm/pub/utils/restcall.py | 1 |
3 files changed, 2 insertions, 1 deletions
diff --git a/lcm/ns/views/inst_ns_view.py b/lcm/ns/views/inst_ns_view.py index 0f54429e..a43cf40b 100644 --- a/lcm/ns/views/inst_ns_view.py +++ b/lcm/ns/views/inst_ns_view.py @@ -38,6 +38,7 @@ class NSInstView(APIView): logger.debug("request.data=%s", request.data) req_serializer = InstantNsReqSerializer(data=request.data) if not req_serializer.is_valid(): + logger.debug("request.data is not valid,error: %s" % req_serializer.errors) return Response({'error': req_serializer.errors}, status=status.HTTP_500_INTERNAL_SERVER_ERROR) ack = InstantNSService(ns_instance_id, request.data).do_biz() diff --git a/lcm/ns_vnfs/views/views.py b/lcm/ns_vnfs/views/views.py index e3a6bbf9..412551f5 100644 --- a/lcm/ns_vnfs/views/views.py +++ b/lcm/ns_vnfs/views/views.py @@ -67,7 +67,6 @@ class NfView(APIView): logger.error(req_serializer.errors) data = {'ns_instance_id': ignore_case_get(request.data, 'nsInstanceId'), - 'additional_param_for_ns': ignore_case_get(request.data, 'additionalParamForVnf'), 'additional_param_for_vnf': ignore_case_get(request.data, 'additionalParamForVnf'), 'vnf_index': ignore_case_get(request.data, 'vnfIndex')} nf_inst_id, job_id = create_vnfs.prepare_create_params() diff --git a/lcm/pub/utils/restcall.py b/lcm/pub/utils/restcall.py index 171e7265..929f0656 100644 --- a/lcm/pub/utils/restcall.py +++ b/lcm/pub/utils/restcall.py @@ -84,6 +84,7 @@ def call_req(base_url, user, passwd, auth_type, resource, method, content='', ad def req_by_msb(resource, method, content=''): + logger.debug("resource: %s, method: %s, content: %s" % (resource, method, content)) base_url = "http://%s:%s/" % (MSB_SERVICE_IP, MSB_SERVICE_PORT) return call_req(base_url, "", "", rest_no_auth, resource, method, content) |