7341e4aa39c3da12fdf11e7a6e392ba993de8ac0
[appc.git] /
1 [\r
2     {\r
3         "id": "c9005ac7.c57248",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 130,\r
8         "y": 107.57143020629883,\r
9         "z": "1c322045.61564",\r
10         "wires": [\r
11             [\r
12                 "81c4fde7.3fb5b"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "81c4fde7.3fb5b",\r
18         "type": "service-logic",\r
19         "name": "APPC 4.0.0",\r
20         "module": "APPC",\r
21         "version": "4.0.0",\r
22         "comments": "",\r
23         "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='4.0.0'>",\r
24         "outputs": 1,\r
25         "x": 311.00000762939453,\r
26         "y": 65.1428575515747,\r
27         "z": "1c322045.61564",\r
28         "wires": [\r
29             [\r
30                 "c35c9610.8d2ad8"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "c35c9610.8d2ad8",\r
36         "type": "method",\r
37         "name": "method GetTemplateConfig_Chef ",\r
38         "xml": "<method rpc='GetTemplateConfig_Chef' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 574.5476837158203,\r
42         "y": 68.49999618530273,\r
43         "z": "1c322045.61564",\r
44         "wires": [\r
45             [\r
46                 "791848b0.bcbe48"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "791848b0.bcbe48",\r
52         "type": "block",\r
53         "name": "block : atomic",\r
54         "xml": "<block atomic=\"true\">",\r
55         "atomic": "true",\r
56         "comments": "",\r
57         "outputs": 1,\r
58         "x": 142.00001907348633,\r
59         "y": 303.50003814697266,\r
60         "z": "1c322045.61564",\r
61         "wires": [\r
62             [\r
63                 "13786ad0.1af775",\r
64                 "9911db8b.909de8",\r
65                 "a0dd8b28.4c27d8"\r
66             ]\r
67         ]\r
68     },\r
69     {\r
70         "id": "13786ad0.1af775",\r
71         "type": "set",\r
72         "name": "set tmp.message",\r
73         "xml": "<set>\n<parameter name=\"tmp.message\" value=\"`$error-code + ':' + $error-message`\"/>\n",\r
74         "comments": "",\r
75         "x": 409.37306213378906,\r
76         "y": 692.8253631591797,\r
77         "z": "1c322045.61564",\r
78         "wires": []\r
79     },\r
80     {\r
81         "id": "3e746174.0ab35e",\r
82         "type": "execute",\r
83         "name": "execute isPDFILE",\r
84         "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getTemplateByVnfTypeNAction\">\n<parameter name=\"fileCategory\" value=\"config_template\" />\n<parameter name=\"responsePrefix\" value=\"config-template\" />",\r
85         "comments": "",\r
86         "outputs": 1,\r
87         "x": 762.9166679382324,\r
88         "y": 514.1666812896729,\r
89         "z": "1c322045.61564",\r
90         "wires": [\r
91             [\r
92                 "ca5f68cd.7df168",\r
93                 "abf0e2c0.46e46"\r
94             ]\r
95         ]\r
96     },\r
97     {\r
98         "id": "ca5f68cd.7df168",\r
99         "type": "not-found",\r
100         "name": "not-found",\r
101         "xml": "<outcome value='not-found'>\n",\r
102         "comments": "",\r
103         "outputs": 1,\r
104         "x": 1008.9166717529297,\r
105         "y": 494.6666507720947,\r
106         "z": "1c322045.61564",\r
107         "wires": [\r
108             []\r
109         ]\r
110     },\r
111     {\r
112         "id": "abf0e2c0.46e46",\r
113         "type": "other",\r
114         "name": "other",\r
115         "xml": "<outcome value='Other'>\n",\r
116         "comments": "",\r
117         "outputs": 1,\r
118         "x": 1003.4166717529297,\r
119         "y": 536.6666774749756,\r
120         "z": "1c322045.61564",\r
121         "wires": [\r
122             [\r
123                 "9285e961.bde908"\r
124             ]\r
125         ]\r
126     },\r
127     {\r
128         "id": "9285e961.bde908",\r
129         "type": "call",\r
130         "name": "call  chefDG",\r
131         "xml": "<call module='APPC' rpc='' mode='sync' >\n",\r
132         "comments": "",\r
133         "outputs": 1,\r
134         "x": 1170.416690826416,\r
135         "y": 539.1666574478149,\r
136         "z": "1c322045.61564",\r
137         "wires": [\r
138             [\r
139                 "6b096ef8.220c6"\r
140             ]\r
141         ]\r
142     },\r
143     {\r
144         "id": "6b096ef8.220c6",\r
145         "type": "block",\r
146         "name": "block : atomic",\r
147         "xml": "<block atomic=\"true\">",\r
148         "atomic": "true",\r
149         "outputs": 1,\r
150         "x": 1349.1667938232422,\r
151         "y": 540.4167070388794,\r
152         "z": "1c322045.61564",\r
153         "wires": [\r
154             [\r
155                 "3b23acb8.aee1b4"\r
156             ]\r
157         ]\r
158     },\r
159     {\r
160         "id": "3b23acb8.aee1b4",\r
161         "type": "returnSuccess",\r
162         "name": "return success",\r
163         "xml": "<return status='success'>\n<parameter name='output.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='output.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n<parameter name='output.status.results' value = '`$output.status.results`'/>\n",\r
164         "comments": "",\r
165         "x": 1531.666706085205,\r
166         "y": 540.4166622161865,\r
167         "z": "1c322045.61564",\r
168         "wires": []\r
169     },\r
170     {\r
171         "id": "9911db8b.909de8",\r
172         "type": "call",\r
173         "name": "call  Generic_ChefDG",\r
174         "xml": "<call module='APPC' rpc='Generic_ChefDG' mode='sync' >\n",\r
175         "comments": "",\r
176         "outputs": 1,\r
177         "x": 428.3334197998047,\r
178         "y": 591.666748046875,\r
179         "z": "1c322045.61564",\r
180         "wires": [\r
181             [\r
182                 "13c04cd9.b43873",\r
183                 "3d395b6f.37d6d4"\r
184             ]\r
185         ]\r
186     },\r
187     {\r
188         "id": "70ff03bc.550c5c",\r
189         "type": "execute",\r
190         "name": "execute: getChefRunningConfig",\r
191         "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getConfigFilesByVnfActionNCategory\">\n<parameter name=\"fileCategory\" value=\"device_configuration\" />\n<parameter name='vnfname' value=\"`$config.vnf-name`\" />\n<parameter name='action' value=\"`$config.action`\" />\n<parameter name=\"responsePrefix\" value=\"tmp.deviceconfig\" />\n",\r
192         "comments": "",\r
193         "outputs": 1,\r
194         "x": 1041.66650390625,\r
195         "y": 158.33333206176758,\r
196         "z": "1c322045.61564",\r
197         "wires": [\r
198             [\r
199                 "e0166624.d85ba8",\r
200                 "2d46c9a9.5e4556",\r
201                 "60877372.7124dc"\r
202             ]\r
203         ]\r
204     },\r
205     {\r
206         "id": "60877372.7124dc",\r
207         "type": "success",\r
208         "name": "success",\r
209         "xml": "<outcome value='success'>\n",\r
210         "comments": "",\r
211         "outputs": 1,\r
212         "x": 1187.6665115356445,\r
213         "y": 240.3333044052124,\r
214         "z": "1c322045.61564",\r
215         "wires": [\r
216             [\r
217                 "594ea12a.967b5"\r
218             ]\r
219         ]\r
220     },\r
221     {\r
222         "id": "594ea12a.967b5",\r
223         "type": "block",\r
224         "name": "block",\r
225         "xml": "<block>\n",\r
226         "atomic": "false",\r
227         "comments": "",\r
228         "outputs": 1,\r
229         "x": 1350.6665115356445,\r
230         "y": 240.3333044052124,\r
231         "z": "1c322045.61564",\r
232         "wires": [\r
233             [\r
234                 "69841f84.beca3"\r
235             ]\r
236         ]\r
237     },\r
238     {\r
239         "id": "2d46c9a9.5e4556",\r
240         "type": "other",\r
241         "name": "other",\r
242         "xml": "<outcome value='Other'>\n",\r
243         "comments": "",\r
244         "outputs": 1,\r
245         "x": 1335.6665115356445,\r
246         "y": 183.3333044052124,\r
247         "z": "1c322045.61564",\r
248         "wires": [\r
249             []\r
250         ]\r
251     },\r
252     {\r
253         "id": "e0166624.d85ba8",\r
254         "type": "failure",\r
255         "name": "failure",\r
256         "xml": "<outcome value='failure'>\n",\r
257         "comments": "",\r
258         "outputs": 1,\r
259         "x": 1341.3331909179688,\r
260         "y": 120.99998950958252,\r
261         "z": "1c322045.61564",\r
262         "wires": [\r
263             [\r
264                 "afceb049.effd"\r
265             ]\r
266         ]\r
267     },\r
268     {\r
269         "id": "69841f84.beca3",\r
270         "type": "returnSuccess",\r
271         "name": "return success",\r
272         "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$tmp.deviceconfig.file-content`\" />\n",\r
273         "comments": "",\r
274         "x": 1553.6665115356445,\r
275         "y": 242.3333044052124,\r
276         "z": "1c322045.61564",\r
277         "wires": []\r
278     },\r
279     {\r
280         "id": "afceb049.effd",\r
281         "type": "block",\r
282         "name": "block",\r
283         "xml": "<block>\n",\r
284         "atomic": "false",\r
285         "comments": "",\r
286         "outputs": 1,\r
287         "x": 1517.3331909179688,\r
288         "y": 124.99998950958252,\r
289         "z": "1c322045.61564",\r
290         "wires": [\r
291             [\r
292                 "89203f87.bdd35"\r
293             ]\r
294         ]\r
295     },\r
296     {\r
297         "id": "89203f87.bdd35",\r
298         "type": "returnFailure",\r
299         "name": "return failure",\r
300         "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"`$tmp.deviceconfig.error-message`\"/>\n\n",\r
301         "comments": "",\r
302         "x": 1709.3331909179688,\r
303         "y": 117.99998950958252,\r
304         "z": "1c322045.61564",\r
305         "wires": []\r
306     },\r
307     {\r
308         "id": "a0dd8b28.4c27d8",\r
309         "type": "execute",\r
310         "name": "execute getTemplate",\r
311         "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getTemplate\">\n<parameter name=\"fileCategory\" value=\"config_template\" />\n<parameter name=\"responsePrefix\" value=\"config-template\" />",\r
312         "comments": "",\r
313         "outputs": 1,\r
314         "x": 414.66676330566406,\r
315         "y": 274.1072106361389,\r
316         "z": "1c322045.61564",\r
317         "wires": [\r
318             [\r
319                 "209fd4e.f5e6a2c",\r
320                 "c880f1bf.06526"\r
321             ]\r
322         ]\r
323     },\r
324     {\r
325         "id": "c880f1bf.06526",\r
326         "type": "failure",\r
327         "name": "failure",\r
328         "xml": "<outcome value='failure'>\n",\r
329         "comments": "",\r
330         "outputs": 1,\r
331         "x": 629.3811264038086,\r
332         "y": 316.52382373809814,\r
333         "z": "1c322045.61564",\r
334         "wires": [\r
335             [\r
336                 "3e7c0fa2.d88be"\r
337             ]\r
338         ]\r
339     },\r
340     {\r
341         "id": "3e7c0fa2.d88be",\r
342         "type": "block",\r
343         "name": "block : atomic",\r
344         "xml": "<block atomic=\"true\">",\r
345         "atomic": "true",\r
346         "outputs": 1,\r
347         "x": 821.1112251281738,\r
348         "y": 317.6666851043701,\r
349         "z": "1c322045.61564",\r
350         "wires": [\r
351             [\r
352                 "daf816d8.f062d8"\r
353             ]\r
354         ]\r
355     },\r
356     {\r
357         "id": "daf816d8.f062d8",\r
358         "type": "returnFailure",\r
359         "name": "return failure",\r
360         "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"`$config-template.error-message`\"/>\n\t\n\t\n\t",\r
361         "comments": "",\r
362         "x": 1050.7779960632324,\r
363         "y": 320.44445514678955,\r
364         "z": "1c322045.61564",\r
365         "wires": []\r
366     },\r
367     {\r
368         "id": "209fd4e.f5e6a2c",\r
369         "type": "failure",\r
370         "name": "not-found",\r
371         "xml": "<outcome value='not-found'>\n",\r
372         "comments": "",\r
373         "outputs": 1,\r
374         "x": 635.9049377441406,\r
375         "y": 239.19051837921143,\r
376         "z": "1c322045.61564",\r
377         "wires": [\r
378             [\r
379                 "32a527f0.aabd78"\r
380             ]\r
381         ]\r
382     },\r
383     {\r
384         "id": "32a527f0.aabd78",\r
385         "type": "block",\r
386         "name": "block : atomic",\r
387         "xml": "<block atomic=\"true\">",\r
388         "atomic": "true",\r
389         "outputs": 1,\r
390         "x": 820.2381896972656,\r
391         "y": 243.52384662628174,\r
392         "z": "1c322045.61564",\r
393         "wires": [\r
394             [\r
395                 "70ff03bc.550c5c"\r
396             ]\r
397         ]\r
398     },\r
399     {\r
400         "id": "3d395b6f.37d6d4",\r
401         "type": "success",\r
402         "name": "success",\r
403         "xml": "<outcome value='success'>\n",\r
404         "comments": "",\r
405         "outputs": 1,\r
406         "x": 651.6666259765625,\r
407         "y": 703.3333129882812,\r
408         "z": "1c322045.61564",\r
409         "wires": [\r
410             [\r
411                 "d444f8cd.5ab698"\r
412             ]\r
413         ]\r
414     },\r
415     {\r
416         "id": "d444f8cd.5ab698",\r
417         "type": "returnSuccess",\r
418         "name": "return success",\r
419         "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$tmp.deviceconfig.file-content`\" />\n<parameter name='output.status.code' value='`$output.status.code`' />\n<parameter name='output.status.message' value='`$output.status.message`'/>\n<parameter name='output.status.results' value = '`$output.status.results`'/>\n",\r
420         "comments": "",\r
421         "x": 869.3810539245605,\r
422         "y": 709.7618341445923,\r
423         "z": "1c322045.61564",\r
424         "wires": []\r
425     },\r
426     {\r
427         "id": "13c04cd9.b43873",\r
428         "type": "failure",\r
429         "name": "failure",\r
430         "xml": "<outcome value='failure'>\n",\r
431         "comments": "",\r
432         "outputs": 1,\r
433         "x": 635.952320098877,\r
434         "y": 604.7617607116699,\r
435         "z": "1c322045.61564",\r
436         "wires": [\r
437             [\r
438                 "c021af06.07788"\r
439             ]\r
440         ]\r
441     },\r
442     {\r
443         "id": "c021af06.07788",\r
444         "type": "returnFailure",\r
445         "name": "return failure",\r
446         "xml": "<return status='failure'>\n<parameter name='output.status.code' value='200' />\n<parameter name='output.status.message' value='`$output.status.message`'/>\n",\r
447         "comments": "",\r
448         "x": 887.3808403015137,\r
449         "y": 620.4760093688965,\r
450         "z": "1c322045.61564",\r
451         "wires": []\r
452     }\r
453 ]\r