From 01da50ffb906d22ed408962c63fcf04309fe90eb Mon Sep 17 00:00:00 2001 From: "ying.yunlong" Date: Tue, 14 Feb 2017 15:22:10 +0800 Subject: [PATCH] Add file of get operation status Change-Id: Id8c206af19a12fac333bee66e9fb4b4d6ff852c6 Issue-Id: GVNFM-5 Signed-off-by: ying.yunlong --- lcm/lcm/jobs/__init__.py | 13 +++++++++++++ lcm/lcm/jobs/job_get.py | 13 +++++++++++++ lcm/lcm/jobs/tests.py | 13 +++++++++++++ lcm/lcm/jobs/urls.py | 13 +++++++++++++ lcm/lcm/jobs/views.py | 13 +++++++++++++ lcm/lcm/nf/vnfs/urls.py | 3 ++- 6 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 lcm/lcm/jobs/__init__.py create mode 100644 lcm/lcm/jobs/job_get.py create mode 100644 lcm/lcm/jobs/tests.py create mode 100644 lcm/lcm/jobs/urls.py create mode 100644 lcm/lcm/jobs/views.py diff --git a/lcm/lcm/jobs/__init__.py b/lcm/lcm/jobs/__init__.py new file mode 100644 index 00000000..650d17ec --- /dev/null +++ b/lcm/lcm/jobs/__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/jobs/job_get.py b/lcm/lcm/jobs/job_get.py new file mode 100644 index 00000000..650d17ec --- /dev/null +++ b/lcm/lcm/jobs/job_get.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/jobs/tests.py b/lcm/lcm/jobs/tests.py new file mode 100644 index 00000000..650d17ec --- /dev/null +++ b/lcm/lcm/jobs/tests.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/jobs/urls.py b/lcm/lcm/jobs/urls.py new file mode 100644 index 00000000..650d17ec --- /dev/null +++ b/lcm/lcm/jobs/urls.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/jobs/views.py b/lcm/lcm/jobs/views.py new file mode 100644 index 00000000..650d17ec --- /dev/null +++ b/lcm/lcm/jobs/views.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/urls.py b/lcm/lcm/nf/vnfs/urls.py index da06cbb3..8f79d61b 100644 --- a/lcm/lcm/nf/vnfs/urls.py +++ b/lcm/lcm/nf/vnfs/urls.py @@ -27,7 +27,8 @@ urlpatterns = patterns('', url(r'^openoapi/vnflcm/v1/vnf_instances/(?P[0-9a-zA-Z_-]+)/terminate$', TerminateVnf.as_view()), url(r'^openoapi/vnflcm/v1/vnf_instances$', QueryMultipleVnf.as_view()), - url(r'^openoapi/vnflcm/v1/vnf_instances/(?P[0-9a-zA-Z_-]+)$', QuerySingleVnf.as_view()), + url(r'^openoapi/vnflcm/v1/vnf_instances/(?P[0-9a-zA-Z_-]+)$', + QuerySingleVnf.as_view()), url(r'^openoapi/vnflcm/v1/vnf_lc_ops/(?P[0-9a-zA-Z_-]+)&' r'responseId=(?P[0-9a-zA-Z_-]+)$', GetOperationStatus.as_view()), url(r'^openoapi/vnflcm/v1/swagger.json$', SwaggerJsonView.as_view()), -- 2.16.6