Updated for Jakarta Release
[ccsdk/cds.git] / components / model-catalog / blueprint-model / service-blueprint / 5GC_Simulator_CNF_CDS / Definitions / 5G_Core.json
1 {
2   "tosca_definitions_version" : "controller_blueprint_1_0_0",
3   "metadata" : {
4     "template_author" : "Thamlur Raju <TR00568434@TechMahindra.com>, Sangeeta Bellara<sangeeta.bellara@t-systems.com>",
5     "author-email" : "TR00568434@TechMahindra.com,sangeeta.bellara@t-systems.com",
6     "user-groups" : "ADMIN, OPERATION",
7     "template_name" : "5G_Core",
8     "template_version" : "2.0.0",
9     "template_tags" : "Thamlur Raju, Malinconico Aniello Paolo,Vamshi, 5G_Core",
10     "template_type" : "DEFAULT"
11   },
12   "imports" : [ {
13     "file" : "Definitions/data_types.json"
14   }, {
15     "file" : "Definitions/relationship_types.json"
16   }, {
17     "file" : "Definitions/artifact_types.json"
18   }, {
19     "file" : "Definitions/node_types.json"
20   }, {
21     "file" : "Definitions/policy_types.json"
22   } ],
23   "dsl_definitions" : {
24     "vpkg-rest-api" : {
25       "type" : "basic-auth",
26       "url" : "http://",
27       "username" : "admin",
28       "password" : "admin"
29     },
30     "multicloud-k8s-api" : {
31       "type" : "basic-auth",
32       "username" : "admin",
33       "password" : "admin",
34       "url" : "http://multicloud-k8s:9015"
35     },
36     "aai-api" : {
37       "type" : "basic-auth",
38       "username" : "AAI",
39       "password" : "AAI",
40       "url" : "https://aai.onap:8443"
41     },
42     "profile-upload-properties" : {
43       "assignment-params" : {
44         "get_attribute" : [ "resource-assignment", "assignment-params" ]
45       },
46       "api-access" : "*multicloud-k8s-api"
47     },
48     "config-deploy-properties" : {
49       "resolution-key" : {
50         "get_input" : "resolution-key"
51       },
52       "api-access" : "*multicloud-k8s-api",
53       "aai-access" : "*aai-api"
54     },
55     "config-deploy-day-2-properties" : {
56       "resolution-key" : {
57         "get_input" : "resolution-key"
58       },
59       "api-access" : "*multicloud-k8s-api",
60       "aai-access" : "*aai-api"
61     }
62   },
63   "topology_template" : {
64     "workflows" : {
65       "resource-assignment" : {
66         "steps" : {
67           "resource-assignment" : {
68             "description" : "Resource Assign Workflow",
69             "target" : "resource-assignment",
70             "activities" : [ {
71               "call_operation" : "ResourceResolutionComponent.process"
72             } ],
73             "on_success" : [ "profile-upload" ]
74           },
75           "profile-upload" : {
76             "description" : "Upload K8s Profile",
77             "target" : "profile-upload",
78             "activities" : [ {
79               "call_operation" : "ComponentScriptExecutor.process"
80             } ]
81           }
82         },
83         "inputs" : {
84           "template-prefix" : {
85             "required" : true,
86             "type" : "list",
87             "entry_schema" : {
88               "type" : "string"
89             }
90           },
91           "resolution-key" : {
92             "required" : false,
93             "type" : "string",
94             "entry_schema" : {
95               "type" : ""
96             }
97           },
98           "resource-assignment-properties" : {
99             "description" : "Dynamic PropertyDefinition for workflow(resource-assignment).",
100             "required" : true,
101             "type" : "dt-resource-assignment-properties"
102           }
103         },
104         "outputs" : {
105           "meshed-template" : {
106             "type" : "json",
107             "value" : {
108               "get_attribute" : [ "resource-assignment", "assignment-params" ]
109             }
110           }
111         }
112       },
113       "config-assign" : {
114         "steps" : {
115           "config-assign" : {
116             "description" : "Config Assign Workflow",
117             "target" : "config-assign",
118             "activities" : [ {
119               "call_operation" : ""
120             } ]
121           }
122         },
123         "inputs" : {
124           "resolution-key" : {
125             "required" : true,
126             "type" : "string"
127           },
128           "store-result" : {
129             "required" : true,
130             "type" : "boolean"
131           },
132           "config-assign-properties" : {
133             "description" : "Dynamic PropertyDefinition for workflow(config-assign).",
134             "required" : true,
135             "type" : "dt-config-assign-properties"
136           }
137         },
138         "outputs" : {
139           "dry-run" : {
140             "type" : "json",
141             "value" : {
142               "get_attribute" : [ "config-assign", "assignment-params" ]
143             }
144           }
145         }
146       },
147       "config-assign-day-2" : {
148         "steps" : {
149           "config-assign" : {
150             "description" : "Config Assign Workflow",
151             "target" : "config-assign-day-2",
152             "activities" : [ {
153               "call_operation" : ""
154             } ]
155           }
156         },
157         "inputs" : {
158           "resolution-key" : {
159             "required" : true,
160             "type" : "string"
161           },
162           "store-result" : {
163             "required" : true,
164             "type" : "boolean"
165           },
166           "config-assign-day-2-properties" : {
167             "description" : "Dynamic PropertyDefinition for workflow(config-assign-day-2).",
168             "required" : true,
169             "type" : "dt-config-assign-day-2-properties"
170           }
171         },
172         "outputs" : {
173           "dry-run" : {
174             "type" : "json",
175             "value" : {
176               "get_attribute" : [ "config-assign-day-2", "assignment-params" ]
177             }
178           }
179         }
180       },
181       "config-deploy" : {
182         "steps" : {
183           "config-deploy" : {
184             "description" : "Config Deploy Workflow",
185             "target" : "config-deploy-process"
186           }
187         },
188         "inputs" : {
189           "resolution-key" : {
190             "required" : false,
191             "type" : "string"
192           },
193           "store-result" : {
194             "required" : true,
195             "type" : "boolean"
196           },
197           "service-instance-id" : {
198             "required" : false,
199             "type" : "string"
200           },
201           "config-deploy-properties" : {
202             "description" : "Dynamic PropertyDefinition for workflow(config-deploy).",
203             "required" : true,
204             "type" : "dt-config-deploy-properties"
205           }
206         }
207       },
208       "config-deploy-day-2" : {
209         "steps" : {
210           "config-deploy" : {
211             "description" : "Config Deploy Day 2 Workflow",
212             "target" : "config-deploy-process-2"
213           }
214         },
215         "inputs" : {
216           "resolution-key" : {
217             "required" : false,
218             "type" : "string"
219           },
220           "store-result" : {
221             "required" : true,
222             "type" : "boolean"
223           },
224           "service-instance-id" : {
225             "required" : false,
226             "type" : "string"
227           }
228         }
229       }
230     },
231     "node_templates" : {
232       "resource-assignment" : {
233         "type" : "component-resource-resolution",
234         "interfaces" : {
235           "ResourceResolutionComponent" : {
236             "operations" : {
237               "process" : {
238                 "inputs" : {
239                   "artifact-prefix-names" : {
240                     "get_input" : "template-prefix"
241                   }
242                 }
243               }
244             }
245           }
246         },
247         "artifacts" : {
248           "helm_amf-template" : {
249             "type" : "artifact-template-velocity",
250             "file" : "Templates/helm_amf-template.vtl"
251           },
252           "helm_amf-mapping" : {
253             "type" : "artifact-mapping-resource",
254             "file" : "Templates/helm_amf-mapping.json"
255           },
256           "helm_smf-template" : {
257             "type" : "artifact-template-velocity",
258             "file" : "Templates/helm_smf-template.vtl"
259           },
260           "helm_smf-mapping" : {
261             "type" : "artifact-mapping-resource",
262             "file" : "Templates/helm_smf-mapping.json"
263           },
264           "helm_upf-template" : {
265             "type" : "artifact-template-velocity",
266             "file" : "Templates/helm_upf-template.vtl"
267           },
268           "helm_upf-mapping" : {
269             "type" : "artifact-mapping-resource",
270             "file" : "Templates/helm_upf-mapping.json"
271           },
272           "vnf-template" : {
273             "type" : "artifact-template-velocity",
274             "file" : "Templates/vnf-template.vtl"
275           },
276           "vnf-mapping" : {
277             "type" : "artifact-mapping-resource",
278             "file" : "Templates/vnf-mapping.json"
279           }
280         }
281       },
282       "profile-upload" : {
283         "type" : "component-script-executor",
284         "interfaces" : {
285           "ComponentScriptExecutor" : {
286             "operations" : {
287               "process" : {
288                 "inputs" : {
289                   "script-type" : "kotlin",
290                   "script-class-reference" : "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.K8sProfileUpload",
291                   "dynamic-properties" : "*profile-upload-properties"
292                 }
293               }
294             }
295           }
296         }
297       },
298       "config-assign" : {
299         "type" : "component-resource-resolution",
300         "interfaces" : {
301           "ResourceResolutionComponent" : {
302             "operations" : {
303               "process" : {
304                 "inputs" : {
305                   "resolution-key" : {
306                     "get_input" : "resolution-key"
307                   },
308                   "store-result" : true,
309                   "artifact-prefix-names" : [ "baseconfig" ]
310                 }
311               }
312             }
313           }
314         },
315         "artifacts" : {
316           "baseconfig-template" : {
317             "type" : "artifact-template-velocity",
318             "file" : "Templates/baseconfig-template.vtl"
319           },
320           "baseconfig-mapping" : {
321             "type" : "artifact-mapping-resource",
322             "file" : "Templates/baseconfig-mapping.json"
323           }
324         }
325       },
326       "config-assign-day-2" : {
327         "type" : "component-resource-resolution",
328         "interfaces" : {
329           "ResourceResolutionComponent" : {
330             "operations" : {
331               "process" : {
332                 "inputs" : {
333                   "resolution-key" : {
334                     "get_input" : "resolution-key"
335                   },
336                   "store-result" : true,
337                   "artifact-prefix-names" : [ "baseconfigput" ]
338                 }
339               }
340             }
341           }
342         },
343         "artifacts" : {
344           "baseconfigput-template" : {
345             "type" : "artifact-template-velocity",
346             "file" : "Templates/baseconfigput-template.vtl"
347           },
348           "baseconfigput-mapping" : {
349             "type" : "artifact-mapping-resource",
350             "file" : "Templates/baseconfigput-mapping.json"
351           }
352         }
353       },
354       "config-deploy-process" : {
355         "type" : "component-script-executor",
356         "interfaces" : {
357           "ComponentScriptExecutor" : {
358             "operations" : {
359               "process" : {
360                 "implementation" : {
361                   "primary" : "component-script",
362                   "timeout" : 180,
363                   "operation_host" : "SELF"
364                 },
365                 "inputs" : {
366                   "script-type" : "kotlin",
367                   "script-class-reference" : "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.DayOneConfig",
368                   "instance-dependencies" : [ "bluePrintPropertiesService" ],
369                   "dynamic-properties" : "*config-deploy-properties"
370                 },
371                 "outputs" : {
372                   "response-data" : "",
373                   "status" : "success"
374                 }
375               }
376             }
377           }
378         },
379         "artifacts" : {
380           "config-deploy-aai-template" : {
381             "type" : "artifact-template-velocity",
382             "file" : "Templates/config-deploy-aai-template.vtl"
383           },
384           "config-deploy-aai-mapping" : {
385             "type" : "artifact-mapping-resource",
386             "file" : "Templates/config-deploy-aai-mapping.json"
387           },
388           "config-deploy-sdnc-template" : {
389             "type" : "artifact-template-velocity",
390             "file" : "Templates/config-deploy-sdnc-template.vtl"
391           },
392           "config-deploy-sdnc-mapping" : {
393             "type" : "artifact-mapping-resource",
394             "file" : "Templates/config-deploy-sdnc-mapping.json"
395           }
396         }
397       },
398       "config-deploy-process-2" : {
399         "type" : "component-script-executor",
400         "interfaces" : {
401           "ComponentScriptExecutor" : {
402             "operations" : {
403               "process" : {
404                 "inputs" : {
405                   "script-type" : "kotlin",
406                   "script-class-reference" : "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.KotlinK8sUpdateConfig",
407                                   "instance-dependencies" : [ "bluePrintPropertiesService" ],
408                   "dynamic-properties" : "*config-deploy-day-2-properties"
409                 }
410               }
411             }
412           }
413         }
414       }
415     }
416   }
417 }