Add ID output in service-model commands 45/92545/2
authorKanagaraj M <mkr1481@gmail.com>
Fri, 2 Aug 2019 08:21:21 +0000 (13:51 +0530)
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Mon, 5 Aug 2019 14:17:05 +0000 (19:47 +0530)
Issue-ID: CLI-169

Change-Id: I1005c605e656f755acc1593af828383d6613cf8a
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-vf-schema-dublin.yaml
products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-dublin.yaml
products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service2vf-model-list-schema-dublin.yaml

index 6345497..06b4c4f 100644 (file)
@@ -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
index 9201e7f..ec0ccc6 100644 (file)
@@ -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
index bd4c38c..2241e05 100644 (file)
@@ -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}