aboutsummaryrefslogtreecommitdiffstats
path: root/products/onap-elalto
diff options
context:
space:
mode:
Diffstat (limited to 'products/onap-elalto')
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-create-schema-elalto.yaml2
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/cloud/cloud-create-schema-elalto.yaml26
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-associate-schema-elalto.yaml61
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-create-schema-elalto.yaml149
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-delete-schema-elalto.yaml46
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-list-schema-elalto.yaml123
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-update-schema-elalto.yaml156
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/tenant/tenant-create-schema-elalto.yaml60
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/tenant/tenant-delete-schema-elalto.yaml59
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/tenant/tenant-list-schema-elalto.yaml65
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-schema/so-components/vnf-delete-schema-elalto.yaml46
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-schema/so-components/vnf-list-schema-elalto.yaml93
-rw-r--r--products/onap-elalto/features/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml127
-rw-r--r--products/onap-elalto/features/msb/src/main/resources/open-cli-schema/microservice-delete-schema.yaml63
-rw-r--r--products/onap-elalto/features/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml73
-rw-r--r--products/onap-elalto/features/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml85
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-list-schema-elalto-moco.json36
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-list-schema-elalto-sample.yaml54
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-statistics-schema-elalto-moco.json35
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-statistics-schema-elalto-sample.yaml58
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-with-latest-version-schema-elalto-moco.json32
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-with-latest-version-schema-elalto-sample.yaml38
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-create-schema-outdated-elalto.yaml80
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-list-outdated-schema-elalto.yaml88
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-list-schema-elalto.yaml69
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-pap-delete-schema-elalto.yaml70
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-pdp-delete-schema-elalto.yaml71
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-push-schema-outdated-elalto.yaml60
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-statistics-schema-elalto.yaml124
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-create-schema-elalto.yaml59
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-delete-schema-elalto.yaml51
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-delete-with-version-schema-elalto.yaml57
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-with-latest-version-schema-elalto.yaml57
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-update-schema-outdated-elalto.yaml80
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/consumer/sdc-consumer-create-schema-elalto.yaml70
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/consumer/sdc-consumer-show-schema-elalto.yaml66
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/get-resource-module-name.yaml50
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-artifact-schema-elalto.yaml72
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-vf-schema-elalto.yaml81
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-approve-schema-elalto.yaml50
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-archive-schema-elalto.yaml45
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkin-schema-elalto.yaml67
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-elalto.yaml58
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-create-schema-elalto.yaml125
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-distribute-schema-elalto.yaml44
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-list-schema-elalto.yaml80
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-set-property.yaml73
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-accept-schema-elalto.yaml68
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-reject-schema-elalto.yaml50
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-request-schema-elalto.yaml50
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-start-schema-elalto.yaml44
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-undocheckout-schema-elalto.yaml44
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service2vf-model-list-schema-elalto.yaml73
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-add-artifact-schema-elalto.yaml72
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-archive-schema-elalto.yaml44
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-certify-schema-elalto.yaml69
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkin-schema-elalto.yaml68
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkout-schema-elalto.yaml59
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-create-schema-elalto.yaml89
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-list-schema-elalto.yaml84
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-create-schema-elalto.yaml70
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-archive-schema-elalto.yaml45
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-create-schema-elalto.yaml63
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-delete-schema-elalto.yaml51
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-elalto.yaml83
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-elalto.yaml83
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-elalto.yaml72
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-list-schema-elalto.yaml46
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-submit-schema-elalto.yaml50
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-add-artifact-schema-elalto.yaml54
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-archive-schema-elalto.yaml45
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-commit-schema-elalto.yaml56
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema-elalto.yaml117
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-list-schema-elalto.yaml73
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-package-schema-elalto.yaml51
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema-elalto.yaml49
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-validate-schema-elalto.yaml65
-rw-r--r--products/onap-elalto/features/sdnc/src/main/resources/open-cli-schema/vf-preload-schema-elalto.yaml42
-rw-r--r--products/onap-elalto/features/so/src/main/resources/open-cli-schema/service-create-schema-elalto.yaml234
-rw-r--r--products/onap-elalto/features/so/src/main/resources/open-cli-schema/service-update-schema-elalto.yaml162
-rw-r--r--products/onap-elalto/features/so/src/main/resources/open-cli-schema/vf-module-create-schema-elalto.yaml256
-rw-r--r--products/onap-elalto/features/so/src/main/resources/open-cli-schema/vf-module-show-schema-elalto.yaml83
-rw-r--r--products/onap-elalto/features/so/src/main/resources/open-cli-schema/vf-module-update-schema-elalto.yaml143
-rw-r--r--products/onap-elalto/features/so/src/main/resources/open-cli-schema/vnf-create-schema-elalto.yaml212
-rw-r--r--products/onap-elalto/features/so/src/main/resources/open-cli-schema/vnf-show-schema-elalto.yaml185
-rw-r--r--products/onap-elalto/features/so/src/main/resources/open-cli-schema/vnf-update-schema-elalto.yaml185
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-create-ns-schema.yaml70
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-create-vnf-schema.yaml69
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-ns-schema.yaml56
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-vnf-schema.yaml56
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-ns-schema.yaml53
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-vnf-schema.yaml48
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-ns-schema.yaml61
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-vnf-schema.yaml56
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-upload-ns-schema.yaml51
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-upload-vnf-schema.yaml53
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-create-schema.yaml82
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-delete-schema.yaml56
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-get-schema.yaml63
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-instantiate-schema.yaml74
-rw-r--r--products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-terminate-schema.yaml56
-rw-r--r--products/onap-elalto/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema-elalto.yaml52
-rw-r--r--products/onap-elalto/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema-elalto.yaml41
-rw-r--r--products/onap-elalto/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema-elalto.yaml63
-rw-r--r--products/onap-elalto/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema-elalto.yaml66
-rw-r--r--products/onap-elalto/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list-elalto.yaml47
-rw-r--r--products/onap-elalto/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run-elalto.yaml84
107 files changed, 7863 insertions, 17 deletions
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-create-schema-elalto.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-create-schema-elalto.yaml
index a63ddd22..4b80546d 100644
--- a/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-create-schema-elalto.yaml
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-create-schema-elalto.yaml
@@ -75,7 +75,7 @@ http:
{
"related-to": "tenant",
"relationship-label": "org.onap.relationships.inventory.Uses",
- "related-link": "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/${cloud-owner}/${cloud-region}/tenants/tenant/${cloud-tenant-id}",
+ "related-link": "/aai/v16/cloud-infrastructure/cloud-regions/cloud-region/${cloud-owner}/${cloud-region}/tenants/tenant/${cloud-tenant-id}",
"relationship-data": [
{
"relationship-key": "cloud-region.cloud-owner",
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/cloud/cloud-create-schema-elalto.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/cloud/cloud-create-schema-elalto.yaml
index f834554d..00c9712e 100644
--- a/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/cloud/cloud-create-schema-elalto.yaml
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/cloud/cloud-create-schema-elalto.yaml
@@ -1,4 +1,4 @@
-# Copyright 2019 Huawei Technologies Co., Ltd.
+# 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.
@@ -41,7 +41,7 @@ parameters:
short_option: q
long_option: cloud-type
is_optional: false
- - name: owner-defined-type
+ - name: owner-type
description: owner defined type
type: string
short_option: r
@@ -77,14 +77,14 @@ parameters:
short_option: S
long_option: sriov-automation
is_optional: true
- default: false
+ default_value: false
- name: identity-url
description: Onap identity-url, updated by multicloud if multicloud is used
type: string
short_option: i
long_option: identity-url
is_optional: false
- - name: esr-system-info-id
+ - name: esr-id
description: id for esr system (arbitrary UUID e.g 5c85ce1f-aa78-4ebf-8d6f-4b62773e9bc8)
type: uuid
short_option: e
@@ -96,11 +96,11 @@ parameters:
short_option: url
long_option: service-url
is_optional: false
- - name: user-name
+ - name: username
description: cloud user name
type: string
short_option: b
- long_option: user-name
+ long_option: username
is_optional: false
- name: password
description: cloud password
@@ -138,12 +138,6 @@ parameters:
short_option: k
long_option: system-status
is_optional: false
- - name: cloud-extra-info
- description: extra info to register cloud , generally string with region id e.g {\"openstack-region-id\":\"region-id\"}, enter as {\\"openstack-region-id\\":\\"ONAP-POD-01-Rail-07\\"} with CLI
- type: string
- short_option: I
- long_option: extra-info
- is_optional: false
http:
service:
@@ -156,19 +150,19 @@ http:
"cloud-owner": "${cloud-owner}",
"cloud-region-id": "${region-name}",
"cloud-type": "${cloud-type}",
- "owner-defined-type": "${owner-defined-type}",
+ "owner-defined-type": "${owner-type}",
"cloud-region-version": "${cloud-region-version}",
"complex-name":"${complex-name}",
"cloud-zone": "${cloud-zone}",
"sriov-automation": "${sriov-automation}",
"identity-url": "${identity-url}",
- "cloud-extra-info":"${cloud-extra-info}",
+ "cloud-extra-info":"{\"openstack-region-id\":\"${region-name}\"}",
"esr-system-info-list": {
"esr-system-info":[
{
- "esr-system-info-id":"${esr-system-info-id}",
+ "esr-system-info-id":"${esr-id}",
"service-url": "${service-url}",
- "user-name":"${user-name}",
+ "user-name":"${username}",
"password":"${password}",
"system-type": "${system-type}",
"ssl-insecure": "${ssl-insecure}",
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-associate-schema-elalto.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-associate-schema-elalto.yaml
new file mode 100644
index 00000000..7e168a8c
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-associate-schema-elalto.yaml
@@ -0,0 +1,61 @@
+# 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: complex-associate
+description: Associate a cloud region with a cloud complex
+
+info:
+ product: onap-elalto
+ service: aai
+ author: Intel ONAP HPA integration team (onap-discuss@lists.onap.org)
+
+parameters:
+ - name: complex-name
+ description: name of cloud complex
+ type: string
+ short_option: x
+ long_option: complex-name
+ is_optional: false
+ - name: cloud-region
+ description: name of registered cloud-region
+ type: string
+ short_option: y
+ long_option: cloud-region
+ is_optional: false
+ - name: cloud-owner
+ description: name of cloud-owner
+ type: string
+ short_option: z
+ long_option: cloud-owner
+ is_optional: false
+
+http:
+ service:
+ auth: basic
+ mode: direct
+ request:
+ uri: /aai/v16/cloud-infrastructure/cloud-regions/cloud-region/${cloud-owner}/${cloud-region}/relationship-list/relationship
+ method: PUT
+ body: '{
+ "related-to": "complex",
+ "related-link": "/aai/v16/cloud-infrastructure/complexes/complex/${complex-name}",
+ "relationship-data": [
+ {
+ "relationship-key": "complex.physical-location-id",
+ "relationship-value": "${complex-name}"
+ }]
+ }'
+ success_codes:
+ - 200
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-create-schema-elalto.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-create-schema-elalto.yaml
new file mode 100644
index 00000000..cc4355eb
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-create-schema-elalto.yaml
@@ -0,0 +1,149 @@
+# 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: complex-create
+description: Create a cloud complex in Onap
+
+info:
+ product: onap-elalto
+ service: aai
+ author: Intel ONAP HPA integration team (onap-discuss@lists.onap.org)
+
+parameters:
+ - name: physical-location-id
+ description: id of physical location
+ type: string
+ short_option: x
+ long_option: physical-location-id
+ is_optional: false
+ - name: data-center-code
+ description: datacenter name
+ type: string
+ short_option: y
+ long_option: data-center-code
+ is_optional: false
+ - name: complex-name
+ description: complex name
+ type: string
+ short_option: z
+ long_option: complex-name
+ is_optional: false
+ - name: identity-url
+ description: identity url for complex
+ type: string
+ short_option: q
+ long_option: identity-url
+ is_optional: false
+ - name: physical-location-type
+ description: complex physical location type
+ type: string
+ short_option: r
+ long_option: physical-location-type
+ is_optional: false
+ - name: street1
+ description: name of street 1 for complex
+ type: string
+ short_option: i
+ long_option: street1
+ is_optional: false
+ - name: street2
+ description: name of street 2 for complex
+ type: string
+ short_option: j
+ long_option: street2
+ is_optional: false
+ - name: city
+ description: city complex is located in
+ type: string
+ short_option: g
+ long_option: city
+ is_optional: false
+ - name: state
+ description: state complex is located in
+ type: string
+ short_option: S
+ long_option: state
+ is_optional: false
+ - name: postal-code
+ description: postal code for complex
+ type: string
+ short_option: w
+ long_option: postal-code
+ is_optional: false
+ - name: country
+ description: country complex is located
+ type: string
+ short_option: k
+ long_option: country
+ is_optional: false
+ - name: region
+ description: region complex is located
+ type: string
+ short_option: l
+ long_option: region
+ is_optional: false
+ - name: latitude
+ description: latitude of complex location
+ type: string
+ short_option: lt
+ long_option: latitude
+ is_optional: false
+ - name: longitude
+ description: longitude of complex location
+ type: string
+ short_option: lo
+ long_option: longitude
+ is_optional: false
+ - name: elevation
+ description: elevation of complex location
+ type: string
+ short_option: o
+ long_option: elevation
+ is_optional: false
+ - name: lata
+ description: lata of complex
+ type: string
+ short_option: la
+ long_option: lata
+ is_optional: false
+
+
+http:
+ service:
+ auth: basic
+ mode: direct
+ request:
+ uri: /aai/v16/cloud-infrastructure/complexes/complex/${complex-name}
+ method: PUT
+ body: '{
+ "physical-location-id": "${physical-location-id}",
+ "data-center-code": "${data-center-code}",
+ "complex-name": "${complex-name}",
+ "identity-url": "${identity-url}",
+ "physical-location-type": "${physical-location-type}",
+ "street1": "${street1}",
+ "street2": "${street2}",
+ "city": "${city}",
+ "state": "${state}",
+ "postal-code": "${postal-code}",
+ "country": "${country}",
+ "region": "${region}",
+ "latitude": "${latitude}",
+ "longitude": "${longitude}",
+ "elevation": "${elevation}",
+ "lata": "${lata}"
+ }'
+ success_codes:
+ - 201
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-delete-schema-elalto.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-delete-schema-elalto.yaml
new file mode 100644
index 00000000..80f374fe
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-delete-schema-elalto.yaml
@@ -0,0 +1,46 @@
+# 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: complex-delete
+description: Delete a complex from Onap
+
+info:
+ product: onap-elalto
+ service: aai
+ author: ONAP HPA Integration Team (onap-discuss@lists.onap.org)
+
+parameters:
+ - name: complex-name
+ description: Onap complex name
+ type: string
+ short_option: x
+ long_option: complex-name
+ is_optional: false
+ - name: resource-version
+ description: Onap complex region version
+ type: uuid
+ short_option: y
+ long_option: resource-version
+ is_optional: true
+http:
+ service:
+ auth: basic
+ mode: direct
+ request:
+ uri: /aai/v16/cloud-infrastructure/complexes/complex/${complex-name}?resource-version=${resource-version}
+ method: DELETE
+ success_codes:
+ - 204
+ - 404
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-list-schema-elalto.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-list-schema-elalto.yaml
new file mode 100644
index 00000000..aaad4ec2
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-list-schema-elalto.yaml
@@ -0,0 +1,123 @@
+# 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: complex-list
+description: List the configured complexes
+
+info:
+ product: onap-elalto
+ service: aai
+ author: ONAP HPA Integration Team (onap-discuss@lists.onap.org)
+
+results:
+ direction: landscape
+ attributes:
+ - name: complex-name
+ description: onap complex
+ scope: short
+ type: string
+ - name: physical-location-id
+ description: onap complex location id
+ scope: long
+ type: string
+ - name: data-center-code
+ description: data center code
+ scope: short
+ type: string
+ - name: identity-url
+ description: identity url
+ scope: long
+ type: string
+ - name: resource-version
+ description: complex resource version
+ scope: short
+ type: string
+ - name: physical-location-type
+ description: physical location type
+ scope: long
+ type: string
+ - name: street1
+ description: onap complex street1
+ scope: long
+ type: string
+ - name: street2
+ description: onap complex street2
+ scope: long
+ type: string
+ - name: city
+ description: onap complex city
+ scope: long
+ type: string
+ - name: state
+ description: onap complex state
+ scope: long
+ type: string
+ - name: postal-code
+ description: onap complex postal code
+ scope: long
+ type: string
+ - name: country
+ description: onap complex country
+ scope: short
+ type: string
+ - name: region
+ description: onap complex region
+ scope: short
+ type: string
+ - name: latitude
+ description: onap complex latitude
+ scope: short
+ type: string
+ - name: longitude
+ description: onap complex longitude
+ scope: short
+ type: string
+ - name: elevation
+ description: onap complex elevation
+ scope: short
+ type: string
+ - name: lata
+ description: onap complex lata
+ scope: long
+ type: string
+
+http:
+ service:
+ auth: basic
+ mode: direct
+ request:
+ uri: /aai/v16/cloud-infrastructure/complexes/
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ physical-location-id: $b{complex.[*].physical-location-id}
+ data-center-code: $b{complex.[*].data-center-code}
+ complex-name: $b{complex.[*].complex-name}
+ identity-url: $b{complex.[*].identity-url}
+ resource-version: $b{complex.[*].resource-version}
+ physical-location-type: $b{complex.[*].physical-location-type}
+ street1: $b{complex.[*].street1}
+ street2: $b{complex.[*].street2}
+ city: $b{complex.[*].city}
+ state: $b{complex.[*].state}
+ postal-code: $b{complex.[*].postal-code}
+ country: $b{complex.[*].country}
+ region: $b{complex.[*].region}
+ latitude: $b{complex.[*].latitude}
+ longitude: $b{complex.[*].longitude}
+ elevation: $b{complex.[*].elevation}
+ lata: $b{complex.[*].lata}
+
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-update-schema-elalto.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-update-schema-elalto.yaml
new file mode 100644
index 00000000..96ca6c8c
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-update-schema-elalto.yaml
@@ -0,0 +1,156 @@
+# 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: complex-update
+description: Update a cloud complex in Onap
+
+info:
+ product: onap-elalto
+ service: aai
+ author: Intel ONAP HPA integration team (onap-discuss@lists.onap.org)
+
+parameters:
+ - name: physical-location-id
+ description: id of physical location
+ type: string
+ short_option: x
+ long_option: physical-location-id
+ is_optional: false
+ - name: data-center-code
+ description: datacenter name
+ type: string
+ short_option: y
+ long_option: data-center-code
+ is_optional: false
+ - name: complex-name
+ description: complex name
+ type: string
+ short_option: z
+ long_option: complex-name
+ is_optional: false
+ - name: identity-url
+ description: identity url for complex
+ type: string
+ short_option: q
+ long_option: identity-url
+ is_optional: false
+ - name: physical-location-type
+ description: complex physical location type
+ type: string
+ short_option: r
+ long_option: physical-location-type
+ is_optional: false
+ - name: street1
+ description: name of street 1 for complex
+ type: string
+ short_option: i
+ long_option: street1
+ is_optional: false
+ - name: street2
+ description: name of street 2 for complex
+ type: string
+ short_option: j
+ long_option: street2
+ is_optional: false
+ - name: city
+ description: city complex is located in
+ type: string
+ short_option: g
+ long_option: city
+ is_optional: false
+ - name: state
+ description: state complex is located in
+ type: string
+ short_option: S
+ long_option: state
+ is_optional: false
+ - name: postal-code
+ description: postal code for complex
+ type: string
+ short_option: w
+ long_option: postal-code
+ is_optional: false
+ - name: country
+ description: country complex is located
+ type: string
+ short_option: k
+ long_option: country
+ is_optional: false
+ - name: region
+ description: region complex is located
+ type: string
+ short_option: l
+ long_option: region
+ is_optional: false
+ - name: latitude
+ description: latitude of complex location
+ type: string
+ short_option: lt
+ long_option: latitude
+ is_optional: false
+ - name: longitude
+ description: longitude of complex location
+ type: string
+ short_option: lo
+ long_option: longitude
+ is_optional: false
+ - name: elevation
+ description: elevation of complex location
+ type: string
+ short_option: o
+ long_option: elevation
+ is_optional: false
+ - name: lata
+ description: lata of complex
+ type: string
+ short_option: la
+ long_option: lata
+ is_optional: false
+ - name: resource-version
+ description: resource version of complex to be updated
+ type: uuid
+ short_option: R
+ long_option: resource-version
+ is_optional: false
+
+
+http:
+ service:
+ auth: basic
+ mode: direct
+ request:
+ uri: /aai/v16/cloud-infrastructure/complexes/complex/${complex-name}
+ method: PUT
+ body: '{
+ "physical-location-id": "${physical-location-id}",
+ "data-center-code": "${data-center-code}",
+ "complex-name": "${complex-name}",
+ "identity-url": "${identity-url}",
+ "physical-location-type": "${physical-location-type}",
+ "street1": "${street1}",
+ "street2": "${street2}",
+ "city": "${city}",
+ "state": "${state}",
+ "postal-code": "${postal-code}",
+ "country": "${country}",
+ "region": "${region}",
+ "latitude": "${latitude}",
+ "longitude": "${longitude}",
+ "elevation": "${elevation}",
+ "lata": "${lata}",
+ "resource-version": "${resource-version}"
+ }'
+ success_codes:
+ - 200
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/tenant/tenant-create-schema-elalto.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/tenant/tenant-create-schema-elalto.yaml
new file mode 100644
index 00000000..430506db
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/tenant/tenant-create-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: tenant-create
+description: Create a tenant under given cloud region in Onap
+
+info:
+ product: onap-elalto
+ service: aai
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: cloud
+ description: Onap cloud
+ type: string
+ short_option: x
+ long_option: cloud
+ is_optional: false
+ - name: region
+ description: Onap cloud region
+ type: string
+ short_option: y
+ long_option: region
+ is_optional: false
+ - name: tenant-id
+ description: Onap cloud tenant id
+ type: uuid
+ short_option: z
+ long_option: tenant-id
+ is_optional: false
+ - name: tenant-name
+ description: Onap cloud tenant name
+ type: string
+ short_option: r
+ long_option: tenant-name
+ is_optional: false
+
+http:
+ service:
+ auth: basic
+ mode: direct
+ request:
+ uri: /aai/v16/cloud-infrastructure/cloud-regions/cloud-region/${cloud}/${region}/tenants/tenant/${tenant-id}
+ method: PUT
+ body: '{"tenant-id": "${tenant-id}", "tenant-name": "${tenant-name}"}'
+ success_codes:
+ - 200
+ - 201
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/tenant/tenant-delete-schema-elalto.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/tenant/tenant-delete-schema-elalto.yaml
new file mode 100644
index 00000000..8c6d9b97
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/tenant/tenant-delete-schema-elalto.yaml
@@ -0,0 +1,59 @@
+# 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: tenant-delete
+description: Delete tenant under given cloud region in Onap
+
+info:
+ product: onap-elalto
+ service: aai
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: cloud
+ description: Onap cloud
+ type: string
+ short_option: x
+ long_option: cloud
+ is_optional: false
+ - name: region
+ description: Onap cloud region
+ type: string
+ short_option: y
+ long_option: region
+ is_optional: false
+ - name: tenant-id
+ description: Onap cloud tenant id
+ type: string
+ short_option: z
+ long_option: tenant-id
+ is_optional: false
+ - name: resource-version
+ description: Onap cloud tenant version
+ type: uuid
+ short_option: r
+ long_option: resource-version
+ is_optional: true
+
+http:
+ service:
+ auth: basic
+ mode: direct
+ request:
+ uri: /aai/v16/cloud-infrastructure/cloud-regions/cloud-region/${cloud}/${region}/tenants/tenant/${tenant-id}?resource-version=${resource-version}
+ method: DELETE
+ success_codes:
+ - 204
+ - 404
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/tenant/tenant-list-schema-elalto.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/tenant/tenant-list-schema-elalto.yaml
new file mode 100644
index 00000000..2faec9d7
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/infra/tenant/tenant-list-schema-elalto.yaml
@@ -0,0 +1,65 @@
+# 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: tenant-list
+description: Lists the tenants under given cloud region in Onap
+
+info:
+ product: onap-elalto
+ service: aai
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: cloud
+ description: Onap cloud
+ type: string
+ short_option: x
+ long_option: cloud
+ is_optional: false
+ - name: region
+ description: Onap cloud region
+ type: string
+ short_option: y
+ long_option: region
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: tenant-id
+ description: Onap tenant-id
+ scope: short
+ type: string
+ - name: tenant-name
+ description: Onap tenant name
+ scope: short
+ type: string
+ - name: resource-version
+ description: Onap tenant resource version
+ scope: short
+ type: string
+http:
+ service:
+ auth: basic
+ mode: direct
+ request:
+ uri: /aai/v16/cloud-infrastructure/cloud-regions/cloud-region/${cloud}/${region}/tenants
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ tenant-id: $b{$.tenant.[*].tenant-id}
+ tenant-name: $b{$.tenant.[*].tenant-name}
+ resource-version: $b{$.tenant.[*].resource-version}
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/so-components/vnf-delete-schema-elalto.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/so-components/vnf-delete-schema-elalto.yaml
new file mode 100644
index 00000000..4abc798b
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/so-components/vnf-delete-schema-elalto.yaml
@@ -0,0 +1,46 @@
+# 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: vnf-delete
+description: Delete a VNF instancefrom Onap
+
+info:
+ product: onap-elalto
+ service: aai
+ author: ONAP HPA Integration Team (onap-discuss@lists.onap.org)
+
+parameters:
+ - name: vnf-id
+ description: Id of VNF to be deleted (get from vnf-list)
+ type: string
+ short_option: x
+ long_option: vnf-id
+ is_optional: false
+ - name: resource-version
+ description: resource version of vnf
+ type: uuid
+ short_option: y
+ long_option: resource-version
+ is_optional: true
+http:
+ service:
+ auth: basic
+ mode: direct
+ request:
+ uri: /aai/v16/network/generic-vnfs/generic-vnf/${vnf-id}?resource-version=${resource-version}
+ method: DELETE
+ success_codes:
+ - 204
+ - 404
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/so-components/vnf-list-schema-elalto.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/so-components/vnf-list-schema-elalto.yaml
new file mode 100644
index 00000000..dadf8fa5
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-schema/so-components/vnf-list-schema-elalto.yaml
@@ -0,0 +1,93 @@
+# 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: vnf-list
+description: List all the generic vnfs
+
+info:
+ product: onap-elalto
+ service: aai
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+results:
+ direction: landscape
+ attributes:
+ - name: vnf-name
+ description: Name of VNF
+ scope: short
+ type: string
+ - name: vnf-id
+ description: Id of VNF
+ scope: short
+ type: string
+ - name: vnf-type
+ description: Type of VNF (composed of the service model name and the vf model name)
+ scope: short
+ type: string
+ - name: resource-version
+ description: resource version of VNF
+ scope: short
+ type: string
+ - name: vf-model-version-id
+ description: Version Id of its VF model
+ scope: long
+ type: string
+ - name: vf-model-invariant-id
+ description: Invariant Id of its VF model
+ scope: long
+ type: string
+ - name: vf-model-customization-id
+ description: Customization Id of its VF model
+ scope: long
+ type: string
+ - name: service-instance-name
+ description: Name of its service instance
+ scope: short
+ type: string
+ - name: service-instance-id
+ description: Id of its service instance
+ scope: short
+ type: string
+ - name: service-type
+ description: subsription service type
+ scope: long
+ type: string
+ - name: customer-name
+ description: global customer id
+ scope: long
+ type: string
+
+
+http:
+ service:
+ auth: basic
+ mode: direct
+ request:
+ uri: /aai/v16/network/generic-vnfs/
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ vnf-name: $b{generic-vnf.[*].vnf-name}
+ vnf-id: $b{generic-vnf.[*].vnf-id}
+ vnf-type: $b{generic-vnf.[*].vnf-type}
+ resource-version: $b{generic-vnf.[*].resource-version}
+ service-instance-name: $b{generic-vnf.[*].relationship-list.relationship.[*].related-to-property.[?(@.property-key == 'service-instance.service-instance-name')].property-value}
+ service-instance-id: $b{generic-vnf.[*].relationship-list.relationship.[*].relationship-data.[?(@.relationship-key == 'service-instance.service-instance-id')].relationship-value}
+ service-type: $b{generic-vnf.[*].relationship-list.relationship.[*].relationship-data.[?(@.relationship-key == 'service-subscription.service-type')].relationship-value}
+ customer-name: $b{generic-vnf.[*].relationship-list.relationship.[*].relationship-data.[?(@.relationship-key == 'customer.global-customer-id')].relationship-value}
+ vf-model-version-id: $b{generic-vnf.[*].model-version-id}
+ vf-model-invariant-id: $b{generic-vnf.[*].model-invariant-id}
+ vf-model-customization-id: $b{generic-vnf.[*].model-customization-id}
diff --git a/products/onap-elalto/features/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml b/products/onap-elalto/features/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml
new file mode 100644
index 00000000..db5e7510
--- /dev/null
+++ b/products/onap-elalto/features/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml
@@ -0,0 +1,127 @@
+# 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: microservice-create
+description: Register microservice into Onap
+
+info:
+ product: onap-elalto
+ service: msb
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: service-name
+ description: Onap service name
+ type: string
+ short_option: x
+ long_option: service-name
+ is_optional: false
+ - name: service-version
+ description: Onap service version
+ type: string
+ short_option: y
+ long_option: service-version
+ is_optional: false
+ - name: service-url
+ description: Onap service base url
+ type: url
+ short_option: r
+ long_option: service-url
+ is_optional: false
+ - name: enable-ssl
+ description: Onap service is enabled with https or not
+ type: string
+ short_option: b
+ long_option: enable-ssl
+ is_optional: true
+ default_value: false
+ - name: path
+ description: Onap service path
+ type: string
+ short_option: c
+ long_option: path
+ is_optional: true
+ - name: node-ip
+ description: Onap service running node IP
+ type: string
+ long_option: node-ip
+ short_option: X
+ is_optional: false
+ - name: node-port
+ description: Onap service running node port
+ type: string
+ long_option: node-port
+ short_option: Y
+ is_optional: false
+ - name: create-or-update
+ description: Onap service create or update
+ type: bool
+ long_option: create-or-update
+ short_option: Z
+ is_optional: true
+ default_value: true
+results:
+ direction: portrait
+ attributes:
+ - name: name
+ description: Onap service name
+ scope: short
+ type: string
+ - name: version
+ description: Onap service version
+ scope: short
+ type: string
+ - name: url
+ description: Onap service base url
+ scope: short
+ type: url
+ - name: status
+ description: Onap service status
+ scope: short
+ type: digit
+ - name: nodes
+ description: Onap service running nodes
+ scope: long
+ type: string
+ - name: enable-ssl
+ description: Onap service is enabled with https or not
+ scope: long
+ type: string
+ - name: path
+ description: Onap service path
+ scope: long
+ type: string
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/microservices/v1/services
+ method: POST
+ body: '{"serviceName":"${service-name}","version":"${service-version}","path":"${path}","url":"${service-url}","protocol":"REST", "enable_ssl":"${enable-ssl}", "visualRange":"1","lb_policy":"ip_hash","nodes":[{"ip":"${node-ip}","port":"${node-port}","ttl":0}]}'
+ headers:
+ queries:
+ createOrUpdate: ${create-or-update}
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ name: $b{$.serviceName}
+ version: $b{$.version}
+ url: $b{$.url}
+ status: $b{$.status}
+ enable-ssl: $b{$.enable_ssl}
+ path: $b{$.path}
+ nodes: $b{$.nodes[*].ip}:$b{$.nodes[*].port}
diff --git a/products/onap-elalto/features/msb/src/main/resources/open-cli-schema/microservice-delete-schema.yaml b/products/onap-elalto/features/msb/src/main/resources/open-cli-schema/microservice-delete-schema.yaml
new file mode 100644
index 00000000..37a72138
--- /dev/null
+++ b/products/onap-elalto/features/msb/src/main/resources/open-cli-schema/microservice-delete-schema.yaml
@@ -0,0 +1,63 @@
+# 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: microservice-delete
+description: Deletes the micro service from Onap
+
+info:
+ product: onap-elalto
+ service: msb
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: service-name
+ description: Onap service name
+ type: string
+ short_option: x
+ long_option: service-name
+ is_optional: false
+ - name: service-version
+ description: Onap service version
+ type: string
+ short_option: y
+ long_option: service-version
+ is_optional: false
+ - name: node-ip
+ description: Onap service running node IP
+ type: string
+ short_option: i
+ long_option: node-ip
+ is_optional: false
+ - name: node-port
+ description: Onap service running node port
+ type: string
+ short_option: r
+ long_option: node-port
+ is_optional: false
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/microservices/v1/services/${service-name}/version/${service-version}/nodes/${node-ip}/${node-port}
+ method: DELETE
+ success_codes:
+ - 201
+ - 200
+ - 204
+ - 500
+
+
+
diff --git a/products/onap-elalto/features/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml b/products/onap-elalto/features/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml
new file mode 100644
index 00000000..45b5780c
--- /dev/null
+++ b/products/onap-elalto/features/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml
@@ -0,0 +1,73 @@
+# 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: microservice-list
+description: Lists the registetred micro services in Onap
+
+
+info:
+ product: onap-elalto
+ service: msb
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+results:
+ direction: landscape
+ attributes:
+ - name: name
+ description: Onap service name
+ scope: short
+ type: string
+ - name: version
+ description: Onap service version
+ scope: short
+ type: string
+ - name: url
+ description: Onap service base url
+ scope: short
+ type: url
+ - name: status
+ description: Onap service status
+ scope: short
+ type: digit
+ - name: nodes
+ description: Onap service running nodes
+ scope: long
+ type: json
+ - name: enable-ssl
+ description: Onap service is enabled with https or not
+ scope: long
+ type: string
+ - name: path
+ description: Onap service path
+ scope: long
+ type: string
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/microservices/v1/services
+ method: GET
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ name: $b{$.[*].serviceName}
+ version: $b{$.[*].version}
+ url: $b{$.[*].url}
+ status: $b{$.[*].status}
+ enable-ssl: $b{$.[*].enable_ssl}
+ path: $b{$.[*].path}
+ nodes: $b{$.[*].nodes[*].ip}:$b{$.[*].nodes[*].port}
diff --git a/products/onap-elalto/features/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml b/products/onap-elalto/features/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml
new file mode 100644
index 00000000..994dfdf1
--- /dev/null
+++ b/products/onap-elalto/features/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml
@@ -0,0 +1,85 @@
+# 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: microservice-show
+description: Details the registered microservice in Onap
+
+info:
+ product: onap-elalto
+ service: msb
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: service-name
+ description: Onap service name
+ type: string
+ short_option: x
+ long_option: service-name
+ is_optional: false
+ - name: service-version
+ description: Onap service version
+ type: string
+ short_option: y
+ long_option: service-version
+ is_optional: false
+results:
+ direction: portrait
+ attributes:
+ - name: name
+ description: Onap service name
+ scope: short
+ type: string
+ - name: version
+ description: Onap service version
+ scope: short
+ type: string
+ - name: url
+ description: Onap service base url
+ scope: short
+ type: url
+ - name: status
+ description: Onap service status
+ scope: short
+ type: digit
+ - name: nodes
+ description: Onap service running nodes
+ scope: long
+ type: json
+ - name: enable-ssl
+ description: Onap service is enabled with https or not
+ scope: long
+ type: string
+ - name: path
+ description: Onap service path
+ scope: long
+ type: string
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/microservices/v1/services/${service-name}/version/${service-version}
+ method: GET
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ name: $b{$.serviceName}
+ version: $b{$.version}
+ url: $b{$.url}
+ status: $b{$.status}
+ enable-ssl: $b{$.enable_ssl}
+ path: $b{$.path}
+ nodes: $b{$.nodes[*].ip}:$b{$.nodes[*].port}
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-list-schema-elalto-moco.json b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-list-schema-elalto-moco.json
new file mode 100644
index 00000000..54a2c9c4
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-list-schema-elalto-moco.json
@@ -0,0 +1,36 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/policy/api/v1/policytypes/onap.policies.controlloop.Operational/versions/1.0.0/policies/operational.BandwidthOnDemand",
+ "headers" : {
+ "Authorization" : "Basic aGVhbHRoY2hlY2s6emIhWHp0RzM0",
+ "Accept" : "application/json",
+ "Environment" : "TEST",
+ "ClientAuth" : "cHl0aG9uOnRlc3Q=",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "tosca_definitions_version" : "tosca_simple_yaml_1_0_0",
+ "topology_template" : {
+ "policies" : [ {
+ "operational.BandwidthOnDemand" : {
+ "type" : "onap.policies.controlloop.Operational",
+ "type_version" : "1.0.0",
+ "properties" : {
+ "content" : "controlLoop%3A%0D%0A++version%3A+2.0.0%0D%0A++controlLoopName%3A+ControlLoop-CCVPN-2179b738-fd36-4843-a71a-a8c24c70c22b%0D%0A++trigger_policy%3A+unique-policy-id-16-BandwidthOnDemand%0D%0A++timeout%3A+3600%0D%0A++abatement%3A+false%0D%0A%0D%0Apolicies%3A%0D%0A++-+id%3A+unique-policy-id-16-BandwidthOnDemand%0D%0A++++name%3A+CCVPNBandwidthOnDemand%0D%0A++++description%3A%0D%0A++++actor%3A+SDNC%0D%0A++++recipe%3A+BandwidthOnDemand%0D%0A++++target%3A%0D%0A++++++type%3A+VM%0D%0A++++retry%3A+3%0D%0A++++timeout%3A+1200%0D%0A++++success%3A+final_success%0D%0A++++failure%3A+final_failure%0D%0A++++failure_timeout%3A+final_failure_timeout%0D%0A++++failure_retries%3A+final_failure_retries%0D%0A++++failure_exception%3A+final_failure_exception%0D%0A++++failure_guard%3A+final_failure_guard"
+ },
+ "name" : "operational.BandwidthOnDemand",
+ "version" : "1.0.0",
+ "metadata" : { }
+ }
+ } ]
+ },
+ "name" : "ToscaServiceTemplateSimple",
+ "version" : "1.0.0"
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-list-schema-elalto-sample.yaml b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-list-schema-elalto-sample.yaml
new file mode 100644
index 00000000..d08c38a9
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-list-schema-elalto-sample.yaml
@@ -0,0 +1,54 @@
+# 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_sample_version: 1.0
+name: policy-list
+version: onap-elalto
+samples:
+ sample1:
+ name: policy-list
+ input: --policy-type-id onap.policies.controlloop.Operational --version-id 1.0.0 --policy-id operational.BandwidthOnDemand -m https://172.16.0.185:6969 -u healthcheck -p zb!XztG34
+ moco: policy-list-schema-elalto-moco.json
+ output: |
+ +----------------------------------------------------+
+ |Policy properties |
+ +----------------------------------------------------+
+ |tosca_simple_yaml_1_0_0 |
+ +----------------------------------------------------+
+ |{policies=[{"operational.BandwidthOnDemand":{"type |
+ |":"onap.policies.controlloop.Operational","type_ve |
+ |rsion":"1.0.0","properties":{"content":"controlLoo |
+ |p%3A%0D%0A++version%3A+2.0.0%0D%0A++controlLoopNam |
+ |e%3A+ControlLoop-CCVPN-2179b738-fd36-4843-a71a-a8c |
+ |24c70c22b%0D%0A++trigger_policy%3A+unique-policy-i |
+ |d-16-BandwidthOnDemand%0D%0A++timeout%3A+3600%0D%0 |
+ |A++abatement%3A+false%0D%0A%0D%0Apolicies%3A%0D%0A |
+ |++-+id%3A+unique-policy-id-16-BandwidthOnDemand%0D |
+ |%0A++++name%3A+CCVPNBandwidthOnDemand%0D%0A++++des |
+ |cription%3A%0D%0A++++actor%3A+SDNC%0D%0A++++recipe |
+ |%3A+BandwidthOnDemand%0D%0A++++target%3A%0D%0A++++ |
+ |++type%3A+VM%0D%0A++++retry%3A+3%0D%0A++++timeout% |
+ |3A+1200%0D%0A++++success%3A+final_success%0D%0A+++ |
+ |+failure%3A+final_failure%0D%0A++++failure_timeout |
+ |%3A+final_failure_timeout%0D%0A++++failure_retries |
+ |%3A+final_failure_retries%0D%0A++++failure_excepti |
+ |on%3A+final_failure_exception%0D%0A++++failure_gua |
+ |rd%3A+final_failure_guard"},"name":"operational.Ba |
+ |ndwidthOnDemand","version":"1.0.0","metadata":{}}} |
+ |]} |
+ +----------------------------------------------------+
+ |ToscaServiceTemplateSimple |
+ +----------------------------------------------------+
+ |1.0.0 |
+ +----------------------------------------------------+ \ No newline at end of file
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-statistics-schema-elalto-moco.json b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-statistics-schema-elalto-moco.json
new file mode 100644
index 00000000..e9915aab
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-statistics-schema-elalto-moco.json
@@ -0,0 +1,35 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/policy/api/v1/statistics",
+ "headers" : {
+ "Authorization" : "Basic aGVhbHRoY2hlY2s6emIhWHp0RzM0",
+ "Accept" : "application/json",
+ "Environment" : "TEST",
+ "ClientAuth" : "cHl0aG9uOnRlc3Q=",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "code" : 200,
+ "totalApiCallCount" : 4,
+ "apiCallSuccessCount" : 4,
+ "apiCallFailureCount" : 0,
+ "totalPolicyGetCount" : 0,
+ "totalPolicyPostCount" : 0,
+ "totalPolicyTypeGetCount" : 0,
+ "totalPolicyTypePostCount" : 0,
+ "policyGetSuccessCount" : 0,
+ "policyGetFailureCount" : 0,
+ "policyPostSuccessCount" : 0,
+ "policyPostFailureCount" : 0,
+ "policyTypeGetSuccessCount" : 0,
+ "policyTypeGetFailureCount" : 0,
+ "policyTypePostSuccessCount" : 0,
+ "policyTypePostFailureCount" : 0
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-statistics-schema-elalto-sample.yaml b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-statistics-schema-elalto-sample.yaml
new file mode 100644
index 00000000..d72b2e8e
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-statistics-schema-elalto-sample.yaml
@@ -0,0 +1,58 @@
+# 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_sample_version: 1.0
+name: policy-statistics
+version: onap-elalto
+samples:
+ sample1:
+ name: policy-statistics
+ input: -m https://172.16.0.185:6969 -u healthcheck -p zb!XztG34
+ moco: policy-statistics-schema-elalto-moco.json
+ output: |
+ +----------------------------+--------+
+ |property |value |
+ +----------------------------+--------+
+ |code |200 |
+ +----------------------------+--------+
+ |totalApiCallCount |4 |
+ +----------------------------+--------+
+ |apiCallSuccessCount |4 |
+ +----------------------------+--------+
+ |apiCallFailureCount |0 |
+ +----------------------------+--------+
+ |totalPolicyGetCount |0 |
+ +----------------------------+--------+
+ |totalPolicyPostCount |0 |
+ +----------------------------+--------+
+ |totalPolicyTypeGetCount |0 |
+ +----------------------------+--------+
+ |totalPolicyTypePostCount |0 |
+ +----------------------------+--------+
+ |policyGetSuccessCount |0 |
+ +----------------------------+--------+
+ |policyGetFailureCount |0 |
+ +----------------------------+--------+
+ |policyPostSuccessCount |0 |
+ +----------------------------+--------+
+ |policyPostFailureCount |0 |
+ +----------------------------+--------+
+ |policyTypeGetSuccessCount |0 |
+ +----------------------------+--------+
+ |policyTypeGetFailureCount |0 |
+ +----------------------------+--------+
+ |policyTypePostSuccessCount |0 |
+ +----------------------------+--------+
+ |policyTypePostFailureCount |0 |
+ +----------------------------+--------+ \ No newline at end of file
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-with-latest-version-schema-elalto-moco.json b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-with-latest-version-schema-elalto-moco.json
new file mode 100644
index 00000000..f2bda333
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-with-latest-version-schema-elalto-moco.json
@@ -0,0 +1,32 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/policy/api/v1/policytypes/onap.policies.controlloop.Operational/versions/latest",
+ "headers" : {
+ "Authorization" : "Basic aGVhbHRoY2hlY2s6emIhWHp0RzM0",
+ "Accept" : "application/json",
+ "Environment" : "TEST",
+ "ClientAuth" : "cHl0aG9uOnRlc3Q=",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "tosca_definitions_version" : "tosca_simple_yaml_1_0_0",
+ "policy_types" : [ {
+ "onap.policies.controlloop.Operational" : {
+ "properties" : { },
+ "name" : "onap.policies.controlloop.Operational",
+ "version" : "1.0.0",
+ "derived_from" : "tosca.policies.Root:0.0.0",
+ "metadata" : { },
+ "description" : "Operational Policy for Control Loops"
+ }
+ } ],
+ "name" : "ToscaServiceTemplateSimple",
+ "version" : "1.0.0"
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-with-latest-version-schema-elalto-sample.yaml b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-with-latest-version-schema-elalto-sample.yaml
new file mode 100644
index 00000000..0af1c1d2
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-sample/policy/policy-type-list-with-latest-version-schema-elalto-sample.yaml
@@ -0,0 +1,38 @@
+# 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_sample_version: 1.0
+name: policy-type-list-with-latest-version
+version: onap-elalto
+samples:
+ sample1:
+ name: policy-type-list-with-latest-version
+ input: --policy-type-id onap.policies.controlloop.Operational -m https://172.16.0.185:6969 -u healthcheck -p zb!XztG34
+ moco: policy-type-list-with-latest-version-schema-elalto-moco.json
+ output: |
+ +----------------------------------------------------+
+ |Type properties |
+ +----------------------------------------------------+
+ |tosca_simple_yaml_1_0_0 |
+ +----------------------------------------------------+
+ |[{"onap.policies.controlloop.Operational":{"proper |
+ |ties":{},"name":"onap.policies.controlloop.Operati |
+ |onal","version":"1.0.0","derived_from":"tosca.poli |
+ |cies.Root:0.0.0","metadata":{},"description":"Oper |
+ |ational Policy for Control Loops"}}] |
+ +----------------------------------------------------+
+ |ToscaServiceTemplateSimple |
+ +----------------------------------------------------+
+ |1.0.0 |
+ +----------------------------------------------------+ \ No newline at end of file
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-create-schema-outdated-elalto.yaml b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-create-schema-outdated-elalto.yaml
new file mode 100644
index 00000000..68a4ca03
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-create-schema-outdated-elalto.yaml
@@ -0,0 +1,80 @@
+# 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: policy-create-outdated
+description: Create a policy in PAP
+
+info:
+ product: onap-elalto
+ service: policy
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: policy-name
+ description: Onap policy Name
+ type: string
+ short_option: x
+ long_option: policy-name
+ is_optional: false
+ - name: policy-config-type
+ description: Policy config type
+ type: string
+ long_option: policy--config-type
+ short_option: T
+ is_optional: false
+ - name: policy-scope
+ description: Policy scope
+ type: string
+ long_option: policy-scope
+ short_option: S
+ is_optional: false
+ - name: onap-name
+ description: Onap name
+ type: string
+ long_option: onap-name
+ short_option: o
+ is_optional: false
+ - name: policy-config-body
+ description: Policy config body
+ type: string
+ long_option: policy-config-body
+ short_option: b
+ is_optional: false
+
+http:
+ service:
+ name: policy
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /pdp/api/createPolicy
+ method: PUT
+ context:
+ remove_empty_node: true
+ body: '{"policyName": "${policy-name}",
+ "policyConfigType": "${policy-config-type}",
+ "policyScope": "${policy-scope}",
+ "onapName": "${onap-name}",
+ "configBody": "${policy-config-body}"}'
+ headers:
+ Content-Type: application/json
+ Accept: text/plain
+ Environment: TEST
+ ClientAuth: cHl0aG9uOnRlc3Q=
+
+ success_codes:
+ - 200
+ - 201
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-list-outdated-schema-elalto.yaml b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-list-outdated-schema-elalto.yaml
new file mode 100644
index 00000000..4d607f30
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-list-outdated-schema-elalto.yaml
@@ -0,0 +1,88 @@
+# Copyright 2019 Intel 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.
+
+open_cli_schema_version: 1.0
+name: policy-list-outdated
+description: List policies
+
+info:
+ product: onap-elalto
+ service: policy
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: policy-name
+ description: ONAP policy name
+ type: string
+ long_option: policy-name
+ short_option: x
+ is_optional: false
+ default_value: .*
+ - name: config-attributes
+ description: Configuration Attributes
+ type: json
+ long_option: config-attributes
+ short_option: A
+ is_optional: true
+ default_value: {}
+
+results:
+ direction: landscape
+ attributes:
+ - name: name
+ description: Policy Name
+ scope: short
+ type: string
+ - name: type
+ description: Policy type
+ scope: short
+ type: string
+ - name: config
+ description: Policy configuration
+ scope: short
+ type: json
+ - name: version
+ description: Policy version
+ scope: long
+ type: string
+ - name: rules
+ description: Policy rules
+ scope: long
+ type: json
+http:
+ service:
+ name: policy
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /pdp/api/getConfig
+ method: POST
+ body: '{"configAttributes": "${config-attributes}", "policyName": "${policy-name}"}'
+ headers:
+ Accept: application/json
+ ClientAuth: cHl0aG9uOnRlc3Q=
+ Environment: TEST
+
+
+ success_codes:
+ - 200
+
+ result_map:
+ name: $b{$.[*].policyName}
+ type: $b{$.[*].policyType}
+ version: $b{$.[*].policyVersion}
+ config: $b{$.[*].config}
+ rules: $b{$.[*].matchingConditions}
+
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-list-schema-elalto.yaml b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-list-schema-elalto.yaml
new file mode 100644
index 00000000..0b847b0f
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-list-schema-elalto.yaml
@@ -0,0 +1,69 @@
+# 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: policy-list
+description: Retrieve all version details of a policy created for a particular policy type version
+
+info:
+ product: onap-elalto
+ service: policy
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: policy-type-id
+ description: Policy type ID
+ type: string
+ long_option: policy-type-id
+ short_option: x
+ is_optional: false
+ - name: version-id
+ description: Policy type version ID
+ type: string
+ long_option: version-id
+ short_option: y
+ is_optional: false
+ - name: policy-id
+ description: Policy ID
+ type: string
+ long_option: policy-id
+ short_option: z
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: Policy properties
+ description: Policy properties
+ scope: short
+ type: json
+
+http:
+ service:
+ name: policy
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /policy/api/v1/policytypes/${policy-type-id}/versions/${version-id}/policies/${policy-id}
+ method: GET
+ headers:
+ Accept: application/json
+ Environment: TEST
+
+ success_codes:
+ - 200
+
+ result_map:
+ Policy properties: $b{$.[*]}
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-pap-delete-schema-elalto.yaml b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-pap-delete-schema-elalto.yaml
new file mode 100644
index 00000000..5fa9bb71
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-pap-delete-schema-elalto.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: policy-delete-pap
+description: Delete config policy in PAP
+
+info:
+ product: onap-elalto
+ service: policy
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: policy-name
+ description: Onap policy Name
+ type: string
+ short_option: x
+ long_option: policy-name
+ is_optional: false
+ - name: policy-component
+ description: Component of the policy
+ type: string
+ short_option: y
+ long_option: policy-component
+ is_optional: false
+ - name: policy-type
+ description: Policy config type
+ type: string
+ long_option: policy-type
+ short_option: b
+ is_optional: false
+ - name: delete-condition
+ description: Delete condition
+ type: string
+ long_option: delete-condition
+ short_option: c
+ is_optional: false
+
+http:
+ service:
+ name: policy
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /pdp/api/deletePolicy
+ method: DELETE
+ context:
+ remove_empty_node: true
+ body: '{"policyName": "${policy-name}","policyComponent": "${policy-component}","policyType":"${policy-type}","deleteCondition":"${delete-condition}"}'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ Environment: TEST
+ ClientAuth: cHl0aG9uOnRlc3Q=
+ success_codes:
+ - 200
+ - 202
+ - 204
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-pdp-delete-schema-elalto.yaml b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-pdp-delete-schema-elalto.yaml
new file mode 100644
index 00000000..5b8f3905
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-pdp-delete-schema-elalto.yaml
@@ -0,0 +1,71 @@
+# 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: policy-delete-pdp
+description: Delete config policy in PDP
+
+info:
+ product: onap-elalto
+ service: policy
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: policy-name
+ description: Onap policy Name
+ type: string
+ short_option: x
+ long_option: policy-name
+ is_optional: false
+ - name: policy-component
+ description: Component of the policy
+ type: string
+ short_option: y
+ long_option: policy-component
+ is_optional: false
+ - name: policy-type
+ description: Policy config type
+ type: string
+ long_option: policy-type
+ short_option: b
+ is_optional: false
+ - name: pdp-group
+ description: PDP group name
+ type: string
+ long_option: pdp-group
+ short_option: g
+ is_optional: false
+
+http:
+ service:
+ name: policy
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /pdp/api/deletePolicy
+ method: DELETE
+ context:
+ remove_empty_node: true
+ body: '{"policyName": "${policy-name}","policyComponent": "${policy-component}","policyType":"${policy-type}","pdpGroup":"${pdp-group}"}'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ Environment: TEST
+ ClientAuth: cHl0aG9uOnRlc3Q=
+
+ success_codes:
+ - 200
+ - 202
+ - 204
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-push-schema-outdated-elalto.yaml b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-push-schema-outdated-elalto.yaml
new file mode 100644
index 00000000..c186c242
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-push-schema-outdated-elalto.yaml
@@ -0,0 +1,60 @@
+# 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: policy-push-outdated
+description: Push a policy to PDP
+
+info:
+ product: onap-elalto
+ service: policy
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: policy-name
+ description: Onap policy Name
+ type: string
+ short_option: x
+ long_option: policy-name
+ is_optional: false
+ - name: policy-type
+ description: Policy type
+ type: string
+ long_option: policy-type
+ short_option: b
+ is_optional: false
+ - name: policy-group
+ description: Policy pdp group
+ type: string
+ long_option: policy-group
+ short_option: c
+ is_optional: false
+
+http:
+ service:
+ name: policy
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /pdp/api/pushPolicy
+ method: PUT
+ context:
+ remove_empty_node: true
+ body: '{"policyName": "${policy-name}", "policyType": "${policy-type}", "pdpGroup": "${policy-group}"}'
+
+ success_codes:
+ - 200
+ - 201
+
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-statistics-schema-elalto.yaml b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-statistics-schema-elalto.yaml
new file mode 100644
index 00000000..cb252788
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-statistics-schema-elalto.yaml
@@ -0,0 +1,124 @@
+# 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: policy-statistics
+description: Returns current statistics including the counters of API invocation
+
+info:
+ product: onap-elalto
+ service: policy
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+results:
+ direction: portrait
+ attributes:
+ - name: code
+ description: code
+ scope: short
+ type: string
+ - name: totalApiCallCount
+ description: total api call count
+ scope: short
+ type: string
+ - name: apiCallSuccessCount
+ description: api call success count
+ scope: short
+ type: string
+ - name: apiCallFailureCount
+ description: api call failure count
+ scope: short
+ type: string
+ - name: totalPolicyGetCount
+ description: total policy get count
+ scope: short
+ type: string
+ - name: totalPolicyPostCount
+ description: total policy post count
+ scope: short
+ type: string
+ - name: totalPolicyTypeGetCount
+ description: total policy type get count
+ scope: short
+ type: string
+ - name: totalPolicyTypePostCount
+ description: total policy type post count
+ scope: short
+ type: string
+ - name: policyGetSuccessCount
+ description: policy get success count
+ scope: short
+ type: string
+ - name: policyGetFailureCount
+ description: policy get failure count
+ scope: short
+ type: string
+ - name: policyPostSuccessCount
+ description: policy post success count
+ scope: short
+ type: string
+ - name: policyPostFailureCount
+ description: policy post failure count
+ scope: short
+ type: string
+ - name: policyTypeGetSuccessCount
+ description: policy type get success count
+ scope: short
+ type: string
+ - name: policyTypeGetFailureCount
+ description: policy type get failure count
+ scope: short
+ type: string
+ - name: policyTypePostSuccessCount
+ description: policy type post success count
+ scope: short
+ type: string
+ - name: policyTypePostFailureCount
+ description: policy type post failure count
+ scope: short
+ type: string
+
+http:
+ service:
+ name: policy
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /policy/api/v1/statistics
+ method: GET
+ headers:
+ Accept: application/json
+ Environment: TEST
+
+ success_codes:
+ - 200
+
+ result_map:
+ code: $b{$.code}
+ totalApiCallCount: $b{$.totalApiCallCount}
+ apiCallSuccessCount: $b{$.apiCallSuccessCount}
+ apiCallFailureCount: $b{$.apiCallFailureCount}
+ totalPolicyGetCount: $b{$.totalPolicyGetCount}
+ totalPolicyPostCount: $b{$.totalPolicyPostCount}
+ totalPolicyTypeGetCount: $b{$.totalPolicyTypeGetCount}
+ totalPolicyTypePostCount: $b{$.totalPolicyTypePostCount}
+ policyGetSuccessCount: $b{$.policyGetSuccessCount}
+ policyGetFailureCount: $b{$.policyGetFailureCount}
+ policyPostSuccessCount: $b{$.policyPostSuccessCount}
+ policyPostFailureCount: $b{$.policyPostFailureCount}
+ policyTypeGetSuccessCount: $b{$.policyTypeGetSuccessCount}
+ policyTypeGetFailureCount: $b{$.policyTypeGetFailureCount}
+ policyTypePostSuccessCount: $b{$.policyTypePostSuccessCount}
+ policyTypePostFailureCount: $b{$.policyTypePostFailureCount}
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-create-schema-elalto.yaml b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-create-schema-elalto.yaml
new file mode 100644
index 00000000..f84e45b4
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-create-schema-elalto.yaml
@@ -0,0 +1,59 @@
+# 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: policy-type-create
+description: Create a policy type
+
+info:
+ product: onap-elalto
+ service: policy
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: policy-type-body
+ description: Configuration of the new policy type
+ type: json
+ short_option: x
+ long_option: policy-type-body
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: Response
+ type: string
+ description: Response message
+ scope: short
+
+http:
+ service:
+ name: policy
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /policy/api/v1/policytypes
+ method: POST
+ context:
+ remove_empty_node: true
+ body: ${policy-type-body}
+ headers:
+ Environment: TEST
+ ClientAuth: cHl0aG9uOnRlc3Q=
+
+ success_codes:
+ - 201
+ result_map:
+ Response: $b
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-delete-schema-elalto.yaml b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-delete-schema-elalto.yaml
new file mode 100644
index 00000000..aeaf295f
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-delete-schema-elalto.yaml
@@ -0,0 +1,51 @@
+# 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: policy-delete-type
+description: Delete all versions of a policy type
+
+info:
+ product: onap-elalto
+ service: policy
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: policy-type-id
+ description: Policy type ID
+ type: string
+ short_option: x
+ long_option: policy-type-id
+ is_optional: false
+
+http:
+ service:
+ name: policy
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /policy/api/v1/policytypes/${policy-type-id}
+ method: DELETE
+ context:
+ remove_empty_node: true
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ Environment: TEST
+
+ success_codes:
+ - 404
+ - 204
+
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-delete-with-version-schema-elalto.yaml b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-delete-with-version-schema-elalto.yaml
new file mode 100644
index 00000000..31a0b3f2
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-delete-with-version-schema-elalto.yaml
@@ -0,0 +1,57 @@
+# 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: policy-delete-type-with-version
+description: Delete one version of a policy type
+
+info:
+ product: onap-elalto
+ service: policy
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: policy-type-id
+ description: Policy type ID
+ type: string
+ short_option: x
+ long_option: policy-type-id
+ is_optional: false
+ - name: version-id
+ description: Policy type version ID
+ type: string
+ short_option: y
+ long_option: version-id
+ is_optional: false
+
+http:
+ service:
+ name: policy
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /policy/api/v1/policytypes/${policy-type-id}/versions/${version-id}
+ method: DELETE
+ context:
+ remove_empty_node: true
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ Environment: TEST
+
+ success_codes:
+ - 404
+ - 204
+
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-with-latest-version-schema-elalto.yaml b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-with-latest-version-schema-elalto.yaml
new file mode 100644
index 00000000..66b61d4f
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-type-list-with-latest-version-schema-elalto.yaml
@@ -0,0 +1,57 @@
+# 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: policy-type-list-with-latest-version
+description: Returns latest version for the specified policy type
+
+info:
+ product: onap-elalto
+ service: policy
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: policy-type-id
+ description: Policy type ID
+ type: string
+ long_option: policy-type-id
+ short_option: x
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: Type properties
+ description: Policy type properties
+ scope: short
+ type: json
+
+http:
+ service:
+ name: policy
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /policy/api/v1/policytypes/${policy-type-id}/versions/latest
+ method: GET
+ headers:
+ Accept: application/json
+ Environment: TEST
+
+ success_codes:
+ - 200
+
+ result_map:
+ Type properties: $b{$.[*]}
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-update-schema-outdated-elalto.yaml b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-update-schema-outdated-elalto.yaml
new file mode 100644
index 00000000..becf84a3
--- /dev/null
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-update-schema-outdated-elalto.yaml
@@ -0,0 +1,80 @@
+# 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: policy-update-outdated
+description: Update a policy in PAP
+
+info:
+ product: onap-elalto
+ service: policy
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: policy-name
+ description: Onap policy Name
+ type: string
+ short_option: x
+ long_option: policy-name
+ is_optional: false
+ - name: policy-config-type
+ description: Policy config type
+ type: string
+ long_option: policy--config-type
+ short_option: T
+ is_optional: false
+ - name: policy-scope
+ description: Policy scope
+ type: string
+ long_option: policy-scope
+ short_option: S
+ is_optional: false
+ - name: onap-name
+ description: Onap name
+ type: string
+ long_option: onap-name
+ short_option: o
+ is_optional: false
+ - name: policy-config-body
+ description: Policy config body
+ type: string
+ long_option: policy-config-body
+ short_option: b
+ is_optional: false
+
+http:
+ service:
+ name: policy
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /pdp/api/updatePolicy
+ method: PUT
+ context:
+ remove_empty_node: true
+ body: '{"policyName": "${policy-name}",
+ "policyConfigType": "${policy-config-type}",
+ "policyScope": "${policy-scope}",
+ "onapName": "${onap-name}",
+ "configBody": "${policy-config-body}"}'
+ headers:
+ Content-Type: application/json
+ Accept: text/plain
+ Environment: TEST
+ ClientAuth: cHl0aG9uOnRlc3Q=
+
+ success_codes:
+ - 200
+ - 201
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/consumer/sdc-consumer-create-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/consumer/sdc-consumer-create-schema-elalto.yaml
new file mode 100644
index 00000000..7300f18b
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/consumer/sdc-consumer-create-schema-elalto.yaml
@@ -0,0 +1,70 @@
+# 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: sdc-consumer-create
+description: Create SDC consumer
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: consumer-name
+ description: Consumer Name
+ type: string
+ short_option: x
+ long_option: consumer-name
+ is_optional: false
+ - name: consumer-password
+ description: Consumer password
+ type: string
+ short_option: y
+ long_option: consumer-password
+ is_optional: true
+ default_value: 7fa005e6e478ee677053a2c4a5c2f11190e2aa8be227a037291ea4cbc074ecb6
+ - name: salt
+ description: Salt
+ type: string
+ long_option: salt
+ short_option: c
+ is_optional: true
+ default_value: ab2987754f0c6293174865e86c47035d
+ - name: user-id
+ description: Designer user id
+ type: string
+ long_option: user-id
+ short_option: e
+ default_value: jh0003
+ is_optional: true
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: none
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/consumers
+ method: POST
+ headers:
+ USER_ID: ${user-id}
+ body: '{
+ "consumerName": "${consumer-name}",
+ "consumerSalt": "${salt}",
+ "consumerPassword": "${consumer-password}"
+ }'
+ success_codes:
+ - 200
+ - 201
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/consumer/sdc-consumer-show-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/consumer/sdc-consumer-show-schema-elalto.yaml
new file mode 100644
index 00000000..59c0a700
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/consumer/sdc-consumer-show-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: sdc-consumer-show
+description: Retrieve SDC consumer
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: consumer-name
+ description: Consumer Name
+ type: string
+ short_option: x
+ long_option: consumer-name
+ is_optional: false
+ - name: user-id
+ description: Designer user id
+ type: string
+ long_option: user-id
+ short_option: e
+ default_value: jh0003
+ is_optional: true
+results:
+ direction: portrait
+ attributes:
+ - name: consumer-password
+ description: Consumer password
+ type: string
+ scope: short
+ - name: salt
+ description: Salt
+ type: string
+ scope: short
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: none
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/consumers/${consumer-name}
+ method: GET
+ headers:
+ USER_ID: ${user-id}
+ success_codes:
+ - 200
+ - 201
+ result_map:
+ consumer-password: $b{$.consumerPassword}
+ salt: $b{$.consumerSalt} \ No newline at end of file
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/get-resource-module-name.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/get-resource-module-name.yaml
new file mode 100644
index 00000000..74e75c7a
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/get-resource-module-name.yaml
@@ -0,0 +1,50 @@
+# 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: get-resource-module-name
+description: Get resource module name
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+
+results:
+ direction: landscape
+ attributes:
+ - name: vf-model-name
+ description: name of vf model in service model
+ type: string
+ scope: short
+ - name: resource-module-name
+ description: system name of vf-model
+ type: string
+ scope: short
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/followed
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ vf-model-name: $b{resources.[*].name}
+ resource-module-name: $b{resources.[*].systemName}
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-artifact-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-artifact-schema-elalto.yaml
new file mode 100644
index 00000000..5bd2fad6
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-artifact-schema-elalto.yaml
@@ -0,0 +1,72 @@
+# 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: service-model-add-artifact
+description: Add a artifact to a Service model
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service Unique Id
+ type: string
+ long_option: service-id
+ short_option: x
+ is_optional: false
+ - name: remarks
+ description: certification remarks
+ type: string
+ long_option: remarks
+ short_option: y
+ default_value: Uploaded from ONAP CLI
+ is_optional: true
+ - name: artifact
+ description: NS CSAR file
+ type: byte
+ long_option: artifact
+ short_option: z
+ is_optional: false
+ - name: artifact-name
+ description: NS CSAR name
+ type: string
+ long_option: artifact-name
+ short_option: b
+ is_optional: false
+ - name: user-id
+ description: Designer user id
+ type: string
+ long_option: user-id
+ short_option: e
+ default_value: cs0008
+ is_optional: true
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/artifacts
+ method: POST
+ headers:
+ Content-MD5: $s{md5:__body__}
+ USER_ID: ${user-id}
+ body: '{"payloadData":"${artifact}","artifactDisplayName":"${artifact-name}","artifactType":"OTHER","description":"${remarks}","artifactName":"${artifact-name}", "artifactLabel":"${artifact-name}","artifactGroupType":"INFORMATIONAL", artifactChecksum="$s{md5:artifact}"}'
+ success_codes:
+ - 200
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-vf-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-vf-schema-elalto.yaml
new file mode 100644
index 00000000..f7634e53
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-vf-schema-elalto.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: service-model-add-vf
+description: Helps to add VF into service models in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Onap Service Name
+ type: string
+ short_option: x
+ long_option: service-id
+ is_optional: false
+ - name: vf-id
+ description: VF Unique ID
+ type: string
+ short_option: y
+ long_option: vf-id
+ is_optional: true
+ - name: vf-name
+ description: VF Name
+ type: string
+ short_option: z
+ long_option: vf-name
+ is_optional: true
+ - name: vf-version
+ description: VF version
+ type: string
+ long_option: vf-version
+ short_option: b
+ is_optional: true
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: Service ID
+ scope: short
+ type: string
+ - name: uuid
+ description: Service UUID
+ scope: short
+ type: string
+ - name: inputs
+ description: VNF Input ids
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/resourceInstance
+ method: POST
+ body: '{"name": "${vf-name}", "componentVersion": "${vf-version}", "posY": 248, "posX": 406, "uniqueId": "${service-id}-${vf-id}", "originType": "VF", "componentUid": "${vf-id}", "icon": "defaulticon"}'
+ success_codes:
+ - 201
+ result_map:
+ id: $b{$.uniqueId}
+ uuid: $b{$.componentUid}
+ inputs: $b{$.inputs.[*].uniqueId} \ No newline at end of file
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-approve-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-approve-schema-elalto.yaml
new file mode 100644
index 00000000..ce679293
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-approve-schema-elalto.yaml
@@ -0,0 +1,50 @@
+# 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: service-model-approve
+description: Approves the Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model UniqueId
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: false
+ - name: remarks
+ description: approval remarks
+ type: string
+ long_option: remarks
+ short_option: r
+ is_optional: false
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/distribution-state/approve
+ method: POST
+ body: '{"userRemarks": "${remarks}"}'
+ success_codes:
+ - 200
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-archive-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-archive-schema-elalto.yaml
new file mode 100644
index 00000000..a90a649f
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-archive-schema-elalto.yaml
@@ -0,0 +1,45 @@
+# 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: service-model-archive
+description: Archive the Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model UniqueId
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: false
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/archive
+ method: POST
+ body: '{}'
+ success_codes:
+ - 200
+ - 417 \ No newline at end of file
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkin-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkin-schema-elalto.yaml
new file mode 100644
index 00000000..cdb80d9d
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkin-schema-elalto.yaml
@@ -0,0 +1,67 @@
+# 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: service-model-checkin
+description: Checkin Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: service-id
+ description: Service model ID
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: false
+ - name: remarks
+ description: checkin remarks
+ type: string
+ long_option: remarks
+ short_option: r
+ is_optional: false
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: NS checked out version unique ID
+ scope: short
+ type: string
+ - name: uuid
+ description: NS checked out version unique ID
+ scope: short
+ type: string
+ - name: version
+ description: VF version
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/lifecycleState/CHECKIN
+ method: POST
+ body: '{"userRemarks": "${remarks}"}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.uniqueId}
+ version: $b{$.version}
+ uuid: $b{$.unid} \ No newline at end of file
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-elalto.yaml
new file mode 100644
index 00000000..a2148ec2
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-elalto.yaml
@@ -0,0 +1,58 @@
+# 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: service-model-checkout
+description: Checkout Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model ID
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: true
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: NS checked out version unique ID
+ scope: short
+ type: string
+ - name: version
+ description: VF version
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/lifecycleState/CHECKOUT
+ method: POST
+ body: '{}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.uniqueId}
+ version: $b{$.version} \ No newline at end of file
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-create-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-create-schema-elalto.yaml
new file mode 100644
index 00000000..9e59252a
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-create-schema-elalto.yaml
@@ -0,0 +1,125 @@
+# 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: service-model-create
+description: Create Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-name
+ description: Onap Service Name
+ type: string
+ short_option: x
+ long_option: service-name
+ is_optional: false
+ - name: description
+ description: Description for Service
+ type: string
+ short_option: y
+ long_option: description
+ is_optional: true
+ - name: project-code
+ description: Project code
+ type: string
+ long_option: project-code
+ short_option: z
+ is_optional: true
+ - name: category
+ description: Service category (options are "network l4+","network l1-3","e2e service","mobility","network service","voip call control")
+ type: string
+ short_option: b
+ long_option: category
+ is_optional: true
+ default_value: network l1-3
+ - name: category-display-name
+ description: Service category display name (Options are "Network L4+","Network L1-3","E2E Service","Network Service","Mobility","VoIP Call Control")
+ type: string
+ short_option: c
+ long_option: category-display-name
+ is_optional: true
+ default_value: Network L1-3
+ - name: icon-id
+ description: Service Icon id (options are "network_l_4","network_l_1-3"[use this icon for "Network L1-3","E2E Service","Network Service"],"mobility","call_controll")
+ type: string
+ short_option: e
+ long_option: icon-id
+ default_value: defaulticon
+ is_optional: true
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: Service ID
+ scope: short
+ type: string
+ - name: uuid
+ description: Service UUID
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services
+ method: POST
+ body: '{
+ "artifacts":{},
+ "toscaArtifacts":{},
+ "contactId":"${host-username}",
+ "categories":[{
+ "name":"${category-display-name}",
+ "normalizedName":"${category}",
+ "uniqueId":"serviceNewCategory.${category}",
+ "icons":["${icon-id}"],
+ "subcategories":null,
+ "version":null,
+ "ownerId":null,
+ "empty":false,
+ "type":null }],
+ "description":"${description}",
+ "icon":"defaulticon",
+ "componentInstancesProperties":{},
+ "componentInstancesAttributes":{},
+ "name":"${service-name}",
+ "tags":["${service-name}"],
+ "capabilities":{},
+ "requirements":{},
+ "deploymentArtifacts":{},
+ "componentType":"SERVICE",
+ "projectCode":"${project-code}",
+ "componentInstances":[],
+ "properties":[],
+ "attributes":[],
+ "forwardingPaths":{},
+ "ecompGeneratedNaming":true,
+ "serviceApiArtifacts":{},
+ "instantiationType":"A-la-carte",
+ "environmentContext":"General_Revenue-Bearing"
+ }'
+ success_codes:
+ - 200
+ - 201
+ result_map:
+ id: $b{$.uniqueId}
+ uuid: $b{$.uuid}
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-distribute-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-distribute-schema-elalto.yaml
new file mode 100644
index 00000000..74431223
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-distribute-schema-elalto.yaml
@@ -0,0 +1,44 @@
+# 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: service-model-distribute
+description: Distributes the Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model UUID (can be found from service-model-list)
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: true
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/distribution/PROD/activate
+ method: POST
+ body: '{}'
+ success_codes:
+ - 200
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-list-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-list-schema-elalto.yaml
new file mode 100644
index 00000000..55fae0f5
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-list-schema-elalto.yaml
@@ -0,0 +1,80 @@
+# 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: service-model-list
+description: List the service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+results:
+ direction: landscape
+ attributes:
+ - name: uuid
+ description: UUID
+ type: string
+ scope: short
+ - name: id
+ description: uniqueId
+ type: string
+ scope: short
+ - name: invariant-uuid
+ description: Invariant UUID
+ type: string
+ scope: short
+ - name: name
+ description: Name
+ type: string
+ scope: short
+ - name: version
+ description: version
+ type: string
+ scope: short
+ - name: status
+ description: status
+ type: string
+ scope: short
+ - name: distribution-status
+ description: status
+ type: string
+ scope: short
+ - name: description
+ description: description
+ type: string
+ scope: long
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/followed
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ uuid: $b{services.[*].uuid}
+ id: $b{services.[*].uniqueId}
+ invariant-uuid: $b{services.[*].invariantUUID}
+ version: $b{services.[*].version}
+ name: $b{services.[*].name}
+ status: $b{services.[*].lifecycleState}
+ description: $b{services.[*].description}
+ distribution-status: $b{services.[*].distributionStatus}
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-set-property.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-set-property.yaml
new file mode 100644
index 00000000..33cd040a
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-set-property.yaml
@@ -0,0 +1,73 @@
+# 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: service-model-set-property
+description: Set property to a service model
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: service UniqueId
+ type: string
+ long_option: service-id
+ short_option: x
+ is_optional: false
+ - name: vf-resource-id
+ description: resource id provided by service ns_id.vf_id.vf_name
+ type: string
+ long_option: vf-resource-id
+ short_option: y
+ is_optional: false
+ - name: vf-id
+ description: resource id
+ type: string
+ long_option: vf-id
+ short_option: z
+ is_optional: false
+ - name: property-name
+ description: property name
+ type: string
+ long_option: property-name
+ short_option: b
+ is_optional: false
+ - name: property-value
+ description: property value
+ type: string
+ long_option: property-value
+ short_option: r
+ is_optional: false
+ - name: input-uuid
+ description: VF Model Input uuid
+ type: string
+ long_option: input-uuid
+ short_option: R
+ is_optional: false
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/resourceInstance/${vf-resource-id}/inputs
+ method: POST
+ body: '[{"constraints":[],"definition":false,"name":"${property-name}","parentUniqueId":"${input-uuid}","password":false,"required":false,"schema":{"property":{}},"toscaPresentation":{"ownerId":"${input-uuid}"},"type":"string","uniqueId":"${input-uuid}.${property-name}","value":"${property-value}"}]'
+ success_codes:
+ - 200
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-accept-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-accept-schema-elalto.yaml
new file mode 100644
index 00000000..0f5d03a3
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-accept-schema-elalto.yaml
@@ -0,0 +1,68 @@
+# 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: service-model-test-accept
+description: Accepts the Service model test in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model ID
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: false
+ - name: remarks
+ description: Remarks when accepting test
+ type: string
+ long_option: remarks
+ short_option: r
+ is_optional: false
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: NS checked out version unique ID
+ scope: short
+ type: string
+ - name: uuid
+ description: NS checked out version unique ID
+ scope: short
+ type: string
+ - name: version
+ description: VF version
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/lifecycleState/certify
+ method: POST
+ body: '{"userRemarks": "${remarks}"}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.uniqueId}
+ version: $b{$.version}
+ uuid: $b{$.unid} \ No newline at end of file
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-reject-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-reject-schema-elalto.yaml
new file mode 100644
index 00000000..eba54b21
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-reject-schema-elalto.yaml
@@ -0,0 +1,50 @@
+# 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: service-model-test-reject
+description: Rejects the Service model test in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model ID
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: false
+ - name: test-remark
+ description: Remarks when rejecting test
+ type: string
+ long_option: test-remark
+ short_option: r
+ is_optional: false
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/lifecycleState/failCertification
+ method: POST
+ body: '{"userRemarks": "${test-remark}"}'
+ success_codes:
+ - 200
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-request-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-request-schema-elalto.yaml
new file mode 100644
index 00000000..d3dc707e
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-request-schema-elalto.yaml
@@ -0,0 +1,50 @@
+# 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: service-model-test-request
+description: Request the certification of Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model ID
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: true
+ - name: remarks
+ description: Remarks when submitting for testing
+ type: string
+ long_option: remarks
+ short_option: r
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/lifecycleState/certificationRequest
+ method: POST
+ body: '{"userRemarks": "${remarks}"}'
+ success_codes:
+ - 200
+
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-start-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-start-schema-elalto.yaml
new file mode 100644
index 00000000..9c12957a
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-start-schema-elalto.yaml
@@ -0,0 +1,44 @@
+# 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: service-model-test-start
+description: Starts the testing of a Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model ID
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: true
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/lifecycleState/startCertification
+ method: POST
+ body: '{}'
+ success_codes:
+ - 200
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-undocheckout-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-undocheckout-schema-elalto.yaml
new file mode 100644
index 00000000..f4df3196
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-undocheckout-schema-elalto.yaml
@@ -0,0 +1,44 @@
+# 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: service-model-undocheckout
+description: Undo Checkout of Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-uuid
+ description: Service model UUIID (check service-model-list)
+ type: string
+ long_option: service-uuid
+ short_option: b
+ is_optional: true
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-uuid}/lifecycleState/UNDOCHECKOUT
+ method: POST
+ body: '{"userRemarks": null}'
+ success_codes:
+ - 200
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service2vf-model-list-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service2vf-model-list-schema-elalto.yaml
new file mode 100644
index 00000000..14d44529
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service2vf-model-list-schema-elalto.yaml
@@ -0,0 +1,73 @@
+# 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: service2vf-model-list
+description: List the VF in a given service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model uuid
+ type: string
+ short_option: z
+ long_option: service-id
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: vf-uuid
+ description: UUID
+ type: string
+ scope: short
+ - name: vf-name
+ description: name
+ type: string
+ scope: short
+ - name: vf-customization-uuid
+ description: customization UUID
+ type: string
+ scope: short
+ - name: vf-version
+ description: version
+ type: string
+ scope: short
+ - name: vf-id
+ description: customization UUID
+ type: string
+ scope: short
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ vf-id: $b{componentInstances.[*].uniqueId}
+ vf-uuid: $b{componentInstances.[*].componentUid}
+ vf-name: $b{componentInstances.[*].componentName}
+ vf-version: $b{componentInstances.[*].componentVersion}
+ vf-customization-uuid: $b{componentInstances.[*].customizationUUID}
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-add-artifact-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-add-artifact-schema-elalto.yaml
new file mode 100644
index 00000000..cbcc32ff
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-add-artifact-schema-elalto.yaml
@@ -0,0 +1,72 @@
+# 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: vf-model-add-artifact
+description: Add a artifact to a Virtual function
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: vf-id
+ description: VF UniqueId
+ type: string
+ long_option: vf-id
+ short_option: x
+ is_optional: false
+ - name: remarks
+ description: certification remarks
+ type: string
+ long_option: remarks
+ short_option: y
+ default_value: Uploaded from ONAP CLI
+ is_optional: true
+ - name: artifact
+ description: VNF CSAR file
+ type: byte
+ long_option: artifact
+ short_option: z
+ is_optional: false
+ - name: artifact-name
+ description: VNF CSAR name
+ type: string
+ long_option: artifact-name
+ short_option: b
+ is_optional: false
+ - name: user-id
+ description: Designer user id
+ type: string
+ long_option: user-id
+ short_option: e
+ default_value: cs0008
+ is_optional: true
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/resources/${vf-id}/artifacts
+ method: POST
+ headers:
+ Content-MD5: $s{md5:__body__}
+ USER_ID: ${user-id}
+ body: '{"payloadData":"${artifact}","artifactDisplayName":"${artifact-name}","artifactType":"OTHER","description":"${remarks}","artifactName":"${artifact-name}", "artifactLabel":"${artifact-name}","artifactGroupType":"DEPLOYMENT", artifactChecksum="$s{md5:artifact}"}'
+ success_codes:
+ - 200
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-archive-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-archive-schema-elalto.yaml
new file mode 100644
index 00000000..2fc0db3e
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-archive-schema-elalto.yaml
@@ -0,0 +1,44 @@
+# 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: vf-model-archive
+description: Archive VF model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vf-id
+ description: VF model ID
+ type: string
+ long_option: vf-id
+ short_option: b
+ is_optional: false
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/resources/${vf-id}/archive
+ method: POST
+ body: '{}'
+ success_codes:
+ - 200
+ - 417 \ No newline at end of file
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-certify-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-certify-schema-elalto.yaml
new file mode 100644
index 00000000..b7ac626f
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-certify-schema-elalto.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: vf-model-certify
+description: Certify a Virtual function
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: vf-id
+ description: VF UniqueId
+ type: string
+ long_option: vf-id
+ short_option: b
+ is_optional: false
+ - name: remarks
+ description: certification remarks
+ type: string
+ long_option: remarks
+ short_option: r
+ is_optional: true
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: VF version unique ID
+ scope: short
+ type: string
+ - name: uuid
+ description: VF UUID
+ scope: short
+ type: uuid
+ - name: version
+ description: VF version
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/resources/${vf-id}/lifecycleState/certify
+ method: POST
+ body: '{"userRemarks":"${remarks}"}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.uniqueId}
+ uuid: $b{$.uuid}
+ version: $b{$.version}
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkin-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkin-schema-elalto.yaml
new file mode 100644
index 00000000..a2db03f2
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkin-schema-elalto.yaml
@@ -0,0 +1,68 @@
+# 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: vf-model-checkin
+description: Checkin VF model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vf-id
+ description: VF model ID
+ type: string
+ long_option: vf-id
+ short_option: b
+ is_optional: false
+ - name: remarks
+ description: checkin remarks
+ type: string
+ long_option: remarks
+ short_option: r
+ default_value: Checked in by ONAP CLI
+ is_optional: false
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: VF version unique ID
+ scope: short
+ type: string
+ - name: version
+ description: VF version
+ scope: short
+ type: string
+ - name: uuid
+ description: VF uuid
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/resources/${vf-id}/lifecycleState/CHECKIN
+ method: POST
+ body: '{"userRemarks": "${remarks}"}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.uniqueId}
+ version: $b{$.version}
+ uuid: $b{$.uuid} \ No newline at end of file
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkout-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkout-schema-elalto.yaml
new file mode 100644
index 00000000..4ce33529
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkout-schema-elalto.yaml
@@ -0,0 +1,59 @@
+# 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: vf-model-checkout
+description: Checkout VF model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: vf-id
+ description: VF model ID
+ type: string
+ long_option: vf-id
+ short_option: b
+ is_optional: false
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: VF checked out version unique ID
+ scope: short
+ type: string
+ - name: version
+ description: VF version
+ scope: short
+ type: string
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/resources/${vf-id}/lifecycleState/CHECKOUT
+ method: POST
+ body: '{}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.uniqueId}
+ version: $b{$.version} \ No newline at end of file
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-create-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-create-schema-elalto.yaml
new file mode 100644
index 00000000..9d1b3e91
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-create-schema-elalto.yaml
@@ -0,0 +1,89 @@
+# 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: vf-model-create
+description: Create Virtual function from Vendor Software Product
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: name
+ description: Onap VF Name
+ type: string
+ short_option: x
+ long_option: name
+ is_optional: false
+ - name: description
+ description: Description for VF
+ type: string
+ short_option: y
+ long_option: description
+ is_optional: true
+ - name: vendor-name
+ description: Vendor name
+ type: string
+ long_option: vendor-name
+ short_option: z
+ is_optional: false
+ - name: vsp-id
+ description: VSP ID
+ type: string
+ long_option: vsp-id
+ short_option: b
+ is_optional: true
+ - name: vsp-version
+ description: VSP version
+ type: string
+ long_option: vsp-version
+ short_option: g
+ is_optional: true
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: VF ID
+ scope: short
+ type: string
+ - name: uuid
+ description: VF UUID
+ scope: short
+ type: string
+ - name: inputs
+ description: VNF Input ids
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/resources
+ method: POST
+ body: '{"contactId": "${host-username}", "vendorRelease": "1.0", "requirements": {}, "artifacts": {}, "capabilities": {}, "componentInstancesProperties": {}, "deploymentArtifacts": {}, "icon": "defaulticon", "vendorName": "${vendor-name}", "description": "${description}", "tags": ["CLI", "${name}"], "properties": [], "categories": [{"subcategories": [{"normalizedName": "abstract", "name": "Abstract", "uniqueId": "resourceNewCategory.generic.abstract", "icons": ["database"]}], "normalizedName": "generic", "name": "Generic", "uniqueId": "resourceNewCategory.generic"}], "name": "${name}", "toscaArtifacts": {}, "csarUUID": "${vsp-id}", "resourceType": "VF", "csarVersion": "${vsp-version}", "componentType": "RESOURCE", "componentInstancesAttributes": {}, "attributes": [], "componentInstances": []}'
+ context:
+ remove_empty_node: true
+ success_codes:
+ - 201
+ result_map:
+ id: $b{$.uniqueId}
+ uuid: $b{$.uuid}
+ inputs: $b{$.inputs.[*].uniqueId} \ No newline at end of file
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-list-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-list-schema-elalto.yaml
new file mode 100644
index 00000000..e05b1a30
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-list-schema-elalto.yaml
@@ -0,0 +1,84 @@
+# 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: vf-model-list
+description: List the VF resource model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+results:
+ direction: landscape
+ attributes:
+ - name: uuid
+ description: UUID
+ type: string
+ scope: short
+ - name: id
+ description: id
+ type: string
+ scope: short
+ - name: invariant-uuid
+ description: Invariant UUID
+ type: string
+ scope: short
+ - name: name
+ description: Name
+ type: string
+ scope: short
+ - name: version
+ description: version
+ type: string
+ scope: short
+ - name: status
+ description: status
+ type: string
+ scope: short
+ - name: description
+ description: description
+ type: string
+ scope: long
+ - name: vsp-uuid
+ description: VSP uuid
+ type: string
+ scope: long
+ - name: vsp-version
+ description: VSP version
+ type: string
+ scope: long
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/followed
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ uuid: $b{resources.[*].uuid}
+ id: $b{resources.[*].uniqueId}
+ invariant-uuid: $b{resources.[*].invariantUUID}
+ version: $b{resources.[*].version}
+ name: $b{resources.[*].name}
+ status: $b{resources.[*].lifecycleState}
+ description: $b{resources.[*].description}
+ vsp-uuid: $b{resources.[*].csarUUID}
+ vsp-version: $b{resources.[*].csarVersion}
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-create-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-create-schema-elalto.yaml
new file mode 100644
index 00000000..5276e521
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-create-schema-elalto.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: vlm-aggreement-create
+description: Create license aggreement
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: name
+ description: aggreement name
+ type: string
+ short_option: x
+ long_option: name
+ is_optional: false
+ - name: vlm-id
+ description: License Model ID
+ type: string
+ short_option: y
+ long_option: vlm-id
+ is_optional: false
+ - name: vlm-version
+ description: License Model version
+ type: string
+ short_option: e
+ long_option: vlm-version
+ is_optional: false
+ - name: vlm-feature-group-id
+ description: VLM feature group
+ type: string
+ short_option: g
+ long_option: vlm-feature-group-id
+ is_optional: false
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: aggreement ID
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/license-agreements
+ method: POST
+ body: '{"addedFeatureGroupsIds": ["${vlm-feature-group-id}"], "licenseTerm": {"choice": "Fixed_Term", "other": ""}, "name": "${name}"}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.value}
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-archive-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-archive-schema-elalto.yaml
new file mode 100644
index 00000000..cfe95415
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-archive-schema-elalto.yaml
@@ -0,0 +1,45 @@
+# 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: vlm-archive
+description: Archive Vendor License Model
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vlm-id
+ description: Onap VLM ID
+ type: string
+ short_option: x
+ long_option: vlm-id
+ is_optional: false
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/items/${vlm-id}/actions
+ method: PUT
+ body: '{"action": "ARCHIVE"}'
+ success_codes:
+ - 201
+ - 200
+ - 417 \ No newline at end of file
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-create-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-create-schema-elalto.yaml
new file mode 100644
index 00000000..9b1ef037
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-create-schema-elalto.yaml
@@ -0,0 +1,63 @@
+# 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: vlm-create
+description: Create License Model
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: vendor-name
+ description: vendor name
+ type: string
+ short_option: x
+ long_option: vendor-name
+ is_optional: false
+ - name: description
+ description: Description for License Model
+ type: string
+ short_option: y
+ long_option: description
+ is_optional: true
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: License Model ID
+ scope: short
+ type: uuid
+ - name: version
+ description: License Model version
+ scope: short
+ type: uuid
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models
+ method: POST
+ body: '{"vendorName": "${vendor-name}", "description": "${description}", "iconRef": "icon"}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.itemId}
+ version: $b{$.version.id} \ No newline at end of file
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-delete-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-delete-schema-elalto.yaml
new file mode 100644
index 00000000..064af3bb
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-delete-schema-elalto.yaml
@@ -0,0 +1,51 @@
+# 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: vlm-delete
+description: Delete License Model (certified vlms cannot be deleted)
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: vendor-name
+ description: vendor name
+ type: string
+ short_option: x
+ long_option: vendor-name
+ is_optional: false
+ - name: vlm-id
+ description: vlm id
+ type: string
+ short_option: y
+ long_option: vlm-id
+ is_optional: false
+
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}
+ method: DELETE
+ body: '{"vendorName": "${vendor-name}", "description": "vendor license model", "iconRef": "icon"}'
+ success_codes:
+ - 200
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-elalto.yaml
new file mode 100644
index 00000000..31172627
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-elalto.yaml
@@ -0,0 +1,83 @@
+# 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: vlm-entitlement-pool-create
+description: Create Entitlement Pool
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: name
+ description: Entitlement Pool name
+ type: string
+ short_option: x
+ long_option: name
+ is_optional: false
+ - name: vlm-id
+ description: License Model ID
+ type: string
+ short_option: y
+ long_option: vlm-id
+ is_optional: false
+ - name: vlm-version
+ description: License Model version
+ type: string
+ short_option: e
+ long_option: vlm-version
+ is_optional: false
+ - name: manufacture-reference-number
+ description: Manufature Reference Number
+ type: string
+ short_option: k
+ long_option: manufacture-reference-number
+ is_optional: false
+ - name: start-date
+ description: License start date (MM/DD/YYYY)
+ type: string
+ short_option: l
+ long_option: start-date
+ is_optional: false
+ - name: expiry-date
+ description: License end date (MM/DD/YYYY)
+ type: string
+ short_option: g
+ long_option: expiry-date
+ is_optional: false
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: Entitlement Pool ID
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/entitlement-pools
+ method: POST
+ body: '{"name":"${name}","time":{"choice":"","other":""},"startDate":"${start-date}","expiryDate":"${expiry-date}","manufacturerReferenceNumber":"${manufacture-reference-number}"}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.value}
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-elalto.yaml
new file mode 100644
index 00000000..04c7ac3a
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-elalto.yaml
@@ -0,0 +1,83 @@
+# 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: vlm-feature-group-create
+description: Create feature group Pool
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: name
+ description: Feature group name
+ type: string
+ short_option: x
+ long_option: name
+ is_optional: false
+ - name: vlm-id
+ description: License Model ID
+ type: string
+ short_option: y
+ long_option: vlm-id
+ is_optional: false
+ - name: vlm-version
+ description: License Model version
+ type: string
+ short_option: e
+ long_option: vlm-version
+ is_optional: false
+ - name: vlm-key-group-id
+ description: VLM keygroup
+ type: string
+ short_option: g
+ long_option: vlm-key-group-id
+ is_optional: false
+ - name: vlm-entitle-pool-id
+ description: VLM Entitlement pool
+ type: string
+ short_option: b
+ long_option: vlm-entitle-pool-id
+ is_optional: false
+ - name: part-number
+ description: Part number
+ type: string
+ short_option: c
+ long_option: part-number
+ is_optional: false
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: Feature group ID
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/feature-groups
+ method: POST
+ body: '{"name": "${name}", "addedLicenseKeyGroupsIds": ["${vlm-key-group-id}"], "addedEntitlementPoolsIds": ["${vlm-entitle-pool-id}"], "partNumber": "${part-number}"}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.value}
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-elalto.yaml
new file mode 100644
index 00000000..5f266ac4
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-elalto.yaml
@@ -0,0 +1,72 @@
+# 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: vlm-key-group-create
+description: Create License Key Group
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: vlm-id
+ description: License Model Id
+ type: string
+ short_option: c
+ long_option: vlm-id
+ is_optional: false
+ - name: vlm-version
+ description: License Model version
+ type: string
+ short_option: e
+ long_option: vlm-version
+ is_optional: false
+ - name: name
+ description: name
+ type: string
+ short_option: x
+ long_option: name
+ is_optional: false
+ - name: type
+ description: type of group (Universal, unique, one-time)
+ type: string
+ short_option: y
+ long_option: type
+ is_optional: false
+ default_value: Universal
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: License Model ID
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/license-key-groups
+ method: POST
+ body: '{"name": "${name}", "type": "${type}"}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.value} \ No newline at end of file
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-list-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-list-schema-elalto.yaml
new file mode 100644
index 00000000..70897538
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-list-schema-elalto.yaml
@@ -0,0 +1,46 @@
+# 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: vlm-list
+description: List the vendor license models in ONAP
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP HPA Integration Team (onap-discuss@lists.onap.org)
+
+results:
+ direction: landscape
+ attributes:
+ - name: vlm-name
+ description: name of the vendor license model
+ scope: short
+ type: string
+ - name: vlm-id
+ description: ID of the vendor license model
+ scope: short
+ type: string
+http:
+ service:
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ vlm-name: $b{results.[*].name}
+ vlm-id: $b{results.[*].id}
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-submit-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-submit-schema-elalto.yaml
new file mode 100644
index 00000000..d03b697b
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-submit-schema-elalto.yaml
@@ -0,0 +1,50 @@
+# 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: vlm-submit
+description: Submit Vendor License Model
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: vlm-id
+ description: Onap VLM ID
+ type: string
+ short_option: x
+ long_option: vlm-id
+ is_optional: false
+ - name: vlm-version
+ description: VLM version
+ type: string
+ short_option: y
+ long_option: vlm-version
+ is_optional: false
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/actions
+ method: PUT
+ body: '{"action": "Submit"}'
+ success_codes:
+ - 201
+ - 200
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-add-artifact-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-add-artifact-schema-elalto.yaml
new file mode 100644
index 00000000..00b8dca6
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-add-artifact-schema-elalto.yaml
@@ -0,0 +1,54 @@
+# 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: vsp-add-artifact
+description: Upload the CSAR/ZIP file to VSP
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vsp-id
+ description: Onap VSP ID
+ type: string
+ short_option: x
+ long_option: vsp-id
+ is_optional: false
+ - name: vsp-version
+ description: Onap VSP version
+ type: string
+ short_option: y
+ long_option: vsp-version
+ is_optional: false
+ - name: vsp-file
+ description: CSAR File path
+ type: binary
+ short_option: z
+ long_option: vsp-file
+ is_optional: false
+http:
+ request:
+ uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/versions/${vsp-version}/orchestration-template-candidate
+ method: POST
+ body: '${vsp-file}'
+ multipart_entity_name: 'upload'
+ headers:
+ Content-type: 'multipart/form-data'
+ Accept: '*/*'
+ USER_ID: "${host-username}"
+ success_codes:
+ - 200
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-archive-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-archive-schema-elalto.yaml
new file mode 100644
index 00000000..5cd451dd
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-archive-schema-elalto.yaml
@@ -0,0 +1,45 @@
+# 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: vsp-archive
+description: Archive Vendor Software Product
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vsp-id
+ description: Onap VSP ID
+ type: string
+ short_option: x
+ long_option: vsp-id
+ is_optional: false
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/items/${vsp-id}/actions
+ method: PUT
+ body: '{"action": "ARCHIVE"}'
+ success_codes:
+ - 201
+ - 200
+ - 417
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-commit-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-commit-schema-elalto.yaml
new file mode 100644
index 00000000..74bf414c
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-commit-schema-elalto.yaml
@@ -0,0 +1,56 @@
+# 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: vsp-commit
+description: Commit Vendor Software Product
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vsp-id
+ description: Onap VSP ID
+ type: string
+ short_option: x
+ long_option: vsp-id
+ is_optional: false
+ - name: vsp-version
+ description: VSP version
+ type: string
+ short_option: y
+ long_option: vsp-version
+ is_optional: false
+ - name: remarks
+ description: VSP remarks
+ type: string
+ short_option: z
+ long_option: remarks
+ is_optional: true
+ default_value: Created by OCOMP
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/items/${vsp-id}/versions/${vsp-version}/actions
+ method: PUT
+ body: '{"action":"Commit","commitRequest":{"message":"${remarks}"}}'
+ success_codes:
+ - 201
+ - 200
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema-elalto.yaml
new file mode 100644
index 00000000..17eb0f46
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema-elalto.yaml
@@ -0,0 +1,117 @@
+# 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: vsp-create
+description: Create Vendor Software Product
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vsp-name
+ description: Onap VSP Name
+ type: string
+ short_option: x
+ long_option: vsp-name
+ is_optional: false
+ - name: vsp-description
+ description: Description for VSP
+ type: string
+ short_option: y
+ long_option: vsp-description
+ is_optional: true
+ - name: vlm-version
+ description: License version
+ type: string
+ long_option: vlm-version
+ short_option: c
+ is_optional: true
+ default_value: 1.0
+ - name: vlm-vendor
+ description: License Model vendor
+ type: string
+ long_option: vlm-vendor
+ short_option: e
+ is_optional: false
+ - name: vlm-id
+ description: License Model ID
+ type: string
+ long_option: vlm-id
+ short_option: g
+ is_optional: false
+ - name: vlm-agreement-id
+ description: License Agreement ID
+ type: string
+ long_option: vlm-agreement-id
+ short_option: i
+ is_optional: false
+ - name: vlm-feature-group-id
+ description: Feature Group ID
+ type: string
+ long_option: vlm-feature-group-id
+ short_option: j
+ is_optional: false
+ - name: onboarding-method
+ description: Method to be used for onboarding (Manual or NetworkPackage)
+ type: string
+ long_option: onboarding-method
+ short_option: o
+ is_optional: false
+ default_value: NetworkPackage
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: VSP ID
+ scope: short
+ type: string
+ - name: version
+ description: VSP Model version
+ scope: short
+ type: string
+ - name: version-id
+ description: VSP Model version id
+ scope: short
+ type: uuid
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-software-products
+ method: POST
+ body: '{
+ "category": "resourceNewCategory.generic",
+ "vendorId": "${vlm-id}",
+ "subCategory": "resourceNewCategory.generic.network elements",
+ "description": "${vsp-description}",
+ "licensingVersion": "${vlm-version}",
+ "licensingData": {"featureGroups": ["${vlm-feature-group-id}"], "licenseAgreement": "${vlm-agreement-id}"},
+ "icon": "icon",
+ "onboardingMethod": "${onboarding-method}",
+ "vendorName": "${vlm-vendor}",
+ "name": "${vsp-name}"
+ }'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.itemId}
+ version: $b{$.version.name}
+ version-id: $b{$.version.id}
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-list-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-list-schema-elalto.yaml
new file mode 100644
index 00000000..269ecaca
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-list-schema-elalto.yaml
@@ -0,0 +1,73 @@
+# 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: vsp-list
+description: List of the Vendor Software Products
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+results:
+ direction: landscape
+ attributes:
+ - name: ID
+ description: VSP ID
+ scope: short
+ type: string
+ - name: name
+ description: VSP Name
+ scope: short
+ type: string
+ - name: vendor-name
+ description: Vendor name
+ scope: long
+ type: string
+ - name: version
+ description: Version
+ scope: short
+ type: string
+ - name: status
+ description: status
+ scope: short
+ type: string
+ - name: license-id
+ description: license aggreement
+ scope: long
+ type: string
+ - name: license-version
+ description: license version
+ scope: long
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-software-products
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ ID: $b{results.[*].id}
+ name: $b{results.[*].name}
+ vendor-name: $b{results.[*].vendorName}
+ version: $b{results.[*].version.id}
+ status: $b{results.[*].status}
+ license-id: $b{results.[*].licensingData.licenseAgreement}
+ license-version: $b{results.[*].licensingVersion.id}
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-package-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-package-schema-elalto.yaml
new file mode 100644
index 00000000..6e2deae2
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-package-schema-elalto.yaml
@@ -0,0 +1,51 @@
+# 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: vsp-package
+description: Package Vendor Software Product
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vsp-id
+ description: Onap VSP ID
+ type: string
+ short_option: x
+ long_option: vsp-id
+ is_optional: false
+ - name: vsp-version
+ description: VSP version
+ type: string
+ short_option: y
+ long_option: vsp-version
+ is_optional: false
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/versions/${vsp-version}/actions
+ method: PUT
+ body: '{"action": "Create_Package"}'
+ success_codes:
+ - 201
+ - 200
+ sample_response:
+ body: ''
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema-elalto.yaml
new file mode 100644
index 00000000..02dfecdb
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema-elalto.yaml
@@ -0,0 +1,49 @@
+# 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: vsp-submit
+description: Submit Vendor Software Product
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vsp-id
+ description: Onap VSP ID
+ type: string
+ short_option: x
+ long_option: vsp-id
+ is_optional: false
+ - name: vsp-version
+ description: VSP version
+ type: string
+ short_option: y
+ long_option: vsp-version
+ is_optional: false
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/versions/${vsp-version}/actions
+ method: PUT
+ body: '{"action": "Submit"}'
+ success_codes:
+ - 201
+ - 200
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-validate-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-validate-schema-elalto.yaml
new file mode 100644
index 00000000..bbc03ffd
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-validate-schema-elalto.yaml
@@ -0,0 +1,65 @@
+# 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: vsp-validate
+description: Validate the uploaded Vendor Software Product
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vsp-id
+ description: Onap VSP ID
+ type: string
+ short_option: x
+ long_option: vsp-id
+ is_optional: false
+ - name: vsp-version
+ description: VSP version
+ type: string
+ short_option: y
+ long_option: vsp-version
+ is_optional: false
+
+results:
+ direction: portrait
+ attributes:
+ - name: status
+ description: Validation status
+ scope: short
+ type: string
+ - name: errors
+ description: Validation messages
+ scope: short
+ type: json
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/versions/${vsp-version}/orchestration-template-candidate/process
+ method: PUT
+ body: '{}'
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ status: $b{$.status}
+ errors: $b{$.errors}
diff --git a/products/onap-elalto/features/sdnc/src/main/resources/open-cli-schema/vf-preload-schema-elalto.yaml b/products/onap-elalto/features/sdnc/src/main/resources/open-cli-schema/vf-preload-schema-elalto.yaml
new file mode 100644
index 00000000..83cee397
--- /dev/null
+++ b/products/onap-elalto/features/sdnc/src/main/resources/open-cli-schema/vf-preload-schema-elalto.yaml
@@ -0,0 +1,42 @@
+# 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: vf-preload
+description: Preload SDNC with parameter values for a VF module in ONAP
+
+info:
+ product: onap-elalto
+ service: sdnc
+ author: Intel ONAP HPA integration team (onap-discuss@lists.onap.org)
+
+
+parameters:
+ - name: preload-file
+ description: File containing preload values
+ type: text
+ short_option: y
+ long_option: preload-file
+ is_optional: false
+
+http:
+ service:
+ auth: basic
+ mode: direct
+ request:
+ uri: /restconf/operations/VNF-API:preload-vnf-topology-operation
+ method: POST
+ body: '${preload-file}'
+ success_codes:
+ - 200
diff --git a/products/onap-elalto/features/so/src/main/resources/open-cli-schema/service-create-schema-elalto.yaml b/products/onap-elalto/features/so/src/main/resources/open-cli-schema/service-create-schema-elalto.yaml
new file mode 100644
index 00000000..0755729d
--- /dev/null
+++ b/products/onap-elalto/features/so/src/main/resources/open-cli-schema/service-create-schema-elalto.yaml
@@ -0,0 +1,234 @@
+# 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: service-create
+description: Create a service instance using SO
+
+info:
+ product: onap-elalto
+ service: so
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: model-invariant-id
+ description: model invariant id generated by ASDC.
+ type: string
+ short_option: e
+ long_option: model-invariant-id
+ is_optional: false
+ - name: model-uuid
+ description: model uuid generated by ASDC.
+ type: string
+ short_option: g
+ long_option: model-uuid
+ is_optional: false
+ - name: model-name
+ description: model name as provided in ASDC design time.
+ type: string
+ short_option: i
+ long_option: model-name
+ is_optional: false
+ - name: model-version
+ description: model-version
+ type: string
+ short_option: j
+ long_option: model-version
+ is_optional: false
+ - name: model-version-id
+ description: model-version-id
+ type: string
+ short_option: n
+ long_option: model-version-id
+ is_optional: false
+ - name: customer
+ description: unique id for customer
+ type: string
+ short_option: c
+ long_option: customer
+ is_optional: false
+ - name: requestor-id
+ description: requestor ID
+ type: string
+ short_option: q
+ long_option: requestor-id
+ is_optional: false
+ - name: instance-name
+ description: service instance name
+ type: string
+ short_option: k
+ long_option: instance-name
+ is_optional: false
+ - name: supress-rollback
+ description: rollback changes if instantiation fails.
+ type: bool
+ short_option: r
+ long_option: supress-rollback
+ is_optional: true
+ - name: service-type
+ description: subscription service type
+ type: string
+ short_option: w
+ long_option: service-type
+ is_optional: false
+ - name: ala-carte
+ description: ala carte flag, defaults to true
+ type: string
+ short_option: A
+ long_option: ala-carte
+ is_optional: true
+ default_value: true
+ - name: customer-latitude
+ description: customer latitude, part of customer location
+ type: string
+ short_option: la
+ long_option: customer-latitude
+ is_optional: true
+ - name: customer-longitude
+ description: customer longitude, part of customer location
+ type: string
+ short_option: lo
+ long_option: customer-longitude
+ is_optional: true
+ - name: customer-name
+ description: customer name, part of customer location
+ type: string
+ short_option: y
+ long_option: customer-name
+ is_optional: true
+ - name: homing-solution
+ description: homing solution to use [oof|sniro]
+ type: string
+ short_option: H
+ long_option: homing-solution
+ is_optional: true
+ - name: orchestrator
+ description: orchestrator to use [multicloud|openstack(default)]
+ type: string
+ short_option: o
+ long_option: orchestrator
+ is_optional: true
+ - name: api
+ description: api to use [GR_API|VNF_API]
+ type: string
+ short_option: P
+ long_option: api
+ is_optional: true
+ default_value: GR_API
+ - name: subscriber-name
+ description: subscriber name
+ type: string
+ short_option: S
+ long_option: subscriber-name
+ is_optional: true
+ - name: project-name
+ description: project name
+ type: string
+ short_option: x
+ long_option: project-name
+ is_optional: true
+ - name: owning-entity-id
+ description: owning entity id
+ type: string
+ short_option: z
+ long_option: owning-entity-id
+ is_optional: true
+ - name: owning-entity-name
+ description: owning entity name
+ type: string
+ short_option: O
+ long_option: owning-entity-name
+ is_optional: true
+
+results:
+ direction: portrait
+ attributes:
+ - name: service-id
+ description: instance id for the created service.
+ type: string
+ scope: short
+http:
+ service:
+ name: so
+ version: v6
+ auth: basic
+ mode: direct
+ request:
+ uri: /onap/so/infra/serviceInstantiation/v7/serviceInstances
+ method: POST
+ body: '{
+ "requestDetails":{
+ "modelInfo":{
+ "modelType":"service",
+ "modelInvariantId":"${model-invariant-id}",
+ "modelUuid":"${model-uuid}",
+ "modelName":"${model-name}",
+ "modelVersion":"${model-version}",
+ "modelVersionId":"${model-version-id}",
+ "modelInvariantUuid" : "${model-invariant-id}"
+ },
+ "subscriberInfo":{
+ "globalSubscriberId":"${customer}",
+ "subscriberName":"${subscriber-name}"
+ },
+ "requestInfo":{
+ "requestorId":"${requestor-id}",
+ "instanceName":"${instance-name}",
+ "source":"CLI",
+ "suppressRollback":"${supress-rollback}"
+ },
+ "requestParameters":{
+ "subscriptionServiceType":"${service-type}",
+ "aLaCarte":"${ala-carte}",
+ "testApi":"${api}",
+ "userParams":[
+ {
+ "name":"Customer_Location",
+ "value":{
+ "customerLatitude":"${customer-latitude}",
+ "customerLongitude":"${customer-longitude}",
+ "customerName":"${customer-name}"
+ }
+ },
+ {
+ "name":"Homing_Solution",
+ "value":"${homing-solution}"
+ },
+ {
+ "name":"orchestrator",
+ "value":"${orchestrator}"
+ }
+ ]
+ },
+ "project":{
+ "projectName":"${project-name}"
+ },
+ "owningEntity":{
+ "owningEntityId":"${owning-entity-id}",
+ "owningEntityName":"${owning-entity-name}"
+ }
+ }
+ }'
+
+ success_codes:
+ - 202
+ result_map:
+ service-id: $b{$.requestReferences.instanceId}
+ sample_response:
+ body: '{
+ "requestReferences":{
+ "instanceId":"${instance-id}",
+ "requestId":"375ba428-65e7-4f2b-afb9-74735ac6bfd0"
+ }
+ }'
diff --git a/products/onap-elalto/features/so/src/main/resources/open-cli-schema/service-update-schema-elalto.yaml b/products/onap-elalto/features/so/src/main/resources/open-cli-schema/service-update-schema-elalto.yaml
new file mode 100644
index 00000000..796038ff
--- /dev/null
+++ b/products/onap-elalto/features/so/src/main/resources/open-cli-schema/service-update-schema-elalto.yaml
@@ -0,0 +1,162 @@
+# 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: service-update
+description: Update a service instance using SO
+
+info:
+ product: onap-elalto
+ service: so
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: service-id
+ description: unique id for service instance
+ type: string
+ short_option: x
+ long_option: service-instace-id
+ is_optional: false
+ - name: cloud-region
+ description: cloud region identifier
+ type: string
+ short_option: l
+ long_option: cloud-region
+ is_optional: false
+ - name: tenant-id
+ description: tenant id
+ type: string
+ short_option: b
+ long_option: tenant-id
+ is_optional: false
+ - name: model-invariant-id
+ description: model invariant id generated by ASDC.
+ type: string
+ short_option: e
+ long_option: model-invariant-id
+ is_optional: false
+ - name: model-uuid
+ description: model uuid generated by ASDC.
+ type: string
+ short_option: g
+ long_option: model-uuid
+ is_optional: false
+ - name: model-name
+ description: model name as provided in ASDC design time.
+ type: string
+ short_option: i
+ long_option: model-name
+ is_optional: false
+ - name: model-version
+ description: model-version
+ type: string
+ short_option: j
+ long_option: model-version
+ is_optional: false
+ - name: model-version-id
+ description: model-version-id
+ type: string
+ short_option: n
+ long_option: model-version-id
+ is_optional: false
+ - name: customer
+ description: unique id for customer
+ type: string
+ short_option: c
+ long_option: customer
+ is_optional: false
+ - name: requestor-id
+ description: requestor ID
+ type: string
+ short_option: q
+ long_option: requestor-id
+ is_optional: false
+ - name: instance-name
+ description: service instance name
+ type: string
+ short_option: k
+ long_option: instance-name
+ is_optional: false
+ - name: supress-rollback
+ description: rollback changes if instantiation fails.
+ type: bool
+ short_option: r
+ long_option: supress-rollback
+ is_optional: true
+ - name: service-type
+ description: subscription service type
+ type: string
+ short_option: w
+ long_option: service-type
+ is_optional: false
+
+results:
+ direction: portrait
+ attributes:
+ - name: service-id
+ description: instance id for the created service.
+ type: string
+ scope: short
+
+
+http:
+ service:
+ name: so
+ version: v6
+ auth: basic
+ mode: direct
+ request:
+ uri: /onap/so/infra/serviceInstantiation/v7/serviceInstances/${service-id}
+ method: PUT
+ body: '{
+ "requestDetails":{
+ "cloudConfiguration":{
+ "lcpCloudRegionId":"${cloud-region}",
+ "tenantId":"${tenant-id}"
+ },
+ "modelInfo":{
+ "modelType":"service",
+ "modelInvariantId":"${model-invariant-id}",
+ "modelNameVersionId":"${model-uuid}",
+ "modelName":"${model-name}",
+ "modelVersion":"${model-version}",
+ "modelVersionId":"${model-version-id}"
+ },
+ "subscriberInfo":{
+ "globalSubscriberId":"${customer}"
+ },
+ "requestInfo":{
+ "requestorId":"${requestor-id}",
+ "instanceName":"${instance-name}",
+ "source":"VID",
+ "suppressRollback":"${supress-rollback}"
+ },
+ "requestParameters":{
+ "subscriptionServiceType":"${service-type}",
+ "aLaCarte":true
+ }
+ }
+ }'
+
+ success_codes:
+ - 202
+ result_map:
+ service-id: $b{$.requestReferences.instanceId}
+ sample_response:
+ body: '{
+ "requestReferences":{
+ "instanceId":"${instance-id}",
+ "requestId":"375ba428-65e7-4f2b-afb9-74735ac6bfd0"
+ }
+ }'
diff --git a/products/onap-elalto/features/so/src/main/resources/open-cli-schema/vf-module-create-schema-elalto.yaml b/products/onap-elalto/features/so/src/main/resources/open-cli-schema/vf-module-create-schema-elalto.yaml
new file mode 100644
index 00000000..9e6a78f7
--- /dev/null
+++ b/products/onap-elalto/features/so/src/main/resources/open-cli-schema/vf-module-create-schema-elalto.yaml
@@ -0,0 +1,256 @@
+# 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: vf-module-create
+description: Create a VF Module
+
+info:
+ product: onap-elalto
+ service: so
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: lcp-cloudregion-id
+ description: AIC LCP node location identifier
+ type: string
+ short_option: l
+ long_option: lcp-cloudregion-id
+ is_optional: false
+ - name: cloud-owner
+ description: cloud region cloud owner
+ type: string
+ short_option: co
+ long_option: cloud-owner
+ is_optional: false
+ - name: tenant-id
+ description: openstack tenant id (uuid)
+ type: string
+ short_option: w
+ long_option: tenant-id
+ is_optional: false
+ - name: vnf-instance-id
+ description: vnf instance id
+ type: string
+ short_option: y
+ long_option: vnf-instance-id
+ is_optional: false
+ - name: service-instance-id
+ description: unique id for service instance
+ type: string
+ short_option: x
+ long_option: service-instace-id
+ is_optional: false
+ - name: parent-service-model
+ description: parent service model name
+ type: string
+ short_option: z
+ long_option: parent-service-model
+ is_optional: false
+ - name: service-model-id
+ description: service model id
+ type: string
+ short_option: si
+ long_option: service-model-id
+ is_optional: false
+ - name: service-model-invariant-id
+ description: service model invariant id
+ type: string
+ short_option: sd
+ long_option: service-model-invariant-id
+ is_optional: false
+ - name: service-model-version
+ description: service model version
+ type: string
+ short_option: sv
+ long_option: service-model-version
+ is_optional: false
+ - name: supress-rollback
+ description: rollback changes if instantiation fails.
+ type: bool
+ short_option: r
+ long_option: supress-rollback
+ is_optional: false
+ - name: instance-name
+ description: service instance name
+ type: string
+ short_option: i
+ long_option: instance-name
+ is_optional: false
+ - name: vf-module-model-invariant-id
+ description: Invariant Id of vf module model in SO catalogdb
+ type: string
+ short_option: vi
+ long_option: vf-module-model-invariant-id
+ is_optional: false
+ - name: vf-module-model-version-id
+ description: version Id of vf module model in SO catalogdb
+ type: string
+ short_option: vv
+ long_option: vf-module-model-version-id
+ is_optional: false
+ - name: vf-module-model-name
+ description: Model Name of vf module model in SO catalogdb
+ type: string
+ short_option: vn
+ long_option: vf-module-model-name
+ is_optional: false
+ - name: vf-module-model-customization-id
+ description: Customization Id of vf module model in SO catalogdb
+ type: string
+ short_option: vc
+ long_option: vf-module-model-customization-id
+ is_optional: false
+ - name: vf-module-model-version
+ description: version of vf module model in SO catalogdb
+ type: string
+ short_option: vm
+ long_option: vf-module-model-version
+ is_optional: false
+ - name: requestor-id
+ description: Id of requestor
+ type: string
+ short_option: R
+ long_option: requestor-id
+ is_optional: false
+ - name: vf-model-name
+ description: name of vf model used in service model
+ type: string
+ short_option: vf
+ long_option: vf-model-name
+ is_optional: false
+ - name: vf-model-invariant-id
+ description: vf model invariant id
+ type: string
+ short_option: mi
+ long_option: vf-model-invariant-id
+ is_optional: false
+ - name: vf-model-version
+ description: vf model version
+ type: string
+ short_option: mv
+ long_option: vf-model-version
+ is_optional: false
+ - name: vf-model-id
+ description: vf model id
+ type: string
+ short_option: vid
+ long_option: vf-model-id
+ is_optional: false
+ - name: vf-model-customization-id
+ description: vf model customization id
+ type: string
+ short_option: mc
+ long_option: vf-model-customization-id
+ is_optional: false
+ - name: vf-model-customization-name
+ description: vf model customization name
+ type: string
+ short_option: mn
+ long_option: vf-model-customization-name
+ is_optional: false
+ - name: test-api
+ description: api for testing (VNF_API|GR_API)
+ type: string
+ short_option: api
+ long_option: test-api
+ is_optional: false
+ - name: use-preload
+ description: To use preloaded values or not
+ type: bool
+ short_option: up
+ long_option: use-preload
+ is_optional: false
+
+results:
+ direction: portrait
+ attribute:
+ - name: vf-instance-id
+ description: id for the created vf
+ type: string
+ scope: short
+
+http:
+ service:
+ name: so
+ version: v6
+ mode: direct
+ auth: basic
+ request:
+ uri: /onap/so/infra/serviceInstantiation/v7/serviceInstances/${service-instance-id}/vnfs/${vnf-instance-id}/vfModules
+ method: POST
+ body: '{
+ "requestDetails":{
+ "modelInfo":{
+ "modelType":"vfModule",
+ "modelInvariantId":"${vf-module-model-invariant-id}",
+ "modelVersionId":"${vf-module-model-version-id}",
+ "modelName":"${vf-module-model-name}",
+ "modelVersion":"${vf-module-model-version}",
+ "modelCustomizationId": "${vf-module-model-customization-id}",
+ "modelCustomizationName": "${vf-module-model-name}"
+ },
+ "cloudConfiguration":{
+ "lcpCloudRegionId":"${lcp-cloudregion-id}",
+ "tenantId":"${tenant-id}",
+ "cloudOwner":"${cloud-owner}"
+ },
+ "requestInfo":{
+ "instanceName":"${instance-name}",
+ "source":"VID",
+ "suppressRollback":"${supress-rollback}",
+ "requestorId" : "${requestor-id}"
+ },
+ "relatedInstanceList":[
+ {
+ "relatedInstance":{
+ "instanceId":"${service-instance-id}",
+ "modelInfo":{
+ "modelType":"service",
+ "modelInvariantId":"${service-model-invariant-id}",
+ "modelVersionId":"${service-model-id}",
+ "modelName":"${parent-service-model}",
+ "modelVersion":"${service-model-version}"
+ }
+ }
+ },
+ {
+ "relatedInstance":{
+ "instanceId":"${vnf-instance-id}",
+ "modelInfo":{
+ "modelType":"vnf",
+ "modelInvariantId":"${vf-model-invariant-id}",
+ "modelVersionId":"${vf-model-id}",
+ "modelName":"${vf-model-name}",
+ "modelVersion":"${vf-model-version}",
+ "modelCustomizationId": "${vf-model-customization-id}",
+ "modelCustomizationName":"${vf-model-customization-name}"
+ }
+ }
+ }
+ ],
+ "requestParameters":{
+ "userParams":[],
+ "testApi": "${test-api}",
+ "usePreload": true
+ }
+ }
+ }'
+
+ success_codes:
+ - 202
+ result_map:
+ vf-instance-id: $b{$.vfInstanceId}
+ sample_response:
+ body: '{ "vfInstanceId" : "234567AB" }'
diff --git a/products/onap-elalto/features/so/src/main/resources/open-cli-schema/vf-module-show-schema-elalto.yaml b/products/onap-elalto/features/so/src/main/resources/open-cli-schema/vf-module-show-schema-elalto.yaml
new file mode 100644
index 00000000..b298d0f6
--- /dev/null
+++ b/products/onap-elalto/features/so/src/main/resources/open-cli-schema/vf-module-show-schema-elalto.yaml
@@ -0,0 +1,83 @@
+# 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: vf-module-show
+description: Show a VF Module
+
+info:
+ product: onap-elalto
+ service: so
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+results:
+ direction: landscape
+ attributes:
+ - name: name
+ description: Onap service name
+ scope: short
+ type: string
+ - name: version
+ description: Onap service version
+ scope: short
+ type: string
+ - name: url
+ description: Onap service base url
+ scope: short
+ type: url
+ - name: status
+ description: Onap service status
+ scope: short
+ type: digit
+ - name: nodes
+ description: Onap service running nodes
+ scope: long
+ type: json
+ - name: enable-ssl
+ description: Onap service is enabled with https or not
+ scope: long
+ type: string
+ - name: path
+ description: Onap service path
+ scope: long
+ type: string
+
+
+http:
+ service:
+ name: so
+ version: v6
+ auth: basic
+ mode: direct
+ request:
+ uri: /onap/so/infra/serviceInstantiation/v7/serviceInstances
+ method: GET
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ name: $b{$.[*].serviceName}
+ version: $b{$.[*].version}
+ url: $b{$.[*].url}
+ status: $b{$.[*].status}
+ enable-ssl: $b{$.[*].enable_ssl}
+ path: $b{$.[*].path}
+ nodes: $b{$.[*].nodes[*].ip}:$b{$.[*].nodes[*].port}
+ sample_response:
+ body: '{
+ "requestReferences":{
+ "instanceId":"${instance-id}",
+ "requestId":"375ba428-65e7-4f2b-afb9-74735ac6bfd0"
+ }
+ }'
diff --git a/products/onap-elalto/features/so/src/main/resources/open-cli-schema/vf-module-update-schema-elalto.yaml b/products/onap-elalto/features/so/src/main/resources/open-cli-schema/vf-module-update-schema-elalto.yaml
new file mode 100644
index 00000000..613cb2fb
--- /dev/null
+++ b/products/onap-elalto/features/so/src/main/resources/open-cli-schema/vf-module-update-schema-elalto.yaml
@@ -0,0 +1,143 @@
+# 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: vf-module-update
+description: Update a VF Module
+
+info:
+ product: onap-elalto
+ service: so
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: lcp-cloudregion-id
+ description: AIC LCP node location identifier
+ type: string
+ short_option: l
+ long_option: lcp-cloudregion-id
+ is_optional: false
+ - name: tenant-id
+ description: openstack tenant id (uuid)
+ type: string
+ short_option: w
+ long_option: tenant-id
+ is_optional: false
+ - name: vnf-instance-id
+ description: vnf instance id
+ type: string
+ short_option: y
+ long_option: vnf-instace-id
+ is_optional: false
+ - name: service-instance-id
+ description: unique id for service instance
+ type: string
+ short_option: x
+ long_option: service-instace-id
+ is_optional: false
+ - name: parenet-service-model
+ description: parent service model name
+ type: string
+ short_option: z
+ long_option: parenet-service-model
+ is_optional: false
+ - name: supress-rollback
+ description: rollback changes if instantiation fails.
+ type: bool
+ short_option: r
+ long_option: supress-rollback
+ is_optional: true
+ - name: instance-name
+ description: service instance name
+ type: string
+ short_option: i
+ long_option: instance-name
+ is_optional: false
+
+results:
+ direction: portrait
+ attribute:
+ - name: vf-instance-id
+ description: id for the created vf
+ type: string
+ scope: short
+
+http:
+ service:
+ name: so
+ version: v6
+ auth: basic
+ mode: direct
+ request:
+ uri: /onap/so/infra/serviceInstantiation/v7/serviceInstances/${service-instance-id}/vnfs/${vnf-instance-id}/vfModules
+ method: PUT
+ body: '{
+ "requestDetails":{
+ "modelInfo":{
+ "modelType":"vfModule",
+ "modelInvariantId":"ff5256d2-5a33-55df-13ab-12abad84e7ff",
+ "modelNameVersionId":"fe6478e5-ea33-3346-ac12-ab121484a3fe",
+ "modelName":"vSAMP12..base..module-0",
+ "modelVersion":"1"
+ },
+ "cloudConfiguration":{
+ "lcpCloudRegionId":"${lcp-cloudregion-id}",
+ "tenantId":"${tenant-id}"
+ },
+ "requestInfo":{
+ "instanceName":"${instance-name}",
+ "source":"VID",
+ "suppressRollback":"${supress-rollback}"
+ },
+ "relatedInstanceList":[
+ {
+ "relatedInstance":{
+ "instanceId":"${service-instance-id}",
+ "modelInfo":{
+ "modelType":"service",
+ "modelInvariantId":"ff3514e3-5a33-55df-13ab-12abad84e7ff",
+ "modelNameVersionId":"fe6985cd-ea33-3346-ac12-ab121484a3fe",
+ "modelName":"${parenet-service-model}",
+ "modelVersion":"1.0"
+ }
+ }
+ },
+ {
+ "relatedInstance":{
+ "instanceId":"${vnf-instance-id}",
+ "modelInfo":{
+ "modelType":"vnf",
+ "modelInvariantId":"ff5256d1-5a33-55df-13ab-12abad84e7ff",
+ "modelNameVersionId":"fe6478e4-ea33-3346-ac12-ab121484a3fe",
+ "modelName":"vSAMP12",
+ "modelVersion":"1.0",
+ "modelCustomizationName":"vSAMP12 1"
+ }
+ }
+ }
+ ],
+ "requestParameters":{
+ "userParams":[
+
+ ]
+ }
+ }
+ }'
+
+ success_codes:
+ - 202
+ result_mpa:
+ vf-instance-id: $b{$.vfInstanceId}
+ sample_response:
+ body: '{"vfInstanceId":"234567AB"}'
diff --git a/products/onap-elalto/features/so/src/main/resources/open-cli-schema/vnf-create-schema-elalto.yaml b/products/onap-elalto/features/so/src/main/resources/open-cli-schema/vnf-create-schema-elalto.yaml
new file mode 100644
index 00000000..3dc06057
--- /dev/null
+++ b/products/onap-elalto/features/so/src/main/resources/open-cli-schema/vnf-create-schema-elalto.yaml
@@ -0,0 +1,212 @@
+# 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: vnf-create
+description: Create a VNF
+
+info:
+ product: onap-elalto
+ service: so
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: cloud-region
+ description: cloud region identifier
+ type: string
+ short_option: l
+ long_option: cloud-region
+ is_optional: false
+ - name: tenant-id
+ description: openstack tenant id
+ type: string
+ short_option: z
+ long_option: tenant-id
+ is_optional: false
+ - name: product-family
+ description: service type for serivce (e.g. vLB)
+ type: string
+ short_option: w
+ long_option: product-family
+ is_optional: false
+ - name: instance-name
+ description: name of vnf instance to be created
+ type: string
+ short_option: o
+ long_option: instance-name
+ is_optional: false
+ - name: service-instance-id
+ description: unique id for service instance
+ type: string
+ short_option: y
+ long_option: service-instance-id
+ is_optional: false
+ - name: vf-model-invariant-id
+ description: vf model invariant id
+ type: string
+ short_option: b
+ long_option: vf-model-invariant-id
+ is_optional: false
+ - name: vf-model-uuid
+ description: model uuid for vf
+ type: string
+ short_option: c
+ long_option: vf-model-uuid
+ is_optional: false
+ - name: vf-model-name
+ description: vf model name
+ type: string
+ short_option: e
+ long_option: vf-model-name
+ is_optional: false
+ - name: vf-model-version
+ description: vf model version
+ type: string
+ short_option: g
+ long_option: vf-model-version
+ is_optional: false
+ - name: vf-model-customization-id
+ description: vf model customization id
+ type: string
+ short_option: i
+ long_option: vf-model-customization-id
+ is_optional: false
+ - name: vf-model-customization-name
+ description: vf model customization name
+ type: string
+ short_option: vn
+ long_option: vf-model-customization-name
+ is_optional: false
+ - name: service-model-invariant-id
+ description: model invariant id
+ type: string
+ short_option: j
+ long_option: service-model-invariant-id
+ is_optional: false
+ - name: service-model-uuid
+ description: model name version id
+ type: string
+ short_option: k
+ long_option: service-model-uuid
+ is_optional: false
+ - name: service-model-name
+ description: service model name
+ type: string
+ short_option: q
+ long_option: service-model-name
+ is_optional: false
+ - name: service-model-version
+ description: service model version
+ type: string
+ short_option: n
+ long_option: service-model-version
+ is_optional: false
+ - name: requestor-id
+ description: requestor ID
+ type: string
+ short_option: r
+ long_option: requestor-id
+ is_optional: false
+ - name: platform-name
+ description: platform name
+ type: string
+ short_option: pn
+ long_option: platform-name
+ is_optional: false
+ - name: lob-name
+ description: libe of business name
+ type: string
+ short_option: lob
+ long_option: lob-name
+ is_optional: false
+
+
+
+
+results:
+ direction: portrait
+ attributes:
+ - name: vf-id
+ description: id for the created vnf
+ type: string
+ scope: short
+
+http:
+ service:
+ name: so
+ version: v6
+ mode: direct
+ auth: basic
+ request:
+ uri: /onap/so/infra/serviceInstantiation/v7/serviceInstances/${service-instance-id}/vnfs
+ method: POST
+ body: '{
+ "requestDetails":{
+ "modelInfo":{
+ "modelType":"vnf",
+ "modelInvariantId":"${vf-model-invariant-id}",
+ "modelVersionId":"${vf-model-uuid}",
+ "modelName":"${vf-model-name}",
+ "modelVersion":"${vf-model-version}",
+ "modelCustomizationId": "${vf-model-customization-id}",
+ "modelCustomizationName": "${vf-model-customization-name}"
+ },
+ "cloudConfiguration":{
+ "lcpCloudRegionId":"${cloud-region}",
+ "tenantId":"${tenant-id}"
+ },
+ "requestInfo":{
+ "requestorId":"${requestor-id}",
+ "instanceName":"${instance-name}",
+ "source":"VID",
+ "productFamilyId":"${product-family}"
+ },
+ "platform": {
+ "platformName": "${platform-name}"
+ },
+ "lineOfBusiness": {
+ "lineOfBusinessName": "${lob-name}"
+ },
+ "relatedInstanceList":[
+ {
+ "relatedInstance":{
+ "instanceId":"${service-instance-id}",
+ "modelInfo":{
+ "modelType":"service",
+ "modelInvariantId":"${service-model-invariant-id}",
+ "modelVersionId":"${service-model-uuid}",
+ "modelName":"${service-model-name}",
+ "modelVersion":"${service-model-version}"
+ }
+ }
+ }
+ ],
+ "requestParameters":{
+
+ }
+ }
+ }'
+
+ success_codes:
+ - 202
+ result_map:
+ vf-id: $b{$.requestReferences.instanceId}
+ sample_response:
+ body: '{
+ "requestReferences":{
+ "instanceId":"2a152730-f6eb-4dc6-9b81-7a6f6f263d71",
+ "requestId":"6402628f-7f67-4605-9e60-0d8632616d02"
+ }
+ }'
diff --git a/products/onap-elalto/features/so/src/main/resources/open-cli-schema/vnf-show-schema-elalto.yaml b/products/onap-elalto/features/so/src/main/resources/open-cli-schema/vnf-show-schema-elalto.yaml
new file mode 100644
index 00000000..2deaea46
--- /dev/null
+++ b/products/onap-elalto/features/so/src/main/resources/open-cli-schema/vnf-show-schema-elalto.yaml
@@ -0,0 +1,185 @@
+# 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: vnf-show
+description: Show a VNF
+
+info:
+ product: onap-elalto
+ service: so
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: cloud-region
+ description: cloud region identifier
+ type: string
+ short_option: l
+ long_option: cloud-region
+ is_optional: false
+ - name: tenant-id
+ description: openstack tenant id
+ type: string
+ short_option: z
+ long_option: tenant-id
+ is_optional: false
+ - name: product-family
+ description: service type for serivce (e.g. vLB)
+ type: string
+ short_option: w
+ long_option: product-family
+ is_optional: false
+ - name: instance-name
+ description: service instance name
+ type: string
+ short_option: o
+ long_option: instance-name
+ is_optional: false
+ - name: service-instance-id
+ description: unique id for service instance
+ type: string
+ short_option: y
+ long_option: service-instance-id
+ is_optional: false
+ - name: vf-model-invariant-id
+ description: vf model invariant id
+ type: string
+ short_option: b
+ long_option: vf-model-invariant-id
+ is_optional: false
+ - name: vf-model-uuid
+ description: model uuid for vf
+ type: string
+ short_option: c
+ long_option: vf-model-uuid
+ is_optional: false
+ - name: vf-model-name
+ description: vf model name
+ type: string
+ short_option: e
+ long_option: vf-model-name
+ is_optional: false
+ - name: vf-model-version
+ description: vf model version
+ type: string
+ short_option: g
+ long_option: vf-model-version
+ is_optional: false
+ - name: vf-model-customization-id
+ description: vf model customization id
+ type: string
+ short_option: i
+ long_option: vf-model-customization-id
+ is_optional: false
+ - name: service-model-invariant-id
+ description: model invariant id
+ type: string
+ short_option: j
+ long_option: service-model-invariant-id
+ is_optional: false
+ - name: service-model-uuid
+ description: model name version id
+ type: string
+ short_option: k
+ long_option: service-model-uuid
+ is_optional: false
+ - name: service-model-name
+ description: service model name
+ type: string
+ short_option: q
+ long_option: service-model-name
+ is_optional: false
+ - name: service-model-version
+ description: service model version
+ type: string
+ short_option: n
+ long_option: service-model-version
+ is_optional: false
+ - name: requestor-id
+ description: requestor ID
+ type: string
+ short_option: r
+ long_option: requestor-id
+ is_optional: false
+
+
+results:
+ direction: portrait
+ attributes:
+ - name: vf-id
+ description: id for the created vnf
+ type: string
+ scope: short
+
+http:
+ service:
+ name: so
+ version: v6
+ auth: basic
+ mode: direct
+ request:
+ uri: /onap/so/infra/serviceInstantiation/v7/serviceInstances/${service-instance-id}/vnfs
+ method: POST
+ body: '{
+ "requestDetails":{
+ "modelInfo":{
+ "modelType":"vnf",
+ "modelInvariantId":"${vf-model-invariant-id}",
+ "modelVersionId":"${vf-model-uuid}",
+ "modelName":"${vf-model-name}",
+ "modelVersion":"${vf-model-version}",
+ "modelCustomizationId":"${vf-model-customization-id}"
+ },
+ "cloudConfiguration":{
+ "lcpCloudRegionId":"${cloud-region}",
+ "tenantId":"${tenant-id}"
+ },
+ "requestInfo":{
+ "requestorId":"${requestor-id}",
+ "instanceName":"${instance-name}",
+ "source":"VID",
+ "productFamilyId":"${product-family}"
+ },
+ "relatedInstanceList":[
+ {
+ "relatedInstance":{
+ "instanceId":"${service-instance-id}",
+ "modelInfo":{
+ "modelType":"service",
+ "modelInvariantId":"${service-model-invariant-id}",
+ "modelVersionId":"${service-model-uuid}",
+ "modelName":"${service-model-name}",
+ "modelVersion":"${service-model-version}"
+ }
+ }
+ }
+ ],
+ "requestParameters":{
+
+ }
+ }
+ }'
+
+ success_codes:
+ - 202
+ result_map:
+ vf-id: $b{$.requestReferences.instanceId}
+ sample_response:
+ body: '{
+ "requestReferences":{
+ "instanceId":"2a152730-f6eb-4dc6-9b81-7a6f6f263d71",
+ "requestId":"6402628f-7f67-4605-9e60-0d8632616d02"
+ }
+ }'
diff --git a/products/onap-elalto/features/so/src/main/resources/open-cli-schema/vnf-update-schema-elalto.yaml b/products/onap-elalto/features/so/src/main/resources/open-cli-schema/vnf-update-schema-elalto.yaml
new file mode 100644
index 00000000..f1f85f57
--- /dev/null
+++ b/products/onap-elalto/features/so/src/main/resources/open-cli-schema/vnf-update-schema-elalto.yaml
@@ -0,0 +1,185 @@
+# 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: vnf-update
+description: Update a VNF
+
+info:
+ product: onap-elalto
+ service: so
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: cloud-region
+ description: cloud region identifier
+ type: string
+ short_option: l
+ long_option: cloud-region
+ is_optional: false
+ - name: tenant-id
+ description: openstack tenant id
+ type: string
+ short_option: z
+ long_option: tenant-id
+ is_optional: false
+ - name: product-family
+ description: service type for serivce (e.g. vLB)
+ type: string
+ short_option: w
+ long_option: product-family
+ is_optional: false
+ - name: instance-name
+ description: service instance name
+ type: string
+ short_option: o
+ long_option: instance-name
+ is_optional: false
+ - name: service-instance-id
+ description: unique id for service instance
+ type: string
+ short_option: y
+ long_option: service-instance-id
+ is_optional: false
+ - name: vf-model-invariant-id
+ description: vf model invariant id
+ type: string
+ short_option: b
+ long_option: vf-model-invariant-id
+ is_optional: false
+ - name: vf-model-uuid
+ description: model uuid for vf
+ type: string
+ short_option: c
+ long_option: vf-model-uuid
+ is_optional: false
+ - name: vf-model-name
+ description: vf model name
+ type: string
+ short_option: e
+ long_option: vf-model-name
+ is_optional: false
+ - name: vf-model-version
+ description: vf model version
+ type: string
+ short_option: g
+ long_option: vf-model-version
+ is_optional: false
+ - name: vf-model-customization-id
+ description: vf model customization id
+ type: string
+ short_option: i
+ long_option: vf-model-customization-id
+ is_optional: false
+ - name: service-model-invariant-id
+ description: model invariant id
+ type: string
+ short_option: j
+ long_option: service-model-invariant-id
+ is_optional: false
+ - name: service-model-uuid
+ description: model name version id
+ type: string
+ short_option: k
+ long_option: service-model-uuid
+ is_optional: false
+ - name: service-model-name
+ description: service model name
+ type: string
+ short_option: q
+ long_option: service-model-name
+ is_optional: false
+ - name: service-model-version
+ description: service model version
+ type: string
+ short_option: n
+ long_option: service-model-version
+ is_optional: false
+ - name: requestor-id
+ description: requestor ID
+ type: string
+ short_option: r
+ long_option: requestor-id
+ is_optional: false
+
+
+results:
+ direction: portrait
+ attributes:
+ - name: vf-id
+ description: id for the created vnf
+ type: string
+ scope: short
+
+http:
+ service:
+ name: so
+ version: v6
+ auth: basic
+ mode: direct
+ request:
+ uri: /onap/so/infra/serviceInstantiation/v7/serviceInstances/${service-instance-id}/vnfs
+ method: PUT
+ body: '{
+ "requestDetails":{
+ "modelInfo":{
+ "modelType":"vnf",
+ "modelInvariantId":"${vf-model-invariant-id}",
+ "modelVersionId":"${vf-model-uuid}",
+ "modelName":"${vf-model-name}",
+ "modelVersion":"${vf-model-version}",
+ "modelCustomizationId":"${vf-model-customization-id}"
+ },
+ "cloudConfiguration":{
+ "lcpCloudRegionId":"${cloud-region}",
+ "tenantId":"${tenant-id}"
+ },
+ "requestInfo":{
+ "requestorId":"${requestor-id}",
+ "instanceName":"${instance-name}",
+ "source":"VID",
+ "productFamilyId":"${product-family}"
+ },
+ "relatedInstanceList":[
+ {
+ "relatedInstance":{
+ "instanceId":"${service-instance-id}",
+ "modelInfo":{
+ "modelType":"service",
+ "modelInvariantId":"${service-model-invariant-id}",
+ "modelVersionId":"${service-model-uuid}",
+ "modelName":"${service-model-name}",
+ "modelVersion":"${service-model-version}"
+ }
+ }
+ }
+ ],
+ "requestParameters":{
+
+ }
+ }
+ }'
+
+ success_codes:
+ - 202
+ result_map:
+ vf-id: $b{$.requestReferences.instanceId}
+ sample_response:
+ body: '{
+ "requestReferences":{
+ "instanceId":"2a152730-f6eb-4dc6-9b81-7a6f6f263d71",
+ "requestId":"6402628f-7f67-4605-9e60-0d8632616d02"
+ }
+ }'
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
diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-create-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-create-schema.yaml
new file mode 100644
index 00000000..4402b113
--- /dev/null
+++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-create-schema.yaml
@@ -0,0 +1,82 @@
+# 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-nslcm-create
+description: vfc nslcm create ns
+
+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
+ - name: ns-csar-name
+ description: ns's name of csar
+ type: string
+ short_option: n
+ long_option: ns-csar-name
+ is_optional: false
+ - name: customer-name
+ description: customer name
+ type: string
+ short_option: q
+ long_option: customer-name
+ is_optional: false
+ - name: service-type
+ description: service type
+ type: string
+ short_option: S
+ long_option: service-type
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: ns-instance-id
+ description: ns-instance-id
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/nslcm/v1/ns
+ method: POST
+ context:
+ remove_empty_node: true
+ body: '{
+ "context": {
+ "globalCustomerId": "${customer-name}",
+ "serviceType": "${service-type}"
+ },
+ "csarId": "${ns-csar-uuid}",
+ "nsName": "${ns-csar-name}",
+ "description": "description"
+ }'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 201
+ result_map:
+ ns-instance-id: $b{$.nsInstanceId}
diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-delete-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-delete-schema.yaml
new file mode 100644
index 00000000..4856637a
--- /dev/null
+++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-delete-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-nslcm-delete
+description: vfc nslcm delete ns
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+parameters:
+ - name: ns-instance-id
+ description: ns's instance id
+ type: string
+ short_option: c
+ long_option: ns-instance-id
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: status
+ description: status
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/nslcm/v1/ns/${ns-instance-id}
+ method: DELETE
+ context:
+ remove_empty_node: true
+ body: '{}'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 204
+ result_map:
+ status: ${success_codes}
diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-get-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-get-schema.yaml
new file mode 100644
index 00000000..dc464944
--- /dev/null
+++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-get-schema.yaml
@@ -0,0 +1,63 @@
+# 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-nslcm-get
+description: vfc nsclm get the status of creating ns
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+results:
+ direction: landscape
+ attributes:
+ - name: ns-instance-id
+ description: ns-instance-id
+ scope: short
+ type: string
+ - name: ns-name
+ description: ns-name
+ scope: short
+ type: string
+ - name: description
+ description: description
+ scope: short
+ type: string
+ - name: nsd-id
+ description: nsd-id
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/nslcm/v1/ns
+ method: GET
+ context:
+ remove_empty_node: true
+ body: '{}'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 200
+ result_map:
+ ns-instance-id: $b{$.nsInstanceId}
+ ns-name: $b{$.nsName}
+ description: $b{$.description}
+ nsd-id: $b{$.nsdId}
diff --git a/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-instantiate-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-instantiate-schema.yaml
new file mode 100644
index 00000000..8741eff4
--- /dev/null
+++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-instantiate-schema.yaml
@@ -0,0 +1,74 @@
+# 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-nslcm-instantiate
+description: vfc nslcm instantiate ns
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+parameters:
+ - name: ns-instance-id
+ description: ns's instance id
+ type: string
+ short_option: i
+ long_option: ns-instance-id
+ is_optional: false
+ - name: location
+ description: localtion(vimid)
+ type: string
+ short_option: c
+ long_option: location
+ is_optional: false
+ - name: sdn-controller-id
+ description: sdn controller id
+ type: string
+ short_option: n
+ long_option: sdn-controller-id
+ 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/nslcm/v1/ns/${ns-instance-id}/instantiate
+ method: POST
+ context:
+ remove_empty_node: true
+ body: '{
+ "additionalParamForNs":
+ {
+ "sdncontroller": "${sdn-controller-id}",
+ "location": "${location}"
+ }
+ }'
+ 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/nslcm/vfc-nslcm-terminate-schema.yaml b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-terminate-schema.yaml
new file mode 100644
index 00000000..24b0ba61
--- /dev/null
+++ b/products/onap-elalto/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-terminate-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-nslcm-terminate
+description: vfc nslcm terminate ns
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+parameters:
+ - name: ns-instance-id
+ description: ns's instance id
+ type: string
+ short_option: i
+ long_option: ns-instance-id
+ 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/nslcm/v1/ns/${ns-instance-id}/terminate
+ method: POST
+ 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/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema-elalto.yaml b/products/onap-elalto/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema-elalto.yaml
new file mode 100644
index 00000000..1eca1bb1
--- /dev/null
+++ b/products/onap-elalto/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema-elalto.yaml
@@ -0,0 +1,52 @@
+# Copyright 2018 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: csar-create
+description: Uploads the CSARs in marketplace
+
+
+info:
+ product: onap-elalto
+ service: marketplace
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: csar-file
+ description: CSAR File path
+ type: binary
+ short_option: x
+ long_option: csar-file
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: csarId
+ description: CSAR id
+ scope: short
+ type: string
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars
+ method: POST
+ body: ${csar-file}
+ multipart_entity_name: file
+ success_codes:
+ - 200
+ result_map:
+ csarId: $b{$.csarId} \ No newline at end of file
diff --git a/products/onap-elalto/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema-elalto.yaml b/products/onap-elalto/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema-elalto.yaml
new file mode 100644
index 00000000..b0e032db
--- /dev/null
+++ b/products/onap-elalto/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema-elalto.yaml
@@ -0,0 +1,41 @@
+# Copyright 2018 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: csar-delete
+description: Delete CSARs in marketplace
+
+info:
+ product: onap-elalto
+ service: marketplace
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: csar-id
+ description: Onap CSAR id
+ type: string
+ short_option: x
+ long_option: csar-id
+ is_optional: false
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars/${csar-id}
+ method: DELETE
+ success_codes:
+ - 201
+ - 200 \ No newline at end of file
diff --git a/products/onap-elalto/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema-elalto.yaml b/products/onap-elalto/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema-elalto.yaml
new file mode 100644
index 00000000..b16a5490
--- /dev/null
+++ b/products/onap-elalto/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema-elalto.yaml
@@ -0,0 +1,63 @@
+# Copyright 2018 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: csar-list
+description: Lists the CSARs in marketplace
+
+
+info:
+ product: onap-elalto
+ service: marketplace
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+results:
+ direction: landscape
+ attributes:
+ - name: csarId
+ description: CSAR Id
+ scope: short
+ type: string
+ - name: name
+ description: CSAR Name
+ scope: short
+ type: string
+ - name: size
+ description: CSAR size
+ scope: short
+ type: url
+ - name: downloadUri
+ description: CSAR download URL
+ scope: short
+ type: url
+ - name: provider
+ description: CSAR Provider
+ scope: short
+ type: string
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars
+ method: GET
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ csarId: $b{$.[*].csarId}
+ name: $b{$.[*].name}
+ size: $b{$.[*].size}
+ downloadUri: $b{$.[*].downloadUri}
+ provider: $b{$.[*].provider} \ No newline at end of file
diff --git a/products/onap-elalto/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema-elalto.yaml b/products/onap-elalto/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema-elalto.yaml
new file mode 100644
index 00000000..036a991e
--- /dev/null
+++ b/products/onap-elalto/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema-elalto.yaml
@@ -0,0 +1,66 @@
+# Copyright 2018 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: csar-show
+description: Show details of the CSARs in marketplace
+
+
+info:
+ product: onap-elalto
+ service: marketplace
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: csar-id
+ description: Onap CSAR id
+ type: string
+ short_option: x
+ long_option: csar-id
+ is_optional: false
+
+results:
+ direction: portrait
+ attributes:
+ - name: name
+ description: CSAR Name
+ scope: short
+ type: string
+ - name: size
+ description: CSAR size
+ scope: short
+ type: url
+ - name: downloadUri
+ description: CSAR download URL
+ scope: short
+ type: url
+ - name: provider
+ description: CSAR Provider
+ scope: short
+ type: string
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars/${csar-id}
+ method: GET
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ name: $b{$.name}
+ size: $b{$.size}
+ downloadUri: $b{$.downloadUri}
+ provider: $b{$.provider} \ No newline at end of file
diff --git a/products/onap-elalto/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list-elalto.yaml b/products/onap-elalto/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list-elalto.yaml
new file mode 100644
index 00000000..17edea69
--- /dev/null
+++ b/products/onap-elalto/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list-elalto.yaml
@@ -0,0 +1,47 @@
+# Copyright 2018 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: vnftest-list
+description: Lists the VNF test cases in VNF Test Platform (VTP)
+
+info:
+ product: onap-elalto
+ service: vtp
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+results:
+ direction: landscape
+ attributes:
+ - name: tescase
+ description: Testcase name
+ scope: short
+ type: string
+ - name: testsuite
+ description: Test suite name
+ scope: short
+ type: string
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /onapapi/vnfsdk-marketplace/v1/vtp/scenarios/onap-vtp/testcases
+ method: GET
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ tescase: $b{$.[*].testCaseName}
+ testsuite: $b{$.[*].testSuiteName} \ No newline at end of file
diff --git a/products/onap-elalto/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run-elalto.yaml b/products/onap-elalto/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run-elalto.yaml
new file mode 100644
index 00000000..3badcb4e
--- /dev/null
+++ b/products/onap-elalto/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run-elalto.yaml
@@ -0,0 +1,84 @@
+# Copyright 2018 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: vnftest-run
+description: Runs the VNF test cases in VNF Test Platform (VTP)
+
+info:
+ product: onap-elalto
+ service: vtp
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+parameters:
+ - name: testcase-name
+ description: VNF test case name
+ type: string
+ short_option: x
+ long_option: testcase-name
+ is_optional: false
+ - name: param
+ description: VNF test case name params, and can be repeated.
+ type: map
+ short_option: y
+ long_option: param
+ is_optional: true
+ - name: testsuite-name
+ description: VNF test suite name
+ type: string
+ short_option: z
+ long_option: testsuite-name
+ is_optional: false
+results:
+ direction: portrait
+ attributes:
+ - name: executionId
+ description: Testcase execution Id
+ scope: short
+ type: string
+ - name: status
+ description: Test status
+ scope: short
+ type: string
+ default_value: $s{env:BUILD_TAG}
+ - name: startTime
+ description: Testcase startTime
+ scope: short
+ type: string
+ - name: endTime
+ description: Testcase endTime
+ scope: short
+ type: string
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /onapapi/vnfsdk-marketplace/v1/vtp/executions
+ method: POST
+ body:
+ multipart:
+ - name: executions
+ content: '[{
+ "scenario": "onap-vtp",
+ "testSuiteName": "${testsuite-name}",
+ "testCaseName": "${testcase-name}",
+ "parameters": ${param}}]'
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ executionId: $b{$.[0].executionId}
+ status: $b{$.[0].status}
+ startTime: $b{$.[0].startTime}
+ endTime: $b{$.[0].endTime} \ No newline at end of file