summaryrefslogtreecommitdiffstats
path: root/zte
diff options
context:
space:
mode:
authoryunlong ying <ying.yunlong@zte.com.cn>2018-02-26 11:00:20 +0000
committerGerrit Code Review <gerrit@onap.org>2018-02-26 11:00:20 +0000
commit89938173c5532454d8543b26eb4c8300aa2993ad (patch)
tree878d93698b2a2a61946e09d1241daf4c26d7fbb5 /zte
parent3bb98db80eedfa13cbe41ccd14cd151a2ef17d07 (diff)
parentadcb73e68a945d59132127b9a70a1ca66684aa13 (diff)
Merge "Remove vfc-ztevnfmdriver unused code"
Diffstat (limited to 'zte')
-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