Platform Hardening for DG Json files - Part 3
[appc.git] / appc-directed-graph / appc-dgraph / provider / src / main / resources / json / Dispatcher-DG / APPC_2.0.0_method_Generic_GetRunningConfig.json
1 [\r
2     {\r
3         "id": "180bf863.7ff698",\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": 638,\r
10         "y": 47,\r
11         "z": "a4e67f56.cb2c9",\r
12         "wires": [\r
13             [\r
14                 "b1e85b4d.4de818"\r
15             ]\r
16         ]\r
17     },\r
18     {\r
19         "id": "7b831419.1eac8c",\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": 722.25,\r
26         "y": 363.49999237060547,\r
27         "z": "a4e67f56.cb2c9",\r
28         "wires": [\r
29             [\r
30                 "63daa94e.76aae8"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "140f6ea5.4e8041",\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": 718.25,\r
42         "y": 416.24999237060547,\r
43         "z": "a4e67f56.cb2c9",\r
44         "wires": [\r
45             [\r
46                 "3ce56e6e.d0d1b2"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "47086c60.ba95f4",\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": 641,\r
58         "y": 115.99999237060547,\r
59         "z": "a4e67f56.cb2c9",\r
60         "wires": [\r
61             [\r
62                 "fc731431.b82788"\r
63             ]\r
64         ]\r
65     },\r
66     {\r
67         "id": "11938b45.589b15",\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": 638.2499389648438,\r
74         "y": 267.25,\r
75         "z": "a4e67f56.cb2c9",\r
76         "wires": [\r
77             [\r
78                 "372c3af9.966c56"\r
79             ]\r
80         ]\r
81     },\r
82     {\r
83         "id": "dbe515ac.28eb98",\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": 632.2499389648438,\r
90         "y": 202,\r
91         "z": "a4e67f56.cb2c9",\r
92         "wires": [\r
93             [\r
94                 "ba6f005b.3e44e"\r
95             ]\r
96         ]\r
97     },\r
98     {\r
99         "id": "5f02c1cf.37b4f",\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": 710.5,\r
106         "y": 461.49999237060547,\r
107         "z": "a4e67f56.cb2c9",\r
108         "wires": [\r
109             [\r
110                 "60cd06a7.dbee98"\r
111             ]\r
112         ]\r
113     },\r
114     {\r
115         "id": "3a82553d.6d98ea",\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": 710,\r
122         "y": 512.4999923706055,\r
123         "z": "a4e67f56.cb2c9",\r
124         "wires": [\r
125             [\r
126                 "358af0c2.a30ea"\r
127             ]\r
128         ]\r
129     },\r
130     {\r
131         "id": "46c38e22.64329",\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": 1380,\r
138         "y": 596.75,\r
139         "z": "a4e67f56.cb2c9",\r
140         "wires": [\r
141             [\r
142                 "9806fd80.49448"\r
143             ]\r
144         ]\r
145     },\r
146     {\r
147         "id": "8ecbeb04.4666d8",\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": 1384.75,\r
154         "y": 695.25,\r
155         "z": "a4e67f56.cb2c9",\r
156         "wires": [\r
157             [\r
158                 "13894430.36b39c"\r
159             ]\r
160         ]\r
161     },\r
162     {\r
163         "id": "35ce6e5b.761062",\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": 832.5,\r
170         "y": 567.75,\r
171         "z": "a4e67f56.cb2c9",\r
172         "wires": [\r
173             [\r
174                 "7b36969f.21ea78"\r
175             ]\r
176         ]\r
177     },\r
178     {\r
179         "id": "c7e15c3e.27cb3",\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": 402.75006103515625,\r
186         "y": 111.74999237060547,\r
187         "z": "a4e67f56.cb2c9",\r
188         "wires": [\r
189             [\r
190                 "180bf863.7ff698",\r
191                 "47086c60.ba95f4",\r
192                 "551adf9c.16e0f"\r
193             ]\r
194         ]\r
195     },\r
196     {\r
197         "id": "8215021c.22176",\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": 453,\r
204         "y": 417.49999237060547,\r
205         "z": "a4e67f56.cb2c9",\r
206         "wires": [\r
207             [\r
208                 "7b831419.1eac8c",\r
209                 "140f6ea5.4e8041",\r
210                 "11955887.62d437"\r
211             ]\r
212         ]\r
213     },\r
214     {\r
215         "id": "ab93e21b.a1f7e",\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": 379.75,\r
222         "y": 266.5,\r
223         "z": "a4e67f56.cb2c9",\r
224         "wires": [\r
225             [\r
226                 "11938b45.589b15",\r
227                 "dbe515ac.28eb98",\r
228                 "e9858666.192658"\r
229             ]\r
230         ]\r
231     },\r
232     {\r
233         "id": "afcdc902.93d708",\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": 413.0000305175781,\r
240         "y": 551.2499923706055,\r
241         "z": "a4e67f56.cb2c9",\r
242         "wires": [\r
243             [\r
244                 "5f02c1cf.37b4f",\r
245                 "3a82553d.6d98ea",\r
246                 "7b612e94.00088"\r
247             ]\r
248         ]\r
249     },\r
250     {\r
251         "id": "b890cd70.906b9",\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": 1171.75,\r
258         "y": 608,\r
259         "z": "a4e67f56.cb2c9",\r
260         "wires": [\r
261             [\r
262                 "46c38e22.64329",\r
263                 "473728a6.0b2d68"\r
264             ]\r
265         ]\r
266     },\r
267     {\r
268         "id": "a92cddb8.c9d51",\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": 1171.2499885559082,\r
275         "y": 704.7499923706055,\r
276         "z": "a4e67f56.cb2c9",\r
277         "wires": [\r
278             [\r
279                 "8ecbeb04.4666d8",\r
280                 "541750f1.605a4"\r
281             ]\r
282         ]\r
283     },\r
284     {\r
285         "id": "b92bafaa.6f832",\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": 623.7499961853027,\r
292         "y": 603.0000019073486,\r
293         "z": "a4e67f56.cb2c9",\r
294         "wires": [\r
295             [\r
296                 "35ce6e5b.761062",\r
297                 "78f7b47a.d6ce1c",\r
298                 "4ed41f3c.8441d"\r
299             ]\r
300         ]\r
301     },\r
302     {\r
303         "id": "3e4780c.eefb78",\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": 137.50000381469727,\r
311         "y": 224.24999618530273,\r
312         "z": "a4e67f56.cb2c9",\r
313         "wires": [\r
314             [\r
315                 "c7e15c3e.27cb3",\r
316                 "5449a18d.439af"\r
317             ]\r
318         ]\r
319     },\r
320     {\r
321         "id": "551adf9c.16e0f",\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": 450.24993896484375,\r
328         "y": 175.75,\r
329         "z": "a4e67f56.cb2c9",\r
330         "wires": [\r
331             [\r
332                 "ab93e21b.a1f7e"\r
333             ]\r
334         ]\r
335     },\r
336     {\r
337         "id": "11955887.62d437",\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": 414.74993896484375,\r
344         "y": 488.49999237060547,\r
345         "z": "a4e67f56.cb2c9",\r
346         "wires": [\r
347             [\r
348                 "afcdc902.93d708"\r
349             ]\r
350         ]\r
351     },\r
352     {\r
353         "id": "e9858666.192658",\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": 236.2498779296875,\r
360         "y": 342.24999237060547,\r
361         "z": "a4e67f56.cb2c9",\r
362         "wires": [\r
363             [\r
364                 "90297c5e.6500e"\r
365             ]\r
366         ]\r
367     },\r
368     {\r
369         "id": "7b612e94.00088",\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": 452.49993896484375,\r
376         "y": 653.4999923706055,\r
377         "z": "a4e67f56.cb2c9",\r
378         "wires": [\r
379             [\r
380                 "b92bafaa.6f832"\r
381             ]\r
382         ]\r
383     },\r
384     {\r
385         "id": "473728a6.0b2d68",\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": 1381.75,\r
392         "y": 646,\r
393         "z": "a4e67f56.cb2c9",\r
394         "wires": [\r
395             []\r
396         ]\r
397     },\r
398     {\r
399         "id": "35aaded4.f11712",\r
400         "type": "block",\r
401         "name": "block",\r
402         "xml": "<block>\n",\r
403         "atomic": "false",\r
404         "comments": "",\r
405         "outputs": 1,\r
406         "x": 997.75,\r
407         "y": 620,\r
408         "z": "a4e67f56.cb2c9",\r
409         "wires": [\r
410             [\r
411                 "b890cd70.906b9"\r
412             ]\r
413         ]\r
414     },\r
415     {\r
416         "id": "541750f1.605a4",\r
417         "type": "success",\r
418         "name": "success",\r
419         "xml": "<outcome value='success'>\n",\r
420         "comments": "",\r
421         "outputs": 1,\r
422         "x": 1386.5,\r
423         "y": 744.25,\r
424         "z": "a4e67f56.cb2c9",\r
425         "wires": [\r
426             []\r
427         ]\r
428     },\r
429     {\r
430         "id": "8c3cc0da.7b207",\r
431         "type": "block",\r
432         "name": "block",\r
433         "xml": "<block>\n",\r
434         "atomic": "false",\r
435         "comments": "",\r
436         "outputs": 1,\r
437         "x": 999.25,\r
438         "y": 683.25,\r
439         "z": "a4e67f56.cb2c9",\r
440         "wires": [\r
441             [\r
442                 "a92cddb8.c9d51"\r
443             ]\r
444         ]\r
445     },\r
446     {\r
447         "id": "78f7b47a.d6ce1c",\r
448         "type": "success",\r
449         "name": "noRunningConfig",\r
450         "xml": "<outcome value='0'>\n",\r
451         "comments": "",\r
452         "outputs": 1,\r
453         "x": 823.75,\r
454         "y": 618.75,\r
455         "z": "a4e67f56.cb2c9",\r
456         "wires": [\r
457             [\r
458                 "35aaded4.f11712"\r
459             ]\r
460         ]\r
461     },\r
462     {\r
463         "id": "4ed41f3c.8441d",\r
464         "type": "failure",\r
465         "name": "runningConfigExists",\r
466         "xml": "<outcome value='1'>\n",\r
467         "comments": "",\r
468         "outputs": 1,\r
469         "x": 827.25,\r
470         "y": 683.75,\r
471         "z": "a4e67f56.cb2c9",\r
472         "wires": [\r
473             [\r
474                 "8c3cc0da.7b207"\r
475             ]\r
476         ]\r
477     },\r
478     {\r
479         "id": "6c20bf89.5231d",\r
480         "type": "method",\r
481         "name": "GetRunningConfig",\r
482         "xml": "<method rpc='Generic_GetRunningConfig' mode='sync'>\n",\r
483         "comments": "",\r
484         "outputs": 1,\r
485         "x": 128,\r
486         "y": 140.74999237060547,\r
487         "z": "a4e67f56.cb2c9",\r
488         "wires": [\r
489             [\r
490                 "3e4780c.eefb78"\r
491             ]\r
492         ]\r
493     },\r
494     {\r
495         "id": "84baaf90.5a32d",\r
496         "type": "service-logic",\r
497         "name": "APPC 2.0.0",\r
498         "module": "APPC",\r
499         "version": "2.0.0",\r
500         "comments": "",\r
501         "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
502         "outputs": 1,\r
503         "x": 264.99999237060547,\r
504         "y": 55.9999942779541,\r
505         "z": "a4e67f56.cb2c9",\r
506         "wires": [\r
507             [\r
508                 "6c20bf89.5231d"\r
509             ]\r
510         ]\r
511     },\r
512     {\r
513         "id": "5449a18d.439af",\r
514         "type": "returnSuccess",\r
515         "name": "return success",\r
516         "xml": "<return status='success'>\n",\r
517         "comments": "",\r
518         "x": 118.00003051757812,\r
519         "y": 430.24999237060547,\r
520         "z": "a4e67f56.cb2c9",\r
521         "wires": []\r
522     },\r
523     {\r
524         "id": "60394b9e.416b44",\r
525         "type": "dgstart",\r
526         "name": "DGSTART",\r
527         "outputs": 1,\r
528         "x": 97.4999885559082,\r
529         "y": 56.74999237060547,\r
530         "z": "a4e67f56.cb2c9",\r
531         "wires": [\r
532             [\r
533                 "84baaf90.5a32d"\r
534             ]\r
535         ]\r
536     },\r
537     {\r
538         "id": "b1e85b4d.4de818",\r
539         "type": "block",\r
540         "name": "block",\r
541         "xml": "<block>\n",\r
542         "atomic": "false",\r
543         "comments": "",\r
544         "outputs": 1,\r
545         "x": 813,\r
546         "y": 48.499996185302734,\r
547         "z": "a4e67f56.cb2c9",\r
548         "wires": [\r
549             [\r
550                 "c6bbc167.8e6de",\r
551                 "a535318d.76e89",\r
552                 "743a8961.a83bb8"\r
553             ]\r
554         ]\r
555     },\r
556     {\r
557         "id": "c6bbc167.8e6de",\r
558         "type": "set",\r
559         "name": "Set error message",\r
560         "xml": "<set>\n<parameter name='node-error-message' value='Error while retrieving device credentials' />\n",\r
561         "comments": "",\r
562         "x": 1019.5,\r
563         "y": 34.74999237060547,\r
564         "z": "a4e67f56.cb2c9",\r
565         "wires": [\r
566             []\r
567         ]\r
568     },\r
569     {\r
570         "id": "fc731431.b82788",\r
571         "type": "block",\r
572         "name": "block",\r
573         "xml": "<block>\n",\r
574         "atomic": "false",\r
575         "comments": "",\r
576         "outputs": 1,\r
577         "x": 817.75,\r
578         "y": 114.99999237060547,\r
579         "z": "a4e67f56.cb2c9",\r
580         "wires": [\r
581             [\r
582                 "5a58c62.8050138",\r
583                 "a535318d.76e89",\r
584                 "743a8961.a83bb8"\r
585             ]\r
586         ]\r
587     },\r
588     {\r
589         "id": "5a58c62.8050138",\r
590         "type": "set",\r
591         "name": "Set error message",\r
592         "xml": "<set>\n<parameter name='node-error-message' value=\"`'Device credentials not found for the ' + $vnf-type `\"/>\n",\r
593         "comments": "",\r
594         "x": 1021.5,\r
595         "y": 74.24999237060547,\r
596         "z": "a4e67f56.cb2c9",\r
597         "wires": [\r
598             []\r
599         ]\r
600     },\r
601     {\r
602         "id": "ba6f005b.3e44e",\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": 812.5,\r
610         "y": 185,\r
611         "z": "a4e67f56.cb2c9",\r
612         "wires": [\r
613             [\r
614                 "27e3ed66.16f0c2",\r
615                 "743a8961.a83bb8",\r
616                 "a535318d.76e89"\r
617             ]\r
618         ]\r
619     },\r
620     {\r
621         "id": "372c3af9.966c56",\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": 816.5,\r
629         "y": 241.25,\r
630         "z": "a4e67f56.cb2c9",\r
631         "wires": [\r
632             [\r
633                 "c98aab75.3231f8",\r
634                 "743a8961.a83bb8",\r
635                 "a535318d.76e89"\r
636             ]\r
637         ]\r
638     },\r
639     {\r
640         "id": "27e3ed66.16f0c2",\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": 1026.4999885559082,\r
646         "y": 121.75,\r
647         "z": "a4e67f56.cb2c9",\r
648         "wires": [\r
649             []\r
650         ]\r
651     },\r
652     {\r
653         "id": "c98aab75.3231f8",\r
654         "type": "set",\r
655         "name": "Set error message",\r
656         "xml": "<set>\n<parameter name='node-error-message' value=\"`'Device Interfacing DG mapping not found for the ' + $vnf-type `\" />\n",\r
657         "comments": "",\r
658         "x": 1024.25,\r
659         "y": 164.75,\r
660         "z": "a4e67f56.cb2c9",\r
661         "wires": [\r
662             []\r
663         ]\r
664     },\r
665     {\r
666         "id": "743a8961.a83bb8",\r
667         "type": "returnFailure",\r
668         "name": "return failure",\r
669         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",\r
670         "comments": "",\r
671         "x": 1052.25,\r
672         "y": 260,\r
673         "z": "a4e67f56.cb2c9",\r
674         "wires": []\r
675     },\r
676     {\r
677         "id": "63daa94e.76aae8",\r
678         "type": "block",\r
679         "name": "block",\r
680         "xml": "<block>\n",\r
681         "atomic": "false",\r
682         "comments": "",\r
683         "outputs": 1,\r
684         "x": 883.75,\r
685         "y": 313.74999237060547,\r
686         "z": "a4e67f56.cb2c9",\r
687         "wires": [\r
688             [\r
689                 "6b1bdb26.cbe694",\r
690                 "e53f7a1.c43ed88",\r
691                 "ffb12b2e.32f4f8"\r
692             ]\r
693         ]\r
694     },\r
695     {\r
696         "id": "3ce56e6e.d0d1b2",\r
697         "type": "block",\r
698         "name": "block",\r
699         "xml": "<block>\n",\r
700         "atomic": "false",\r
701         "comments": "",\r
702         "outputs": 1,\r
703         "x": 897.75,\r
704         "y": 398.99999237060547,\r
705         "z": "a4e67f56.cb2c9",\r
706         "wires": [\r
707             [\r
708                 "189f4de.d45a0b2",\r
709                 "e53f7a1.c43ed88",\r
710                 "ffb12b2e.32f4f8"\r
711             ]\r
712         ]\r
713     },\r
714     {\r
715         "id": "6b1bdb26.cbe694",\r
716         "type": "set",\r
717         "name": "Set error message",\r
718         "xml": "<set>\n<parameter name='node-error-message' value=\"`$error-message`\"/>\n",\r
719         "comments": "",\r
720         "x": 1151.75,\r
721         "y": 305.24999237060547,\r
722         "z": "a4e67f56.cb2c9",\r
723         "wires": [\r
724             []\r
725         ]\r
726     },\r
727     {\r
728         "id": "189f4de.d45a0b2",\r
729         "type": "set",\r
730         "name": "Set error message",\r
731         "xml": "<set>\n<parameter name='node-error-message' value='Device Interfacing DG not found' />\n",\r
732         "comments": "",\r
733         "x": 1153.75,\r
734         "y": 348.49999237060547,\r
735         "z": "a4e67f56.cb2c9",\r
736         "wires": [\r
737             []\r
738         ]\r
739     },\r
740     {\r
741         "id": "358af0c2.a30ea",\r
742         "type": "block",\r
743         "name": "block",\r
744         "xml": "<block>\n",\r
745         "atomic": "false",\r
746         "comments": "",\r
747         "outputs": 1,\r
748         "x": 914.25,\r
749         "y": 511.49999237060547,\r
750         "z": "a4e67f56.cb2c9",\r
751         "wires": [\r
752             [\r
753                 "3871609f.8f563",\r
754                 "ffb12b2e.32f4f8",\r
755                 "e53f7a1.c43ed88"\r
756             ]\r
757         ]\r
758     },\r
759     {\r
760         "id": "60cd06a7.dbee98",\r
761         "type": "block",\r
762         "name": "block",\r
763         "xml": "<block>\n",\r
764         "atomic": "false",\r
765         "comments": "",\r
766         "outputs": 1,\r
767         "x": 913,\r
768         "y": 456.99999237060547,\r
769         "z": "a4e67f56.cb2c9",\r
770         "wires": [\r
771             [\r
772                 "4f35fa3d.a4b784",\r
773                 "ffb12b2e.32f4f8",\r
774                 "e53f7a1.c43ed88"\r
775             ]\r
776         ]\r
777     },\r
778     {\r
779         "id": "4f35fa3d.a4b784",\r
780         "type": "set",\r
781         "name": "Set error message",\r
782         "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
783         "comments": "",\r
784         "x": 1152.5,\r
785         "y": 392.99999237060547,\r
786         "z": "a4e67f56.cb2c9",\r
787         "wires": [\r
788             []\r
789         ]\r
790     },\r
791     {\r
792         "id": "3871609f.8f563",\r
793         "type": "set",\r
794         "name": "Set error message",\r
795         "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
796         "comments": "",\r
797         "x": 1152.75,\r
798         "y": 432.99999237060547,\r
799         "z": "a4e67f56.cb2c9",\r
800         "wires": [\r
801             []\r
802         ]\r
803     },\r
804     {\r
805         "id": "ffb12b2e.32f4f8",\r
806         "type": "returnFailure",\r
807         "name": "return failure",\r
808         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",\r
809         "comments": "",\r
810         "x": 1160.25,\r
811         "y": 532.2499923706055,\r
812         "z": "a4e67f56.cb2c9",\r
813         "wires": []\r
814     },\r
815     {\r
816         "id": "7b36969f.21ea78",\r
817         "type": "block",\r
818         "name": "block",\r
819         "xml": "<block>\n",\r
820         "atomic": "false",\r
821         "comments": "",\r
822         "outputs": 1,\r
823         "x": 1550.75,\r
824         "y": 565.5,\r
825         "z": "a4e67f56.cb2c9",\r
826         "wires": [\r
827             [\r
828                 "d90b7545.846c58",\r
829                 "b1eeb2dd.58bb4",\r
830                 "8702f3c1.de0c"\r
831             ]\r
832         ]\r
833     },\r
834     {\r
835         "id": "d90b7545.846c58",\r
836         "type": "set",\r
837         "name": "Set error message",\r
838         "xml": "<set>\n<parameter name='node-error-message' value='More than one running configuration available for a VNFC' />\n",\r
839         "comments": "",\r
840         "x": 1758.5,\r
841         "y": 557,\r
842         "z": "a4e67f56.cb2c9",\r
843         "wires": [\r
844             []\r
845         ]\r
846     },\r
847     {\r
848         "id": "b1eeb2dd.58bb4",\r
849         "type": "returnFailure",\r
850         "name": "return failure",\r
851         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",\r
852         "comments": "",\r
853         "x": 1772.75,\r
854         "y": 782.75,\r
855         "z": "a4e67f56.cb2c9",\r
856         "wires": []\r
857     },\r
858     {\r
859         "id": "9806fd80.49448",\r
860         "type": "block",\r
861         "name": "block",\r
862         "xml": "<block>\n",\r
863         "atomic": "false",\r
864         "comments": "",\r
865         "outputs": 1,\r
866         "x": 1542.25,\r
867         "y": 627.5,\r
868         "z": "a4e67f56.cb2c9",\r
869         "wires": [\r
870             [\r
871                 "c10f41b7.4725d",\r
872                 "b1eeb2dd.58bb4",\r
873                 "8702f3c1.de0c"\r
874             ]\r
875         ]\r
876     },\r
877     {\r
878         "id": "c10f41b7.4725d",\r
879         "type": "set",\r
880         "name": "Set error message",\r
881         "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
882         "comments": "",\r
883         "x": 1758.75,\r
884         "y": 612,\r
885         "z": "a4e67f56.cb2c9",\r
886         "wires": [\r
887             []\r
888         ]\r
889     },\r
890     {\r
891         "id": "13894430.36b39c",\r
892         "type": "block",\r
893         "name": "block",\r
894         "xml": "<block>\n",\r
895         "atomic": "false",\r
896         "comments": "",\r
897         "outputs": 1,\r
898         "x": 1537.75,\r
899         "y": 689,\r
900         "z": "a4e67f56.cb2c9",\r
901         "wires": [\r
902             [\r
903                 "8a66df46.83bf",\r
904                 "b1eeb2dd.58bb4",\r
905                 "8702f3c1.de0c"\r
906             ]\r
907         ]\r
908     },\r
909     {\r
910         "id": "8a66df46.83bf",\r
911         "type": "set",\r
912         "name": "Set error message",\r
913         "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
914         "comments": "",\r
915         "x": 1764.5,\r
916         "y": 664,\r
917         "z": "a4e67f56.cb2c9",\r
918         "wires": [\r
919             []\r
920         ]\r
921     },\r
922     {\r
923         "id": "a535318d.76e89",\r
924         "type": "record",\r
925         "name": "Log error",\r
926         "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
927         "comments": "",\r
928         "outputs": 1,\r
929         "x": 1044,\r
930         "y": 216,\r
931         "z": "a4e67f56.cb2c9",\r
932         "wires": [\r
933             []\r
934         ]\r
935     },\r
936     {\r
937         "id": "e53f7a1.c43ed88",\r
938         "type": "record",\r
939         "name": "Log error",\r
940         "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
941         "comments": "",\r
942         "outputs": 1,\r
943         "x": 1160,\r
944         "y": 487.99999237060547,\r
945         "z": "a4e67f56.cb2c9",\r
946         "wires": [\r
947             []\r
948         ]\r
949     },\r
950     {\r
951         "id": "8702f3c1.de0c",\r
952         "type": "record",\r
953         "name": "Log error",\r
954         "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
955         "comments": "",\r
956         "outputs": 1,\r
957         "x": 1769,\r
958         "y": 720,\r
959         "z": "a4e67f56.cb2c9",\r
960         "wires": [\r
961             []\r
962         ]\r
963     },\r
964     {\r
965         "id": "e5f7f554.e2b2d8",\r
966         "type": "set",\r
967         "name": "set DG parameters",\r
968         "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
969         "comments": "",\r
970         "x": 559,\r
971         "y": 318.74999237060547,\r
972         "z": "a4e67f56.cb2c9",\r
973         "wires": [\r
974             []\r
975         ]\r
976     },\r
977     {\r
978         "id": "90297c5e.6500e",\r
979         "type": "block",\r
980         "name": "block",\r
981         "xml": "<block>\n",\r
982         "atomic": "false",\r
983         "comments": "",\r
984         "outputs": 1,\r
985         "x": 369,\r
986         "y": 341.74999237060547,\r
987         "z": "a4e67f56.cb2c9",\r
988         "wires": [\r
989             [\r
990                 "e5f7f554.e2b2d8",\r
991                 "8215021c.22176"\r
992             ]\r
993         ]\r
994     }\r
995 ]\r