Add file of delete vnf instance
authorying.yunlong <ying.yunlong@zte.com.cn>
Tue, 14 Feb 2017 08:34:05 +0000 (16:34 +0800)
committerying.yunlong <ying.yunlong@zte.com.cn>
Tue, 14 Feb 2017 08:34:05 +0000 (16:34 +0800)
Change-Id: I706fea372959a31a562e5c26937c32f8e78c6b46
Issue-Id: GVNFM-11
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
lcm/lcm/nf/vnfs/views.py
lcm/lcm/nf/vnfs/vnf_cancel/__init__.py [new file with mode: 0644]
lcm/lcm/nf/vnfs/vnf_cancel/delete_vnf_identifier.py [new file with mode: 0644]

index de9cb48..f03e4bc 100644 (file)
@@ -56,7 +56,7 @@ class InstantiateVnf(APIView):
 class DeleteVnfIdentifier(APIView):
     def delete(self, request):
         logger.debug("DeleteVnfIdentifier--delete::> %s" % request.data)
-        return Response(data='', status=status.HTTP_202_ACCEPTED)
+        return Response(data='', status=status.HTTP_204_NO_CONTENT)
 
 
 class TerminateVnf(APIView):
diff --git a/lcm/lcm/nf/vnfs/vnf_cancel/__init__.py b/lcm/lcm/nf/vnfs/vnf_cancel/__init__.py
new file mode 100644 (file)
index 0000000..650d17e
--- /dev/null
@@ -0,0 +1,13 @@
+# Copyright 2017 ZTE Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#         http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
\ No newline at end of file
diff --git a/lcm/lcm/nf/vnfs/vnf_cancel/delete_vnf_identifier.py b/lcm/lcm/nf/vnfs/vnf_cancel/delete_vnf_identifier.py
new file mode 100644 (file)
index 0000000..650d17e
--- /dev/null
@@ -0,0 +1,13 @@
+# Copyright 2017 ZTE Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#         http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
\ No newline at end of file