Add new elements of starter dictionary for vFW CNF CBA 90/119690/1
authorLukasz Rajewski <lukasz.rajewski@orange.com>
Tue, 23 Mar 2021 21:48:02 +0000 (22:48 +0100)
committerLukasz Rajewski <lukasz.rajewski@orange.com>
Wed, 24 Mar 2021 16:05:10 +0000 (16:05 +0000)
Add new elements of starter dictionary for vFW CNF CBA

Issue-ID: INT-1870
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I83d36de9e14316c1c95cbb78e69527802d2a6373
(cherry picked from commit 9f6848476de716fe68e315a4b4f99c8d893eecef)

components/model-catalog/resource-dictionary/starter-dictionary/config-value-setup.json [new file with mode: 0644]
components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-config-name.json [new file with mode: 0644]
components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-config-template-name.json [new file with mode: 0644]
components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-config-template-source.json [new file with mode: 0644]
components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-config-value-source.json [new file with mode: 0644]
components/model-catalog/resource-dictionary/starter-dictionary/vf-modules-list.json

diff --git a/components/model-catalog/resource-dictionary/starter-dictionary/config-value-setup.json b/components/model-catalog/resource-dictionary/starter-dictionary/config-value-setup.json
new file mode 100644 (file)
index 0000000..b0938ce
--- /dev/null
@@ -0,0 +1,20 @@
+{
+    "tags": "k8s, cnf, config-deploy-setup",
+    "name": "config-deploy-setup",
+    "group": "default",
+    "property": {
+        "description": "Configuration for CNF config deployment",
+        "type": "json"
+    },
+    "updated-by": "Lukasz Rajewski <lukasz.rajewski@orange.com>",
+    "sources": {
+        "capability": {
+            "type": "source-capability",
+            "properties": {
+                "script-type": "kotlin",
+                "script-class-reference": "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.ConfigDeploySetup",
+                "instance-dependencies": []
+            }
+        }
+    }
+}
\ No newline at end of file
diff --git a/components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-config-name.json b/components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-config-name.json
new file mode 100644 (file)
index 0000000..1a10a8c
--- /dev/null
@@ -0,0 +1,19 @@
+{
+    "tags": "k8s, cnf, config, k8s-rb-config-name",
+    "name": "k8s-rb-config-name",
+    "property": {
+        "description": "The source of configuration values for config-deploy operation",
+        "type": "string"
+    },
+    "group": "default",
+    "updated-by": "Rajewski, Lukasz <lukasz.rajewski@orange.com>",
+    "sources": {
+        "input": {
+            "type": "source-input"
+        },
+        "default": {
+            "type": "source-default",
+            "properties": {}
+        }
+    }
+}
\ No newline at end of file
diff --git a/components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-config-template-name.json b/components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-config-template-name.json
new file mode 100644 (file)
index 0000000..07e7356
--- /dev/null
@@ -0,0 +1,19 @@
+{
+    "tags": "k8s, cnf, config, k8s-rb-config-template-name",
+    "name": "k8s-rb-config-template-name",
+    "property": {
+        "description": "The name of configuration template for config-assign operation",
+        "type": "string"
+    },
+    "group": "default",
+    "updated-by": "Rajewski, Lukasz <lukasz.rajewski@orange.com>",
+    "sources": {
+        "input": {
+            "type": "source-input"
+        },
+        "default": {
+            "type": "source-default",
+            "properties": {}
+        }
+    }
+}
\ No newline at end of file
diff --git a/components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-config-template-source.json b/components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-config-template-source.json
new file mode 100644 (file)
index 0000000..b830ccb
--- /dev/null
@@ -0,0 +1,19 @@
+{
+    "tags": "k8s, cnf, config, k8s-rb-config-template-source",
+    "name": "k8s-rb-config-template-source",
+    "property": {
+        "description": "The source of configuration template for config-assign operation",
+        "type": "string"
+    },
+    "group": "default",
+    "updated-by": "Rajewski, Lukasz <lukasz.rajewski@orange.com>",
+    "sources": {
+        "input": {
+            "type": "source-input"
+        },
+        "default": {
+            "type": "source-default",
+            "properties": {}
+        }
+    }
+}
\ No newline at end of file
diff --git a/components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-config-value-source.json b/components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-config-value-source.json
new file mode 100644 (file)
index 0000000..c82cdf1
--- /dev/null
@@ -0,0 +1,19 @@
+{
+    "tags": "k8s, cnf, config, k8s-rb-config-value-source",
+    "name": "k8s-rb-config-value-source",
+    "property": {
+        "description": "The source of configuration values for config-deploy operation",
+        "type": "string"
+    },
+    "group": "default",
+    "updated-by": "Rajewski, Lukasz <lukasz.rajewski@orange.com>",
+    "sources": {
+        "input": {
+            "type": "source-input"
+        },
+        "default": {
+            "type": "source-default",
+            "properties": {}
+        }
+    }
+}
\ No newline at end of file
index 0bf66f6..91afaf4 100644 (file)
@@ -1,11 +1,11 @@
 {
-    "tags": "vnf, vf-modules-list",
+    "tags": "vf-modules-list",
     "name": "vf-modules-list",
-    "group": "default",
     "property": {
         "description": "List of vf-modules associated with vnf",
         "type": "json"
     },
+    "group": "default",
     "updated-by": "Lukasz Rajewski <lukasz.rajewski@orange.com>",
     "sources": {
         "input": {
                     "vnf-id"
                 ]
             }
+        },
+        "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/vf-modules",
+                "path": "/vf-modules",
+                "input-key-mapping": {
+                    "service-instance-id": "service-instance-id",
+                    "vnf-id": "vnf-id"
+                },
+                "output-key-mapping": {
+                    "vf-modules": "vf-module"
+                },
+                "key-dependencies": [
+                    "service-instance-id",
+                    "vnf-id"
+                ]
+            }
         }
     }
 }
\ No newline at end of file