Platform Hardening for DG Json files - Part 2
[appc.git] / appc-directed-graph / appc-dgraph / provider / src / main / resources / json / Dispatcher-DG / APPC_method_GetRunningConfig_2.0.0.json
1 [\r
2     {\r
3         "id": "2bf5503c.d388e",\r
4         "type": "failure",\r
5         "name": "failure",\r
6         "xml": "<outcome value='failure'>\n",\r
7         "comments": "",\r
8         "outputs": 1,\r
9         "x": 664.888916015625,\r
10         "y": 58.25000762939453,\r
11         "z": "276d1f6b.9bb71",\r
12         "wires": [\r
13             [\r
14                 "dbafdb1b.934f58"\r
15             ]\r
16         ]\r
17     },\r
18     {\r
19         "id": "faf55a2.8a3cca8",\r
20         "type": "failure",\r
21         "name": "failure",\r
22         "xml": "<outcome value='failure'>\n",\r
23         "comments": "",\r
24         "outputs": 1,\r
25         "x": 749.138916015625,\r
26         "y": 374.75,\r
27         "z": "276d1f6b.9bb71",\r
28         "wires": [\r
29             [\r
30                 "b59140c4.f0d26"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "5a7e4d0c.a3ad34",\r
36         "type": "not-found",\r
37         "name": "not-found",\r
38         "xml": "<outcome value='not-found'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 745.138916015625,\r
42         "y": 427.5,\r
43         "z": "276d1f6b.9bb71",\r
44         "wires": [\r
45             [\r
46                 "eda2123c.64453"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "3371a22a.28dfee",\r
52         "type": "not-found",\r
53         "name": "not-found",\r
54         "xml": "<outcome value='not-found'>\n",\r
55         "comments": "",\r
56         "outputs": 1,\r
57         "x": 667.888916015625,\r
58         "y": 127.25,\r
59         "z": "276d1f6b.9bb71",\r
60         "wires": [\r
61             [\r
62                 "577dc0de.87c37"\r
63             ]\r
64         ]\r
65     },\r
66     {\r
67         "id": "c372101a.aa5ea",\r
68         "type": "not-found",\r
69         "name": "not-found",\r
70         "xml": "<outcome value='not-found'>\n",\r
71         "comments": "",\r
72         "outputs": 1,\r
73         "x": 665.1388549804688,\r
74         "y": 278.50000762939453,\r
75         "z": "276d1f6b.9bb71",\r
76         "wires": [\r
77             [\r
78                 "2cc0ecf5.2756c4"\r
79             ]\r
80         ]\r
81     },\r
82     {\r
83         "id": "feb957d9.9b3838",\r
84         "type": "failure",\r
85         "name": "failure",\r
86         "xml": "<outcome value='failure'>\n",\r
87         "comments": "",\r
88         "outputs": 1,\r
89         "x": 659.1388549804688,\r
90         "y": 213.25000762939453,\r
91         "z": "276d1f6b.9bb71",\r
92         "wires": [\r
93             [\r
94                 "48d059a1.2c1378"\r
95             ]\r
96         ]\r
97     },\r
98     {\r
99         "id": "757aad86.e63454",\r
100         "type": "failure",\r
101         "name": "failure",\r
102         "xml": "<outcome value='failure'>\n",\r
103         "comments": "",\r
104         "outputs": 1,\r
105         "x": 737.388916015625,\r
106         "y": 472.75,\r
107         "z": "276d1f6b.9bb71",\r
108         "wires": [\r
109             [\r
110                 "cbdc9a91.622178"\r
111             ]\r
112         ]\r
113     },\r
114     {\r
115         "id": "c6746ea4.d8171",\r
116         "type": "not-found",\r
117         "name": "not-found",\r
118         "xml": "<outcome value='not-found'>\n",\r
119         "comments": "",\r
120         "outputs": 1,\r
121         "x": 736.888916015625,\r
122         "y": 523.75,\r
123         "z": "276d1f6b.9bb71",\r
124         "wires": [\r
125             [\r
126                 "fbb83850.3ab008"\r
127             ]\r
128         ]\r
129     },\r
130     {\r
131         "id": "4ac10f26.bb958",\r
132         "type": "failure",\r
133         "name": "failure",\r
134         "xml": "<outcome value='failure'>\n",\r
135         "comments": "",\r
136         "outputs": 1,\r
137         "x": 1406.888916015625,\r
138         "y": 608.0000076293945,\r
139         "z": "276d1f6b.9bb71",\r
140         "wires": [\r
141             [\r
142                 "8f213625.b48068"\r
143             ]\r
144         ]\r
145     },\r
146     {\r
147         "id": "202e4abf.4f39b6",\r
148         "type": "failure",\r
149         "name": "failure",\r
150         "xml": "<outcome value='failure'>\n",\r
151         "comments": "",\r
152         "outputs": 1,\r
153         "x": 1411.638916015625,\r
154         "y": 706.5000076293945,\r
155         "z": "276d1f6b.9bb71",\r
156         "wires": [\r
157             [\r
158                 "db7afb3c.2c58c8"\r
159             ]\r
160         ]\r
161     },\r
162     {\r
163         "id": "15804f82.f28b4",\r
164         "type": "success",\r
165         "name": "multipleRunningConfig",\r
166         "xml": "<outcome value='Other'>\n",\r
167         "comments": "",\r
168         "outputs": 1,\r
169         "x": 859.388916015625,\r
170         "y": 579.0000076293945,\r
171         "z": "276d1f6b.9bb71",\r
172         "wires": [\r
173             [\r
174                 "64a22d10.d8c794"\r
175             ]\r
176         ]\r
177     },\r
178     {\r
179         "id": "a20d1d4b.9026d",\r
180         "type": "get-resource",\r
181         "name": "Retrieve device credentials",\r
182         "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"select USER_NAME , PASSWORD , PORT_NUMBER from DEVICE_AUTHENTICATION where VNF_TYPE = $vnf-type \" >\n<parameter name=\"nodeName\" value=\"retrieveDeviceCredentials\" />\n",\r
183         "comments": "",\r
184         "outputs": 1,\r
185         "x": 429.63897705078125,\r
186         "y": 123,\r
187         "z": "276d1f6b.9bb71",\r
188         "wires": [\r
189             [\r
190                 "2bf5503c.d388e",\r
191                 "3371a22a.28dfee",\r
192                 "d3311276.7aeb5"\r
193             ]\r
194         ]\r
195     },\r
196     {\r
197         "id": "b39573b0.7834d",\r
198         "type": "call",\r
199         "name": "Call device interfacing DG",\r
200         "xml": "<call rpc='`$dg-rpc`' module = '`$module`'  mode='sync'>\n<parameter name=\"nodeName\" value=\"callInterfacingDG\" />\n",\r
201         "comments": "",\r
202         "outputs": 1,\r
203         "x": 479.888916015625,\r
204         "y": 428.75,\r
205         "z": "276d1f6b.9bb71",\r
206         "wires": [\r
207             [\r
208                 "faf55a2.8a3cca8",\r
209                 "5a7e4d0c.a3ad34",\r
210                 "27a86a4d.b60b06"\r
211             ]\r
212         ]\r
213     },\r
214     {\r
215         "id": "26e12fcf.61188",\r
216         "type": "get-resource",\r
217         "name": "Get device interfacing DG",\r
218         "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.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",\r
219         "comments": "",\r
220         "outputs": 1,\r
221         "x": 406.638916015625,\r
222         "y": 277.75000762939453,\r
223         "z": "276d1f6b.9bb71",\r
224         "wires": [\r
225             [\r
226                 "c372101a.aa5ea",\r
227                 "feb957d9.9b3838",\r
228                 "7730960.662fc6c"\r
229             ]\r
230         ]\r
231     },\r
232     {\r
233         "id": "d1f75432.3fab98",\r
234         "type": "get-resource",\r
235         "name": "Check if running config exists",\r
236         "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.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",\r
237         "comments": "",\r
238         "outputs": 1,\r
239         "x": 439.8889465332031,\r
240         "y": 562.5,\r
241         "z": "276d1f6b.9bb71",\r
242         "wires": [\r
243             [\r
244                 "757aad86.e63454",\r
245                 "c6746ea4.d8171",\r
246                 "df801ff7.3334"\r
247             ]\r
248         ]\r
249     },\r
250     {\r
251         "id": "6624b792.a4c4e8",\r
252         "type": "save",\r
253         "name": "Insert configuration",\r
254         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.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",\r
255         "comments": "",\r
256         "outputs": 1,\r
257         "x": 1198.638916015625,\r
258         "y": 619.2500076293945,\r
259         "z": "276d1f6b.9bb71",\r
260         "wires": [\r
261             [\r
262                 "4ac10f26.bb958",\r
263                 "b2654dc9.f9d45"\r
264             ]\r
265         ]\r
266     },\r
267     {\r
268         "id": "11aa7b01.78e3c5",\r
269         "type": "save",\r
270         "name": "Update configuration",\r
271         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.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",\r
272         "comments": "",\r
273         "outputs": 1,\r
274         "x": 1198.1389045715332,\r
275         "y": 716,\r
276         "z": "276d1f6b.9bb71",\r
277         "wires": [\r
278             [\r
279                 "202e4abf.4f39b6",\r
280                 "5fee9fb0.f2325"\r
281             ]\r
282         ]\r
283     },\r
284     {\r
285         "id": "2dbbd306.12300c",\r
286         "type": "switchNode",\r
287         "name": "switch",\r
288         "xml": "<switch test='`$runningConfig.count.value`'>\n",\r
289         "comments": "",\r
290         "outputs": 1,\r
291         "x": 650.6389122009277,\r
292         "y": 614.2500095367432,\r
293         "z": "276d1f6b.9bb71",\r
294         "wires": [\r
295             [\r
296                 "15804f82.f28b4",\r
297                 "ede96b3d.4c0f28",\r
298                 "c37b362b.01c868"\r
299             ]\r
300         ]\r
301     },\r
302     {\r
303         "id": "c183af40.7e96b",\r
304         "type": "block",\r
305         "name": "block : atomic",\r
306         "xml": "<block atomic='true'>",\r
307         "atomic": "true",\r
308         "comments": "",\r
309         "outputs": 1,\r
310         "x": 164.38891983032227,\r
311         "y": 235.50000381469727,\r
312         "z": "276d1f6b.9bb71",\r
313         "wires": [\r
314             [\r
315                 "a20d1d4b.9026d",\r
316                 "b696a7db.8ca138"\r
317             ]\r
318         ]\r
319     },\r
320     {\r
321         "id": "d3311276.7aeb5",\r
322         "type": "success",\r
323         "name": "success",\r
324         "xml": "<outcome value='success'>\n",\r
325         "comments": "",\r
326         "outputs": 1,\r
327         "x": 477.13885498046875,\r
328         "y": 187.00000762939453,\r
329         "z": "276d1f6b.9bb71",\r
330         "wires": [\r
331             [\r
332                 "26e12fcf.61188"\r
333             ]\r
334         ]\r
335     },\r
336     {\r
337         "id": "27a86a4d.b60b06",\r
338         "type": "success",\r
339         "name": "success",\r
340         "xml": "<outcome value='success'>\n",\r
341         "comments": "",\r
342         "outputs": 1,\r
343         "x": 441.63885498046875,\r
344         "y": 499.75,\r
345         "z": "276d1f6b.9bb71",\r
346         "wires": [\r
347             [\r
348                 "d1f75432.3fab98"\r
349             ]\r
350         ]\r
351     },\r
352     {\r
353         "id": "7730960.662fc6c",\r
354         "type": "success",\r
355         "name": "success",\r
356         "xml": "<outcome value='success'>\n",\r
357         "comments": "",\r
358         "outputs": 1,\r
359         "x": 263.1387939453125,\r
360         "y": 353.5,\r
361         "z": "276d1f6b.9bb71",\r
362         "wires": [\r
363             [\r
364                 "29603b9a.2c5b84"\r
365             ]\r
366         ]\r
367     },\r
368     {\r
369         "id": "df801ff7.3334",\r
370         "type": "success",\r
371         "name": "success",\r
372         "xml": "<outcome value='success'>\n",\r
373         "comments": "",\r
374         "outputs": 1,\r
375         "x": 479.38885498046875,\r
376         "y": 664.75,\r
377         "z": "276d1f6b.9bb71",\r
378         "wires": [\r
379             [\r
380                 "2dbbd306.12300c"\r
381             ]\r
382         ]\r
383     },\r
384     {\r
385         "id": "b2654dc9.f9d45",\r
386         "type": "success",\r
387         "name": "success",\r
388         "xml": "<outcome value='success'>\n",\r
389         "comments": "",\r
390         "outputs": 1,\r
391         "x": 1408.638916015625,\r
392         "y": 657.2500076293945,\r
393         "z": "276d1f6b.9bb71",\r
394         "wires": [\r
395             [\r
396                 "e8b89f13.0bbb4"\r
397             ]\r
398         ]\r
399     },\r
400     {\r
401         "id": "35b04eb6.6d2212",\r
402         "type": "block",\r
403         "name": "block",\r
404         "xml": "<block>\n",\r
405         "atomic": "false",\r
406         "comments": "",\r
407         "outputs": 1,\r
408         "x": 1024.638916015625,\r
409         "y": 631.2500076293945,\r
410         "z": "276d1f6b.9bb71",\r
411         "wires": [\r
412             [\r
413                 "6624b792.a4c4e8"\r
414             ]\r
415         ]\r
416     },\r
417     {\r
418         "id": "5fee9fb0.f2325",\r
419         "type": "success",\r
420         "name": "success",\r
421         "xml": "<outcome value='success'>\n",\r
422         "comments": "",\r
423         "outputs": 1,\r
424         "x": 1411.388916015625,\r
425         "y": 772.5000305175781,\r
426         "z": "276d1f6b.9bb71",\r
427         "wires": [\r
428             [\r
429                 "e8b89f13.0bbb4"\r
430             ]\r
431         ]\r
432     },\r
433     {\r
434         "id": "ed19ec7d.1ee2b",\r
435         "type": "block",\r
436         "name": "block",\r
437         "xml": "<block>\n",\r
438         "atomic": "false",\r
439         "comments": "",\r
440         "outputs": 1,\r
441         "x": 1026.138916015625,\r
442         "y": 694.5000076293945,\r
443         "z": "276d1f6b.9bb71",\r
444         "wires": [\r
445             [\r
446                 "11aa7b01.78e3c5"\r
447             ]\r
448         ]\r
449     },\r
450     {\r
451         "id": "ede96b3d.4c0f28",\r
452         "type": "success",\r
453         "name": "noRunningConfig",\r
454         "xml": "<outcome value='0'>\n",\r
455         "comments": "",\r
456         "outputs": 1,\r
457         "x": 850.638916015625,\r
458         "y": 630.0000076293945,\r
459         "z": "276d1f6b.9bb71",\r
460         "wires": [\r
461             [\r
462                 "35b04eb6.6d2212"\r
463             ]\r
464         ]\r
465     },\r
466     {\r
467         "id": "c37b362b.01c868",\r
468         "type": "failure",\r
469         "name": "runningConfigExists",\r
470         "xml": "<outcome value='1'>\n",\r
471         "comments": "",\r
472         "outputs": 1,\r
473         "x": 854.138916015625,\r
474         "y": 695.0000076293945,\r
475         "z": "276d1f6b.9bb71",\r
476         "wires": [\r
477             [\r
478                 "ed19ec7d.1ee2b"\r
479             ]\r
480         ]\r
481     },\r
482     {\r
483         "id": "4896d6e4.5270f8",\r
484         "type": "method",\r
485         "name": "GetRunningConfig",\r
486         "xml": "<method rpc='GetRunningConfig' mode='sync'>\n",\r
487         "comments": "",\r
488         "outputs": 1,\r
489         "x": 154.888916015625,\r
490         "y": 152,\r
491         "z": "276d1f6b.9bb71",\r
492         "wires": [\r
493             [\r
494                 "c183af40.7e96b"\r
495             ]\r
496         ]\r
497     },\r
498     {\r
499         "id": "13a41622.3f89ca",\r
500         "type": "service-logic",\r
501         "name": "APPC 2.0.0",\r
502         "module": "APPC",\r
503         "version": "2.0.0",\r
504         "comments": "",\r
505         "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='2.0.0'>",\r
506         "outputs": 1,\r
507         "x": 291.88890838623047,\r
508         "y": 67.25000190734863,\r
509         "z": "276d1f6b.9bb71",\r
510         "wires": [\r
511             [\r
512                 "4896d6e4.5270f8"\r
513             ]\r
514         ]\r
515     },\r
516     {\r
517         "id": "b696a7db.8ca138",\r
518         "type": "returnSuccess",\r
519         "name": "return success",\r
520         "xml": "<return status='success'>\n",\r
521         "comments": "",\r
522         "x": 144.88894653320312,\r
523         "y": 441.5,\r
524         "z": "276d1f6b.9bb71",\r
525         "wires": []\r
526     },\r
527     {\r
528         "id": "251494ff.29474c",\r
529         "type": "dgstart",\r
530         "name": "DGSTART",\r
531         "outputs": 1,\r
532         "x": 124.3889045715332,\r
533         "y": 68,\r
534         "z": "276d1f6b.9bb71",\r
535         "wires": [\r
536             [\r
537                 "13a41622.3f89ca"\r
538             ]\r
539         ]\r
540     },\r
541     {\r
542         "id": "dbafdb1b.934f58",\r
543         "type": "block",\r
544         "name": "block",\r
545         "xml": "<block>\n",\r
546         "atomic": "false",\r
547         "comments": "",\r
548         "outputs": 1,\r
549         "x": 839.888916015625,\r
550         "y": 59.750003814697266,\r
551         "z": "276d1f6b.9bb71",\r
552         "wires": [\r
553             [\r
554                 "c5226259.21e3e",\r
555                 "2490a85b.6f7c38",\r
556                 "253f5533.50173a"\r
557             ]\r
558         ]\r
559     },\r
560     {\r
561         "id": "c5226259.21e3e",\r
562         "type": "set",\r
563         "name": "Set error message",\r
564         "xml": "<set>\n<parameter name='node-error-message' value='Error while retrieving device credentials' />\n",\r
565         "comments": "",\r
566         "x": 1046.388916015625,\r
567         "y": 46,\r
568         "z": "276d1f6b.9bb71",\r
569         "wires": []\r
570     },\r
571     {\r
572         "id": "577dc0de.87c37",\r
573         "type": "block",\r
574         "name": "block",\r
575         "xml": "<block>\n",\r
576         "atomic": "false",\r
577         "comments": "",\r
578         "outputs": 1,\r
579         "x": 844.638916015625,\r
580         "y": 126.25,\r
581         "z": "276d1f6b.9bb71",\r
582         "wires": [\r
583             [\r
584                 "920835f9.5449d8",\r
585                 "2490a85b.6f7c38",\r
586                 "253f5533.50173a"\r
587             ]\r
588         ]\r
589     },\r
590     {\r
591         "id": "920835f9.5449d8",\r
592         "type": "set",\r
593         "name": "Set error message",\r
594         "xml": "<set>\n<parameter name='node-error-message' value=\"`'Device credentials not found for the ' + $vnf-type `\"/>\n",\r
595         "comments": "",\r
596         "x": 1048.388916015625,\r
597         "y": 85.5,\r
598         "z": "276d1f6b.9bb71",\r
599         "wires": []\r
600     },\r
601     {\r
602         "id": "48d059a1.2c1378",\r
603         "type": "block",\r
604         "name": "block",\r
605         "xml": "<block>\n",\r
606         "atomic": "false",\r
607         "comments": "",\r
608         "outputs": 1,\r
609         "x": 839.388916015625,\r
610         "y": 196.25000762939453,\r
611         "z": "276d1f6b.9bb71",\r
612         "wires": [\r
613             [\r
614                 "ed173feb.0d45f",\r
615                 "253f5533.50173a",\r
616                 "2490a85b.6f7c38"\r
617             ]\r
618         ]\r
619     },\r
620     {\r
621         "id": "2cc0ecf5.2756c4",\r
622         "type": "block",\r
623         "name": "block",\r
624         "xml": "<block>\n",\r
625         "atomic": "false",\r
626         "comments": "",\r
627         "outputs": 1,\r
628         "x": 843.388916015625,\r
629         "y": 252.50000762939453,\r
630         "z": "276d1f6b.9bb71",\r
631         "wires": [\r
632             [\r
633                 "e5af31d.d7d11d",\r
634                 "253f5533.50173a",\r
635                 "2490a85b.6f7c38"\r
636             ]\r
637         ]\r
638     },\r
639     {\r
640         "id": "ed173feb.0d45f",\r
641         "type": "set",\r
642         "name": "Set error message",\r
643         "xml": "<set>\n<parameter name='node-error-message' value='Error while getting device interfacing DG details' />\n",\r
644         "comments": "",\r
645         "x": 1053.3889045715332,\r
646         "y": 133.00000762939453,\r
647         "z": "276d1f6b.9bb71",\r
648         "wires": []\r
649     },\r
650     {\r
651         "id": "e5af31d.d7d11d",\r
652         "type": "set",\r
653         "name": "Set error message",\r
654         "xml": "<set>\n<parameter name='node-error-message' value=\"`'Device Interfacing DG mapping not found for the ' + $vnf-type `\" />\n",\r
655         "comments": "",\r
656         "x": 1051.138916015625,\r
657         "y": 176.00000762939453,\r
658         "z": "276d1f6b.9bb71",\r
659         "wires": []\r
660     },\r
661     {\r
662         "id": "253f5533.50173a",\r
663         "type": "returnFailure",\r
664         "name": "return failure",\r
665         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",\r
666         "comments": "",\r
667         "x": 1079.138916015625,\r
668         "y": 271.25000762939453,\r
669         "z": "276d1f6b.9bb71",\r
670         "wires": []\r
671     },\r
672     {\r
673         "id": "b59140c4.f0d26",\r
674         "type": "block",\r
675         "name": "block",\r
676         "xml": "<block>\n",\r
677         "atomic": "false",\r
678         "comments": "",\r
679         "outputs": 1,\r
680         "x": 910.638916015625,\r
681         "y": 325,\r
682         "z": "276d1f6b.9bb71",\r
683         "wires": [\r
684             [\r
685                 "11ce3fcd.175be",\r
686                 "9a30398b.6a1268",\r
687                 "81b0e59d.dd52a8"\r
688             ]\r
689         ]\r
690     },\r
691     {\r
692         "id": "eda2123c.64453",\r
693         "type": "block",\r
694         "name": "block",\r
695         "xml": "<block>\n",\r
696         "atomic": "false",\r
697         "comments": "",\r
698         "outputs": 1,\r
699         "x": 924.638916015625,\r
700         "y": 410.25,\r
701         "z": "276d1f6b.9bb71",\r
702         "wires": [\r
703             [\r
704                 "e924feb9.1fc4b",\r
705                 "9a30398b.6a1268",\r
706                 "81b0e59d.dd52a8"\r
707             ]\r
708         ]\r
709     },\r
710     {\r
711         "id": "11ce3fcd.175be",\r
712         "type": "set",\r
713         "name": "Set error message",\r
714         "xml": "<set>\n<parameter name='node-error-message' value=\"`$error-message`\"/>\n",\r
715         "comments": "",\r
716         "x": 1178.638916015625,\r
717         "y": 316.5,\r
718         "z": "276d1f6b.9bb71",\r
719         "wires": []\r
720     },\r
721     {\r
722         "id": "e924feb9.1fc4b",\r
723         "type": "set",\r
724         "name": "Set error message",\r
725         "xml": "<set>\n<parameter name='node-error-message' value='Device Interfacing DG not found' />\n",\r
726         "comments": "",\r
727         "x": 1180.638916015625,\r
728         "y": 359.75,\r
729         "z": "276d1f6b.9bb71",\r
730         "wires": []\r
731     },\r
732     {\r
733         "id": "fbb83850.3ab008",\r
734         "type": "block",\r
735         "name": "block",\r
736         "xml": "<block>\n",\r
737         "atomic": "false",\r
738         "comments": "",\r
739         "outputs": 1,\r
740         "x": 941.138916015625,\r
741         "y": 522.75,\r
742         "z": "276d1f6b.9bb71",\r
743         "wires": [\r
744             [\r
745                 "9897d37f.3e86f",\r
746                 "81b0e59d.dd52a8",\r
747                 "9a30398b.6a1268"\r
748             ]\r
749         ]\r
750     },\r
751     {\r
752         "id": "cbdc9a91.622178",\r
753         "type": "block",\r
754         "name": "block",\r
755         "xml": "<block>\n",\r
756         "atomic": "false",\r
757         "comments": "",\r
758         "outputs": 1,\r
759         "x": 939.888916015625,\r
760         "y": 468.25,\r
761         "z": "276d1f6b.9bb71",\r
762         "wires": [\r
763             [\r
764                 "1dd1ceae.7c5731",\r
765                 "81b0e59d.dd52a8",\r
766                 "9a30398b.6a1268"\r
767             ]\r
768         ]\r
769     },\r
770     {\r
771         "id": "1dd1ceae.7c5731",\r
772         "type": "set",\r
773         "name": "Set error message",\r
774         "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",\r
775         "comments": "",\r
776         "x": 1179.388916015625,\r
777         "y": 404.25,\r
778         "z": "276d1f6b.9bb71",\r
779         "wires": []\r
780     },\r
781     {\r
782         "id": "9897d37f.3e86f",\r
783         "type": "set",\r
784         "name": "Set error message",\r
785         "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",\r
786         "comments": "",\r
787         "x": 1179.638916015625,\r
788         "y": 444.25,\r
789         "z": "276d1f6b.9bb71",\r
790         "wires": []\r
791     },\r
792     {\r
793         "id": "81b0e59d.dd52a8",\r
794         "type": "returnFailure",\r
795         "name": "return failure",\r
796         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",\r
797         "comments": "",\r
798         "x": 1187.138916015625,\r
799         "y": 543.5,\r
800         "z": "276d1f6b.9bb71",\r
801         "wires": []\r
802     },\r
803     {\r
804         "id": "64a22d10.d8c794",\r
805         "type": "block",\r
806         "name": "block",\r
807         "xml": "<block>\n",\r
808         "atomic": "false",\r
809         "comments": "",\r
810         "outputs": 1,\r
811         "x": 1577.638916015625,\r
812         "y": 576.7500076293945,\r
813         "z": "276d1f6b.9bb71",\r
814         "wires": [\r
815             [\r
816                 "d55829a0.692118",\r
817                 "53f66547.a56dac",\r
818                 "75356e6f.a67ac"\r
819             ]\r
820         ]\r
821     },\r
822     {\r
823         "id": "d55829a0.692118",\r
824         "type": "set",\r
825         "name": "Set error message",\r
826         "xml": "<set>\n<parameter name='node-error-message' value='More than one running configuration available for a VNFC' />\n",\r
827         "comments": "",\r
828         "x": 1803.388916015625,\r
829         "y": 530.2500610351562,\r
830         "z": "276d1f6b.9bb71",\r
831         "wires": []\r
832     },\r
833     {\r
834         "id": "53f66547.a56dac",\r
835         "type": "returnFailure",\r
836         "name": "return failure",\r
837         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",\r
838         "comments": "",\r
839         "x": 1802.638916015625,\r
840         "y": 710.0000305175781,\r
841         "z": "276d1f6b.9bb71",\r
842         "wires": []\r
843     },\r
844     {\r
845         "id": "8f213625.b48068",\r
846         "type": "block",\r
847         "name": "block",\r
848         "xml": "<block>\n",\r
849         "atomic": "false",\r
850         "comments": "",\r
851         "outputs": 1,\r
852         "x": 1582.138916015625,\r
853         "y": 632.75,\r
854         "z": "276d1f6b.9bb71",\r
855         "wires": [\r
856             [\r
857                 "b2368a5.6789578",\r
858                 "53f66547.a56dac",\r
859                 "75356e6f.a67ac"\r
860             ]\r
861         ]\r
862     },\r
863     {\r
864         "id": "b2368a5.6789578",\r
865         "type": "set",\r
866         "name": "Set error message",\r
867         "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",\r
868         "comments": "",\r
869         "x": 1806.638916015625,\r
870         "y": 575.2500305175781,\r
871         "z": "276d1f6b.9bb71",\r
872         "wires": []\r
873     },\r
874     {\r
875         "id": "db7afb3c.2c58c8",\r
876         "type": "block",\r
877         "name": "block",\r
878         "xml": "<block>\n",\r
879         "atomic": "false",\r
880         "comments": "",\r
881         "outputs": 1,\r
882         "x": 1582.638916015625,\r
883         "y": 693.25,\r
884         "z": "276d1f6b.9bb71",\r
885         "wires": [\r
886             [\r
887                 "cc111001.f32a8",\r
888                 "53f66547.a56dac",\r
889                 "75356e6f.a67ac"\r
890             ]\r
891         ]\r
892     },\r
893     {\r
894         "id": "cc111001.f32a8",\r
895         "type": "set",\r
896         "name": "Set error message",\r
897         "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",\r
898         "comments": "",\r
899         "x": 1807.388916015625,\r
900         "y": 621.2500305175781,\r
901         "z": "276d1f6b.9bb71",\r
902         "wires": []\r
903     },\r
904     {\r
905         "id": "2490a85b.6f7c38",\r
906         "type": "record",\r
907         "name": "Log error",\r
908         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.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",\r
909         "comments": "",\r
910         "outputs": 1,\r
911         "x": 1070.888916015625,\r
912         "y": 227.25000762939453,\r
913         "z": "276d1f6b.9bb71",\r
914         "wires": [\r
915             []\r
916         ]\r
917     },\r
918     {\r
919         "id": "9a30398b.6a1268",\r
920         "type": "record",\r
921         "name": "Log error",\r
922         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.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",\r
923         "comments": "",\r
924         "outputs": 1,\r
925         "x": 1186.888916015625,\r
926         "y": 499.25,\r
927         "z": "276d1f6b.9bb71",\r
928         "wires": [\r
929             []\r
930         ]\r
931     },\r
932     {\r
933         "id": "75356e6f.a67ac",\r
934         "type": "record",\r
935         "name": "Log error",\r
936         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.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",\r
937         "comments": "",\r
938         "outputs": 1,\r
939         "x": 1800.888916015625,\r
940         "y": 663.2500305175781,\r
941         "z": "276d1f6b.9bb71",\r
942         "wires": [\r
943             []\r
944         ]\r
945     },\r
946     {\r
947         "id": "21660aea.e01ea6",\r
948         "type": "set",\r
949         "name": "set DG parameters",\r
950         "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=\"`$USER-NAME`\" />\n<parameter name='config.password' value=\"`$PASSWORD`\" />\n<parameter name='config.port-number' value=\"`$PORT-NUMBER`\" />",\r
951         "comments": "",\r
952         "x": 585.888916015625,\r
953         "y": 330,\r
954         "z": "276d1f6b.9bb71",\r
955         "wires": []\r
956     },\r
957     {\r
958         "id": "29603b9a.2c5b84",\r
959         "type": "block",\r
960         "name": "block",\r
961         "xml": "<block>\n",\r
962         "atomic": "false",\r
963         "comments": "",\r
964         "outputs": 1,\r
965         "x": 395.888916015625,\r
966         "y": 353,\r
967         "z": "276d1f6b.9bb71",\r
968         "wires": [\r
969             [\r
970                 "21660aea.e01ea6",\r
971                 "b39573b0.7834d"\r
972             ]\r
973         ]\r
974     },\r
975     {\r
976         "id": "e8b89f13.0bbb4",\r
977         "type": "get-resource",\r
978         "name": "Get Running Config Id",\r
979         "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.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",\r
980         "comments": "",\r
981         "outputs": 1,\r
982         "x": 1648.888916015625,\r
983         "y": 779.3333435058594,\r
984         "z": "276d1f6b.9bb71",\r
985         "wires": [\r
986             [\r
987                 "ab251259.3d74",\r
988                 "d14179e1.547d98",\r
989                 "aec5de94.0b1ee"\r
990             ]\r
991         ]\r
992     },\r
993     {\r
994         "id": "ab251259.3d74",\r
995         "type": "failure",\r
996         "name": "failure",\r
997         "xml": "<outcome value='failure'>\n",\r
998         "comments": "",\r
999         "outputs": 1,\r
1000         "x": 2001.388916015625,\r
1001         "y": 733.5833740234375,\r
1002         "z": "276d1f6b.9bb71",\r
1003         "wires": [\r
1004             [\r
1005                 "bf29ea96.6ffa68"\r
1006             ]\r
1007         ]\r
1008     },\r
1009     {\r
1010         "id": "d14179e1.547d98",\r
1011         "type": "not-found",\r
1012         "name": "not-found",\r
1013         "xml": "<outcome value='not-found'>\n",\r
1014         "comments": "",\r
1015         "outputs": 1,\r
1016         "x": 1993.888916015625,\r
1017         "y": 793.5833740234375,\r
1018         "z": "276d1f6b.9bb71",\r
1019         "wires": [\r
1020             [\r
1021                 "e27c0f02.9b77"\r
1022             ]\r
1023         ]\r
1024     },\r
1025     {\r
1026         "id": "bf29ea96.6ffa68",\r
1027         "type": "block",\r
1028         "name": "block",\r
1029         "xml": "<block>\n",\r
1030         "atomic": "false",\r
1031         "comments": "",\r
1032         "outputs": 1,\r
1033         "x": 2158.8885498046875,\r
1034         "y": 732.0833740234375,\r
1035         "z": "276d1f6b.9bb71",\r
1036         "wires": [\r
1037             [\r
1038                 "5b24ae34.dd7d9",\r
1039                 "dfd2268c.d462e8",\r
1040                 "babb2c3a.ce283"\r
1041             ]\r
1042         ]\r
1043     },\r
1044     {\r
1045         "id": "5b24ae34.dd7d9",\r
1046         "type": "set",\r
1047         "name": "Set error message",\r
1048         "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",\r
1049         "comments": "",\r
1050         "x": 2393.3887939453125,\r
1051         "y": 673.0833740234375,\r
1052         "z": "276d1f6b.9bb71",\r
1053         "wires": []\r
1054     },\r
1055     {\r
1056         "id": "babb2c3a.ce283",\r
1057         "type": "record",\r
1058         "name": "Log error",\r
1059         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.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",\r
1060         "comments": "",\r
1061         "outputs": 1,\r
1062         "x": 2384.8885498046875,\r
1063         "y": 772.0833740234375,\r
1064         "z": "276d1f6b.9bb71",\r
1065         "wires": [\r
1066             []\r
1067         ]\r
1068     },\r
1069     {\r
1070         "id": "e27c0f02.9b77",\r
1071         "type": "block",\r
1072         "name": "block",\r
1073         "xml": "<block>\n",\r
1074         "atomic": "false",\r
1075         "comments": "",\r
1076         "outputs": 1,\r
1077         "x": 2159.1387939453125,\r
1078         "y": 794.5833740234375,\r
1079         "z": "276d1f6b.9bb71",\r
1080         "wires": [\r
1081             [\r
1082                 "cf88cbf8.678fd8",\r
1083                 "dfd2268c.d462e8",\r
1084                 "babb2c3a.ce283"\r
1085             ]\r
1086         ]\r
1087     },\r
1088     {\r
1089         "id": "dfd2268c.d462e8",\r
1090         "type": "returnFailure",\r
1091         "name": "return failure",\r
1092         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",\r
1093         "comments": "",\r
1094         "x": 2400.1385498046875,\r
1095         "y": 827.3333740234375,\r
1096         "z": "276d1f6b.9bb71",\r
1097         "wires": []\r
1098     },\r
1099     {\r
1100         "id": "aec5de94.0b1ee",\r
1101         "type": "success",\r
1102         "name": "success",\r
1103         "xml": "<outcome value='success'>\n",\r
1104         "comments": "",\r
1105         "outputs": 1,\r
1106         "x": 1985.388671875,\r
1107         "y": 861.5833740234375,\r
1108         "z": "276d1f6b.9bb71",\r
1109         "wires": [\r
1110             []\r
1111         ]\r
1112     },\r
1113     {\r
1114         "id": "cf88cbf8.678fd8",\r
1115         "type": "set",\r
1116         "name": "Set error message",\r
1117         "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",\r
1118         "comments": "",\r
1119         "x": 2400.6387939453125,\r
1120         "y": 723.0833740234375,\r
1121         "z": "276d1f6b.9bb71",\r
1122         "wires": []\r
1123     }\r
1124 ]\r