From 6d1e58968ebf395dbfbfad02583ae36fb2948824 Mon Sep 17 00:00:00 2001 From: Rama-Huawei Date: Wed, 14 Aug 2019 10:03:47 +0530 Subject: Added vim create schema command Issue-ID: CLI-197 Signed-off-by: Rama-Huawei Change-Id: Ia2d071a9f6991f8112fa8d6439ae9e5ef9a469bc --- .../esr/vim/vim-create-schema-elalto.yaml | 122 +++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vim/vim-create-schema-elalto.yaml (limited to 'products/onap-elalto') diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vim/vim-create-schema-elalto.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vim/vim-create-schema-elalto.yaml new file mode 100644 index 00000000..eaa10c26 --- /dev/null +++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vim/vim-create-schema-elalto.yaml @@ -0,0 +1,122 @@ +# 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: vim-create +description: Register a VIM under a given cloud region in Onap + +info: + product: onap-elalto + service: aai + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: cloud-name + description: Onap cloud name + type: string + short_option: x + long_option: cloud-name + is_optional: false + - name: region-name + description: Onap region name + type: string + short_option: y + long_option: region-name + is_optional: false + - name: vim-id + description: Onap VIM unique id + type: uuid + short_option: z + long_option: vim-id + is_optional: false + - name: name + description: Onap VIM name + type: string + short_option: b + long_option: name + is_optional: false + - name: type + description: Onap VIM type + type: string + short_option: c + long_option: type + is_optional: false + - name: vendor + description: Onap VIM vendor + type: string + short_option: e + long_option: vendor + is_optional: false + - name: vim-version + description: Onap VIM version + type: string + short_option: q + long_option: vim-version + is_optional: false + - name: url + description: Onap VIM URL + type: string + short_option: g + long_option: url + is_optional: false + - name: username + description: Onap VIM username + type: string + short_option: i + long_option: username + is_optional: false + - name: password + description: Onap VIM password + type: string + short_option: j + long_option: password + is_optional: false + - name: ssl-cacert + description: Onap VIM SSL certificate + type: text + short_option: k + long_option: ssl-cacert + is_optional: true + - name: ssl-insecure + description: Onap VIM insecure + type: bool + short_option: l + long_option: ssl-insecure + is_optional: true + default: false + - name: cloud-domain + description: Onap VIM cloud domain + type: string + short_option: n + long_option: cloud-domain + is_optional: false + default: default + - name: default-tenant + description: Onap VIM default tenant + type: string + short_option: o + long_option: default-tenant + is_optional: false + +http: + service: + auth: basic + mode: direct + request: + uri: /aai/v16/cloud-infrastructure/cloud-regions/cloud-region/${cloud-name}/${region-name}/esr-system-info-list/esr-system-info/${vim-id} + method: PUT + body: '{"esr-system-info-id":"${vim-id}","system-name":"${name}","type":"${type}","vendor":"${vendor}","version":"${vim-version}","service-url":"${url}","user-name":"${username}","password":"${password}","system-type":"vim","protocal":"","ssl-cacert":"${ssl-cacert}","ssl-insecure":"${ssl-insecure}","ip-address":"","port":"","cloud-domain":"${cloud-domain}","default-tenant":"${default-tenant}"}' + success_codes: + - 201 + -- cgit 1.2.3-korg From 897ac30566e8678af2160d32409835da153fbaaf Mon Sep 17 00:00:00 2001 From: Rama-Huawei Date: Fri, 16 Aug 2019 16:32:04 +0530 Subject: Added vim delete schema command Issue-ID: CLI-197 Signed-off-by: Rama-Huawei Change-Id: Ia3e6d3d0e16c88231aeb2deb62434ba671812a4a --- .../esr/vim/vim-delete-schema-elalto.yaml | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vim/vim-delete-schema-elalto.yaml (limited to 'products/onap-elalto') diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vim/vim-delete-schema-elalto.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vim/vim-delete-schema-elalto.yaml new file mode 100644 index 00000000..8fa2cdcc --- /dev/null +++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vim/vim-delete-schema-elalto.yaml @@ -0,0 +1,66 @@ +# 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: vim-delete + +description: Un-register a VIM under from cloud region in Onap + + +info: + product: onap-elalto + service: aai + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: cloud-name + description: Onap cloud name + type: string + short_option: x + long_option: cloud-name + is_optional: false + - name: region-name + description: Onap region name + type: string + short_option: y + long_option: region-name + is_optional: false + - name: vim-id + description: Onap VIM unique id + type: uuid + short_option: z + long_option: vim-id + is_optional: false + - name: resource-version + description: Onap vim resource version + type: string + short_option: b + long_option: resource-version + is_optional: true + +http: + service: + auth: basic + mode: direct + request: + uri: /aai/v16/cloud-infrastructure/cloud-regions/cloud-region/${cloud-name}/${region-name}/esr-system-info-list/esr-system-info/${vim-id}?resource-version=${resource-version} + method: DELETE + + success_codes: + - 204 + - 404 + + sample_response: + body: '' -- cgit 1.2.3-korg From b963a56248c3e35c2d6e434211141314d2655ad4 Mon Sep 17 00:00:00 2001 From: Rama-Huawei Date: Fri, 16 Aug 2019 16:35:20 +0530 Subject: Added vim list schema command Issue-ID: CLI-197 Signed-off-by: Rama-Huawei Change-Id: I60a554a30190f08107decda3b6295df95709d8c3 --- .../esr/vim/vim-list-schema-elalto.yaml | 104 +++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vim/vim-list-schema-elalto.yaml (limited to 'products/onap-elalto') diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vim/vim-list-schema-elalto.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vim/vim-list-schema-elalto.yaml new file mode 100644 index 00000000..bf9edeaf --- /dev/null +++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vim/vim-list-schema-elalto.yaml @@ -0,0 +1,104 @@ +# 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: vim-list + +description: List the configured vims + + +info: + product: onap-elalto + service: aai + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: cloud-name + description: Onap cloud name + type: string + short_option: x + long_option: cloud-name + is_optional: false + - name: region-name + description: Onap region name + type: string + short_option: y + long_option: region-name + is_optional: false + +results: + direction: landscape + attributes: + - name: vim-id + description: Onap vim id + scope: short + type: string + - name: name + description: Onap vim name + scope: short + type: string + - name: type + description: Onap vim type + scope: long + type: string + - name: vendor + description: Onap vim vendor + scope: short + type: string + - name: version + description: Onap vim version + scope: long + type: string + - name: url + description: Onap vim url + scope: long + type: string + - name: username + description: Onap vim username + scope: long + type: string + - name: cloud-domain + description: Onap vim cloud domain + scope: long + type: string + - name: default-tenant + description: Onap vim tenant + scope: short + type: string + - name: resource-version + description: Onap vim resource version + scope: short + type: string + +http: + service: + auth: basic + mode: direct + request: + uri: /aai/v16/cloud-infrastructure/cloud-regions/cloud-region/${cloud-name}/${region-name}/esr-system-info-list + method: GET + success_codes: + - 200 + result_map: + vim-id: $b{$.esr-system-info.[*].esr-system-info-id} + name: $b{$.esr-system-info.[*].system-name} + type: $b{$.esr-system-info.[*].type} + vendor: $b{$.esr-system-info.[*].vendor} + version: $b{$.esr-system-info.[*].version} + url: $b{$.esr-system-info.[*].service-url} + username: $b{$.esr-system-info.[*].user-name} + cloud-domain: $b{$.esr-system-info.[*].cloud-domain} + default-tenant: $b{$.esr-system-info.[*].default-tenant} + resource-version: $b{$.esr-system-info.[*].resource-version} -- cgit 1.2.3-korg From 8e5290d6bda3c381e1b6d71add628bf3f4d91e3b Mon Sep 17 00:00:00 2001 From: Rama-Huawei Date: Fri, 16 Aug 2019 16:38:06 +0530 Subject: Added vnfm create schema command Issue-ID: CLI-197 Signed-off-by: Rama-Huawei Change-Id: I57f57bd3d24a2e9c88b23a540212faf17e45406e --- .../esr/vnfm/vnfm-create-schema-elalto.yaml | 98 ++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-create-schema-elalto.yaml (limited to 'products/onap-elalto') diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-create-schema-elalto.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-create-schema-elalto.yaml new file mode 100644 index 00000000..0a58f09b --- /dev/null +++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-create-schema-elalto.yaml @@ -0,0 +1,98 @@ +# 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: vnfm-create + +description: Register a VNFM in Onap + + +info: + product: onap-elalto + service: aai + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: vim-id + description: Onap VIM unique id + type: uuid + short_option: x + long_option: vim-id + is_optional: false + - name: vnfm-id + description: Onap VNFM unique id + type: uuid + short_option: y + long_option: vnfm-id + is_optional: false + - name: name + description: Onap VNFM name + type: string + short_option: b + long_option: name + is_optional: false + - name: type + description: Onap VNFM type + type: string + short_option: c + long_option: type + is_optional: false + - name: vendor + description: Onap VNFM vendor + type: string + short_option: e + long_option: vendor + is_optional: false + - name: vnfm-version + description: Onap VNFM version + type: string + short_option: q + long_option: vnfm-version + is_optional: false + - name: url + description: Onap VNFM URL + type: string + short_option: g + long_option: url + is_optional: false + - name: username + description: Onap VNFM username + type: string + short_option: i + long_option: username + is_optional: false + - name: password + description: Onap VNFM password + type: string + short_option: j + long_option: password + is_optional: false + - name: certificate-url + description: Onap VNFM certificate-url + type: string + short_option: z + long_option: certificate-url + is_optional: true + +http: + service: + auth: basic + mode: direct + request: + uri: /aai/v16/external-system/esr-vnfm-list/esr-vnfm/${vnfm-id} + method: PUT + body: '{"vnfm-id":"${vnfm-id}","vim-id":"${vim-id}","certificate-url":"${certificate-url}","esr-system-info-list":{"esr-system-info":[{"esr-system-info-id":"${vnfm-id}","system-name":"${name}","type":"${type}","vendor":"${vendor}","version":"${vnfm-version}","service-url":"${url}","user-name":"${username}","password":"${password}","system-type":"vnfm","protocal":"","ssl-cacert":"","ssl-insecure":"","ip-address":"","port":"","cloud-domain":"","default-tenant":""}]}}' + success_codes: + - 201 -- cgit 1.2.3-korg From 866624c11127608e9d7ca5e5b22a448e097aae4b Mon Sep 17 00:00:00 2001 From: Rama-Huawei Date: Fri, 16 Aug 2019 16:41:26 +0530 Subject: Added vnfm delete schema command Issue-ID: CLI-197 Signed-off-by: Rama-Huawei Change-Id: I72ddde4a775c8e1ccf54a2022f564eb78f00cc6f --- .../esr/vnfm/vnfm-delete-schema-elalto.yaml | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-delete-schema-elalto.yaml (limited to 'products/onap-elalto') diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-delete-schema-elalto.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-delete-schema-elalto.yaml new file mode 100644 index 00000000..5faedc34 --- /dev/null +++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-delete-schema-elalto.yaml @@ -0,0 +1,50 @@ +# 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: vnfm-delete + +description: Un-register a VNFM in Onap + + +info: + product: onap-elalto + service: aai + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: vnfm-id + description: Onap VNFM unique id + type: uuid + short_option: x + long_option: vnfm-id + is_optional: false + - name: resource-version + description: Onap vim resource version + type: string + short_option: y + long_option: resource-version + is_optional: true +http: + service: + auth: basic + mode: direct + request: + uri: /aai/v16/external-system/esr-vnfm-list/esr-vnfm/${vnfm-id}?resource-version=${resource-version} + method: DELETE + + success_codes: + - 204 + - 404 -- cgit 1.2.3-korg From 2cbe78724fdc4fd5c6d9b57e9d44b8407538efc2 Mon Sep 17 00:00:00 2001 From: Rama-Huawei Date: Fri, 16 Aug 2019 16:44:32 +0530 Subject: Added vnfm list schema command Issue-ID: CLI-197 Signed-off-by: Rama-Huawei Change-Id: I993afea0b44f7ed7be21d92cbf137398485bb09a --- .../esr/vnfm/vnfm-list-schema-elalto.yaml | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-list-schema-elalto.yaml (limited to 'products/onap-elalto') diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-list-schema-elalto.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-list-schema-elalto.yaml new file mode 100644 index 00000000..5fbc9c93 --- /dev/null +++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-list-schema-elalto.yaml @@ -0,0 +1,60 @@ +# 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: vnfm-list + +description: List the configured vnfm + + +info: + product: onap-elalto + service: aai + author: ONAP CLI Team onap-discuss@lists.onap.org + +results: + direction: landscape + attributes: + - name: vnfm-id + description: Onap vnfm id + scope: short + type: string + - name: vim-id + description: Onap vnfm id + scope: short + type: string + - name: certificate-url + description: Onap vnfm certificate-url + scope: short + type: string + - name: resource-version + description: Onap vnfm resource version + scope: short + type: string + +http: + service: + auth: basic + mode: direct + request: + uri: /aai/v16/external-system/esr-vnfm-list + method: GET + success_codes: + - 200 + result_map: + vnfm-id: $b{$.esr-vnfm.[*].vnfm-id} + vim-id: $b{$.esr-vnfm.[*].vim-id} + certificate-url: $b{$.esr-vnfm.[*].certificate-url} + resource-version: $b{$.esr-vnfm.[*].resource-version} -- cgit 1.2.3-korg From 43072d3d41e2b14cb348108a4364bca2f62b6091 Mon Sep 17 00:00:00 2001 From: Rama-Huawei Date: Fri, 16 Aug 2019 16:50:39 +0530 Subject: Added vnfm show schema command Issue-ID: CLI-197 Signed-off-by: Rama-Huawei Change-Id: I1274bd663d5264e5c2f9c01f50fa88caa9e2cf70 --- .../esr/vnfm/vnfm-show-schema-elalto.yaml | 80 ++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-show-schema-elalto.yaml (limited to 'products/onap-elalto') diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-show-schema-elalto.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-show-schema-elalto.yaml new file mode 100644 index 00000000..adea19d3 --- /dev/null +++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-show-schema-elalto.yaml @@ -0,0 +1,80 @@ +# 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: vnfm-show + +description: Show the VNFM in Onap + + +info: + product: onap-elalto + service: aai + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: vnfm-id + description: Onap VNFM unique id + type: uuid + short_option: x + long_option: vnfm-id + is_optional: false + +results: + direction: portrait + attributes: + - name: name + description: Onap vnfm name + scope: short + type: string + - name: type + description: Onap vnfm type + scope: short + type: string + - name: vendor + description: Onap vnfm vendor + scope: short + type: string + - name: version + description: Onap vnfm version + scope: short + type: string + - name: url + description: Onap vnfm url + scope: short + type: string + - name: username + description: Onap vnfm username + scope: long + type: string + +http: + service: + auth: basic + mode: direct + request: + uri: /aai/v16/external-system/esr-vnfm-list/esr-vnfm/${vnfm-id}/esr-system-info-list/esr-system-info/${vnfm-id} + method: GET + + success_codes: + - 200 + result_map: + name: $b{$.system-name} + type: $b{$.type} + vendor: $b{$.vendor} + version: $b{$.version} + url: $b{$.service-url} + username: $b{$.user-name} + -- cgit 1.2.3-korg