diff options
author | 2018-10-16 08:39:48 +0000 | |
---|---|---|
committer | 2018-10-16 08:39:48 +0000 | |
commit | 84e5a8644568a423c3bf11c4438dd7c97b15c158 (patch) | |
tree | e3a43e10d2ccdc7a38ce838f47b6640e3980d7f2 | |
parent | 07be10764b858746acd9d4af819eb3e40c3e33db (diff) | |
parent | 6c00859aca94942a6d79947ee90b3423fab86e92 (diff) |
Merge "remove additional_param_for_ns in Create VNF"
-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) |