summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaopengzhang <zhang.maopeng1@zte.com.cn>2018-11-21 10:40:06 +0800
committermaopengzhang <zhang.maopeng1@zte.com.cn>2018-11-21 10:40:06 +0800
commitab585af4945a830db50282594a756898bf4cddcf (patch)
tree7d00a4d57f289b4743c86ce058ffdd6e8b396dad
parenta48c2efc10c5c011080228ad81005b9029270c8f (diff)
fix InstantiateVnf name error
fix InstantiateVnf name error Change-Id: Ib0571a34c000979ee3b3f3052dd7425b11df9a5c Issue-ID: VFC-1192 Signed-off-by: maopengzhang <zhang.maopeng1@zte.com.cn>
-rw-r--r--zte/vmanager/driver/interfaces/urls.py2
-rw-r--r--zte/vmanager/driver/interfaces/views.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/zte/vmanager/driver/interfaces/urls.py b/zte/vmanager/driver/interfaces/urls.py
index e32e53ea..de8bbee4 100644
--- a/zte/vmanager/driver/interfaces/urls.py
+++ b/zte/vmanager/driver/interfaces/urls.py
@@ -17,7 +17,7 @@ from django.conf.urls import url
from driver.interfaces import views
urlpatterns = [
- url(r'^api/ztevnfmdriver/v1/(?P<vnfmid>[0-9a-zA-Z\-\_]+)/vnfs$', views.InstamtiateVnf.as_view(), name='instantiate_vnf'),
+ url(r'^api/ztevnfmdriver/v1/(?P<vnfmid>[0-9a-zA-Z\-\_]+)/vnfs$', views.InstantiateVnf.as_view(), name='instantiate_vnf'),
url(r'^api/ztevnfmdriver/v1/(?P<vnfmid>[0-9a-zA-Z\-\_]+)/vnfs/(?P<vnfInstanceId>[0-9a-zA-Z\-\_]+)/terminate$',
views.TerminateVnf.as_view(), name='terminate_vnf'),
url(r'^api/ztevnfmdriver/v1/(?P<vnfmid>[0-9a-zA-Z\-\_]+)/vnfs/(?P<vnfInstanceId>[0-9a-zA-Z\-\_]+)$',
diff --git a/zte/vmanager/driver/interfaces/views.py b/zte/vmanager/driver/interfaces/views.py
index 5a978c63..4615df94 100644
--- a/zte/vmanager/driver/interfaces/views.py
+++ b/zte/vmanager/driver/interfaces/views.py
@@ -77,7 +77,7 @@ def vnfpackage_get(csarid):
return ret
-class InstamtiateVnf(APIView):
+class InstantiateVnf(APIView):
@swagger_auto_schema(
request_body=InstantiateVnfRequestSerializer(),
responses={