summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2017-02-14 16:34:05 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2017-02-14 16:34:05 +0800
commit292f01ff313671718e9135689e5517be1c397d39 (patch)
tree70f83aaef49e788bed89281466b1117f344cd150
parent108cb656fd9e6dfa999e03c22bac459cfd825a95 (diff)
Add file of delete vnf instance
Change-Id: I706fea372959a31a562e5c26937c32f8e78c6b46 Issue-Id: GVNFM-11 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
-rw-r--r--lcm/lcm/nf/vnfs/views.py2
-rw-r--r--lcm/lcm/nf/vnfs/vnf_cancel/__init__.py13
-rw-r--r--lcm/lcm/nf/vnfs/vnf_cancel/delete_vnf_identifier.py13
3 files changed, 27 insertions, 1 deletions
diff --git a/lcm/lcm/nf/vnfs/views.py b/lcm/lcm/nf/vnfs/views.py
index de9cb480..f03e4bcf 100644
--- a/lcm/lcm/nf/vnfs/views.py
+++ b/lcm/lcm/nf/vnfs/views.py
@@ -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
index 00000000..650d17ec
--- /dev/null
+++ b/lcm/lcm/nf/vnfs/vnf_cancel/__init__.py
@@ -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
index 00000000..650d17ec
--- /dev/null
+++ b/lcm/lcm/nf/vnfs/vnf_cancel/delete_vnf_identifier.py
@@ -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