Add Grant vnf api 65/33165/1
authorfujinhua <fu.jinhua@zte.com.cn>
Tue, 27 Feb 2018 11:56:15 +0000 (19:56 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Tue, 27 Feb 2018 11:56:15 +0000 (19:56 +0800)
Change-Id: I4acec417fd97d59df59a9c2e605f41dce33c5627
Issue-ID: VFC-779
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/v2/urls.py
lcm/v2/views.py

index 275ae94..09e32b9 100644 (file)
 from django.conf.urls import url
 from rest_framework.urlpatterns import format_suffix_patterns
 
-from lcm.v2.views import VnfInstancesView
+from lcm.v2.views import VnfGrantView
 
 urlpatterns = [
-    url(r'^api/nslcm/v2/vnf_instances$', VnfInstancesView.as_view()),
+    url(r'^api/nslcm/v2/grants$', VnfGrantView.as_view()),
 ]
 
 urlpatterns = format_suffix_patterns(urlpatterns)
index c077cca..4b0a949 100644 (file)
@@ -20,7 +20,7 @@ from rest_framework import status
 logger = logging.getLogger(__name__)
 
 
-class VnfInstancesView(APIView):
+class VnfGrantView(APIView):
     def post(self, request):
-        logger.debug("VnfInstancesView Post: %s" % request.data)
-        return Response(data={}, status=status.HTTP_202_ACCEPTED)
+        logger.debug("VnfGrantView Post: %s" % request.data)
+        return Response(data={}, status=status.HTTP_201_CREATED)