Fix: Run both sonar and clm scans in parallel
[ccsdk/cds.git] / components / model-catalog / blueprint-model / test-blueprint / golden / Definitions / golden-blueprint.json
1 {
2   "tosca_definitions_version" : "controller_blueprint_1_0_0",
3   "metadata" : {
4     "template_author" : "Alexis de TalhouĆ«t",
5     "author-email" : "adetalhouet89@gmail.com",
6     "user-groups" : "ADMIN, OPERATION",
7     "template_name" : "golden",
8     "template_version" : "1.0.0",
9     "template_tags" : "test"
10   },
11   "imports" : [ {
12     "file" : "Definitions/data_types.json"
13   }, {
14     "file" : "Definitions/relationship_types.json"
15   }, {
16     "file" : "Definitions/artifact_types.json"
17   }, {
18     "file" : "Definitions/node_types.json"
19   }, {
20     "file" : "Definitions/policy_types.json"
21   } ],
22   "dsl_definitions" : {
23     "ipam-1" : {
24       "type" : "token-auth",
25       "url" : "http://netbox-nginx:8080",
26       "token" : "Token 0123456789abcdef0123456789abcdef01234567"
27     },
28     "config-deploy-properties" : {
29       "resolution-key" : {
30         "get_input" : "resolution-key"
31       }
32     }
33   },
34   "topology_template" : {
35     "workflows" : {
36       "resource-assignment" : {
37         "steps" : {
38           "resource-assignment" : {
39             "description" : "Resource Assign Workflow",
40             "target" : "resource-assignment",
41             "activities" : [ {
42               "call_operation" : ""
43             } ]
44           }
45         },
46         "inputs" : {
47           "resource-assignment-properties" : {
48             "description" : "Dynamic PropertyDefinition for workflow(resource-assignment).",
49             "required" : true,
50             "type" : "dt-resource-assignment-properties"
51           }
52         },
53         "outputs" : {
54           "meshed-template" : {
55             "type" : "json",
56             "value" : {
57               "get_attribute" : [ "resource-assignment", "assignment-params" ]
58             }
59           }
60         }
61       },
62       "config-assign" : {
63         "steps" : {
64           "config-assign" : {
65             "description" : "Config Assign Workflow",
66             "target" : "config-assign",
67             "activities" : [ {
68               "call_operation" : ""
69             } ]
70           }
71         },
72         "inputs" : {
73           "resolution-key" : {
74             "required" : true,
75             "type" : "string"
76           },
77           "config-assign-properties" : {
78             "description" : "Dynamic PropertyDefinition for workflow(config-assign).",
79             "required" : true,
80             "type" : "dt-config-assign-properties"
81           }
82         },
83         "outputs" : {
84           "dry-run" : {
85             "type" : "json",
86             "value" : {
87               "get_attribute" : [ "config-assign", "assignment-params" ]
88             }
89           }
90         }
91       },
92       "config-deploy" : {
93         "steps" : {
94           "config-deploy" : {
95             "description" : "Resource Assign and Python Netconf Activation Workflow",
96             "target" : "config-deploy",
97             "activities" : [ {
98               "call_operation" : ""
99             } ]
100           }
101         },
102         "inputs" : {
103           "resolution-key" : {
104             "required" : false,
105             "type" : "string"
106           },
107           "password" : {
108             "required" : true,
109             "type" : "string"
110           },
111           "username" : {
112             "required" : true,
113             "type" : "string"
114           },
115           "ip" : {
116             "required" : true,
117             "type" : "string"
118           }
119         }
120       },
121       "rollback" : {
122         "steps" : {
123           "rollback" : {
124             "description" : "Rollback Workflow",
125             "target" : "rollback",
126             "activities" : [ {
127               "call_operation" : ""
128             } ]
129           }
130         },
131         "inputs" : {
132           "resolution-key" : {
133             "required" : false,
134             "type" : "string"
135           },
136           "password" : {
137             "required" : true,
138             "type" : "string"
139           },
140           "username" : {
141             "required" : true,
142             "type" : "string"
143           },
144           "ip" : {
145             "required" : true,
146             "type" : "string"
147           },
148           "rollback-properties" : {
149             "description" : "Dynamic PropertyDefinition for workflow(rollback).",
150             "required" : true,
151             "type" : "dt-rollback-properties"
152           }
153         }
154       }
155     },
156     "node_templates" : {
157       "resource-assignment" : {
158         "type" : "component-resource-resolution",
159         "interfaces" : {
160           "ResourceResolutionComponent" : {
161             "operations" : {
162               "process" : {
163                 "inputs" : {
164                   "artifact-prefix-names" : [ "vf-module-1" ]
165                 }
166               }
167             }
168           }
169         },
170         "artifacts" : {
171           "vf-module-1-template" : {
172             "type" : "artifact-template-velocity",
173             "file" : "Templates/vf-module-1-template.vtl"
174           },
175           "vf-module-1-mapping" : {
176             "type" : "artifact-mapping-resource",
177             "file" : "Templates/vf-module-1-mapping.json"
178           }
179         }
180       },
181       "config-assign" : {
182         "type" : "component-resource-resolution",
183         "interfaces" : {
184           "ResourceResolutionComponent" : {
185             "operations" : {
186               "process" : {
187                 "inputs" : {
188                   "resolution-key" : {
189                     "get_input" : "resolution-key"
190                   },
191                   "store-result" : true,
192                   "artifact-prefix-names" : [ "hostname", "vfw-interface" ]
193                 }
194               }
195             }
196           }
197         },
198         "artifacts" : {
199           "hostname-template" : {
200             "type" : "artifact-template-velocity",
201             "file" : "Templates/hostname-template.vtl"
202           },
203           "hostname-mapping" : {
204             "type" : "artifact-mapping-resource",
205             "file" : "Templates/hostname-mapping.json"
206           },
207           "vfw-interface-template" : {
208             "type" : "artifact-template-velocity",
209             "file" : "Templates/vfw-interface-template.vtl"
210           },
211           "vfw-interface-mapping" : {
212             "type" : "artifact-mapping-resource",
213             "file" : "Templates/vfw-interface-mapping.json"
214           }
215         }
216       },
217       "config-deploy" : {
218         "type" : "component-netconf-executor",
219         "requirements" : {
220           "netconf-connection" : {
221             "capability" : "netconf",
222             "node" : "netconf-device",
223             "relationship" : "tosca.relationships.ConnectsTo"
224           }
225         },
226         "interfaces" : {
227           "ComponentNetconfExecutor" : {
228             "operations" : {
229               "process" : {
230                 "inputs" : {
231                   "script-type" : "jython",
232                   "script-class-reference" : "Scripts/python/ConfigDeploy.py",
233                   "instance-dependencies" : [ ],
234                   "dynamic-properties" : "*config-deploy-properties"
235                 }
236               }
237             }
238           }
239         }
240       },
241       "rollback" : {
242         "type" : "component-netconf-executor",
243         "requirements" : {
244           "netconf-connection" : {
245             "capability" : "netconf",
246             "node" : "netconf-device",
247             "relationship" : "tosca.relationships.ConnectsTo"
248           }
249         },
250         "interfaces" : {
251           "ComponentNetconfExecutor" : {
252             "operations" : {
253               "process" : {
254                 "inputs" : {
255                   "script-type" : "jython",
256                   "script-class-reference" : "Scripts/python/Rollback.py",
257                   "instance-dependencies" : [ ]
258                 }
259               }
260             }
261           }
262         },
263         "artifacts" : {
264           "junos-rollback-RPC-template" : {
265             "type" : "artifact-template-velocity",
266             "file" : "Templates/junos-rollback-RPC-template.vtl"
267           },
268           "junos-rollback-RPC-mapping" : {
269             "type" : "artifact-mapping-resource",
270             "file" : "Templates/junos-rollback-RPC-mapping.json"
271           }
272         }
273       },
274       "netconf-device" : {
275         "type" : "vnf-netconf-device",
276         "capabilities" : {
277           "netconf" : {
278             "properties" : {
279               "login-key" : {
280                 "get_input" : "password"
281               },
282               "login-account" : {
283                 "get_input" : "username"
284               },
285               "target-ip-address" : {
286                 "get_input" : "ip"
287               },
288               "port-number" : 830,
289               "connection-time-out" : 5
290             }
291           }
292         }
293       }
294     }
295   }
296 }