summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKanagaraj M <mkr1481@gmail.com>2019-08-02 13:51:21 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2019-08-05 19:47:05 +0530
commit658c717148d92c42e9ae737ded466bd6ac007d13 (patch)
tree00fbc037ca4ce272f2c6b9e993e5ab1eb65eb708
parent0f9eadcf15651b6b73018200c41865422b7a2860 (diff)
Add ID output in service-model commands
Issue-ID: CLI-169 Change-Id: I1005c605e656f755acc1593af828383d6613cf8a Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-vf-schema-dublin.yaml5
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-dublin.yaml9
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service2vf-model-list-schema-dublin.yaml5
3 files changed, 19 insertions, 0 deletions
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-vf-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-vf-schema-dublin.yaml
index 63454976..06b4c4fb 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-vf-schema-dublin.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-vf-schema-dublin.yaml
@@ -55,6 +55,10 @@ results:
description: Service ID
scope: short
type: string
+ - name: UUID
+ description: Service UUID
+ scope: short
+ type: string
http:
service:
name: sdc
@@ -69,3 +73,4 @@ http:
- 201
result_map:
ID: $b{$.uniqueId}
+ UUID: $b{$.componentUid} \ No newline at end of file
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-dublin.yaml
index 9201e7fa..ec0ccc6d 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-dublin.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-dublin.yaml
@@ -30,6 +30,13 @@ parameters:
short_option: b
is_optional: true
+results:
+ direction: portrait
+ attributes:
+ - name: ID
+ description: NS checked out version unique ID
+ scope: short
+ type: string
http:
service:
name: sdc
@@ -42,3 +49,5 @@ http:
body: '{}'
success_codes:
- 200
+ result_map:
+ ID: $b{$.uniqueId} \ No newline at end of file
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service2vf-model-list-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service2vf-model-list-schema-dublin.yaml
index bd4c38c6..2241e05c 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service2vf-model-list-schema-dublin.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service2vf-model-list-schema-dublin.yaml
@@ -49,6 +49,10 @@ results:
description: version
type: string
scope: short
+ - name: vf-unique-uuid
+ description: customization UUID
+ type: string
+ scope: short
http:
service:
@@ -62,6 +66,7 @@ http:
success_codes:
- 200
result_map:
+ vf-unique-uuid: $b{componentInstances.[*].uniqueId}
vf-uuid: $b{componentInstances.[*].componentUid}
vf-name: $b{componentInstances.[*].componentName}
vf-version: $b{componentInstances.[*].componentVersion}