Fix: Run both sonar and clm scans in parallel
[ccsdk/cds.git] / components / model-catalog / resource-dictionary / starter-dictionary / vnf_name.json
old mode 100755 (executable)
new mode 100644 (file)
index b8649bf..3deacf5
@@ -1,37 +1,71 @@
 {
-  "name" : "vnf_name",
-  "tags" : "vnf_name",
-  "updated-by" : "Singal, Kapil <ks220y@att.com>",
-  "property" : {
-    "description" : "vnf_name",
-    "type" : "string"
-  },
-  "sources" : {
-    "default": {
-      "type": "source-default",
-      "properties": {
-      }
+    "tags": "vnf_name",
+    "name": "vnf_name",
+    "group":"default",
+    "property": {
+        "description": "vnf_name",
+        "type": "string"
     },
-    "input": {
-      "type": "source-input",
-      "properties": {
-      }
-    },
-    "sdnc" : {
-      "type" : "source-rest",
-      "properties" : {
-        "type" : "JSON",
-        "url-path" : "config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vnf_name",
-        "path" : "/param/0/value",
-        "input-key-mapping" : {
-          "service-instance-id" : "service-instance-id",
-          "vnf-id" : "vnf-id"
+    "updated-by": "MALAKOV, YURIY <yuriy.malakov@att.com>",
+    "sources": {
+        "input": {
+            "type": "source-input"
+        },
+        "default": {
+            "type": "source-default",
+            "properties": {}
         },
-        "output-key-mapping" : {
-          "vnf_name" : "value"
+        "sdnc": {
+            "type": "source-rest",
+            "properties": {
+                "verb": "GET",
+                "type": "JSON",
+                "url-path": "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vnf_name",
+                "path": "/param/0/value",
+                "headers": {
+                    "Accept": "application/json",
+                    "Content-Type": "application/json"
+                },
+                "input-key-mapping": {
+                    "service-instance-id": "service-instance-id",
+                    "vnf-id": "vnf-id"
+                },
+                "output-key-mapping": {
+                    "vnf_name": "value"
+                },
+                "key-dependencies": [
+                    "service-instance-id",
+                    "vnf-id"
+                ]
+            }
         },
-        "key-dependencies" : [ "service-instance-id", "vnf-id" ]
-      }
+        "rest": {
+            "type": "source-rest",
+            "properties": {
+                "endpoint-selector": "naming-resolution",
+                "verb": "POST",
+                "type": "JSON",
+                "headers": {
+                    "Accept": "application/json",
+                    "Content-Type": "application/json"
+                },
+                "url-path": "/v1/genNetworkElementName",
+                "payload": "{\r\n  \"elements\": [\r\n    {\r\n      \"resource-name\": \"vnf_name\",\r\n      \"resource-value\": \"${vnf_name}\",\r\n      \"external-key\": \"${vnf-id}\",\r\n      \"policy-instance-name\": \"${vf-naming-policy}\",\r\n      \"naming-type\": \"VNF\",\r\n      \"AIC_CLOUD_REGION\": \"${aic-cloud-region}\"\r\n    }\r\n  ]\r\n}",
+                "path": "/elements/0/resource-value",
+                "input-key-mapping": {
+                    "vnf-id": "vnf-id",
+                    "aic-cloud-region": "aic-cloud-region",
+                    "vf-naming-policy": "vf-naming-policy"
+                },
+                "output-key-mapping": {
+                    "vnf_name": "resource-value"
+                },
+                "key-dependencies": [
+                    "vnf-id",
+                    "aic-cloud-region",
+                    "vf-naming-policy"
+                ]
+            }
+        }
     }
-  }
 }