diff options
author | Kanagaraj Manickam <kanagaraj.manickam@huawei.com> | 2019-09-13 06:44:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-09-13 06:44:49 +0000 |
commit | 713681d51da5acd78f37ce647e9b44b1fb8d2c5c (patch) | |
tree | 49b03d5d2643ebabad8dd328a28b1e1df781138f /products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog | |
parent | c1c644d51059d03785cd341684152bae29f1cd27 (diff) | |
parent | 972f3d52ba96f1b4a2630fdea963855550feb565 (diff) |
Merge "Added feature commands not added from dublin"
Diffstat (limited to 'products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog')
10 files changed, 573 insertions, 0 deletions
diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-create-ns-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-create-ns-schema.yaml new file mode 100644 index 00000000..5d22a202 --- /dev/null +++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-create-ns-schema.yaml @@ -0,0 +1,70 @@ +# 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-create-ns +description: vfc create ns + +info: + product: onap-elalto + service: vfc + author: ONAP HPA Integration Team (haibin.huang@intel.com) + +parameters: + - name: user-key + description: user defined data key eg:"key1" + type: string + short_option: c + long_option: user-key + is_optional: false + - name: user-value + description: user defined data value eg:"value1" + type: string + short_option: e + long_option: user-value + is_optional: false + + +results: + direction: landscape + attributes: + - name: id + description: id + scope: short + type: string + - name: state + description: state + scope: short + type: string + +http: + service: + auth: none + mode: direct + request: + uri: /api/nsd/v1/ns_descriptors + method: POST + context: + remove_empty_node: true + body: '{ + "userDefinedData": {"${user-key}": "${user-value}"} + }' + headers: + Content-Type: application/json + Accept: application/json + success_codes: + - 201 + result_map: + id: $b{$.id} + state: $b{$.nsdOnboardingState} diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-create-vnf-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-create-vnf-schema.yaml new file mode 100644 index 00000000..81c23b9a --- /dev/null +++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-create-vnf-schema.yaml @@ -0,0 +1,69 @@ +# 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-create-vnf +description: vfc create vnf + +info: + product: onap-elalto + service: vfc + author: ONAP HPA Integration Team (haibin.huang@intel.com) + +parameters: + - name: user-key + description: user defined data key eg:"key2" + type: string + short_option: c + long_option: user-key + is_optional: false + - name: user-value + description: user defined data value eg:"value2" + type: string + short_option: e + long_option: user-value + is_optional: false + +results: + direction: landscape + attributes: + - name: id + description: id + scope: short + type: string + - name: state + description: state + scope: short + type: string + +http: + service: + auth: none + mode: direct + request: + uri: /api/vnfpkgm/v1/vnf_packages + method: POST + context: + remove_empty_node: true + body: '{ + "userDefinedData": {"${user-key}": "${user-value}"} + }' + headers: + Content-Type: application/json + Accept: application/json + success_codes: + - 201 + result_map: + id: $b{$.id} + state: $b{$.onboardingState} diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-ns-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-ns-schema.yaml new file mode 100644 index 00000000..08581c98 --- /dev/null +++ b/products/onap-elalto/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-elalto + 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-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-vnf-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-vnf-schema.yaml new file mode 100644 index 00000000..7feb33a7 --- /dev/null +++ b/products/onap-elalto/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-elalto + 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: + - 202 + result_map: + job-id: $b{$.jobId} diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-ns-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-ns-schema.yaml new file mode 100644 index 00000000..73a55371 --- /dev/null +++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-ns-schema.yaml @@ -0,0 +1,53 @@ +# 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-elalto + service: vfc + author: ONAP HPA Integration Team (haibin.huang@intel.com) + +results: + direction: landscape + attributes: + - name: csar-id + description: csar-id + scope: short + type: string + - name: package-info + description: package-info + scope: short + type: string + +http: + service: + auth: none + mode: direct + request: + uri: /api/catalog/v1/nspackages + method: GET + context: + remove_empty_node: true + body: '{}' + headers: + Content-Type: application/json + Accept: application/json + success_codes: + - 200 + result_map: + csar-id: $b{$.[*].csarId} + package-info: $b{$.[*].packageInfo} diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-vnf-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-vnf-schema.yaml new file mode 100644 index 00000000..e965bb72 --- /dev/null +++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-vnf-schema.yaml @@ -0,0 +1,48 @@ +# 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-elalto + service: vfc + author: ONAP HPA Integration Team (haibin.huang@intel.com) + +results: + direction: landscape + attributes: + - name: csar-id + description: csar-id + scope: short + type: string + +http: + service: + auth: none + mode: direct + request: + uri: /api/catalog/v1/vnfpackages + method: GET + context: + remove_empty_node: true + body: '{}' + headers: + Content-Type: application/json + Accept: application/json + success_codes: + - 200 + result_map: + csar-id: $b{$.[*].csarId} diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-ns-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-ns-schema.yaml new file mode 100644 index 00000000..dce68dae --- /dev/null +++ b/products/onap-elalto/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-elalto + 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-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-vnf-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-vnf-schema.yaml new file mode 100644 index 00000000..4a8b1008 --- /dev/null +++ b/products/onap-elalto/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-elalto + 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} diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-upload-ns-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-upload-ns-schema.yaml new file mode 100644 index 00000000..d3177e0c --- /dev/null +++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-upload-ns-schema.yaml @@ -0,0 +1,51 @@ +# Copyright 2019 Huawei Technologies Co., Ltd. +# +# 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-upload-ns-package +description: Upload NS package into VFC + +info: + product: onap-elalto + service: vfc + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: ns-id + description: NS id created in VFC + type: string + short_option: c + long_option: ns-id + is_optional: false + - name: ns-package + description: NS package + type: binary + short_option: e + long_option: ns-package + is_optional: false + +http: + service: + auth: none + mode: direct + request: + uri: /api/nsd/v1/ns_descriptors/${ns-id}/nsd_content + method: PUT + body: + multipart: + - name: file + content: ${ns-package} + type: file + success_codes: + - 201 diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-upload-vnf-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-upload-vnf-schema.yaml new file mode 100644 index 00000000..04859532 --- /dev/null +++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-upload-vnf-schema.yaml @@ -0,0 +1,53 @@ +# Copyright 2019 Huawei Technologies Co., Ltd. +# +# 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-upload-vnf-package +description: Upload VNF package into VFC + +info: + product: onap-elalto + service: vfc + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: vnf-id + description: VNF id created in VFC + type: string + short_option: c + long_option: vnf-id + is_optional: false + - name: vnf-package + description: VNF package + type: binary + short_option: e + long_option: vnf-package + is_optional: false + +http: + service: + auth: none + mode: direct + request: + uri: /api/vnfpkgm/v1/vnf_packages/${vnf-id}/package_content + method: PUT + body: + body: + multipart: + - name: file + content: ${vnf-package} + type: file + multipart_entity_name: file + success_codes: + - 201 |