vFW CDS CNF CBA with native k8s profile upload
[demo.git] / heat / vFW_CNF_CDS / templates / cba / Definitions / resources_definition_types.json
index cb5aaeb..63d83e4 100644 (file)
                 "type": "source-db",
                 "properties": {
                     "type": "SQL",
-                    "endpoint-selector": "dynamic-db-source",
                     "query": "select sdnctl.IPAM_IP_POOL.prefix as prefix from sdnctl.IPAM_IP_POOL where description = \"private1\"",
                     "input-key-mapping": {},
                     "output-key-mapping": {
                 "type": "source-db",
                 "properties": {
                     "type": "SQL",
-                    "endpoint-selector": "dynamic-db-source",
                     "query": "select sdnctl.IPAM_IP_POOL.prefix as prefix from sdnctl.IPAM_IP_POOL where description = \"private2\"",
                     "output-key-mapping": {
                         "int_private2_net_cidr": "prefix"
             "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-name",
-                    "path": "/param/0/value",
-                    "input-key-mapping": {
-                        "service-instance-id": "service-instance-id",
-                        "vnf-id": "vnf-id"
-                    },
-                    "output-key-mapping": {
-                        "k8s-rb-profile-name": "value"
-                    },
-                    "key-dependencies": [
-                        "service-instance-id",
-                        "vnf-id"
-                    ]
-                }
             }
         }
     },
             }
         }
     },
+    "k8s-rb-profile-source": {
+        "tags": "k8s, cnf, profile, k8s-rb-profile-source",
+        "name": "k8s-rb-profile-source",
+        "property": {
+            "description": "The source folder or file relative to 'Templates/k8s-profiles' folder",
+            "type": "string"
+        },
+        "group": "default",
+        "updated-by": "Rajewski, Lukasz <lukasz.rajewski@orange.com>",
+        "sources": {
+            "input": {
+                "type": "source-input"
+            },
+            "default": {
+                "type": "source-default",
+                "properties": {}
+            }
+        }
+    },
     "management-prefix-id": {
         "tags": "management-prefix-id",
         "name": "management-prefix-id",
                 "type": "source-db",
                 "properties": {
                     "type": "SQL",
-                    "endpoint-selector": "dynamic-db-source",
                     "query": "select sdnctl.IPAM_IP_POOL.prefix_id as prefix_id from sdnctl.IPAM_IP_POOL where description = \"management\"",
                     "input-key-mapping": {},
                     "output-key-mapping": {
                 "type": "source-db",
                 "properties": {
                     "type": "SQL",
-                    "endpoint-selector": "dynamic-db-source",
                     "query": "select sdnctl.IPAM_IP_POOL.prefix as prefix from sdnctl.IPAM_IP_POOL where description = \"management\"",
                     "input-key-mapping": {},
                     "output-key-mapping": {
                 "type": "source-db",
                 "properties": {
                     "type": "SQL",
-                    "endpoint-selector": "dynamic-db-source",
                     "query": "select sdnctl.IPAM_IP_POOL.prefix_id as prefix_id from sdnctl.IPAM_IP_POOL where description = \"private1\"",
                     "input-key-mapping": {},
                     "output-key-mapping": {
                 "type": "source-db",
                 "properties": {
                     "type": "SQL",
-                    "endpoint-selector": "dynamic-db-source",
                     "query": "select sdnctl.IPAM_IP_POOL.prefix_id as prefix_id from sdnctl.IPAM_IP_POOL where description = \"private2\"",
                     "input-key-mapping": {},
                     "output-key-mapping": {
                     },
                     "key-dependencies": [
                         "vf-module-model-customization-uuid"
-                    ],
-                    "endpoint-selector": "dynamic-db-source"
+                    ]
                 }
             }
         }
                     },
                     "key-dependencies": [
                         "vf-module-model-customization-uuid"
-                    ],
-                    "endpoint-selector": "dynamic-db-source"
+                    ]
                 }
             }
         }
                     },
                     "key-dependencies": [
                         "vf-module-model-customization-uuid"
-                    ],
-                    "endpoint-selector": "dynamic-db-source"
+                    ]
                 }
             }
         }
         "name": "vpg-management-port",
         "property": {
             "description": "vpg-management-port",
-            "type": "string"
+            "type": "integer"
         },
         "group": "default",
         "updated-by": "Rajewski, Lukasz <lukasz.rajewski@orange.com>",