aboutsummaryrefslogtreecommitdiffstats
path: root/components/model-catalog/blueprint-model
diff options
context:
space:
mode:
authorMuthuramalingam, Brinda Santh <brindasanth@in.ibm.com>2019-03-08 16:57:08 -0500
committerBrinda Santh Muthuramalingam <brindasanth@in.ibm.com>2019-03-11 13:44:18 +0000
commit665a8ebbd523ba99688c38db312eeddafac63e5d (patch)
tree7512c5d6df8c18c1907ba00132ea68f3d2f86eef /components/model-catalog/blueprint-model
parent092079108893e3a890d50e4d61754f31a1ab1390 (diff)
Add JSON type validation and enrichment
Change-Id: I479b8214c7979dd5bc28acac68f747f06f3f231e Issue-ID: CCSDK-1134 Signed-off-by: Muthuramalingam, Brinda Santh <brindasanth@in.ibm.com>
Diffstat (limited to 'components/model-catalog/blueprint-model')
-rw-r--r--components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/activation-blueprint.json23
-rw-r--r--components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/node_types.json15
2 files changed, 29 insertions, 9 deletions
diff --git a/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/activation-blueprint.json b/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/activation-blueprint.json
index 6025dbd6..7a923981 100644
--- a/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/activation-blueprint.json
+++ b/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/activation-blueprint.json
@@ -24,19 +24,23 @@
"file": "Definitions/policy_types.json"
}
],
- "dsl_definitions" : {
+ "dsl_definitions": {
+ "dynamic-netconf-properties": {
+ "device-name": "netconf device",
+ "host-name": "sample-host"
+ },
"dynamic-rest-source": {
- "type" : "basic-type",
- "url" : "http://localhost:8080",
- "userId" : {
+ "type": "basic-type",
+ "url": "http://localhost:8080",
+ "userId": {
"get_input": "rest-user-name"
}
},
"dynamic-db-source": {
- "type" : "maria-db",
- "url" : "jdbc:mysql://localhost:3306/sdnctl",
- "username" : "sdnctl",
- "password" : {
+ "type": "maria-db",
+ "url": "jdbc:mysql://localhost:3306/sdnctl",
+ "username": "sdnctl",
+ "password": {
"get_attribute": [
"BPP",
"dynamic-db-source.password"
@@ -241,7 +245,8 @@
"script-type": "jython",
"script-class-reference": "Scripts/python/NetconfRpcExample.py",
"instance-dependencies": [
- ]
+ ],
+ "dynamic-properties": "*dynamic-netconf-properties"
},
"outputs": {
"response-data": "",
diff --git a/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/node_types.json b/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/node_types.json
index b2ba348a..8f6c44f9 100644
--- a/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/node_types.json
+++ b/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/node_types.json
@@ -20,6 +20,11 @@
"entry_schema": {
"type": "string"
}
+ },
+ "dynamic-properties": {
+ "description": "Dynamic Json Content or DSL Json reference.",
+ "required": false,
+ "type": "json"
}
},
"outputs": {
@@ -87,6 +92,11 @@
"entry_schema": {
"type": "string"
}
+ },
+ "dynamic-properties": {
+ "description": "Dynamic Json Content or DSL Json reference.",
+ "required": false,
+ "type": "json"
}
},
"outputs": {
@@ -153,6 +163,11 @@
"description": "Action Name of the process",
"required": false,
"type": "string"
+ },
+ "dynamic-properties": {
+ "description": "Dynamic Json Content or DSL Json reference.",
+ "required": false,
+ "type": "json"
}
},
"outputs": {