zte 3rd party controller for sdwan
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sdwan / GENERIC-RESOURCE-API_sdwan-vf-topology-operation-zte-deactivate.json
1 [
2     {
3         "id": "bed9c35d.e0ab8",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 116.00390625,
8         "y": 78.99999904632568,
9         "z": "add5ea55.8506d8",
10         "wires": [
11             [
12                 "bdf50147.91929"
13             ]
14         ]
15     },
16     {
17         "id": "bdf50147.91929",
18         "type": "service-logic",
19         "name": "GENERIC-RESOURCE-API ${project.version}",
20         "module": "GENERIC-RESOURCE-API",
21         "version": "${project.version}",
22         "comments": "",
23         "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
24         "outputs": 1,
25         "x": 328.00391006469727,
26         "y": 151.00001621246338,
27         "z": "add5ea55.8506d8",
28         "wires": [
29             [
30                 "9e64bb35.81c5b8"
31             ]
32         ]
33     },
34     {
35         "id": "9e64bb35.81c5b8",
36         "type": "method",
37         "name": "wan-connection-topology-operation-deactivate",
38         "xml": "<method rpc='wan-connection-topology-operation-deactivate' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 316.0040283203125,
42         "y": 238.99999904632568,
43         "z": "add5ea55.8506d8",
44         "wires": [
45             [
46                 "7ad810d3.cad88"
47             ]
48         ]
49     },
50     {
51         "id": "8a67a6d1.1bbf48",
52         "type": "execute",
53         "name": "execute Properties",
54         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",
55         "comments": "",
56         "outputs": 1,
57         "x": 703.0041885375977,
58         "y": 323.0000705718994,
59         "z": "add5ea55.8506d8",
60         "wires": [
61             []
62         ]
63     },
64     {
65         "id": "8ba9bac1.ee7e58",
66         "type": "returnSuccess",
67         "name": "return success",
68         "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
69         "comments": "",
70         "x": 303.00392150878906,
71         "y": 1188.0002126693726,
72         "z": "add5ea55.8506d8",
73         "wires": []
74     },
75     {
76         "id": "7ad810d3.cad88",
77         "type": "block",
78         "name": "block : atomic",
79         "xml": "<block atomic=\"true\">",
80         "atomic": "true",
81         "outputs": 1,
82         "x": 228.5041046142578,
83         "y": 680.0001344680786,
84         "z": "add5ea55.8506d8",
85         "wires": [
86             [
87                 "5d609d23.b321b4",
88                 "b02a1448.2abf08",
89                 "8a67a6d1.1bbf48",
90                 "8ba9bac1.ee7e58",
91                 "9a0faf20.2fca7"
92             ]
93         ]
94     },
95     {
96         "id": "5d609d23.b321b4",
97         "type": "for",
98         "name": "for pidx..service-data.networks.network[]",
99         "xml": "<for index='pidx' start='0' end='`$service-data.networks.network_length`' >\n",
100         "comments": "",
101         "outputs": 1,
102         "x": 866.5043182373047,
103         "y": 480.00013303756714,
104         "z": "add5ea55.8506d8",
105         "wires": [
106             [
107                 "402023c4.b7ccfc"
108             ]
109         ]
110     },
111     {
112         "id": "402023c4.b7ccfc",
113         "type": "switchNode",
114         "name": "switch network-id",
115         "xml": "<switch test=\"`$service-data.networks.network[$pidx].network-id == $network-topology-operation-input.network-information.network-id`\">\n\n",
116         "comments": "",
117         "outputs": 1,
118         "x": 917.5042495727539,
119         "y": 553.0001649856567,
120         "z": "add5ea55.8506d8",
121         "wires": [
122             [
123                 "2c64e469.ac5d6c"
124             ]
125         ]
126     },
127     {
128         "id": "2c64e469.ac5d6c",
129         "type": "outcomeTrue",
130         "name": "true",
131         "xml": "<outcome value='true'>\n",
132         "comments": "",
133         "outputs": 1,
134         "x": 1099.75435256958,
135         "y": 555.0002584457397,
136         "z": "add5ea55.8506d8",
137         "wires": [
138             [
139                 "f806435c.0ee1b"
140             ]
141         ]
142     },
143     {
144         "id": "f806435c.0ee1b",
145         "type": "set",
146         "name": "set tmp.pidx and tmp.network-input-parameters",
147         "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.network.' value='`$service-data.networks.network[$pidx].`' />\n<parameter name='tmp.network-input-parameters' value='`$service-data.networks.network[$pidx].network-data.network-request-input.network-input-parameters`' />\n<parameter name='tmp.found-network-input' value='true' />",
148         "comments": "",
149         "x": 1386.372314453125,
150         "y": 539.4290904998779,
151         "z": "add5ea55.8506d8",
152         "wires": []
153     },
154     {
155         "id": "b02a1448.2abf08",
156         "type": "set",
157         "name": "set tmp.found-network-input",
158         "xml": "<set>\n<parameter name='tmp.found-network-input' value='false' />",
159         "comments": "",
160         "x": 851.5042190551758,
161         "y": 405.00017070770264,
162         "z": "add5ea55.8506d8",
163         "wires": []
164     },
165     {
166         "id": "644b78b3.b56638",
167         "type": "switchNode",
168         "name": "switch found-network-input",
169         "xml": "<switch test=\"`$found-network-input`\">\n\n",
170         "comments": "",
171         "outputs": 1,
172         "x": 588.5042037963867,
173         "y": 890.0002946853638,
174         "z": "add5ea55.8506d8",
175         "wires": [
176             [
177                 "ab8a1407.b57258",
178                 "b5ad9505.765198"
179             ]
180         ]
181     },
182     {
183         "id": "ab8a1407.b57258",
184         "type": "outcomeTrue",
185         "name": "true",
186         "xml": "<outcome value='true'>\n",
187         "comments": "",
188         "outputs": 1,
189         "x": 820.5042953491211,
190         "y": 934.0004930496216,
191         "z": "add5ea55.8506d8",
192         "wires": [
193             [
194                 "e70ec11.398ad4"
195             ]
196         ]
197     },
198     {
199         "id": "b5ad9505.765198",
200         "type": "outcomeTrue",
201         "name": "false",
202         "xml": "<outcome value='false'>\n",
203         "comments": "",
204         "outputs": 1,
205         "x": 821.2542343139648,
206         "y": 892.0003843307495,
207         "z": "add5ea55.8506d8",
208         "wires": [
209             [
210                 "bc1e10df.495bf"
211             ]
212         ]
213     },
214     {
215         "id": "bc1e10df.495bf",
216         "type": "returnFailure",
217         "name": "return failure",
218         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: Network input parameters not found\" />\n    \n",
219         "comments": "",
220         "x": 992.2542343139648,
221         "y": 900.0003538131714,
222         "z": "add5ea55.8506d8",
223         "wires": []
224     },
225     {
226         "id": "e70ec11.398ad4",
227         "type": "block",
228         "name": "block : atomic",
229         "xml": "<block atomic=\"true\">",
230         "atomic": "true",
231         "outputs": 1,
232         "x": 558.0040817260742,
233         "y": 1046.0002794265747,
234         "z": "add5ea55.8506d8",
235         "wires": [
236             [
237                 "fa434270.08d4",
238                 "229661c0.3323fe",
239                 "6889ef74.f6656"
240             ]
241         ]
242     },
243     {
244         "id": "fa434270.08d4",
245         "type": "for",
246         "name": "for cidx..tmp.network.network-data.network-topology.network-parameters.network-parameter[]",
247         "xml": "<for index='cidx' start='0' end='`$tmp.network.network-data.network-topology.network-parameters.network-parameter_length`' >\n",
248         "comments": "",
249         "outputs": 1,
250         "x": 1007.0039215087891,
251         "y": 1132.000135421753,
252         "z": "add5ea55.8506d8",
253         "wires": [
254             [
255                 "25bfefbb.7b8a2"
256             ]
257         ]
258     },
259     {
260         "id": "467eb351.f8dd4c",
261         "type": "switchNode",
262         "name": "switch network-parameter-name == 'restapiUrl-deactivate'",
263         "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'restapiUrl-deactivate'`\">\n",
264         "comments": "",
265         "outputs": 1,
266         "x": 1121.0039825439453,
267         "y": 1202.0001974105835,
268         "z": "add5ea55.8506d8",
269         "wires": [
270             [
271                 "85fbba7c.c54258"
272             ]
273         ]
274     },
275     {
276         "id": "85fbba7c.c54258",
277         "type": "outcomeTrue",
278         "name": "true",
279         "xml": "<outcome value='true'>\n",
280         "comments": "",
281         "outputs": 1,
282         "x": 1394.0041046142578,
283         "y": 1201.0001554489136,
284         "z": "add5ea55.8506d8",
285         "wires": [
286             [
287                 "3a92a803.532c08"
288             ]
289         ]
290     },
291     {
292         "id": "3a92a803.532c08",
293         "type": "set",
294         "name": "set tmp.thirdparty-sdnc-url",
295         "xml": "<set>\n<parameter name='tmp.restapiUrl' value='`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`' />\n<parameter name='tmp.restapiUrl-found' value='true' />",
296         "comments": "",
297         "x": 1573.0040664672852,
298         "y": 1203.0002040863037,
299         "z": "add5ea55.8506d8",
300         "wires": []
301     },
302     {
303         "id": "ecb2328b.87404",
304         "type": "execute",
305         "name": "execute RestApiCallNode delete wan-connection",
306         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.restapiUrl + $tmp.actualId`\" />\n<parameter name=\"restapiUser\" value=\"`$tmp.restapiUser`\" />\n<parameter name=\"restapiPassword\" value=\"`$tmp.restapiPassword`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>",
307         "comments": "",
308         "outputs": 1,
309         "x": 895.2539520263672,
310         "y": 1934.000750541687,
311         "z": "add5ea55.8506d8",
312         "wires": [
313             [
314                 "90bce824.a60af8",
315                 "639417f4.3c8618",
316                 "5e319e9.e03ce6"
317             ]
318         ]
319     },
320     {
321         "id": "e81bb98f.1bc1c8",
322         "type": "switchNode",
323         "name": "switch network-parameter-name == 'restapiUser'",
324         "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'restapiUser'`\">\n",
325         "comments": "",
326         "outputs": 1,
327         "x": 1124.2539749145508,
328         "y": 1253.0001726150513,
329         "z": "add5ea55.8506d8",
330         "wires": [
331             [
332                 "798bd507.61470c"
333             ]
334         ]
335     },
336     {
337         "id": "798bd507.61470c",
338         "type": "outcomeTrue",
339         "name": "true",
340         "xml": "<outcome value='true'>\n",
341         "comments": "",
342         "outputs": 1,
343         "x": 1390.2540893554688,
344         "y": 1255.000249862671,
345         "z": "add5ea55.8506d8",
346         "wires": [
347             [
348                 "41e8b8a1.d5a1f8"
349             ]
350         ]
351     },
352     {
353         "id": "41e8b8a1.d5a1f8",
354         "type": "set",
355         "name": "set tmp.restapiUser",
356         "xml": "<set>\n<parameter name='tmp.restapiUser' value='`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`' />\n<parameter name='tmp.restapiUser-found' value='true' />",
357         "comments": "",
358         "x": 1591.2541198730469,
359         "y": 1253.0002508163452,
360         "z": "add5ea55.8506d8",
361         "wires": []
362     },
363     {
364         "id": "9df47848.ecea98",
365         "type": "switchNode",
366         "name": "switch network-parameter-name == 'restapiPassword'",
367         "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'restapiPassword'`\">\n",
368         "comments": "",
369         "outputs": 1,
370         "x": 1132.2540435791016,
371         "y": 1307.0000982284546,
372         "z": "add5ea55.8506d8",
373         "wires": [
374             [
375                 "d16bb98.a2dc948"
376             ]
377         ]
378     },
379     {
380         "id": "d16bb98.a2dc948",
381         "type": "outcomeTrue",
382         "name": "true",
383         "xml": "<outcome value='true'>\n",
384         "comments": "",
385         "outputs": 1,
386         "x": 1409.2540550231934,
387         "y": 1305.0001306533813,
388         "z": "add5ea55.8506d8",
389         "wires": [
390             [
391                 "55ba7bac.43a354"
392             ]
393         ]
394     },
395     {
396         "id": "55ba7bac.43a354",
397         "type": "set",
398         "name": "set tmp.restapiPassword",
399         "xml": "<set>\n<parameter name='tmp.restapiPassword' value='`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`' />\n<parameter name='tmp.restapiPassword-found' value='true' />",
400         "comments": "",
401         "x": 1610.2540855407715,
402         "y": 1303.0001316070557,
403         "z": "add5ea55.8506d8",
404         "wires": []
405     },
406     {
407         "id": "229661c0.3323fe",
408         "type": "set",
409         "name": "set paras flags",
410         "xml": "<set>\n<parameter name='tmp.restapiUrl-found' value='false' />\n<parameter name='tmp.restapiUser-found' value='false' />\n<parameter name='tmp.restapiPassword-found' value='false' />\n<parameter name='tmp.thirdPartyAdaptorRpc-found' value='false' />\n<parameter name='tmp.actualId-found' value='false' />",
411         "comments": "",
412         "x": 794.0040893554688,
413         "y": 1047.00013256073,
414         "z": "add5ea55.8506d8",
415         "wires": []
416     },
417     {
418         "id": "6889ef74.f6656",
419         "type": "switchNode",
420         "name": "switch thirdPartyAdaptorRpc-found == 'true'",
421         "xml": "<switch test=\"`$tmp.thirdPartyAdaptorRpc-found == 'true'`\">\n",
422         "comments": "",
423         "outputs": 1,
424         "x": 836.0039215087891,
425         "y": 1542.0001783370972,
426         "z": "add5ea55.8506d8",
427         "wires": [
428             [
429                 "6070832b.4e05ac",
430                 "ffaf6a87.b25588"
431             ]
432         ]
433     },
434     {
435         "id": "25bfefbb.7b8a2",
436         "type": "block",
437         "name": "block",
438         "xml": "<block>\n",
439         "atomic": "false",
440         "comments": "",
441         "outputs": 1,
442         "x": 778.0039215087891,
443         "y": 1313.0000486373901,
444         "z": "add5ea55.8506d8",
445         "wires": [
446             [
447                 "467eb351.f8dd4c",
448                 "e81bb98f.1bc1c8",
449                 "9df47848.ecea98",
450                 "6302da7e.dd2b84",
451                 "28436b7c.b1fc44"
452             ]
453         ]
454     },
455     {
456         "id": "6070832b.4e05ac",
457         "type": "outcomeTrue",
458         "name": "true",
459         "xml": "<outcome value='true'>\n",
460         "comments": "",
461         "outputs": 1,
462         "x": 1098.0039405822754,
463         "y": 1504.0001153945923,
464         "z": "add5ea55.8506d8",
465         "wires": [
466             [
467                 "7b671856.32cf38"
468             ]
469         ]
470     },
471     {
472         "id": "ffaf6a87.b25588",
473         "type": "outcomeTrue",
474         "name": "false",
475         "xml": "<outcome value='false'>\n",
476         "comments": "",
477         "outputs": 1,
478         "x": 1099.003890991211,
479         "y": 1570.0000801086426,
480         "z": "add5ea55.8506d8",
481         "wires": [
482             [
483                 "c985a158.801a7"
484             ]
485         ]
486     },
487     {
488         "id": "7b671856.32cf38",
489         "type": "call",
490         "name": "call thirdPartyAdaptorRpc",
491         "xml": "<call module='GENERIC-RESOURCE-API' rpc='`$tmp.thirdPartyAdaptorRpc`' mode='sync' >\n",
492         "comments": "",
493         "outputs": 1,
494         "x": 1318.0039825439453,
495         "y": 1505.0001745224,
496         "z": "add5ea55.8506d8",
497         "wires": [
498             [
499                 "dead764f.d92678",
500                 "d7c6c9d5.2e7148",
501                 "15e9a511.5d2bdb"
502             ]
503         ]
504     },
505     {
506         "id": "c985a158.801a7",
507         "type": "switchNode",
508         "name": "switch restapiUrl-found == 'true'",
509         "xml": "<switch test=\"`$tmp.restapiUrl-found == 'true'`\">\n",
510         "comments": "",
511         "outputs": 1,
512         "x": 860.4548110961914,
513         "y": 1654.0068244934082,
514         "z": "add5ea55.8506d8",
515         "wires": [
516             [
517                 "4213fed6.58526",
518                 "b4e8bd7.9e5da4"
519             ]
520         ]
521     },
522     {
523         "id": "4213fed6.58526",
524         "type": "outcomeTrue",
525         "name": "true",
526         "xml": "<outcome value='true'>\n",
527         "comments": "",
528         "outputs": 1,
529         "x": 1111.4547958374023,
530         "y": 1652.0066204071045,
531         "z": "add5ea55.8506d8",
532         "wires": [
533             [
534                 "1d6d17bd.ff2e18"
535             ]
536         ]
537     },
538     {
539         "id": "1d6d17bd.ff2e18",
540         "type": "switchNode",
541         "name": "switch restapiUser-found == 'true'",
542         "xml": "<switch test=\"`$tmp.restapiUser-found == 'true'`\">\n",
543         "comments": "",
544         "outputs": 1,
545         "x": 838.4549102783203,
546         "y": 1721.228922843933,
547         "z": "add5ea55.8506d8",
548         "wires": [
549             [
550                 "787ae8bc.8e3698",
551                 "c501bbca.d35c78"
552             ]
553         ]
554     },
555     {
556         "id": "787ae8bc.8e3698",
557         "type": "outcomeTrue",
558         "name": "true",
559         "xml": "<outcome value='true'>\n",
560         "comments": "",
561         "outputs": 1,
562         "x": 1105.4548034667969,
563         "y": 1722.2286357879639,
564         "z": "add5ea55.8506d8",
565         "wires": [
566             [
567                 "ccf93de2.220a9"
568             ]
569         ]
570     },
571     {
572         "id": "ccf93de2.220a9",
573         "type": "switchNode",
574         "name": "switch restapiPassword-found == 'true'",
575         "xml": "<switch test=\"`$tmp.restapiPassword-found == 'true'`\">\n",
576         "comments": "",
577         "outputs": 1,
578         "x": 853.4548034667969,
579         "y": 1791.2288455963135,
580         "z": "add5ea55.8506d8",
581         "wires": [
582             [
583                 "ef4e3315.b193a",
584                 "ec2c6336.45952"
585             ]
586         ]
587     },
588     {
589         "id": "ef4e3315.b193a",
590         "type": "outcomeTrue",
591         "name": "true",
592         "xml": "<outcome value='true'>\n",
593         "comments": "",
594         "outputs": 1,
595         "x": 1113.4548034667969,
596         "y": 1791.2286357879639,
597         "z": "add5ea55.8506d8",
598         "wires": [
599             [
600                 "5bfb0348.022b1c"
601             ]
602         ]
603     },
604     {
605         "id": "6302da7e.dd2b84",
606         "type": "switchNode",
607         "name": "switch network-parameter-name == 'thirdPartyAdaptorRpc-deactivate'",
608         "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'thirdPartyAdaptorRpc-deactivate'`\">\n",
609         "comments": "",
610         "outputs": 1,
611         "x": 1150.010440826416,
612         "y": 1400.0064764022827,
613         "z": "add5ea55.8506d8",
614         "wires": [
615             [
616                 "fd6dd8ea.6b1e08"
617             ]
618         ]
619     },
620     {
621         "id": "fd6dd8ea.6b1e08",
622         "type": "outcomeTrue",
623         "name": "true",
624         "xml": "<outcome value='true'>\n",
625         "comments": "",
626         "outputs": 1,
627         "x": 1461.0106582641602,
628         "y": 1404.006381034851,
629         "z": "add5ea55.8506d8",
630         "wires": [
631             [
632                 "46687aa0.06bae4"
633             ]
634         ]
635     },
636     {
637         "id": "46687aa0.06bae4",
638         "type": "set",
639         "name": "set tmp.thirdPartyAdaptorRpc",
640         "xml": "<set>\n<parameter name='tmp.thirdPartyAdaptorRpc' value='`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`' />\n<parameter name='tmp.thirdPartyAdaptorRpc-found' value='true' />",
641         "comments": "",
642         "x": 1656.010612487793,
643         "y": 1398.0065717697144,
644         "z": "add5ea55.8506d8",
645         "wires": []
646     },
647     {
648         "id": "15e9a511.5d2bdb",
649         "type": "not-found",
650         "name": "not-found",
651         "xml": "<outcome value='not-found'>\n",
652         "comments": "",
653         "outputs": 1,
654         "x": 1584.0103759765625,
655         "y": 1544.3398427963257,
656         "z": "add5ea55.8506d8",
657         "wires": [
658             [
659                 "9fcd7153.d785c"
660             ]
661         ]
662     },
663     {
664         "id": "d7c6c9d5.2e7148",
665         "type": "failure",
666         "name": "failure",
667         "xml": "<outcome value='failure'>\n",
668         "comments": "",
669         "outputs": 1,
670         "x": 1575.010425567627,
671         "y": 1512.8398685455322,
672         "z": "add5ea55.8506d8",
673         "wires": [
674             [
675                 "9fcd7153.d785c"
676             ]
677         ]
678     },
679     {
680         "id": "dead764f.d92678",
681         "type": "success",
682         "name": "success",
683         "xml": "<outcome value='success'>\n",
684         "comments": "",
685         "outputs": 1,
686         "x": 1578.7604637145996,
687         "y": 1483.1969734206796,
688         "z": "add5ea55.8506d8",
689         "wires": [
690             [
691                 "ab7968a5.26b8d8"
692             ]
693         ]
694     },
695     {
696         "id": "9fcd7153.d785c",
697         "type": "returnFailure",
698         "name": "return failure",
699         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Error calling ' + $tmp.thirdPartyAdaptorRpc`\" />\n",
700         "comments": "",
701         "x": 1741.7604904174805,
702         "y": 1529.5899410247803,
703         "z": "add5ea55.8506d8",
704         "wires": []
705     },
706     {
707         "id": "ab7968a5.26b8d8",
708         "type": "block",
709         "name": "block",
710         "xml": "<block>\n",
711         "atomic": "false",
712         "comments": "",
713         "outputs": 1,
714         "x": 1720.416431427002,
715         "y": 1479.3891426101327,
716         "z": "add5ea55.8506d8",
717         "wires": [
718             []
719         ]
720     },
721     {
722         "id": "5e319e9.e03ce6",
723         "type": "not-found",
724         "name": "not-found",
725         "xml": "<outcome value='not-found'>\n",
726         "comments": "",
727         "outputs": 1,
728         "x": 1225.0103759765625,
729         "y": 1969.3398427963257,
730         "z": "add5ea55.8506d8",
731         "wires": [
732             [
733                 "a7499ed5.48afb"
734             ]
735         ]
736     },
737     {
738         "id": "639417f4.3c8618",
739         "type": "failure",
740         "name": "failure",
741         "xml": "<outcome value='failure'>\n",
742         "comments": "",
743         "outputs": 1,
744         "x": 1216.010425567627,
745         "y": 1937.8398685455322,
746         "z": "add5ea55.8506d8",
747         "wires": [
748             [
749                 "a7499ed5.48afb"
750             ]
751         ]
752     },
753     {
754         "id": "90bce824.a60af8",
755         "type": "success",
756         "name": "success",
757         "xml": "<outcome value='success'>\n",
758         "comments": "",
759         "outputs": 1,
760         "x": 1219.7604637145996,
761         "y": 1908.1969734206796,
762         "z": "add5ea55.8506d8",
763         "wires": [
764             [
765                 "8b51f6a8.9f1da8"
766             ]
767         ]
768     },
769     {
770         "id": "a7499ed5.48afb",
771         "type": "returnFailure",
772         "name": "return failure",
773         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Error calling ' + $tmp.restapiUrl`\" />\n",
774         "comments": "",
775         "x": 1382.7604904174805,
776         "y": 1954.5899410247803,
777         "z": "add5ea55.8506d8",
778         "wires": []
779     },
780     {
781         "id": "8b51f6a8.9f1da8",
782         "type": "block",
783         "name": "block",
784         "xml": "<block>\n",
785         "atomic": "false",
786         "comments": "",
787         "outputs": 1,
788         "x": 1361.416431427002,
789         "y": 1904.3891426101327,
790         "z": "add5ea55.8506d8",
791         "wires": [
792             []
793         ]
794     },
795     {
796         "id": "b4e8bd7.9e5da4",
797         "type": "outcomeTrue",
798         "name": "false",
799         "xml": "<outcome value='false'>\n",
800         "comments": "",
801         "outputs": 1,
802         "x": 1262.677001953125,
803         "y": 1619.4509267807007,
804         "z": "add5ea55.8506d8",
805         "wires": [
806             [
807                 "e85c9352.a3eed"
808             ]
809         ]
810     },
811     {
812         "id": "e85c9352.a3eed",
813         "type": "returnFailure",
814         "name": "return failure",
815         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: 3rd party controller restapiUrl not found\" />\n    \n",
816         "comments": "",
817         "x": 1433.677001953125,
818         "y": 1627.4508962631226,
819         "z": "add5ea55.8506d8",
820         "wires": []
821     },
822     {
823         "id": "c501bbca.d35c78",
824         "type": "outcomeTrue",
825         "name": "false",
826         "xml": "<outcome value='false'>\n",
827         "comments": "",
828         "outputs": 1,
829         "x": 1267.677001953125,
830         "y": 1698.4509267807007,
831         "z": "add5ea55.8506d8",
832         "wires": [
833             [
834                 "ae06c9a.f856b38"
835             ]
836         ]
837     },
838     {
839         "id": "ae06c9a.f856b38",
840         "type": "returnFailure",
841         "name": "return failure",
842         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: 3rd party controller restapiUser not found\" />\n    \n",
843         "comments": "",
844         "x": 1438.677001953125,
845         "y": 1706.4508962631226,
846         "z": "add5ea55.8506d8",
847         "wires": []
848     },
849     {
850         "id": "ec2c6336.45952",
851         "type": "outcomeTrue",
852         "name": "false",
853         "xml": "<outcome value='false'>\n",
854         "comments": "",
855         "outputs": 1,
856         "x": 1258.677001953125,
857         "y": 1769.4509267807007,
858         "z": "add5ea55.8506d8",
859         "wires": [
860             [
861                 "ea3c7dab.c8829"
862             ]
863         ]
864     },
865     {
866         "id": "ea3c7dab.c8829",
867         "type": "returnFailure",
868         "name": "return failure",
869         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: 3rd party controller restapiPassword not found\" />\n    \n",
870         "comments": "",
871         "x": 1429.677001953125,
872         "y": 1777.4508962631226,
873         "z": "add5ea55.8506d8",
874         "wires": []
875     },
876     {
877         "id": "28436b7c.b1fc44",
878         "type": "switchNode",
879         "name": "switch network-parameter-name == 'actualId'",
880         "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'actualId'`\">\n",
881         "comments": "",
882         "outputs": 1,
883         "x": 1136.0038757324219,
884         "y": 1354.999960899353,
885         "z": "add5ea55.8506d8",
886         "wires": [
887             [
888                 "ff7b2584.cdcb58"
889             ]
890         ]
891     },
892     {
893         "id": "ff7b2584.cdcb58",
894         "type": "outcomeTrue",
895         "name": "true",
896         "xml": "<outcome value='true'>\n",
897         "comments": "",
898         "outputs": 1,
899         "x": 1413.0038871765137,
900         "y": 1352.9999933242798,
901         "z": "add5ea55.8506d8",
902         "wires": [
903             [
904                 "4ffde6e.9995318"
905             ]
906         ]
907     },
908     {
909         "id": "4ffde6e.9995318",
910         "type": "set",
911         "name": "set tmp.actualId",
912         "xml": "<set>\n<parameter name='tmp.actualId' value='`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`' />\n<parameter name='tmp.actualId-found' value='true' />",
913         "comments": "",
914         "x": 1614.0039176940918,
915         "y": 1350.999994277954,
916         "z": "add5ea55.8506d8",
917         "wires": []
918     },
919     {
920         "id": "5bfb0348.022b1c",
921         "type": "switchNode",
922         "name": "switch actualId-found == 'true'",
923         "xml": "<switch test=\"`$tmp.actualId-found == 'true'`\">\n",
924         "comments": "",
925         "outputs": 1,
926         "x": 867.2261047363281,
927         "y": 1859.4444189071655,
928         "z": "add5ea55.8506d8",
929         "wires": [
930             [
931                 "21d86096.fee9f",
932                 "849bef82.9af23"
933             ]
934         ]
935     },
936     {
937         "id": "21d86096.fee9f",
938         "type": "outcomeTrue",
939         "name": "true",
940         "xml": "<outcome value='true'>\n",
941         "comments": "",
942         "outputs": 1,
943         "x": 1127.2261047363281,
944         "y": 1859.444209098816,
945         "z": "add5ea55.8506d8",
946         "wires": [
947             [
948                 "ecb2328b.87404"
949             ]
950         ]
951     },
952     {
953         "id": "849bef82.9af23",
954         "type": "outcomeTrue",
955         "name": "false",
956         "xml": "<outcome value='false'>\n",
957         "comments": "",
958         "outputs": 1,
959         "x": 1272.4483032226562,
960         "y": 1837.6665000915527,
961         "z": "add5ea55.8506d8",
962         "wires": [
963             [
964                 "9362ad56.36a98"
965             ]
966         ]
967     },
968     {
969         "id": "9362ad56.36a98",
970         "type": "returnFailure",
971         "name": "return failure",
972         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: Wan Connection actualId not found\" />\n    \n",
973         "comments": "",
974         "x": 1443.4483032226562,
975         "y": 1845.6664695739746,
976         "z": "add5ea55.8506d8",
977         "wires": []
978     },
979     {
980         "id": "c8936a70.9f1118",
981         "type": "execute",
982         "name": "execute RestApiCallNode get wan-connection localId",
983         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn_get_zte_template.json' `\" />\n<parameter name=\"restapiUrl\" value=\"http://10.80.80.21:8443/restconf/operations/ZTE-API-ConnectivityService:get-service-details\" />\n<parameter name=\"restapiUser\" value=\"admin\" />\n<parameter name=\"restapiPassword\" value=\"admin\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"restApiResult\"/>",
984         "comments": "",
985         "outputs": 1,
986         "x": 801.25390625,
987         "y": 2170.003906726837,
988         "z": "add5ea55.8506d8",
989         "wires": [
990             [
991                 "953b9364.6a04b",
992                 "511ddd61.150c94",
993                 "eb807b79.8d7c78"
994             ]
995         ]
996     },
997     {
998         "id": "eb807b79.8d7c78",
999         "type": "not-found",
1000         "name": "not-found",
1001         "xml": "<outcome value='not-found'>\n",
1002         "comments": "",
1003         "outputs": 1,
1004         "x": 1131.0103302001953,
1005         "y": 2205.342998981476,
1006         "z": "add5ea55.8506d8",
1007         "wires": [
1008             [
1009                 "bd9032fd.3c50f"
1010             ]
1011         ]
1012     },
1013     {
1014         "id": "511ddd61.150c94",
1015         "type": "failure",
1016         "name": "failure",
1017         "xml": "<outcome value='failure'>\n",
1018         "comments": "",
1019         "outputs": 1,
1020         "x": 1122.0103797912598,
1021         "y": 2173.8430247306824,
1022         "z": "add5ea55.8506d8",
1023         "wires": [
1024             [
1025                 "bd9032fd.3c50f"
1026             ]
1027         ]
1028     },
1029     {
1030         "id": "953b9364.6a04b",
1031         "type": "success",
1032         "name": "success",
1033         "xml": "<outcome value='success'>\n",
1034         "comments": "",
1035         "outputs": 1,
1036         "x": 1125.7604179382324,
1037         "y": 2144.2001296058297,
1038         "z": "add5ea55.8506d8",
1039         "wires": [
1040             [
1041                 "6c6c8390.edb91c"
1042             ]
1043         ]
1044     },
1045     {
1046         "id": "bd9032fd.3c50f",
1047         "type": "returnFailure",
1048         "name": "return failure",
1049         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Error calling ' + $tmp.restapiUrl`\" />\n",
1050         "comments": "",
1051         "x": 1320.760482788086,
1052         "y": 2268.5930428504944,
1053         "z": "add5ea55.8506d8",
1054         "wires": []
1055     },
1056     {
1057         "id": "9a0faf20.2fca7",
1058         "type": "block",
1059         "name": "block : atomic",
1060         "xml": "<block atomic=\"true\">",
1061         "atomic": "true",
1062         "outputs": 1,
1063         "x": 458.00390625,
1064         "y": 2174.003906726837,
1065         "z": "add5ea55.8506d8",
1066         "wires": [
1067             [
1068                 "c8936a70.9f1118",
1069                 "55f19580.60d50c",
1070                 "664842f0.f5459c",
1071                 "39b12b85.00f734"
1072             ]
1073         ]
1074     },
1075     {
1076         "id": "756c6c69.207644",
1077         "type": "set",
1078         "name": "set localId",
1079         "xml": "<set>\n<parameter name='localId' value='`$restApiResult.output.normal-service.name[0].value`' />",
1080         "comments": "",
1081         "x": 951.7539520263672,
1082         "y": 2406.0039315223694,
1083         "z": "add5ea55.8506d8",
1084         "wires": []
1085     },
1086     {
1087         "id": "6c6c8390.edb91c",
1088         "type": "block",
1089         "name": "block : atomic",
1090         "xml": "<block atomic=\"true\">",
1091         "atomic": "true",
1092         "outputs": 1,
1093         "x": 838.75390625,
1094         "y": 2333.003906726837,
1095         "z": "add5ea55.8506d8",
1096         "wires": [
1097             [
1098                 "756c6c69.207644",
1099                 "adb3e76.6b84418"
1100             ]
1101         ]
1102     },
1103     {
1104         "id": "adb3e76.6b84418",
1105         "type": "execute",
1106         "name": "execute RestApiCallNode delete wan-connection",
1107         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn_delete_zte_template.json' `\" />\n<parameter name=\"restapiUrl\" value=\"http://10.80.80.21:8443/restconf/operations/ZTE-API-ConnectivityService:delete-connectivity-service\" />\n<parameter name=\"restapiUser\" value=\"admin\" />\n<parameter name=\"restapiPassword\" value=\"admin\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"restApiResult\"/>",
1108         "comments": "",
1109         "outputs": 1,
1110         "x": 1079.75390625,
1111         "y": 2479.0039010047913,
1112         "z": "add5ea55.8506d8",
1113         "wires": [
1114             [
1115                 "4a8e2d71.5792f4",
1116                 "3378e2f0.491d0e",
1117                 "baeb07bf.b350f8"
1118             ]
1119         ]
1120     },
1121     {
1122         "id": "baeb07bf.b350f8",
1123         "type": "not-found",
1124         "name": "not-found",
1125         "xml": "<outcome value='not-found'>\n",
1126         "comments": "",
1127         "outputs": 1,
1128         "x": 1388.75390625,
1129         "y": 2510.003906726837,
1130         "z": "add5ea55.8506d8",
1131         "wires": [
1132             [
1133                 "bd9032fd.3c50f"
1134             ]
1135         ]
1136     },
1137     {
1138         "id": "3378e2f0.491d0e",
1139         "type": "failure",
1140         "name": "failure",
1141         "xml": "<outcome value='failure'>\n",
1142         "comments": "",
1143         "outputs": 1,
1144         "x": 1379.7539558410645,
1145         "y": 2478.5039324760437,
1146         "z": "add5ea55.8506d8",
1147         "wires": [
1148             [
1149                 "bd9032fd.3c50f"
1150             ]
1151         ]
1152     },
1153     {
1154         "id": "4a8e2d71.5792f4",
1155         "type": "success",
1156         "name": "success",
1157         "xml": "<outcome value='success'>\n",
1158         "comments": "",
1159         "outputs": 1,
1160         "x": 1383.503993988037,
1161         "y": 2448.861037351191,
1162         "z": "add5ea55.8506d8",
1163         "wires": [
1164             [
1165                 "d69d9f76.9f753"
1166             ]
1167         ]
1168     },
1169     {
1170         "id": "d69d9f76.9f753",
1171         "type": "block",
1172         "name": "block",
1173         "xml": "<block>\n",
1174         "atomic": "false",
1175         "comments": "",
1176         "outputs": 1,
1177         "x": 1532.7539710998535,
1178         "y": 2448.0039010047913,
1179         "z": "add5ea55.8506d8",
1180         "wires": [
1181             []
1182         ]
1183     },
1184     {
1185         "id": "d4dcaf7.912a95",
1186         "type": "set",
1187         "name": "set sotnServiceId",
1188         "xml": "<set>\n<parameter name='sotnServiceId' value='73aa6033-a43e-3162-9bc9-085edc2b5a10' />",
1189         "comments": "",
1190         "x": 1084.7539596557617,
1191         "y": 2102.0040740966797,
1192         "z": "add5ea55.8506d8",
1193         "wires": []
1194     },
1195     {
1196         "id": "55f19580.60d50c",
1197         "type": "for",
1198         "name": "for pidx..network-input-parameters[]",
1199         "xml": "<for index='paidx' start='0' end='`$tmp.network.network-data.network-request-input.network-input-parameters.param_length`' >\n",
1200         "comments": "",
1201         "outputs": 1,
1202         "x": 746.0039367675781,
1203         "y": 2045.0039901733398,
1204         "z": "add5ea55.8506d8",
1205         "wires": [
1206             [
1207                 "94cd2d2f.d6b96"
1208             ]
1209         ]
1210     },
1211     {
1212         "id": "94cd2d2f.d6b96",
1213         "type": "switchNode",
1214         "name": "switch svc-action",
1215         "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$paidx].name == 'localServiceId'`\">\n",
1216         "comments": "",
1217         "outputs": 1,
1218         "x": 1018.0039367675781,
1219         "y": 2052.00399017334,
1220         "z": "add5ea55.8506d8",
1221         "wires": [
1222             [
1223                 "505d1c65.f95bd4"
1224             ]
1225         ]
1226     },
1227     {
1228         "id": "505d1c65.f95bd4",
1229         "type": "outcomeTrue",
1230         "name": "true",
1231         "xml": "<outcome value='true'>\n",
1232         "comments": "",
1233         "outputs": 1,
1234         "x": 1192.0039367675781,
1235         "y": 2057.00399017334,
1236         "z": "add5ea55.8506d8",
1237         "wires": [
1238             [
1239                 "4e885a55.b3baf4"
1240             ]
1241         ]
1242     },
1243     {
1244         "id": "4e885a55.b3baf4",
1245         "type": "set",
1246         "name": "set localServiceId",
1247         "xml": "<set>\n<parameter name='localServiceId' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$paidx].value`' />\n<parameter name='isLocalIdFound' value='true' />",
1248         "comments": "",
1249         "x": 1387.0039367675781,
1250         "y": 2055.00399017334,
1251         "z": "add5ea55.8506d8",
1252         "wires": []
1253     },
1254     {
1255         "id": "664842f0.f5459c",
1256         "type": "switchNode",
1257         "name": "switch isLocalIdFound",
1258         "xml": "<switch test=\"`$isLocalIdFound`\">\n",
1259         "comments": "",
1260         "outputs": 1,
1261         "x": 711.2539596557617,
1262         "y": 2100.0040130615234,
1263         "z": "add5ea55.8506d8",
1264         "wires": [
1265             [
1266                 "64a4311f.473ee"
1267             ]
1268         ]
1269     },
1270     {
1271         "id": "64a4311f.473ee",
1272         "type": "outcomeTrue",
1273         "name": "false",
1274         "xml": "<outcome value='false'>\n",
1275         "comments": "",
1276         "outputs": 1,
1277         "x": 906.2539215087891,
1278         "y": 2100.0040130615234,
1279         "z": "add5ea55.8506d8",
1280         "wires": [
1281             [
1282                 "d4dcaf7.912a95"
1283             ]
1284         ]
1285     },
1286     {
1287         "id": "39b12b85.00f734",
1288         "type": "set",
1289         "name": "set isLocalIdFound",
1290         "xml": "<set>\n<parameter name='isLocalIdFound' value='false' />",
1291         "comments": "",
1292         "x": 688.25390625,
1293         "y": 1997.00390625,
1294         "z": "add5ea55.8506d8",
1295         "wires": []
1296     }
1297 ]