Change in DG for the Audit and the Sync
[appc.git] / appc-directed-graph / appc-dgraph / provider / src / main / resources / json / Dispatcher-DG / APPC_method_GetRunningConfig_2.0.0.json
1 [
2     {
3         "id": "41c9ff8.d1003",
4         "type": "failure",
5         "name": "failure",
6         "xml": "<outcome value='failure'>\n",
7         "comments": "",
8         "outputs": 1,
9         "x": 718.4999847412109,
10         "y": 348.9999876022339,
11         "z": "f559ad98.b8693",
12         "wires": [
13             [
14                 "c71126ee.a63608"
15             ]
16         ]
17     },
18     {
19         "id": "2f462db6.1bf662",
20         "type": "not-found",
21         "name": "not-found",
22         "xml": "<outcome value='not-found'>\n",
23         "comments": "",
24         "outputs": 1,
25         "x": 709.4999732971191,
26         "y": 424.25000762939453,
27         "z": "f559ad98.b8693",
28         "wires": [
29             [
30                 "93afef4a.9f677"
31             ]
32         ]
33     },
34     {
35         "id": "f7067fbf.b9ee2",
36         "type": "not-found",
37         "name": "not-found",
38         "xml": "<outcome value='not-found'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 650.7499198913574,
42         "y": 87.7499828338623,
43         "z": "f559ad98.b8693",
44         "wires": [
45             [
46                 "89ea0bc2.cebbb8"
47             ]
48         ]
49     },
50     {
51         "id": "af1966db.536898",
52         "type": "failure",
53         "name": "failure",
54         "xml": "<outcome value='failure'>\n",
55         "comments": "",
56         "outputs": 1,
57         "x": 647.2499294281006,
58         "y": 37.49998474121094,
59         "z": "f559ad98.b8693",
60         "wires": [
61             [
62                 "35f55e04.cb5542"
63             ]
64         ]
65     },
66     {
67         "id": "1cf51b48.0883a5",
68         "type": "failure",
69         "name": "failure",
70         "xml": "<outcome value='failure'>\n",
71         "comments": "",
72         "outputs": 1,
73         "x": 676.7499237060547,
74         "y": 506.99992752075195,
75         "z": "f559ad98.b8693",
76         "wires": [
77             [
78                 "25b252df.c74fce"
79             ]
80         ]
81     },
82     {
83         "id": "c944dab9.aabd48",
84         "type": "not-found",
85         "name": "not-found",
86         "xml": "<outcome value='not-found'>\n",
87         "comments": "",
88         "outputs": 1,
89         "x": 674.9999465942383,
90         "y": 557.9999904632568,
91         "z": "f559ad98.b8693",
92         "wires": [
93             [
94                 "7047697.c309998"
95             ]
96         ]
97     },
98     {
99         "id": "5ae40f9c.4c573",
100         "type": "failure",
101         "name": "failure",
102         "xml": "<outcome value='failure'>\n",
103         "comments": "",
104         "outputs": 1,
105         "x": 1346.2497959136963,
106         "y": 643.5000324249268,
107         "z": "f559ad98.b8693",
108         "wires": [
109             [
110                 "20eba032.0d715"
111             ]
112         ]
113     },
114     {
115         "id": "c1a9f0a9.4d854",
116         "type": "failure",
117         "name": "failure",
118         "xml": "<outcome value='failure'>\n",
119         "comments": "",
120         "outputs": 1,
121         "x": 1353.4999618530273,
122         "y": 713.2499885559082,
123         "z": "f559ad98.b8693",
124         "wires": [
125             [
126                 "d23e8d46.32801"
127             ]
128         ]
129     },
130     {
131         "id": "e4bb8d09.58ee4",
132         "type": "success",
133         "name": "multipleRunningConfig",
134         "xml": "<outcome value='Other'>\n",
135         "comments": "",
136         "outputs": 1,
137         "x": 821.2499809265137,
138         "y": 604.4999561309814,
139         "z": "f559ad98.b8693",
140         "wires": [
141             [
142                 "4ef6cf2b.3f87e"
143             ]
144         ]
145     },
146     {
147         "id": "18f727b5.1aba48",
148         "type": "call",
149         "name": "Call device interfacing DG",
150         "xml": "<call rpc='`$dg-rpc`' module = '`$module`'  mode='sync'>\n<parameter name=\"nodeName\" value=\"callInterfacingDG\" />\n",
151         "comments": "",
152         "outputs": 1,
153         "x": 466.75,
154         "y": 424.25000762939453,
155         "z": "f559ad98.b8693",
156         "wires": [
157             [
158                 "41c9ff8.d1003",
159                 "2f462db6.1bf662",
160                 "9cc74be2.2caf28"
161             ]
162         ]
163     },
164     {
165         "id": "4820c332.ead96c",
166         "type": "get-resource",
167         "name": "Get device interfacing DG",
168         "xml": "<get-resource plugin='org.openecomp.sdnc.sli.resource.sql.SqlResource' resource='SQL' key=\"select dg_rpc , module , protocol from DEVICE_INTERFACE_PROTOCOL where VNF_TYPE = $vnf-type and DG_RPC is not null \" >\n<parameter name=\"nodeName\" value=\"getDeviceInterfacingDG\" />\n",
169         "comments": "",
170         "outputs": 1,
171         "x": 362.24999237060547,
172         "y": 119.49999141693115,
173         "z": "f559ad98.b8693",
174         "wires": [
175             [
176                 "f7067fbf.b9ee2",
177                 "af1966db.536898",
178                 "94826497.dea478"
179             ]
180         ]
181     },
182     {
183         "id": "aab808f2.7e3fc8",
184         "type": "get-resource",
185         "name": "Check if running config exists",
186         "xml": "<get-resource plugin='org.openecomp.sdnc.sli.resource.sql.SqlResource' resource='SQL' key=\"select count(1) as value from UPLOAD_CONFIG where VNF_ID = $input.action-identifiers.vnf-id and ( if ( $vnfc-type = '' , VNFC_TYPE is NULL OR VNFC_TYPE = '' , VNFC_TYPE = $vnfc-type ) ) and HOST_IP_ADDRESS = $host-ip-address and CONFIG_INDICATOR = 'Running' AND (pending_delete IS NULL OR pending_delete != 'Y') \" force='true' pfx='runningConfig.count'>\n<parameter name=\"nodeName\" value=\"getDBRunningConf\" />\n",
187         "comments": "",
188         "outputs": 1,
189         "x": 244.25003051757812,
190         "y": 706.7499723434448,
191         "z": "f559ad98.b8693",
192         "wires": [
193             [
194                 "1cf51b48.0883a5",
195                 "c944dab9.aabd48",
196                 "8ab22ee2.47cf3"
197             ]
198         ]
199     },
200     {
201         "id": "cf0ad6ea.cb1f78",
202         "type": "save",
203         "name": "Insert configuration",
204         "xml": "<save plugin='org.openecomp.sdnc.sli.resource.sql.SqlResource' resource='SQL' key=\"INSERT INTO UPLOAD_CONFIG (REQUEST_ID,  ORIGINATOR_ID,  SERVICE_DESCRIPTION,   ACTION,  VNF_ID,  VNF_NAME, VM_NAME,  VNF_TYPE,  VNFC_TYPE,  HOST_IP_ADDRESS,  CONFIG_INDICATOR,  PENDING_DELETE,  CONTENT ) VALUES ( $input.common-header.request-id , $input.common-header.originator-id , $service-description , $input.action , $input.action-identifiers.vnf-id , $vnf-name , $vm-name , $vnf-type , $vnfc-type , $host-ip-address , 'Running' , NULL , $device-running-config ) \" force='true' >\n<parameter name=\"nodeName\" value=\"InsertConfiguration\" />\n",
205         "comments": "",
206         "outputs": 1,
207         "x": 1142.9998016357422,
208         "y": 691.0000305175781,
209         "z": "f559ad98.b8693",
210         "wires": [
211             [
212                 "5ae40f9c.4c573",
213                 "e56377db.c62b78"
214             ]
215         ]
216     },
217     {
218         "id": "1a65ac62.011454",
219         "type": "save",
220         "name": "Update configuration",
221         "xml": "<save plugin='org.openecomp.sdnc.sli.resource.sql.SqlResource' resource='SQL' key=\"update UPLOAD_CONFIG set CONTENT = $device-running-config , REQUEST_ID = $input.common-header.request-id , ORIGINATOR_ID = $input.common-header.originator-id ,  SERVICE_DESCRIPTION = $service-description , ACTION = $input.action , UPLOAD_DATE = CURRENT_TIMESTAMP  where VNF_ID = $input.action-identifiers.vnf-id and ( if ( $vnfc-type = '' , VNFC_TYPE is NULL OR VNFC_TYPE = '' , VNFC_TYPE = $vnfc-type ) ) and HOST_IP_ADDRESS = $host-ip-address and CONFIG_INDICATOR = 'Running' AND (pending_delete IS NULL OR pending_delete != 'Y') \" force='true' pfx='update'>\n<parameter name=\"nodeName\" value=\"updateConfiguration\" />\n",
222         "comments": "",
223         "outputs": 1,
224         "x": 1145.0000038146973,
225         "y": 761.4999904632568,
226         "z": "f559ad98.b8693",
227         "wires": [
228             [
229                 "c1a9f0a9.4d854",
230                 "df5dba1b.dda078"
231             ]
232         ]
233     },
234     {
235         "id": "47c94803.def228",
236         "type": "switchNode",
237         "name": "switch",
238         "xml": "<switch test='`$runningConfig.count.value`'>\n",
239         "comments": "",
240         "outputs": 1,
241         "x": 604.9999542236328,
242         "y": 762.2500133514404,
243         "z": "f559ad98.b8693",
244         "wires": [
245             [
246                 "e4bb8d09.58ee4",
247                 "f4178997.62e378",
248                 "fdf247dd.8933e8"
249             ]
250         ]
251     },
252     {
253         "id": "c7da8af6.af9338",
254         "type": "block",
255         "name": "block : atomic",
256         "xml": "<block atomic='true'>",
257         "atomic": "true",
258         "comments": "",
259         "outputs": 1,
260         "x": 77.50001525878906,
261         "y": 313.49999237060547,
262         "z": "f559ad98.b8693",
263         "wires": [
264             [
265                 "7374b7a3.466358",
266                 "4820c332.ead96c"
267             ]
268         ]
269     },
270     {
271         "id": "9cc74be2.2caf28",
272         "type": "success",
273         "name": "success",
274         "xml": "<outcome value='success'>\n",
275         "comments": "",
276         "outputs": 1,
277         "x": 493.4999485015869,
278         "y": 485.25,
279         "z": "f559ad98.b8693",
280         "wires": [
281             [
282                 "aab808f2.7e3fc8"
283             ]
284         ]
285     },
286     {
287         "id": "94826497.dea478",
288         "type": "success",
289         "name": "success",
290         "xml": "<outcome value='success'>\n",
291         "comments": "",
292         "outputs": 1,
293         "x": 642.4996528625488,
294         "y": 125.25001525878906,
295         "z": "f559ad98.b8693",
296         "wires": [
297             [
298                 "c5cb1412.497a18"
299             ]
300         ]
301     },
302     {
303         "id": "8ab22ee2.47cf3",
304         "type": "success",
305         "name": "success",
306         "xml": "<outcome value='success'>\n",
307         "comments": "",
308         "outputs": 1,
309         "x": 449.9999351501465,
310         "y": 762.7500019073486,
311         "z": "f559ad98.b8693",
312         "wires": [
313             [
314                 "47c94803.def228"
315             ]
316         ]
317     },
318     {
319         "id": "e56377db.c62b78",
320         "type": "success",
321         "name": "success",
322         "xml": "<outcome value='success'>\n",
323         "comments": "",
324         "outputs": 1,
325         "x": 1350.4999294281006,
326         "y": 677.7500190734863,
327         "z": "f559ad98.b8693",
328         "wires": [
329             [
330                 "7ffbca1c.8ade54"
331             ]
332         ]
333     },
334     {
335         "id": "b814bec0.102a7",
336         "type": "block",
337         "name": "block",
338         "xml": "<block>\n",
339         "atomic": "false",
340         "comments": "",
341         "outputs": 1,
342         "x": 971.4999084472656,
343         "y": 689.2499027252197,
344         "z": "f559ad98.b8693",
345         "wires": [
346             [
347                 "cf0ad6ea.cb1f78"
348             ]
349         ]
350     },
351     {
352         "id": "df5dba1b.dda078",
353         "type": "success",
354         "name": "success",
355         "xml": "<outcome value='success'>\n",
356         "comments": "",
357         "outputs": 1,
358         "x": 1349.5000114440918,
359         "y": 760.5000305175781,
360         "z": "f559ad98.b8693",
361         "wires": [
362             [
363                 "7ffbca1c.8ade54"
364             ]
365         ]
366     },
367     {
368         "id": "1cd6e410.a66d5c",
369         "type": "block",
370         "name": "block",
371         "xml": "<block>\n",
372         "atomic": "false",
373         "comments": "",
374         "outputs": 1,
375         "x": 970.4999771118164,
376         "y": 761.2499752044678,
377         "z": "f559ad98.b8693",
378         "wires": [
379             [
380                 "1a65ac62.011454"
381             ]
382         ]
383     },
384     {
385         "id": "f4178997.62e378",
386         "type": "success",
387         "name": "noRunningConfig",
388         "xml": "<outcome value='0'>\n",
389         "comments": "",
390         "outputs": 1,
391         "x": 814.9998359680176,
392         "y": 689.2499303817749,
393         "z": "f559ad98.b8693",
394         "wires": [
395             [
396                 "b814bec0.102a7"
397             ]
398         ]
399     },
400     {
401         "id": "fdf247dd.8933e8",
402         "type": "failure",
403         "name": "runningConfigExists",
404         "xml": "<outcome value='1'>\n",
405         "comments": "",
406         "outputs": 1,
407         "x": 795.9999465942383,
408         "y": 761.7499675750732,
409         "z": "f559ad98.b8693",
410         "wires": [
411             [
412                 "1cd6e410.a66d5c"
413             ]
414         ]
415     },
416     {
417         "id": "48dbdb81.69c4a4",
418         "type": "method",
419         "name": "GetRunningConfig",
420         "xml": "<method rpc='GetRunningConfig' mode='sync'>\n",
421         "comments": "",
422         "outputs": 1,
423         "x": 93.0000114440918,
424         "y": 140,
425         "z": "f559ad98.b8693",
426         "wires": [
427             [
428                 "c7da8af6.af9338"
429             ]
430         ]
431     },
432     {
433         "id": "eb3ce0c0.b42d",
434         "type": "service-logic",
435         "name": "APPC 2.0.0",
436         "module": "APPC",
437         "version": "2.0.0",
438         "comments": "",
439         "xml": "<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='2.0.0'>",
440         "outputs": 1,
441         "x": 251.99999618530273,
442         "y": 41.25,
443         "z": "f559ad98.b8693",
444         "wires": [
445             [
446                 "48dbdb81.69c4a4"
447             ]
448         ]
449     },
450     {
451         "id": "7374b7a3.466358",
452         "type": "returnSuccess",
453         "name": "return success",
454         "xml": "<return status='success'>\n",
455         "comments": "",
456         "x": 160.25,
457         "y": 560.7499656677246,
458         "z": "f559ad98.b8693",
459         "wires": []
460     },
461     {
462         "id": "c79d207b.fb939",
463         "type": "dgstart",
464         "name": "DGSTART",
465         "outputs": 1,
466         "x": 91.38888931274414,
467         "y": 41.55555725097656,
468         "z": "f559ad98.b8693",
469         "wires": [
470             [
471                 "eb3ce0c0.b42d"
472             ]
473         ]
474     },
475     {
476         "id": "35f55e04.cb5542",
477         "type": "block",
478         "name": "block",
479         "xml": "<block>\n",
480         "atomic": "false",
481         "comments": "",
482         "outputs": 1,
483         "x": 792.4997253417969,
484         "y": 37.99998474121094,
485         "z": "f559ad98.b8693",
486         "wires": [
487             [
488                 "fbf3ae87.ec3e",
489                 "59265f06.32f92",
490                 "110568c2.beef77"
491             ]
492         ]
493     },
494     {
495         "id": "89ea0bc2.cebbb8",
496         "type": "block",
497         "name": "block",
498         "xml": "<block>\n",
499         "atomic": "false",
500         "comments": "",
501         "outputs": 1,
502         "x": 798.9999694824219,
503         "y": 91.74999141693115,
504         "z": "f559ad98.b8693",
505         "wires": [
506             [
507                 "d8a25f2a.4b75f",
508                 "59265f06.32f92",
509                 "110568c2.beef77"
510             ]
511         ]
512     },
513     {
514         "id": "fbf3ae87.ec3e",
515         "type": "set",
516         "name": "Set error message",
517         "xml": "<set>\n<parameter name='node-error-message' value='Error while getting device interfacing DG details' />\n",
518         "comments": "",
519         "x": 1086.4999828338623,
520         "y": 33.500003814697266,
521         "z": "f559ad98.b8693",
522         "wires": []
523     },
524     {
525         "id": "d8a25f2a.4b75f",
526         "type": "set",
527         "name": "Set error message",
528         "xml": "<set>\n<parameter name='node-error-message' value=\"`'Device Interfacing DG mapping not found for the ' + $vnf-type `\" />\n",
529         "comments": "",
530         "x": 1085.5000038146973,
531         "y": 81.5000171661377,
532         "z": "f559ad98.b8693",
533         "wires": []
534     },
535     {
536         "id": "59265f06.32f92",
537         "type": "returnFailure",
538         "name": "return failure",
539         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",
540         "comments": "",
541         "x": 1073.4998054504395,
542         "y": 166.7500171661377,
543         "z": "f559ad98.b8693",
544         "wires": []
545     },
546     {
547         "id": "c71126ee.a63608",
548         "type": "block",
549         "name": "block",
550         "xml": "<block>\n",
551         "atomic": "false",
552         "comments": "",
553         "outputs": 1,
554         "x": 866.2499465942383,
555         "y": 348.0000123977661,
556         "z": "f559ad98.b8693",
557         "wires": [
558             [
559                 "be6a0416.09a6f8",
560                 "56da2cf4.8a70d4",
561                 "77a033d2.9e603c"
562             ]
563         ]
564     },
565     {
566         "id": "93afef4a.9f677",
567         "type": "block",
568         "name": "block",
569         "xml": "<block>\n",
570         "atomic": "false",
571         "comments": "",
572         "outputs": 1,
573         "x": 865.2499656677246,
574         "y": 405.75000381469727,
575         "z": "f559ad98.b8693",
576         "wires": [
577             [
578                 "6a449088.49c4c",
579                 "56da2cf4.8a70d4",
580                 "77a033d2.9e603c"
581             ]
582         ]
583     },
584     {
585         "id": "be6a0416.09a6f8",
586         "type": "set",
587         "name": "Set error message",
588         "xml": "<set>\n<parameter name='node-error-message' value=\"`$error-message`\"/>\n",
589         "comments": "",
590         "x": 1116.7500114440918,
591         "y": 304.5,
592         "z": "f559ad98.b8693",
593         "wires": []
594     },
595     {
596         "id": "6a449088.49c4c",
597         "type": "set",
598         "name": "Set error message",
599         "xml": "<set>\n<parameter name='node-error-message' value='Device Interfacing DG not found' />\n",
600         "comments": "",
601         "x": 1118.7500114440918,
602         "y": 347.75,
603         "z": "f559ad98.b8693",
604         "wires": []
605     },
606     {
607         "id": "7047697.c309998",
608         "type": "block",
609         "name": "block",
610         "xml": "<block>\n",
611         "atomic": "false",
612         "comments": "",
613         "outputs": 1,
614         "x": 880.5000839233398,
615         "y": 558.2500133514404,
616         "z": "f559ad98.b8693",
617         "wires": [
618             [
619                 "c84e4bf6.e67e68",
620                 "77a033d2.9e603c",
621                 "56da2cf4.8a70d4"
622             ]
623         ]
624     },
625     {
626         "id": "25b252df.c74fce",
627         "type": "block",
628         "name": "block",
629         "xml": "<block>\n",
630         "atomic": "false",
631         "comments": "",
632         "outputs": 1,
633         "x": 883.0000305175781,
634         "y": 507.49997329711914,
635         "z": "f559ad98.b8693",
636         "wires": [
637             [
638                 "f80dbb6f.4e6798",
639                 "77a033d2.9e603c",
640                 "56da2cf4.8a70d4"
641             ]
642         ]
643     },
644     {
645         "id": "f80dbb6f.4e6798",
646         "type": "set",
647         "name": "Set error message",
648         "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\"/>\n",
649         "comments": "",
650         "x": 1117.5000114440918,
651         "y": 392.25,
652         "z": "f559ad98.b8693",
653         "wires": []
654     },
655     {
656         "id": "c84e4bf6.e67e68",
657         "type": "set",
658         "name": "Set error message",
659         "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n",
660         "comments": "",
661         "x": 1117.7500114440918,
662         "y": 432.25,
663         "z": "f559ad98.b8693",
664         "wires": []
665     },
666     {
667         "id": "77a033d2.9e603c",
668         "type": "returnFailure",
669         "name": "return failure",
670         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",
671         "comments": "",
672         "x": 1125.2499389648438,
673         "y": 554.0000247955322,
674         "z": "f559ad98.b8693",
675         "wires": []
676     },
677     {
678         "id": "4ef6cf2b.3f87e",
679         "type": "block",
680         "name": "block",
681         "xml": "<block>\n",
682         "atomic": "false",
683         "comments": "",
684         "outputs": 1,
685         "x": 1508.250099182129,
686         "y": 592.2500324249268,
687         "z": "f559ad98.b8693",
688         "wires": [
689             [
690                 "5b6e690e.0c1d28",
691                 "91e99105.1b771",
692                 "ad0cfd57.99bc5"
693             ]
694         ]
695     },
696     {
697         "id": "5b6e690e.0c1d28",
698         "type": "set",
699         "name": "Set error message",
700         "xml": "<set>\n<parameter name='node-error-message' value='More than one running configuration available for a VNFC' />\n",
701         "comments": "",
702         "x": 1741.5000114440918,
703         "y": 518.2500610351562,
704         "z": "f559ad98.b8693",
705         "wires": []
706     },
707     {
708         "id": "91e99105.1b771",
709         "type": "returnFailure",
710         "name": "return failure",
711         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",
712         "comments": "",
713         "x": 1740.7500114440918,
714         "y": 698.0000305175781,
715         "z": "f559ad98.b8693",
716         "wires": []
717     },
718     {
719         "id": "20eba032.0d715",
720         "type": "block",
721         "name": "block",
722         "xml": "<block>\n",
723         "atomic": "false",
724         "comments": "",
725         "outputs": 1,
726         "x": 1520.25,
727         "y": 641.9999914169312,
728         "z": "f559ad98.b8693",
729         "wires": [
730             [
731                 "521a5086.14cc",
732                 "91e99105.1b771",
733                 "ad0cfd57.99bc5"
734             ]
735         ]
736     },
737     {
738         "id": "521a5086.14cc",
739         "type": "set",
740         "name": "Set error message",
741         "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while updating the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n",
742         "comments": "",
743         "x": 1744.7500114440918,
744         "y": 563.2500305175781,
745         "z": "f559ad98.b8693",
746         "wires": []
747     },
748     {
749         "id": "d23e8d46.32801",
750         "type": "block",
751         "name": "block",
752         "xml": "<block>\n",
753         "atomic": "false",
754         "comments": "",
755         "outputs": 1,
756         "x": 1520.7500629425049,
757         "y": 704.9999961853027,
758         "z": "f559ad98.b8693",
759         "wires": [
760             [
761                 "3e69c586.3bd81a",
762                 "91e99105.1b771",
763                 "ad0cfd57.99bc5"
764             ]
765         ]
766     },
767     {
768         "id": "3e69c586.3bd81a",
769         "type": "set",
770         "name": "Set error message",
771         "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while updating the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n",
772         "comments": "",
773         "x": 1745.5000114440918,
774         "y": 609.2500305175781,
775         "z": "f559ad98.b8693",
776         "wires": []
777     },
778     {
779         "id": "110568c2.beef77",
780         "type": "record",
781         "name": "Log error",
782         "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n",
783         "comments": "",
784         "outputs": 1,
785         "x": 1059.0000038146973,
786         "y": 122.75003051757812,
787         "z": "f559ad98.b8693",
788         "wires": [
789             []
790         ]
791     },
792     {
793         "id": "56da2cf4.8a70d4",
794         "type": "record",
795         "name": "Log error",
796         "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n",
797         "comments": "",
798         "outputs": 1,
799         "x": 1116.24995803833,
800         "y": 506.0000057220459,
801         "z": "f559ad98.b8693",
802         "wires": [
803             []
804         ]
805     },
806     {
807         "id": "ad0cfd57.99bc5",
808         "type": "record",
809         "name": "Log error",
810         "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n",
811         "comments": "",
812         "outputs": 1,
813         "x": 1739.0000114440918,
814         "y": 651.2500305175781,
815         "z": "f559ad98.b8693",
816         "wires": [
817             []
818         ]
819     },
820     {
821         "id": "aa5124a4.42edf8",
822         "type": "set",
823         "name": "set DG parameters",
824         "xml": "<set>\n<parameter name='config.vnf-type' value=\"`$vnf-type`\" />\n<parameter name='config.vnf-name' value=\"`$vnf-name`\" />\n<parameter name='config.protocol' value=\"`$protocol`\" />\n<parameter name='config.host-ip-address' value=\"`$host-ip-address`\" />\n<parameter name='config.user-name' value=\"`$property.user`\" />\n<parameter name='config.password' value=\"`$property.password`\" />\n<parameter name='config.port-number' value=\"`$property.port`\" />\n<parameter name='input.action' value='`$input.action.lcm`' />",
825         "comments": "",
826         "x": 495.6665725708008,
827         "y": 363.41665840148926,
828         "z": "f559ad98.b8693",
829         "wires": []
830     },
831     {
832         "id": "384b0e85.e96e12",
833         "type": "block",
834         "name": "block",
835         "xml": "<block>\n",
836         "atomic": "false",
837         "comments": "",
838         "outputs": 1,
839         "x": 308.9999885559082,
840         "y": 357.25,
841         "z": "f559ad98.b8693",
842         "wires": [
843             [
844                 "aa5124a4.42edf8",
845                 "18f727b5.1aba48"
846             ]
847         ]
848     },
849     {
850         "id": "7ffbca1c.8ade54",
851         "type": "get-resource",
852         "name": "Get Running Config Id",
853         "xml": "<get-resource plugin='org.openecomp.sdnc.sli.resource.sql.SqlResource' resource='SQL' key=\"select UPLOAD_CONFIG_ID from UPLOAD_CONFIG where VNF_ID = $input.action-identifiers.vnf-id and ( if ( $vnfc-type = '' , VNFC_TYPE is NULL OR VNFC_TYPE = '' , VNFC_TYPE = $vnfc-type ) ) and HOST_IP_ADDRESS = $host-ip-address and CONFIG_INDICATOR = 'Running' AND (pending_delete IS NULL OR pending_delete != 'Y') \" force='true' pfx='runningConfig'>\n",
854         "comments": "",
855         "outputs": 1,
856         "x": 1587.0000114440918,
857         "y": 767.3333435058594,
858         "z": "f559ad98.b8693",
859         "wires": [
860             [
861                 "756799b2.127ab8",
862                 "d2c8dc26.6753",
863                 "a3603572.aa71c8"
864             ]
865         ]
866     },
867     {
868         "id": "756799b2.127ab8",
869         "type": "failure",
870         "name": "failure",
871         "xml": "<outcome value='failure'>\n",
872         "comments": "",
873         "outputs": 1,
874         "x": 1939.5000114440918,
875         "y": 721.5833740234375,
876         "z": "f559ad98.b8693",
877         "wires": [
878             [
879                 "23c677a.c356588"
880             ]
881         ]
882     },
883     {
884         "id": "d2c8dc26.6753",
885         "type": "not-found",
886         "name": "not-found",
887         "xml": "<outcome value='not-found'>\n",
888         "comments": "",
889         "outputs": 1,
890         "x": 1932.0000114440918,
891         "y": 781.5833740234375,
892         "z": "f559ad98.b8693",
893         "wires": [
894             [
895                 "183025a2.dd2f3a"
896             ]
897         ]
898     },
899     {
900         "id": "23c677a.c356588",
901         "type": "block",
902         "name": "block",
903         "xml": "<block>\n",
904         "atomic": "false",
905         "comments": "",
906         "outputs": 1,
907         "x": 2096.9996452331543,
908         "y": 720.0833740234375,
909         "z": "f559ad98.b8693",
910         "wires": [
911             [
912                 "73bc0b7b.225044",
913                 "7209d921.afe358",
914                 "3953bd65.2d7222"
915             ]
916         ]
917     },
918     {
919         "id": "73bc0b7b.225044",
920         "type": "set",
921         "name": "Set error message",
922         "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\"/>\n",
923         "comments": "",
924         "x": 2331.4998893737793,
925         "y": 661.0833740234375,
926         "z": "f559ad98.b8693",
927         "wires": []
928     },
929     {
930         "id": "3953bd65.2d7222",
931         "type": "record",
932         "name": "Log error",
933         "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n",
934         "comments": "",
935         "outputs": 1,
936         "x": 2322.9996452331543,
937         "y": 760.0833740234375,
938         "z": "f559ad98.b8693",
939         "wires": [
940             []
941         ]
942     },
943     {
944         "id": "183025a2.dd2f3a",
945         "type": "block",
946         "name": "block",
947         "xml": "<block>\n",
948         "atomic": "false",
949         "comments": "",
950         "outputs": 1,
951         "x": 2097.2498893737793,
952         "y": 782.5833740234375,
953         "z": "f559ad98.b8693",
954         "wires": [
955             [
956                 "bab488fc.6d28c8",
957                 "7209d921.afe358",
958                 "3953bd65.2d7222"
959             ]
960         ]
961     },
962     {
963         "id": "7209d921.afe358",
964         "type": "returnFailure",
965         "name": "return failure",
966         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",
967         "comments": "",
968         "x": 2338.2496452331543,
969         "y": 815.3333740234375,
970         "z": "f559ad98.b8693",
971         "wires": []
972     },
973     {
974         "id": "a3603572.aa71c8",
975         "type": "success",
976         "name": "success",
977         "xml": "<outcome value='success'>\n",
978         "comments": "",
979         "outputs": 1,
980         "x": 1923.4997177124023,
981         "y": 842.0833988189697,
982         "z": "f559ad98.b8693",
983         "wires": [
984             []
985         ]
986     },
987     {
988         "id": "bab488fc.6d28c8",
989         "type": "set",
990         "name": "Set error message",
991         "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n",
992         "comments": "",
993         "x": 2338.7498893737793,
994         "y": 711.0833740234375,
995         "z": "f559ad98.b8693",
996         "wires": []
997     },
998     {
999         "id": "3bdcbd6e.01b3e2",
1000         "type": "execute",
1001         "name": "execute params",
1002         "xml": " <execute plugin=\"org.onap.appc.encryptiontool.wrapper.EncryptionToolDGWrapper\" method =\"getProperty\">\n <parameter name=\"prefix\" value =\"property\"/>\n\n \n  ",
1003         "comments": "",
1004         "outputs": 1,
1005         "x": 642.2894668579102,
1006         "y": 277.7848024368286,
1007         "z": "f559ad98.b8693",
1008         "wires": [
1009             [
1010                 "cb1f79d8.7891d8",
1011                 "6861fd37.7df344",
1012                 "4697bcd0.0dec64"
1013             ]
1014         ]
1015     },
1016     {
1017         "id": "cb1f79d8.7891d8",
1018         "type": "failure",
1019         "name": "failure",
1020         "xml": "<outcome value='failure'>\n",
1021         "comments": "",
1022         "outputs": 1,
1023         "x": 923.8092803955078,
1024         "y": 186.4753589630127,
1025         "z": "f559ad98.b8693",
1026         "wires": [
1027             [
1028                 "b7727830.f70c48"
1029             ]
1030         ]
1031     },
1032     {
1033         "id": "6861fd37.7df344",
1034         "type": "not-found",
1035         "name": "not-found",
1036         "xml": "<outcome value='not-found'>\n",
1037         "comments": "",
1038         "outputs": 1,
1039         "x": 917.1189308166504,
1040         "y": 224.55056953430176,
1041         "z": "f559ad98.b8693",
1042         "wires": [
1043             [
1044                 "b7727830.f70c48"
1045             ]
1046         ]
1047     },
1048     {
1049         "id": "b7727830.f70c48",
1050         "type": "block",
1051         "name": "block",
1052         "xml": "<block>\n",
1053         "atomic": "false",
1054         "comments": "",
1055         "outputs": 1,
1056         "x": 1156.0080337524414,
1057         "y": 223.93567276000977,
1058         "z": "f559ad98.b8693",
1059         "wires": [
1060             [
1061                 "559673fe.888d2c",
1062                 "6c13c721.deff88"
1063             ]
1064         ]
1065     },
1066     {
1067         "id": "559673fe.888d2c",
1068         "type": "returnFailure",
1069         "name": "return failure",
1070         "xml": "<return status=\"failure\">\n<parameter name='error-code' value=\"500\" />\n<parameter name='error-message' value=\"`$property.error-message`\" />\n<parameter name='input.action' value='`$input.action.lcm`' />",
1071         "comments": "",
1072         "x": 1328.7062797546387,
1073         "y": 246.45551300048828,
1074         "z": "f559ad98.b8693",
1075         "wires": []
1076     },
1077     {
1078         "id": "9e8ebc01.21a36",
1079         "type": "other",
1080         "name": "other",
1081         "xml": "<outcome value='Other'>\n",
1082         "comments": "",
1083         "outputs": 1,
1084         "x": 490.0077896118164,
1085         "y": 277.59803581237793,
1086         "z": "f559ad98.b8693",
1087         "wires": [
1088             [
1089                 "3bdcbd6e.01b3e2"
1090             ]
1091         ]
1092     },
1093     {
1094         "id": "7cabaa6e.4a0e94",
1095         "type": "switchNode",
1096         "name": "switch : Protocol",
1097         "xml": "<switch test=\"`$protocol`\">\n",
1098         "comments": "",
1099         "outputs": 1,
1100         "x": 319.4444122314453,
1101         "y": 239.00312042236328,
1102         "z": "f559ad98.b8693",
1103         "wires": [
1104             [
1105                 "be889448.d8ff48",
1106                 "9e8ebc01.21a36"
1107             ]
1108         ]
1109     },
1110     {
1111         "id": "be889448.d8ff48",
1112         "type": "outcome",
1113         "name": "CHEF",
1114         "xml": "<outcome value='CHEF'>\n",
1115         "comments": "",
1116         "outputs": 1,
1117         "x": 489.6309585571289,
1118         "y": 241.35237169265747,
1119         "z": "f559ad98.b8693",
1120         "wires": [
1121             [
1122                 "bba1a316.5318d"
1123             ]
1124         ]
1125     },
1126     {
1127         "id": "bba1a316.5318d",
1128         "type": "block",
1129         "name": "block : atomic",
1130         "xml": "<block atomic=\"true\">",
1131         "atomic": "true",
1132         "outputs": 1,
1133         "x": 641.1466674804688,
1134         "y": 241.11018657684326,
1135         "z": "f559ad98.b8693",
1136         "wires": [
1137             []
1138         ]
1139     },
1140     {
1141         "id": "6c13c721.deff88",
1142         "type": "record",
1143         "name": "Log error",
1144         "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$property.error-message`\"/>\n",
1145         "comments": "",
1146         "outputs": 1,
1147         "x": 1310.5626678466797,
1148         "y": 196.81265926361084,
1149         "z": "f559ad98.b8693",
1150         "wires": [
1151             []
1152         ]
1153     },
1154     {
1155         "id": "4697bcd0.0dec64",
1156         "type": "success",
1157         "name": "success",
1158         "xml": "<outcome value='success'>\n",
1159         "comments": "",
1160         "outputs": 1,
1161         "x": 896.0903778076172,
1162         "y": 261.3960475921631,
1163         "z": "f559ad98.b8693",
1164         "wires": [
1165             [
1166                 "384b0e85.e96e12"
1167             ]
1168         ]
1169     },
1170     {
1171         "id": "c5cb1412.497a18",
1172         "type": "block",
1173         "name": "block : atomic",
1174         "xml": "<block atomic='true'>",
1175         "atomic": "true",
1176         "comments": "",
1177         "outputs": 1,
1178         "x": 341.11741638183594,
1179         "y": 174.45075607299805,
1180         "z": "f559ad98.b8693",
1181         "wires": [
1182             [
1183                 "7cabaa6e.4a0e94",
1184                 "95de0225.d624f",
1185                 "d50d962a.3fc508"
1186             ]
1187         ]
1188     },
1189     {
1190         "id": "95de0225.d624f",
1191         "type": "set",
1192         "name": "set propertyParam",
1193         "xml": "<set>\n<parameter name='APPC.protocol.PROTOCOL' value='`$protocol`' />\n<parameter name='input.action' value='GetRunningConfig' />\n\n\n\n\n\n",
1194         "comments": "",
1195         "x": 564.3396072387695,
1196         "y": 206.3396282196045,
1197         "z": "f559ad98.b8693",
1198         "wires": []
1199     },
1200     {
1201         "id": "d50d962a.3fc508",
1202         "type": "set",
1203         "name": "set Action_variable",
1204         "xml": "<set>\n<parameter name='input.action.lcm' value='`$input.action`' />\n\n\n\n",
1205         "comments": "",
1206         "x": 565.0055809020996,
1207         "y": 170.00568962097168,
1208         "z": "f559ad98.b8693",
1209         "wires": []
1210     }
1211 ]