Remove vfc-ztevnfmdriver unused code 71/32871/1
authorying.yunlong <ying.yunlong@zte.com.cn>
Mon, 26 Feb 2018 10:56:09 +0000 (18:56 +0800)
committerying.yunlong <ying.yunlong@zte.com.cn>
Mon, 26 Feb 2018 10:56:09 +0000 (18:56 +0800)
Change-Id: I089e69f4543dc7475c13dc3eb125e86e458eb841
Issue-ID: VFC-736
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
zte/vmanager/driver/interfaces/views.py
zte/vmanager/tox.ini

index 1a1976e..4e1f11c 100644 (file)
@@ -60,14 +60,6 @@ def ignorcase_get(args, key):
     return ""
 
 
-def mapping_conv(keyword_map, rest_return):
-    resp_data = {}
-    for param in keyword_map:
-        if keyword_map[param]:
-            resp_data[keyword_map[param]] = ignorcase_get(rest_return, param)
-    return resp_data
-
-
 # Query vnfm_info from nslcm
 def get_vnfminfo_from_nslcm(vnfmid):
     ret = req_by_msb("api/nslcm/v1/vnfms/%s" % vnfmid, "GET")
@@ -177,6 +169,7 @@ class InstamtiateVnf(APIView):
             if not instRespSerializer.is_valid():
                 raise Exception(instRespSerializer.errors)
 
+            logger.debug("[%s] instRespSerializer.data=%s", fun_name(), instRespSerializer.data)
             return Response(data=instRespSerializer.data, status=status.HTTP_200_OK)
         except Exception as e:
             logger.error("Error occurred when instantiating VNF,error:%s", e.message)
index 2d18a62..3bbe6c8 100644 (file)
@@ -19,4 +19,4 @@ commands =
   {[testenv]commands}
 
 [testenv:cov]
-commands = coverage html --omit="*test_*,*__init__.py,*site-packages*" -d htmlcov
\ No newline at end of file
+commands = coverage html --omit="*test*,*__init__.py,*site-packages*" -d htmlcov
\ No newline at end of file