From: ying.yunlong Date: Tue, 14 Feb 2017 07:22:10 +0000 (+0800) Subject: Add file of get operation status X-Git-Tag: release/mercury~87^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=vfc%2Fgvnfm%2Fvnflcm.git;a=commitdiff_plain;h=01da50ffb906d22ed408962c63fcf04309fe90eb Add file of get operation status Change-Id: Id8c206af19a12fac333bee66e9fb4b4d6ff852c6 Issue-Id: GVNFM-5 Signed-off-by: ying.yunlong --- 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()),