Added missing elements of starter dictionary for CNF CBA 25/119625/1
authorLukasz Rajewski <lukasz.rajewski@orange.com>
Mon, 15 Mar 2021 21:46:18 +0000 (22:46 +0100)
committerLukasz Rajewski <lukasz.rajewski@orange.com>
Tue, 23 Mar 2021 14:46:37 +0000 (14:46 +0000)
Added missing elements of starter dictionary for CNF CBA

Issue-ID: CCSDK-3211
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: Ib0ae251e26ccfab08e9c402d9e22bf5e9af29109
(cherry picked from commit 7f858b082287017c2f28b7fac03476c5f761a517)

components/model-catalog/definition-type/starter-type/artifact_type/artifact-k8sprofile-content.json [new file with mode: 0644]
components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-definition-name.json [new file with mode: 0644]
components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-definition-version.json [new file with mode: 0644]
components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-profile-name.json [new file with mode: 0644]
components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-profile-namespace.json [new file with mode: 0644]
components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-profile-source.json [new file with mode: 0644]
components/model-catalog/resource-dictionary/starter-dictionary/vf-module-model-invariant-uuid.json [new file with mode: 0644]
components/model-catalog/resource-dictionary/starter-dictionary/vf-module-model-version.json [new file with mode: 0644]
components/model-catalog/resource-dictionary/starter-dictionary/vf-modules-list.json [new file with mode: 0644]
components/model-catalog/resource-dictionary/starter-dictionary/vpg_management_port.json [new file with mode: 0644]

diff --git a/components/model-catalog/definition-type/starter-type/artifact_type/artifact-k8sprofile-content.json b/components/model-catalog/definition-type/starter-type/artifact_type/artifact-k8sprofile-content.json
new file mode 100644 (file)
index 0000000..8a68dfa
--- /dev/null
@@ -0,0 +1,5 @@
+{
+  "description": "K8s Profile Folder Artifact",
+  "version": "1.0.0",
+  "derived_from": "tosca.artifacts.Implementation"
+}
\ No newline at end of file
diff --git a/components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-definition-name.json b/components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-definition-name.json
new file mode 100644 (file)
index 0000000..8fb643b
--- /dev/null
@@ -0,0 +1,19 @@
+{
+    "tags": "k8s, cnf, k8s-rb-definition-name",
+    "name": "k8s-rb-definition-name",
+    "group": "default",
+    "property": {
+        "description": "K8s RB definition name. Associated with vf-module-model-invariant-uuid",
+        "type": "string"
+    },
+    "updated-by": "Lukasz Rajewski <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-definition-version.json b/components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-definition-version.json
new file mode 100644 (file)
index 0000000..633b412
--- /dev/null
@@ -0,0 +1,19 @@
+{
+    "tags": "k8s, cnf, k8s-rb-definition-version",
+    "name": "k8s-rb-definition-version",
+    "group": "default",
+    "property": {
+        "description": "K8s RB definition version. Associated with vf-module-model-version",
+        "type": "string"
+    },
+    "updated-by": "Lukasz Rajewski <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-profile-name.json b/components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-profile-name.json
new file mode 100644 (file)
index 0000000..b220329
--- /dev/null
@@ -0,0 +1,19 @@
+{
+    "tags": "k8s, cnf, k8s-rb-profile-name",
+    "name": "k8s-rb-profile-name",
+    "group": "default",
+    "property": {
+        "description": "Profile name used in multicloud/k8s plugin to identify Helm chart(s) where this mapping is providing override values.",
+        "type": "string"
+    },
+    "updated-by": "Lukasz Rajewski <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-profile-namespace.json b/components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-profile-namespace.json
new file mode 100644 (file)
index 0000000..a7cd5c8
--- /dev/null
@@ -0,0 +1,39 @@
+{
+    "tags": "k8s, cnf, k8s-rb-profile-namespace",
+    "name": "k8s-rb-profile-namespace",
+    "group": "default",
+    "property": {
+        "description": "Profile name used in multicloud/k8s plugin",
+        "type": "string"
+    },
+    "updated-by": "Lukasz Rajewski <lukasz.rajewski@orange.com>",
+    "sources": {
+        "input": {
+            "type": "source-input"
+        },
+        "default": {
+            "type": "source-default",
+            "properties": {}
+        },
+        "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/k8s-rb-profile-namespace",
+                "path": "/param/0/value",
+                "input-key-mapping": {
+                    "service-instance-id": "service-instance-id",
+                    "vnf-id": "vnf-id"
+                },
+                "output-key-mapping": {
+                    "k8s-rb-profile-namespace": "value"
+                },
+                "key-dependencies": [
+                    "service-instance-id",
+                    "vnf-id"
+                ]
+            }
+        }
+    }
+}
\ No newline at end of file
diff --git a/components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-profile-source.json b/components/model-catalog/resource-dictionary/starter-dictionary/k8s-rb-profile-source.json
new file mode 100644 (file)
index 0000000..4ed8566
--- /dev/null
@@ -0,0 +1,19 @@
+{
+    "tags": "k8s, cnf, k8s-rb-profile-source",
+    "name": "k8s-rb-profile-source",
+    "group": "default",
+    "property": {
+        "description": "The source folder or file relative to 'Templates/k8s-profiles' folder",
+        "type": "string"
+    },
+    "updated-by": "Lukasz Rajewski <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/vf-module-model-invariant-uuid.json b/components/model-catalog/resource-dictionary/starter-dictionary/vf-module-model-invariant-uuid.json
new file mode 100644 (file)
index 0000000..6fa3c77
--- /dev/null
@@ -0,0 +1,35 @@
+{
+    "tags": "vnf, vf-module, vf-module-model-invariant-uuid",
+    "name": "vf-module-model-invariant-uuid",
+    "group": "default",
+    "property": {
+        "description": "vf-module-model-invariant-uuid",
+        "type": "string"
+    },
+    "updated-by": "MALAKOV, YURIY <yuriy.malakov@att.com>",
+    "sources": {
+        "input": {
+            "type": "source-input"
+        },
+        "default": {
+            "type": "source-default",
+            "properties": {}
+        },
+        "processor-db": {
+            "type": "source-db",
+            "properties": {
+                "type": "SQL",
+                "query": "select sdnctl.VF_MODULE_MODEL.invariant_uuid as vf_module_model_invariant_uuid from sdnctl.VF_MODULE_MODEL where sdnctl.VF_MODULE_MODEL.customization_uuid=:customizationid",
+                "input-key-mapping": {
+                    "customizationid": "vf-module-model-customization-uuid"
+                },
+                "output-key-mapping": {
+                    "vf-module-model-invariant-uuid": "vf_module_model_invariant_uuid"
+                },
+                "key-dependencies": [
+                    "vf-module-model-customization-uuid"
+                ]
+            }
+        }
+    }
+}
\ No newline at end of file
diff --git a/components/model-catalog/resource-dictionary/starter-dictionary/vf-module-model-version.json b/components/model-catalog/resource-dictionary/starter-dictionary/vf-module-model-version.json
new file mode 100644 (file)
index 0000000..dc08ea0
--- /dev/null
@@ -0,0 +1,35 @@
+{
+    "tags": "vnf, vf-module, vf-module-model-version",
+    "name": "vf-module-model-version",
+    "group": "default",
+    "property": {
+        "description": "vf-module-model-version",
+        "type": "string"
+    },
+    "updated-by": "MALAKOV, YURIY <yuriy.malakov@att.com>",
+    "sources": {
+        "input": {
+            "type": "source-input"
+        },
+        "default": {
+            "type": "source-default",
+            "properties": {}
+        },
+        "processor-db": {
+            "type": "source-db",
+            "properties": {
+                "type": "SQL",
+                "query": "select sdnctl.VF_MODULE_MODEL.uuid as vf_module_model_version from sdnctl.VF_MODULE_MODEL where sdnctl.VF_MODULE_MODEL.customization_uuid=:customizationid",
+                "input-key-mapping": {
+                    "customizationid": "vf-module-model-customization-uuid"
+                },
+                "output-key-mapping": {
+                    "vf-module-model-version": "vf_module_model_version"
+                },
+                "key-dependencies": [
+                    "vf-module-model-customization-uuid"
+                ]
+            }
+        }
+    }
+}
\ No newline at end of file
diff --git a/components/model-catalog/resource-dictionary/starter-dictionary/vf-modules-list.json b/components/model-catalog/resource-dictionary/starter-dictionary/vf-modules-list.json
new file mode 100644 (file)
index 0000000..0bf66f6
--- /dev/null
@@ -0,0 +1,37 @@
+{
+    "tags": "vnf, vf-modules-list",
+    "name": "vf-modules-list",
+    "group": "default",
+    "property": {
+        "description": "List of vf-modules associated with vnf",
+        "type": "json"
+    },
+    "updated-by": "Lukasz Rajewski <lukasz.rajewski@orange.com>",
+    "sources": {
+        "input": {
+            "type": "source-input"
+        },
+        "default": {
+            "type": "source-default",
+            "properties": {}
+        },
+        "aai-data": {
+            "type": "source-rest",
+            "properties": {
+                "verb": "GET",
+                "type": "JSON",
+                "url-path": "/aai/v19/network/generic-vnfs/generic-vnf/${vnf-id}?depth=1",
+                "path": "/vf-modules",
+                "input-key-mapping": {
+                    "vnf-id": "vnf-id"
+                },
+                "output-key-mapping": {
+                    "vf-modules": "vf-module"
+                },
+                "key-dependencies": [
+                    "vnf-id"
+                ]
+            }
+        }
+    }
+}
\ No newline at end of file
diff --git a/components/model-catalog/resource-dictionary/starter-dictionary/vpg_management_port.json b/components/model-catalog/resource-dictionary/starter-dictionary/vpg_management_port.json
new file mode 100644 (file)
index 0000000..20003df
--- /dev/null
@@ -0,0 +1,19 @@
+{
+    "tags": "k8s, cnf, vpg-management-port",
+    "name": "vpg-management-port",
+    "group": "default",
+    "property": {
+        "description": "Ssh port number in k8s nodeport to associate with vpg",
+        "type": "string"
+    },
+    "updated-by": "Lukasz Rajewski <lukasz.rajewski@orange.com>",
+    "sources": {
+        "input": {
+            "type": "source-input"
+        },
+        "default": {
+            "type": "source-default",
+            "properties": {}
+        }
+    }
+}
\ No newline at end of file