From dfed2843d00ad6ee5014393745f21282baec9a8b Mon Sep 17 00:00:00 2001 From: Haibin Huang Date: Thu, 21 Mar 2019 10:57:23 +0800 Subject: Add vfc catalog operation in onap dublin Change-Id: Ia1e76629cfc5176a8e7aae193a0bffb3c1766d2e Issue-ID: CLI-149 Signed-off-by: Haibin Huang --- .../catalog/vfc-catalog-delete-ns-schema.yaml | 56 +++++++++++++++ .../catalog/vfc-catalog-delete-vnf-schema.yaml | 56 +++++++++++++++ .../catalog/vfc-catalog-get-ns-schema.yaml | 81 ++++++++++++++++++++++ .../catalog/vfc-catalog-get-vnf-schema.yaml | 81 ++++++++++++++++++++++ .../catalog/vfc-catalog-onboard-ns-schema.yaml | 61 ++++++++++++++++ .../catalog/vfc-catalog-onboard-vnf-schema.yaml | 56 +++++++++++++++ 6 files changed, 391 insertions(+) create mode 100644 products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-ns-schema.yaml create mode 100644 products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-vnf-schema.yaml create mode 100644 products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-ns-schema.yaml create mode 100644 products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-vnf-schema.yaml create mode 100644 products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-ns-schema.yaml create mode 100644 products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-vnf-schema.yaml (limited to 'products/onap-dublin/features/vfc/src/main/resources/open-cli-schema') diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-ns-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-ns-schema.yaml new file mode 100644 index 00000000..f12d0af7 --- /dev/null +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-ns-schema.yaml @@ -0,0 +1,56 @@ +# Copyright © Intel Corporation 2019 +# +# 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. + +open_cli_schema_version: 1.0 +name: vfc-catalog-delete-ns +description: vfc delete onboard ns from catalog of vfc + +info: + product: onap-dublin + service: vfc + author: ONAP HPA Integration Team (haibin.huang@intel.com) + +parameters: + - name: ns-csar-uuid + description: ns's uuid of csar file + type: string + short_option: c + long_option: ns-csar-uuid + is_optional: false + +results: + direction: landscape + attributes: + - name: job-id + description: job-id + scope: short + type: string + +http: + service: + auth: none + mode: direct + request: + uri: /api/catalog/v1/nspackages/${ns-csar-uuid} + method: DELETE + context: + remove_empty_node: true + body: '{}' + headers: + Content-Type: application/json + Accept: application/json + success_codes: + - 200 + result_map: + job-id: $b{$.jobId} diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-vnf-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-vnf-schema.yaml new file mode 100644 index 00000000..406ece6c --- /dev/null +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-vnf-schema.yaml @@ -0,0 +1,56 @@ +# Copyright © Intel Corporation 2019 +# +# 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. + +open_cli_schema_version: 1.0 +name: vfc-catalog-delete-vnf +description: vfc delete onboard vnf to catalog of vfc + +info: + product: onap-dublin + service: vfc + author: ONAP HPA Integration Team (haibin.huang@intel.com) + +parameters: + - name: vnf-csar-uuid + description: vnf's uuid of csar file + type: string + short_option: c + long_option: vnf-csar-uuid + is_optional: false + +results: + direction: landscape + attributes: + - name: job-id + description: job-id + scope: short + type: string + +http: + service: + auth: none + mode: direct + request: + uri: /api/catalog/v1/vnfpackages/${vnf-csar-uuid} + method: DELETE + context: + remove_empty_node: true + body: '{}' + headers: + Content-Type: application/json + Accept: application/json + success_codes: + - 200 + result_map: + job-id: $b{$.jobId} diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-ns-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-ns-schema.yaml new file mode 100644 index 00000000..71737261 --- /dev/null +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-ns-schema.yaml @@ -0,0 +1,81 @@ +# Copyright © Intel Corporation 2019 +# +# 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. + +open_cli_schema_version: 1.0 +name: vfc-catalog-get-ns +description: vfc get onboard ns status + +info: + product: onap-dublin + service: vfc + author: ONAP HPA Integration Team (haibin.huang@intel.com) + +parameters: + - name: ns-csar-uuid + description: ns's uuid of csar file + type: string + short_option: c + long_option: ns-csar-uuid + is_optional: false + +results: + direction: landscape + attributes: + - name: nsd-invariant-id + description: nsd-invariant-id + scope: short + type: string + - name: ns-package-id + description: ns-package-id + scope: short + type: string + - name: nsd-provider + description: nsd-provider + scope: short + type: string + - name: nsd-id + description: nsd-id + scope: short + type: string + - name: download-url + description: download-url + scope: long + type: string + - name: csar-name + description: csar-name + scope: short + type: string + +http: + service: + auth: none + mode: direct + request: + uri: /api/catalog/v1/nspackages/${ns-csar-uuid} + method: GET + context: + remove_empty_node: true + body: '{}' + headers: + Content-Type: application/json + Accept: application/json + success_codes: + - 200 + result_map: + nsd-id: $b{$.packageInfo.nsdId} + ns-package-id: $b{$.packageInfo.nsPackageId} + nsd-provider: $b{$.packageInfo.nsdProvider} + nsd-invariant-id: $b{$.packageInfo.nsdInvariantId} + download-url: $b{$.packageInfo.downloadUrl} + csar-name: $b{$.packageInfo.csarName} diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-vnf-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-vnf-schema.yaml new file mode 100644 index 00000000..2727b52f --- /dev/null +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-vnf-schema.yaml @@ -0,0 +1,81 @@ +# Copyright © Intel Corporation 2019 +# +# 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. + +open_cli_schema_version: 1.0 +name: vfc-catalog-get-vnf +description: vfc get onboard vnf status + +info: + product: onap-dublin + service: vfc + author: ONAP HPA Integration Team (haibin.huang@intel.com) + +parameters: + - name: vnf-csar-uuid + description: vnf's uuid of csar file + type: string + short_option: c + long_option: vnf-csar-uuid + is_optional: false + +results: + direction: landscape + attributes: + - name: vnfd-id + description: vnfd-id + scope: short + type: string + - name: vnf-package-id + description: vnf-package-id + scope: short + type: string + - name: vnfd-provider + description: vnfd-provider + scope: short + type: string + - name: vnfd-version + description: vnfd-version + scope: short + type: string + - name: vnf-version + description: vnf-version + scope: short + type: string + - name: csar-name + description: csar-name + scope: short + type: string + +http: + service: + auth: none + mode: direct + request: + uri: /api/catalog/v1/vnfpackages/${vnf-csar-uuid} + method: GET + context: + remove_empty_node: true + body: '{}' + headers: + Content-Type: application/json + Accept: application/json + success_codes: + - 200 + result_map: + vnfd-id: $b{$.packageInfo.vnfdId} + vnf-package-id: $b{$.packageInfo.vnfPackageId} + vnfd-provider: $b{$.packageInfo.vnfdProvider} + vnfd-version: $b{$.packageInfo.vnfdVersion} + vnf-version: $b{$.packageInfo.vnfVersion} + csar-name: $b{$.packageInfo.csarName} diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-ns-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-ns-schema.yaml new file mode 100644 index 00000000..11b027db --- /dev/null +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-ns-schema.yaml @@ -0,0 +1,61 @@ +# Copyright © Intel Corporation 2019 +# +# 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. + +open_cli_schema_version: 1.0 +name: vfc-catalog-onboard-ns +description: vfc onboard ns to catalog of vfc + +info: + product: onap-dublin + service: vfc + author: ONAP HPA Integration Team (haibin.huang@intel.com) + +parameters: + - name: ns-csar-uuid + description: ns's uuid of csar file + type: string + short_option: c + long_option: ns-csar-uuid + is_optional: false + +results: + direction: landscape + attributes: + - name: status + description: status + scope: short + type: string + - name: status-desc + description: status-desc + scope: short + type: string + +http: + service: + auth: none + mode: direct + request: + uri: /api/catalog/v1/nspackages + method: POST + context: + remove_empty_node: true + body: '{"csarId": "${ns-csar-uuid}"}' + headers: + Content-Type: application/json + Accept: application/json + success_codes: + - 202 + result_map: + status: $b{$.status} + status-desc: $b{$.statusDescription} diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-vnf-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-vnf-schema.yaml new file mode 100644 index 00000000..d7cdfdc6 --- /dev/null +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-vnf-schema.yaml @@ -0,0 +1,56 @@ +# Copyright © Intel Corporation 2019 +# +# 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. + +open_cli_schema_version: 1.0 +name: vfc-catalog-onboard-vnf +description: vfc onboard vnf to catalog of vfc + +info: + product: onap-dublin + service: vfc + author: ONAP HPA Integration Team (haibin.huang@intel.com) + +parameters: + - name: vnf-csar-uuid + description: vnf's uuid of csar file + type: string + short_option: c + long_option: vnf-csar-uuid + is_optional: false + +results: + direction: landscape + attributes: + - name: job-id + description: job-id + scope: short + type: string + +http: + service: + auth: none + mode: direct + request: + uri: /api/catalog/v1/vnfpackages + method: POST + context: + remove_empty_node: true + body: '{"csarId": "${vnf-csar-uuid}"}' + headers: + Content-Type: application/json + Accept: application/json + success_codes: + - 202 + result_map: + job-id: $b{$.jobId} -- cgit 1.2.3-korg