summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2018-02-26 18:56:09 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2018-02-26 18:56:09 +0800
commitadcb73e68a945d59132127b9a70a1ca66684aa13 (patch)
treefa7807f544424197c230c895fc20d4c56dff7579
parent662bbb1aba0521856e2e8e824dc37284d17fc19b (diff)
Remove vfc-ztevnfmdriver unused code
Change-Id: I089e69f4543dc7475c13dc3eb125e86e458eb841 Issue-ID: VFC-736 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
-rw-r--r--zte/vmanager/driver/interfaces/views.py9
-rw-r--r--zte/vmanager/tox.ini2
2 files changed, 2 insertions, 9 deletions
diff --git a/zte/vmanager/driver/interfaces/views.py b/zte/vmanager/driver/interfaces/views.py
index 1a1976ed..4e1f11c3 100644
--- a/zte/vmanager/driver/interfaces/views.py
+++ b/zte/vmanager/driver/interfaces/views.py
@@ -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)
diff --git a/zte/vmanager/tox.ini b/zte/vmanager/tox.ini
index 2d18a624..3bbe6c8a 100644
--- a/zte/vmanager/tox.ini
+++ b/zte/vmanager/tox.ini
@@ -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