ead08f444ebafaf9c0da986beb01613e0006031e
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_esr-thirdparty-sdnc-discovery.json
1 [\r
2     {\r
3         "id": "3872acaa.809c44",\r
4         "type": "other",\r
5         "name": "update",\r
6         "xml": "<outcome value='Update'>\n",\r
7         "comments": "",\r
8         "outputs": 1,\r
9         "x": 710,\r
10         "y": 305,\r
11         "z": "8cb67e95.d771b8",\r
12         "wires": [\r
13             [\r
14                 "5a988226.7d9fdc"\r
15             ]\r
16         ]\r
17     },\r
18     {\r
19         "id": "dbb694.b27a417",\r
20         "type": "other",\r
21         "name": "delete",\r
22         "xml": "<outcome value='Delete'>\n",\r
23         "comments": "",\r
24         "outputs": 1,\r
25         "x": 710,\r
26         "y": 385,\r
27         "z": "8cb67e95.d771b8",\r
28         "wires": [\r
29             [\r
30                 "754f4acc.eae6dc"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "754f4acc.eae6dc",\r
36         "type": "block",\r
37         "name": "block : atomic",\r
38         "xml": "<block atomic=\"true\">",\r
39         "atomic": "true",\r
40         "outputs": 1,\r
41         "x": 851.5,\r
42         "y": 385,\r
43         "z": "8cb67e95.d771b8",\r
44         "wires": [\r
45             [\r
46                 "983792ba.976408"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "4cc508ad.f5c7d",\r
52         "type": "switchNode",\r
53         "name": "switch aai-event-trigger",\r
54         "xml": "<switch test=\"`$data-change-notification-input.aai-event-trigger`\">\n",\r
55         "comments": "",\r
56         "outputs": 1,\r
57         "x": 540.5,\r
58         "y": 345,\r
59         "z": "8cb67e95.d771b8",\r
60         "wires": [\r
61             [\r
62                 "3872acaa.809c44",\r
63                 "dbb694.b27a417"\r
64             ]\r
65         ]\r
66     },\r
67     {\r
68         "id": "f974c517.d68cd",\r
69         "type": "block",\r
70         "name": "block : atomic",\r
71         "xml": "<block atomic=\"true\">",\r
72         "atomic": "true",\r
73         "outputs": 1,\r
74         "x": 1237.5,\r
75         "y": 216,\r
76         "z": "8cb67e95.d771b8",\r
77         "wires": [\r
78             [\r
79                 "29d0fcfc.c3657c",\r
80                 "80deb47b.7e9e",\r
81                 "f9b155cc.d14098",\r
82                 "c374fd8f.2c9bc8",\r
83                 "31237f4.62f8c"\r
84             ]\r
85         ]\r
86     },\r
87     {\r
88         "id": "80deb47b.7e9e",\r
89         "type": "execute",\r
90         "name": "execute RestApiCallNode Get token",\r
91         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",\r
92         "comments": "",\r
93         "outputs": 1,\r
94         "x": 1510.5001983642578,\r
95         "y": 137.00000953674316,\r
96         "z": "8cb67e95.d771b8",\r
97         "wires": [\r
98             [\r
99                 "6d5b07.e87e6cf8",\r
100                 "403286df.c4eed8"\r
101             ]\r
102         ]\r
103     },\r
104     {\r
105         "id": "6d5b07.e87e6cf8",\r
106         "type": "success",\r
107         "name": "success",\r
108         "xml": "<outcome value='success'>\n",\r
109         "comments": "",\r
110         "outputs": 1,\r
111         "x": 1800.000244140625,\r
112         "y": 129,\r
113         "z": "8cb67e95.d771b8",\r
114         "wires": [\r
115             [\r
116                 "b95a0f0f.c5f4"\r
117             ]\r
118         ]\r
119     },\r
120     {\r
121         "id": "403286df.c4eed8",\r
122         "type": "failure",\r
123         "name": "failure",\r
124         "xml": "<outcome value='failure'>\n",\r
125         "comments": "",\r
126         "outputs": 1,\r
127         "x": 1796.000244140625,\r
128         "y": 169,\r
129         "z": "8cb67e95.d771b8",\r
130         "wires": [\r
131             [\r
132                 "f35984bc.58f298"\r
133             ]\r
134         ]\r
135     },\r
136     {\r
137         "id": "b95a0f0f.c5f4",\r
138         "type": "set",\r
139         "name": "set token-id",\r
140         "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",\r
141         "comments": "",\r
142         "x": 1950.500244140625,\r
143         "y": 129,\r
144         "z": "8cb67e95.d771b8",\r
145         "wires": []\r
146     },\r
147     {\r
148         "id": "c03c3a2.5764a48",\r
149         "type": "execute",\r
150         "name": "execute RestApiCallNode Get Topology",\r
151         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"get\"/>\n<parameter name=\"responsePrefix\" value=\"topology\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
152         "comments": "",\r
153         "outputs": 1,\r
154         "x": 2017.500244140625,\r
155         "y": 249,\r
156         "z": "8cb67e95.d771b8",\r
157         "wires": [\r
158             [\r
159                 "986cb045.40c5",\r
160                 "e9ec571f.c3cfe8"\r
161             ]\r
162         ]\r
163     },\r
164     {\r
165         "id": "986cb045.40c5",\r
166         "type": "success",\r
167         "name": "success",\r
168         "xml": "<outcome value='success'>\n",\r
169         "comments": "",\r
170         "outputs": 1,\r
171         "x": 2260.000244140625,\r
172         "y": 269,\r
173         "z": "8cb67e95.d771b8",\r
174         "wires": [\r
175             [\r
176                 "7a144ec7.8a9348"\r
177             ]\r
178         ]\r
179     },\r
180     {\r
181         "id": "7a144ec7.8a9348",\r
182         "type": "block",\r
183         "name": "block : atomic",\r
184         "xml": "<block atomic=\"true\">",\r
185         "atomic": "true",\r
186         "comments": "",\r
187         "outputs": 1,\r
188         "x": 2417.500244140625,\r
189         "y": 269,\r
190         "z": "8cb67e95.d771b8",\r
191         "wires": [\r
192             [\r
193                 "55ea6ad.8497214",\r
194                 "ad96f3f.ca0439"\r
195             ]\r
196         ]\r
197     },\r
198     {\r
199         "id": "c2f07a72.d9a858",\r
200         "type": "returnFailure",\r
201         "name": "return failure",\r
202         "xml": "<return status='failure'>\n <parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",\r
203         "comments": "",\r
204         "x": 2394.000244140625,\r
205         "y": 169,\r
206         "z": "8cb67e95.d771b8",\r
207         "wires": []\r
208     },\r
209     {\r
210         "id": "e9ec571f.c3cfe8",\r
211         "type": "failure",\r
212         "name": "failure",\r
213         "xml": "<outcome value='failure'>\n",\r
214         "comments": "",\r
215         "outputs": 1,\r
216         "x": 2256.000244140625,\r
217         "y": 169,\r
218         "z": "8cb67e95.d771b8",\r
219         "wires": [\r
220             [\r
221                 "c2f07a72.d9a858"\r
222             ]\r
223         ]\r
224     },\r
225     {\r
226         "id": "7d5868e5.98eab",\r
227         "type": "dgstart",\r
228         "name": "DGSTART",\r
229         "outputs": 1,\r
230         "x": 163,\r
231         "y": 80,\r
232         "z": "8cb67e95.d771b8",\r
233         "wires": [\r
234             [\r
235                 "22d8189e.4866f"\r
236             ]\r
237         ]\r
238     },\r
239     {\r
240         "id": "22d8189e.4866f",\r
241         "type": "service-logic",\r
242         "name": "DataChange ${project.version}",\r
243         "module": "DataChange",\r
244         "version": "${project.version}",\r
245         "comments": "",\r
246         "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='DataChange' version='${project.version}'>",\r
247         "outputs": 1,\r
248         "x": 176,\r
249         "y": 140,\r
250         "z": "8cb67e95.d771b8",\r
251         "wires": [\r
252             [\r
253                 "3a8b8af3.4d4416"\r
254             ]\r
255         ]\r
256     },\r
257     {\r
258         "id": "3a8b8af3.4d4416",\r
259         "type": "method",\r
260         "name": "method esr-thirdparty-sdnc-discovery",\r
261         "xml": "<method rpc='esr-thirdparty-sdnc-discovery' mode='sync'>\n",\r
262         "comments": "",\r
263         "outputs": 1,\r
264         "x": 196,\r
265         "y": 220,\r
266         "z": "8cb67e95.d771b8",\r
267         "wires": [\r
268             [\r
269                 "c8a85a4d.9e66f"\r
270             ]\r
271         ]\r
272     },\r
273     {\r
274         "id": "c8a85a4d.9e66f",\r
275         "type": "block",\r
276         "name": "block : atomic",\r
277         "xml": "<block atomic=\"true\">\n",\r
278         "atomic": "false",\r
279         "comments": "",\r
280         "outputs": 1,\r
281         "x": 443.5,\r
282         "y": 220,\r
283         "z": "8cb67e95.d771b8",\r
284         "wires": [\r
285             [\r
286                 "cbd24389.ade708"\r
287             ]\r
288         ]\r
289     },\r
290     {\r
291         "id": "55ea6ad.8497214",\r
292         "type": "for",\r
293         "name": "for each Network",\r
294         "xml": "<for index='nidx' start='0' end='`$topology.networks.network_length`' >\n",\r
295         "comments": "",\r
296         "outputs": 1,\r
297         "x": 2636.500244140625,\r
298         "y": 198,\r
299         "z": "8cb67e95.d771b8",\r
300         "wires": [\r
301             [\r
302                 "1ed2d22d.82cc36"\r
303             ]\r
304         ]\r
305     },\r
306     {\r
307         "id": "1ed2d22d.82cc36",\r
308         "type": "block",\r
309         "name": "block",\r
310         "xml": "<block>\n",\r
311         "atomic": "false",\r
312         "comments": "",\r
313         "outputs": 1,\r
314         "x": 2785.000244140625,\r
315         "y": 198,\r
316         "z": "8cb67e95.d771b8",\r
317         "wires": [\r
318             [\r
319                 "852144d1.2cc6d",\r
320                 "530a9a06.d69fc4"\r
321             ]\r
322         ]\r
323     },\r
324     {\r
325         "id": "852144d1.2cc6d",\r
326         "type": "call",\r
327         "name": "call update-network-to-aai",\r
328         "xml": "<call module='DataChange' rpc='update-network-to-aai' mode='sync' >\n",\r
329         "comments": "",\r
330         "outputs": 1,\r
331         "x": 2964.000244140625,\r
332         "y": 218,\r
333         "z": "8cb67e95.d771b8",\r
334         "wires": [\r
335             []\r
336         ]\r
337     },\r
338     {\r
339         "id": "530a9a06.d69fc4",\r
340         "type": "set",\r
341         "name": "set network",\r
342         "xml": "<set>\n<parameter name='network.' value='`$topology.networks.network[$nidx].`' />\n",\r
343         "comments": "",\r
344         "x": 2919.000244140625,\r
345         "y": 178,\r
346         "z": "8cb67e95.d771b8",\r
347         "wires": []\r
348     },\r
349     {\r
350         "id": "f35984bc.58f298",\r
351         "type": "block",\r
352         "name": "block",\r
353         "xml": "<block>\n",\r
354         "atomic": "false",\r
355         "comments": "",\r
356         "outputs": 1,\r
357         "x": 1916.000244140625,\r
358         "y": 169,\r
359         "z": "8cb67e95.d771b8",\r
360         "wires": [\r
361             []\r
362         ]\r
363     },\r
364     {\r
365         "id": "a473b7cc.4471d8",\r
366         "type": "comment",\r
367         "name": "Do Nothing",\r
368         "info": "",\r
369         "comments": "",\r
370         "x": 2086.000244140625,\r
371         "y": 209,\r
372         "z": "8cb67e95.d771b8",\r
373         "wires": []\r
374     },\r
375     {\r
376         "id": "d9afda1.5ca9828",\r
377         "type": "switchNode",\r
378         "name": "switch type",\r
379         "xml": "<switch test=\"`$prop.sdncRestApi.type`\">\n",\r
380         "comments": "",\r
381         "outputs": 1,\r
382         "x": 963,\r
383         "y": 305,\r
384         "z": "8cb67e95.d771b8",\r
385         "wires": [\r
386             [\r
387                 "7ea96e84.4a184",\r
388                 "e5a11dd.415fde",\r
389                 "11ea46b7.9ad609",\r
390                 "a5c3b391.3c4aa"\r
391             ]\r
392         ]\r
393     },\r
394     {\r
395         "id": "5a988226.7d9fdc",\r
396         "type": "block",\r
397         "name": "block",\r
398         "xml": "<block>\n",\r
399         "atomic": "false",\r
400         "comments": "",\r
401         "outputs": 1,\r
402         "x": 830,\r
403         "y": 305,\r
404         "z": "8cb67e95.d771b8",\r
405         "wires": [\r
406             [\r
407                 "d9afda1.5ca9828"\r
408             ]\r
409         ]\r
410     },\r
411     {\r
412         "id": "7ea96e84.4a184",\r
413         "type": "other",\r
414         "name": "SOTN",\r
415         "xml": "<outcome value='SOTN'>\n",\r
416         "comments": "",\r
417         "outputs": 1,\r
418         "x": 1076,\r
419         "y": 216,\r
420         "z": "8cb67e95.d771b8",\r
421         "wires": [\r
422             [\r
423                 "f974c517.d68cd"\r
424             ]\r
425         ]\r
426     },\r
427     {\r
428         "id": "e5a11dd.415fde",\r
429         "type": "other",\r
430         "name": "other",\r
431         "xml": "<outcome value='Other'>\n",\r
432         "comments": "",\r
433         "outputs": 1,\r
434         "x": 1105.5,\r
435         "y": 677.5001220703125,\r
436         "z": "8cb67e95.d771b8",\r
437         "wires": [\r
438             [\r
439                 "4a0581b6.8cbdf"\r
440             ]\r
441         ]\r
442     },\r
443     {\r
444         "id": "4a0581b6.8cbdf",\r
445         "type": "returnFailure",\r
446         "name": "return failure",\r
447         "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unsupported type = ' + $prop.sdncRestApi.type`\" />\n\n",\r
448         "comments": "",\r
449         "x": 1291.75,\r
450         "y": 703.5001220703125,\r
451         "z": "8cb67e95.d771b8",\r
452         "wires": []\r
453     },\r
454     {\r
455         "id": "29d0fcfc.c3657c",\r
456         "type": "execute",\r
457         "name": "execute Properties",\r
458         "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",\r
459         "comments": "",\r
460         "outputs": 1,\r
461         "x": 1457.0001983642578,\r
462         "y": 97.00000953674316,\r
463         "z": "8cb67e95.d771b8",\r
464         "wires": [\r
465             []\r
466         ]\r
467     },\r
468     {\r
469         "id": "f9b155cc.d14098",\r
470         "type": "switchNode",\r
471         "name": "switch prop.sdncRestApi.token_id",\r
472         "xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n",\r
473         "comments": "",\r
474         "outputs": 1,\r
475         "x": 1503.5001983642578,\r
476         "y": 217.00000953674316,\r
477         "z": "8cb67e95.d771b8",\r
478         "wires": [\r
479             [\r
480                 "4e229170.2e1108",\r
481                 "495c5d16.740274"\r
482             ]\r
483         ]\r
484     },\r
485     {\r
486         "id": "4e229170.2e1108",\r
487         "type": "other",\r
488         "name": "Null",\r
489         "xml": "<outcome value=''>\n",\r
490         "comments": "",\r
491         "outputs": 1,\r
492         "x": 1796.000244140625,\r
493         "y": 209,\r
494         "z": "8cb67e95.d771b8",\r
495         "wires": [\r
496             [\r
497                 "b14dd129.fcf7f"\r
498             ]\r
499         ]\r
500     },\r
501     {\r
502         "id": "495c5d16.740274",\r
503         "type": "other",\r
504         "name": "other",\r
505         "xml": "<outcome value='Other'>\n",\r
506         "comments": "",\r
507         "outputs": 1,\r
508         "x": 1796.000244140625,\r
509         "y": 249,\r
510         "z": "8cb67e95.d771b8",\r
511         "wires": [\r
512             [\r
513                 "c03c3a2.5764a48"\r
514             ]\r
515         ]\r
516     },\r
517     {\r
518         "id": "b14dd129.fcf7f",\r
519         "type": "execute",\r
520         "name": "execute RestApiCallNode Get Topology",\r
521         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"get\"/>\n<parameter name=\"responsePrefix\" value=\"topology\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n",\r
522         "comments": "",\r
523         "outputs": 1,\r
524         "x": 2017.500244140625,\r
525         "y": 209,\r
526         "z": "8cb67e95.d771b8",\r
527         "wires": [\r
528             [\r
529                 "e9ec571f.c3cfe8",\r
530                 "986cb045.40c5"\r
531             ]\r
532         ]\r
533     },\r
534     {\r
535         "id": "31237f4.62f8c",\r
536         "type": "execute",\r
537         "name": "execute RestconfDiscoveryNode",\r
538         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfdiscovery.RestconfDiscoveryNode' method='establishSubscription' >\n<parameter name=\"subscriberId\" value=\"sotn-controller\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/operations/ietf-subscribed-notifications:establish-subscription'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"sseConnectURL\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/streams/yang-push-json'`\" />\n<parameter name=\"dirPath\" value=\"/opt/sdnc/restconfapi/yang/notification\" />\n<parameter name=\"format\" value=\"json\" />\n<parameter name=\"httpMethod\" value=\"post\" />\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />\n<parameter name=\"module\" value=\"DataChange\" />\n<parameter name=\"rpc\" value=\"sotn-notification-handler\" />\n<parameter name=\"mode\" value=\"sync\" />",\r
539         "comments": "",\r
540         "outputs": 1,\r
541         "x": 1500.0001983642578,\r
542         "y": 357.00000953674316,\r
543         "z": "8cb67e95.d771b8",\r
544         "wires": [\r
545             []\r
546         ]\r
547     },\r
548     {\r
549         "id": "c374fd8f.2c9bc8",\r
550         "type": "set",\r
551         "name": "set encoding-format",\r
552         "xml": "<set>\n<parameter name='input' value='ietf-subscribed-notifications:establish-subscription.input.' />\n<parameter name=\"`$input + 'encoding'`\" value=\"encode-json\" />",\r
553         "comments": "",\r
554         "x": 1460.0001983642578,\r
555         "y": 317.00000953674316,\r
556         "z": "8cb67e95.d771b8",\r
557         "wires": []\r
558     },\r
559     {\r
560         "id": "47fcc4e5.c080a4",\r
561         "type": "comment",\r
562         "name": "Notification subscription",\r
563         "info": "",\r
564         "comments": "",\r
565         "x": 1465.000343322754,\r
566         "y": 274.00000858306885,\r
567         "z": "8cb67e95.d771b8",\r
568         "wires": []\r
569     },\r
570     {\r
571         "id": "cbd24389.ade708",\r
572         "type": "switchNode",\r
573         "name": "switch",\r
574         "xml": "<switch test=\"`$prop.sdncRestApi.vendor == 'ZTE'`\">\n",\r
575         "comments": "",\r
576         "outputs": 1,\r
577         "x": 150,\r
578         "y": 345,\r
579         "z": "8cb67e95.d771b8",\r
580         "wires": [\r
581             [\r
582                 "f624fdf6.4a4ef8",\r
583                 "67364ea6.885738"\r
584             ]\r
585         ]\r
586     },\r
587     {\r
588         "id": "f624fdf6.4a4ef8",\r
589         "type": "outcomeFalse",\r
590         "name": "false",\r
591         "xml": "<outcome value='false'>\n",\r
592         "comments": "",\r
593         "outputs": 1,\r
594         "x": 337,\r
595         "y": 345,\r
596         "z": "8cb67e95.d771b8",\r
597         "wires": [\r
598             [\r
599                 "4cc508ad.f5c7d"\r
600             ]\r
601         ]\r
602     },\r
603     {\r
604         "id": "67364ea6.885738",\r
605         "type": "outcomeTrue",\r
606         "name": "true",\r
607         "xml": "<outcome value='true'>\n",\r
608         "comments": "",\r
609         "outputs": 1,\r
610         "x": 111.00003051757812,\r
611         "y": 1101.75,\r
612         "z": "8cb67e95.d771b8",\r
613         "wires": [\r
614             [\r
615                 "48c54790.7a017"\r
616             ]\r
617         ]\r
618     },\r
619     {\r
620         "id": "48c54790.7a017",\r
621         "type": "call",\r
622         "name": "call esr-thirdparty-sdnc-of-zte",\r
623         "xml": "<call module='DataChange' rpc='esr-thirdparty-sdnc-of-zte' mode='sync' >\n",\r
624         "comments": "",\r
625         "outputs": 1,\r
626         "x": 342.75,\r
627         "y": 1118.5000610351562,\r
628         "z": "8cb67e95.d771b8",\r
629         "wires": [\r
630             []\r
631         ]\r
632     },\r
633     {\r
634         "id": "11ea46b7.9ad609",\r
635         "type": "other",\r
636         "name": "TAPI",\r
637         "xml": "<outcome value='TAPI'>\n",\r
638         "comments": "",\r
639         "outputs": 1,\r
640         "x": 1154,\r
641         "y": 450,\r
642         "z": "8cb67e95.d771b8",\r
643         "wires": [\r
644             [\r
645                 "a1313060.f8d7d"\r
646             ]\r
647         ]\r
648     },\r
649     {\r
650         "id": "a1313060.f8d7d",\r
651         "type": "block",\r
652         "name": "block : atomic",\r
653         "xml": "<block atomic=\"true\">",\r
654         "atomic": "true",\r
655         "outputs": 1,\r
656         "x": 1317,\r
657         "y": 449,\r
658         "z": "8cb67e95.d771b8",\r
659         "wires": [\r
660             [\r
661                 "f271610b.da5a3"\r
662             ]\r
663         ]\r
664     },\r
665     {\r
666         "id": "f271610b.da5a3",\r
667         "type": "execute",\r
668         "name": "execute",\r
669         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/cxf/tapi/v2/topologies?topology-id-or-name=otn'`\"/>  \n    <parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\"/>  \n    <parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\"/>  \n    <parameter name=\"format\" value=\"json\"/>  \n    <parameter name=\"httpMethod\" value=\"get\"/>  \n    <parameter name=\"responsePrefix\" value=\"topologies\"/>\n    <parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.jks\"/>  \n    <parameter name=\"trustStorePassword\" value=\"adminadmin\"/>  \n    <parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>  \n    <parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",\r
670         "comments": "",\r
671         "outputs": 1,\r
672         "x": 1478,\r
673         "y": 448,\r
674         "z": "8cb67e95.d771b8",\r
675         "wires": [\r
676             [\r
677                 "878204ba.609a58",\r
678                 "1c89864.e323d7a"\r
679             ]\r
680         ]\r
681     },\r
682     {\r
683         "id": "1c89864.e323d7a",\r
684         "type": "success",\r
685         "name": "success",\r
686         "xml": "<outcome value='success'>\n",\r
687         "comments": "",\r
688         "outputs": 1,\r
689         "x": 1620,\r
690         "y": 524,\r
691         "z": "8cb67e95.d771b8",\r
692         "wires": [\r
693             [\r
694                 "5d965dcc.6101a4"\r
695             ]\r
696         ]\r
697     },\r
698     {\r
699         "id": "878204ba.609a58",\r
700         "type": "failure",\r
701         "name": "failure",\r
702         "xml": "<outcome value='failure'>\n",\r
703         "comments": "",\r
704         "outputs": 1,\r
705         "x": 1654,\r
706         "y": 445,\r
707         "z": "8cb67e95.d771b8",\r
708         "wires": [\r
709             [\r
710                 "4052d329.1b779c"\r
711             ]\r
712         ]\r
713     },\r
714     {\r
715         "id": "4052d329.1b779c",\r
716         "type": "returnFailure",\r
717         "name": "return failure",\r
718         "xml": "<return status='failure'>\n <parameter name='ack-final' value='Y'/>\n <parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing get topology TAPI rest api\" />\n\n",\r
719         "comments": "",\r
720         "x": 1824,\r
721         "y": 444,\r
722         "z": "8cb67e95.d771b8",\r
723         "wires": []\r
724     },\r
725     {\r
726         "id": "5d965dcc.6101a4",\r
727         "type": "block",\r
728         "name": "block : atomic",\r
729         "xml": "<block atomic=\"true\">",\r
730         "atomic": "true",\r
731         "outputs": 1,\r
732         "x": 1781,\r
733         "y": 523,\r
734         "z": "8cb67e95.d771b8",\r
735         "wires": [\r
736             [\r
737                 "d1531df6.3732f"\r
738             ]\r
739         ]\r
740     },\r
741     {\r
742         "id": "d1531df6.3732f",\r
743         "type": "for",\r
744         "name": "for each topology",\r
745         "xml": "<for index='tidx' start='0' end=\"`$topologies.topology_length`\" >\n",\r
746         "comments": "",\r
747         "outputs": 1,\r
748         "x": 1960,\r
749         "y": 523,\r
750         "z": "8cb67e95.d771b8",\r
751         "wires": [\r
752             [\r
753                 "8b55167c.96333"\r
754             ]\r
755         ]\r
756     },\r
757     {\r
758         "id": "8b55167c.96333",\r
759         "type": "block",\r
760         "name": "block",\r
761         "xml": "<block>\n",\r
762         "atomic": "false",\r
763         "comments": "",\r
764         "outputs": 1,\r
765         "x": 2127,\r
766         "y": 524,\r
767         "z": "8cb67e95.d771b8",\r
768         "wires": [\r
769             [\r
770                 "e7e4969d.73ce58",\r
771                 "9e2e1ddf.baa2b"\r
772             ]\r
773         ]\r
774     },\r
775     {\r
776         "id": "e7e4969d.73ce58",\r
777         "type": "set",\r
778         "name": "set topology",\r
779         "xml": "<set>\n<parameter name='topology.' value='`$topologies.topology[$tidx].`' />\n",\r
780         "comments": "",\r
781         "x": 2286,\r
782         "y": 525,\r
783         "z": "8cb67e95.d771b8",\r
784         "wires": []\r
785     },\r
786     {\r
787         "id": "9e2e1ddf.baa2b",\r
788         "type": "call",\r
789         "name": "call tapi-update-network-to-aai",\r
790         "xml": "<call module='DataChange' rpc='tapi-update-network-to-aai' mode='sync' >\n\n",\r
791         "comments": "",\r
792         "outputs": 1,\r
793         "x": 2277,\r
794         "y": 591,\r
795         "z": "8cb67e95.d771b8",\r
796         "wires": [\r
797             []\r
798         ]\r
799     },\r
800     {\r
801         "id": "a5c3b391.3c4aa",\r
802         "type": "outcome",\r
803         "name": "MSA",\r
804         "xml": "<outcome value='MSA'>\n",\r
805         "comments": "",\r
806         "outputs": 1,\r
807         "x": 1124.677324295044,\r
808         "y": 606.8993349075317,\r
809         "z": "8cb67e95.d771b8",\r
810         "wires": [\r
811             [\r
812                 "1925d7f4.b889a8"\r
813             ]\r
814         ]\r
815     },\r
816     {\r
817         "id": "1925d7f4.b889a8",\r
818         "type": "block",\r
819         "name": "block : atomic",\r
820         "xml": "<block atomic=\"true\">",\r
821         "atomic": "true",\r
822         "outputs": 1,\r
823         "x": 1286.6773872375488,\r
824         "y": 604.899335861206,\r
825         "z": "8cb67e95.d771b8",\r
826         "wires": [\r
827             [\r
828                 "7ba5724d.ffaffc"\r
829             ]\r
830         ]\r
831     },\r
832     {\r
833         "id": "7ba5724d.ffaffc",\r
834         "type": "execute",\r
835         "name": "execute",\r
836         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/cxf/openroadm/v2/networks/otn-topology'`\"/>  \n    <parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\"/>  \n    <parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\"/>  \n    <parameter name=\"format\" value=\"json\"/>  \n    <parameter name=\"httpMethod\" value=\"get\"/>  \n    <parameter name=\"responsePrefix\" value=\"networks\"/>\n    <parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.msa.jks\"/>  \n    <parameter name=\"trustStorePassword\" value=\"adminadmin\"/>  \n    <parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>  \n    <parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n",\r
837         "comments": "",\r
838         "outputs": 1,\r
839         "x": 1463.6771354675293,\r
840         "y": 596.8992919921875,\r
841         "z": "8cb67e95.d771b8",\r
842         "wires": [\r
843             [\r
844                 "6946de0a.deebc",\r
845                 "5d4a6514.4c3a9c"\r
846             ]\r
847         ]\r
848     },\r
849     {\r
850         "id": "6946de0a.deebc",\r
851         "type": "failure",\r
852         "name": "failure",\r
853         "xml": "<outcome value='failure'>\n",\r
854         "comments": "",\r
855         "outputs": 1,\r
856         "x": 1616.6771354675293,\r
857         "y": 593.8992919921875,\r
858         "z": "8cb67e95.d771b8",\r
859         "wires": [\r
860             [\r
861                 "e290e7ee.1a21f"\r
862             ]\r
863         ]\r
864     },\r
865     {\r
866         "id": "e290e7ee.1a21f",\r
867         "type": "returnFailure",\r
868         "name": "return failure",\r
869         "xml": "<return status='failure'>\n <parameter name='ack-final' value='Y'/>\n <parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing get topology MSA rest api\" />\n\n",\r
870         "comments": "",\r
871         "x": 1791.6771354675293,\r
872         "y": 592.8992919921875,\r
873         "z": "8cb67e95.d771b8",\r
874         "wires": []\r
875     },\r
876     {\r
877         "id": "5d4a6514.4c3a9c",\r
878         "type": "success",\r
879         "name": "success",\r
880         "xml": "<outcome value='success'>\n",\r
881         "comments": "",\r
882         "outputs": 1,\r
883         "x": 1622.6771354675293,\r
884         "y": 666.8992919921875,\r
885         "z": "8cb67e95.d771b8",\r
886         "wires": [\r
887             [\r
888                 "815556fb.bd9668"\r
889             ]\r
890         ]\r
891     },\r
892     {\r
893         "id": "815556fb.bd9668",\r
894         "type": "block",\r
895         "name": "block : atomic",\r
896         "xml": "<block atomic=\"true\">",\r
897         "atomic": "true",\r
898         "outputs": 1,\r
899         "x": 1806.6771354675293,\r
900         "y": 668.8992919921875,\r
901         "z": "8cb67e95.d771b8",\r
902         "wires": [\r
903             [\r
904                 "9834a552.e8e02"\r
905             ]\r
906         ]\r
907     },\r
908     {\r
909         "id": "9834a552.e8e02",\r
910         "type": "call",\r
911         "name": "call msa-update-network-to-aai",\r
912         "xml": "<call module='DataChange' rpc='msa-update-network-to-aai' mode='sync' >\n\n",\r
913         "comments": "",\r
914         "outputs": 1,\r
915         "x": 2085.677001953125,\r
916         "y": 666.8992919921875,\r
917         "z": "8cb67e95.d771b8",\r
918         "wires": [\r
919             []\r
920         ]\r
921     },\r
922     {\r
923         "id": "983792ba.976408",\r
924         "type": "switchNode",\r
925         "name": "switch type",\r
926         "xml": "<switch test=\"`$prop.sdncRestApi.type`\">\n",\r
927         "comments": "",\r
928         "outputs": 1,\r
929         "x": 256.566650390625,\r
930         "y": 835.5666809082031,\r
931         "z": "8cb67e95.d771b8",\r
932         "wires": [\r
933             [\r
934                 "674a6a9f.8c143c",\r
935                 "42c7b2ab.76125c",\r
936                 "1501fed.f113881"\r
937             ]\r
938         ]\r
939     },\r
940     {\r
941         "id": "674a6a9f.8c143c",\r
942         "type": "outcome",\r
943         "name": "MSA",\r
944         "xml": "<outcome value='MSA'>\n",\r
945         "comments": "",\r
946         "outputs": 1,\r
947         "x": 435.857177734375,\r
948         "y": 752.9285888671875,\r
949         "z": "8cb67e95.d771b8",\r
950         "wires": [\r
951             [\r
952                 "8b3cf345.6948d"\r
953             ]\r
954         ]\r
955     },\r
956     {\r
957         "id": "42c7b2ab.76125c",\r
958         "type": "other",\r
959         "name": "TAPI",\r
960         "xml": "<outcome value='TAPI'>\n",\r
961         "comments": "",\r
962         "outputs": 1,\r
963         "x": 444.6070556640625,\r
964         "y": 1003.6428527832031,\r
965         "z": "8cb67e95.d771b8",\r
966         "wires": [\r
967             [\r
968                 "ec6a41aa.381fd"\r
969             ]\r
970         ]\r
971     },\r
972     {\r
973         "id": "8b3cf345.6948d",\r
974         "type": "block",\r
975         "name": "block : atomic",\r
976         "xml": "<block atomic='true'>",\r
977         "atomic": "true",\r
978         "comments": "",\r
979         "outputs": 1,\r
980         "x": 589.607177734375,\r
981         "y": 749.7143249511719,\r
982         "z": "8cb67e95.d771b8",\r
983         "wires": [\r
984             [\r
985                 "49d8550e.67af3c",\r
986                 "db848d25.52ee9"\r
987             ]\r
988         ]\r
989     },\r
990     {\r
991         "id": "ec6a41aa.381fd",\r
992         "type": "block",\r
993         "name": "block",\r
994         "xml": "<block>\n",\r
995         "atomic": "false",\r
996         "comments": "",\r
997         "outputs": 1,\r
998         "x": 594,\r
999         "y": 1003.5,\r
1000         "z": "8cb67e95.d771b8",\r
1001         "wires": [\r
1002             [\r
1003                 "1335976f.2d9b19",\r
1004                 "16c45478.af99e4"\r
1005             ]\r
1006         ]\r
1007     },\r
1008     {\r
1009         "id": "1501fed.f113881",\r
1010         "type": "other",\r
1011         "name": "other",\r
1012         "xml": "<outcome value='Other'>\n",\r
1013         "comments": "",\r
1014         "outputs": 1,\r
1015         "x": 547,\r
1016         "y": 1167.5,\r
1017         "z": "8cb67e95.d771b8",\r
1018         "wires": [\r
1019             [\r
1020                 "41c63854.9379a8"\r
1021             ]\r
1022         ]\r
1023     },\r
1024     {\r
1025         "id": "41c63854.9379a8",\r
1026         "type": "returnFailure",\r
1027         "name": "return failure",\r
1028         "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unsupported type = ' + $prop.sdncRestApi.type`\" />\n\n",\r
1029         "comments": "",\r
1030         "x": 709,\r
1031         "y": 1206.5,\r
1032         "z": "8cb67e95.d771b8",\r
1033         "wires": []\r
1034     },\r
1035     {\r
1036         "id": "49d8550e.67af3c",\r
1037         "type": "get-resource",\r
1038         "name": "get resources from DB -controller_id",\r
1039         "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT controller_id\nfrom TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\nWHERE controller_id = $controllerid'\npfx='dbcontrollerid'>\n    \n    \n    \n    \n    \n    \n    \n    \n    \n\n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n\n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n",\r
1040         "comments": "",\r
1041         "outputs": 1,\r
1042         "x": 821.5,\r
1043         "y": 797.5,\r
1044         "z": "8cb67e95.d771b8",\r
1045         "wires": [\r
1046             [\r
1047                 "1a8d1895.ab6a47",\r
1048                 "47ef9d8f.3964f4",\r
1049                 "d98324ce.97ca8"\r
1050             ]\r
1051         ]\r
1052     },\r
1053     {\r
1054         "id": "db848d25.52ee9",\r
1055         "type": "set",\r
1056         "name": "set controller_id",\r
1057         "xml": "<set>\n<parameter name='controllerid' value=\"`$prop.sdncRestApi.type + '_' + $prop.sdncRestApi.thirdpartySdnc.url + '_' + $prop.sdncRestApi.thirdpartySdnc.id`\" />\n\n\n\n",\r
1058         "comments": "",\r
1059         "x": 781.5,\r
1060         "y": 731.5,\r
1061         "z": "8cb67e95.d771b8",\r
1062         "wires": []\r
1063     },\r
1064     {\r
1065         "id": "1a8d1895.ab6a47",\r
1066         "type": "success",\r
1067         "name": "success",\r
1068         "xml": "<outcome value='success'>\n",\r
1069         "comments": "",\r
1070         "outputs": 1,\r
1071         "x": 1060.5,\r
1072         "y": 817.5,\r
1073         "z": "8cb67e95.d771b8",\r
1074         "wires": [\r
1075             [\r
1076                 "d1f9e1a7.c7f19"\r
1077             ]\r
1078         ]\r
1079     },\r
1080     {\r
1081         "id": "d1f9e1a7.c7f19",\r
1082         "type": "delete",\r
1083         "name": "delete from db",\r
1084         "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n    resource=\"SQL\"\n    key=\"DELETE FROM TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE WHERE controller_id = $controllerid\">",\r
1085         "comments": "",\r
1086         "outputs": 1,\r
1087         "x": 1229.5,\r
1088         "y": 824.5,\r
1089         "z": "8cb67e95.d771b8",\r
1090         "wires": [\r
1091             []\r
1092         ]\r
1093     },\r
1094     {\r
1095         "id": "1335976f.2d9b19",\r
1096         "type": "set",\r
1097         "name": "set controller_id",\r
1098         "xml": "<set>\n<parameter name='controllerid' value=\"`$prop.sdncRestApi.type + '_' + $prop.sdncRestApi.thirdpartySdnc.url + '_' + $prop.sdncRestApi.thirdpartySdnc.id`\" />\n\n\n\n",\r
1099         "comments": "",\r
1100         "x": 758.5,\r
1101         "y": 959.5,\r
1102         "z": "8cb67e95.d771b8",\r
1103         "wires": []\r
1104     },\r
1105     {\r
1106         "id": "16c45478.af99e4",\r
1107         "type": "get-resource",\r
1108         "name": "get resources from DB -controller_id",\r
1109         "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT controller_id\nfrom TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\nWHERE controller_id = $controllerid'\npfx='dbcontrollerid'>\n    \n    \n    \n    \n    \n    \n    \n    \n    \n\n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n\n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n",\r
1110         "comments": "",\r
1111         "outputs": 1,\r
1112         "x": 771.5,\r
1113         "y": 1048.5,\r
1114         "z": "8cb67e95.d771b8",\r
1115         "wires": [\r
1116             [\r
1117                 "a8a3e82f.8a5a8",\r
1118                 "ae0994a7.403ab8",\r
1119                 "e57ecfd9.55df58"\r
1120             ]\r
1121         ]\r
1122     },\r
1123     {\r
1124         "id": "a8a3e82f.8a5a8",\r
1125         "type": "success",\r
1126         "name": "success",\r
1127         "xml": "<outcome value='success'>\n",\r
1128         "comments": "",\r
1129         "outputs": 1,\r
1130         "x": 996.5,\r
1131         "y": 1063.5,\r
1132         "z": "8cb67e95.d771b8",\r
1133         "wires": [\r
1134             [\r
1135                 "d7aae079.2ca2a"\r
1136             ]\r
1137         ]\r
1138     },\r
1139     {\r
1140         "id": "d7aae079.2ca2a",\r
1141         "type": "delete",\r
1142         "name": "delete from db",\r
1143         "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n    resource=\"SQL\"\n    key=\"DELETE FROM TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE WHERE controller_id = $controllerid\">",\r
1144         "comments": "",\r
1145         "outputs": 1,\r
1146         "x": 1167.5,\r
1147         "y": 1064.5,\r
1148         "z": "8cb67e95.d771b8",\r
1149         "wires": [\r
1150             []\r
1151         ]\r
1152     },\r
1153     {\r
1154         "id": "47ef9d8f.3964f4",\r
1155         "type": "failure",\r
1156         "name": "failure",\r
1157         "xml": "<outcome value='failure'>\n",\r
1158         "comments": "",\r
1159         "outputs": 1,\r
1160         "x": 1046.5,\r
1161         "y": 896.5,\r
1162         "z": "8cb67e95.d771b8",\r
1163         "wires": [\r
1164             [\r
1165                 "1e298c8c.f0408b"\r
1166             ]\r
1167         ]\r
1168     },\r
1169     {\r
1170         "id": "ae0994a7.403ab8",\r
1171         "type": "failure",\r
1172         "name": "failure",\r
1173         "xml": "<outcome value='failure'>\n",\r
1174         "comments": "",\r
1175         "outputs": 1,\r
1176         "x": 977.5,\r
1177         "y": 1136.5,\r
1178         "z": "8cb67e95.d771b8",\r
1179         "wires": [\r
1180             [\r
1181                 "c236971a.ee197"\r
1182             ]\r
1183         ]\r
1184     },\r
1185     {\r
1186         "id": "1e298c8c.f0408b",\r
1187         "type": "returnFailure",\r
1188         "name": "return failure",\r
1189         "xml": "<return status='failure'>\n <parameter name='ack-final' value='Y'/>\n <parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Failure in getting controller-id from DB\" />\n\n",\r
1190         "comments": "",\r
1191         "x": 1207.5,\r
1192         "y": 901.5,\r
1193         "z": "8cb67e95.d771b8",\r
1194         "wires": []\r
1195     },\r
1196     {\r
1197         "id": "d98324ce.97ca8",\r
1198         "type": "not-found",\r
1199         "name": "not-found",\r
1200         "xml": "<outcome value='not-found'>\n",\r
1201         "comments": "",\r
1202         "outputs": 1,\r
1203         "x": 1037.5,\r
1204         "y": 956.5,\r
1205         "z": "8cb67e95.d771b8",\r
1206         "wires": [\r
1207             [\r
1208                 "3416464c.a143ea"\r
1209             ]\r
1210         ]\r
1211     },\r
1212     {\r
1213         "id": "3416464c.a143ea",\r
1214         "type": "returnFailure",\r
1215         "name": "return failure",\r
1216         "xml": "<return status='failure'>\n <parameter name='ack-final' value='Y'/>\n <parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"controller-id could not be found in DB\" />\n\n",\r
1217         "comments": "",\r
1218         "x": 1186.5,\r
1219         "y": 958.5,\r
1220         "z": "8cb67e95.d771b8",\r
1221         "wires": []\r
1222     },\r
1223     {\r
1224         "id": "c236971a.ee197",\r
1225         "type": "returnFailure",\r
1226         "name": "return failure",\r
1227         "xml": "<return status='failure'>\n <parameter name='ack-final' value='Y'/>\n <parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Failure in getting controller-id from DB\" />\n\n",\r
1228         "comments": "",\r
1229         "x": 1125.5,\r
1230         "y": 1137.5,\r
1231         "z": "8cb67e95.d771b8",\r
1232         "wires": []\r
1233     },\r
1234     {\r
1235         "id": "e57ecfd9.55df58",\r
1236         "type": "not-found",\r
1237         "name": "not-found",\r
1238         "xml": "<outcome value='not-found'>\n",\r
1239         "comments": "",\r
1240         "outputs": 1,\r
1241         "x": 977.5,\r
1242         "y": 1180.5,\r
1243         "z": "8cb67e95.d771b8",\r
1244         "wires": [\r
1245             [\r
1246                 "d5ad8139.acdf48"\r
1247             ]\r
1248         ]\r
1249     },\r
1250     {\r
1251         "id": "d5ad8139.acdf48",\r
1252         "type": "returnFailure",\r
1253         "name": "return failure",\r
1254         "xml": "<return status='failure'>\n <parameter name='ack-final' value='Y'/>\n <parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"controller-id could not be found in DB\" />\n\n",\r
1255         "comments": "",\r
1256         "x": 1142.5,\r
1257         "y": 1177.5,\r
1258         "z": "8cb67e95.d771b8",\r
1259         "wires": []\r
1260     },\r
1261     {\r
1262         "id": "ad96f3f.ca0439",\r
1263         "type": "switchNode",\r
1264         "name": "switch network_length",\r
1265         "xml": "<switch test='`$topology.networks.network_length >= 2`'>\n",\r
1266         "comments": "",\r
1267         "outputs": 1,\r
1268         "x": 2653,\r
1269         "y": 329,\r
1270         "z": "8cb67e95.d771b8",\r
1271         "wires": [\r
1272             [\r
1273                 "d135440e.332828"\r
1274             ]\r
1275         ]\r
1276     },\r
1277     {\r
1278         "id": "d135440e.332828",\r
1279         "type": "outcomeTrue",\r
1280         "name": "true",\r
1281         "xml": "<outcome value='true'>\n",\r
1282         "comments": "",\r
1283         "outputs": 1,\r
1284         "x": 2835,\r
1285         "y": 330,\r
1286         "z": "8cb67e95.d771b8",\r
1287         "wires": [\r
1288             [\r
1289                 "9dfbe1b1.0501b8"\r
1290             ]\r
1291         ]\r
1292     },\r
1293     {\r
1294         "id": "27de91fe.6ca4f6",\r
1295         "type": "for",\r
1296         "name": "for each Network",\r
1297         "xml": "<for index='netidx' start='0' end='`$topology.networks.network_length`' >\n",\r
1298         "comments": "",\r
1299         "outputs": 1,\r
1300         "x": 3208,\r
1301         "y": 323,\r
1302         "z": "8cb67e95.d771b8",\r
1303         "wires": [\r
1304             [\r
1305                 "7ec0ad88.0666cc"\r
1306             ]\r
1307         ]\r
1308     },\r
1309     {\r
1310         "id": "7ec0ad88.0666cc",\r
1311         "type": "block",\r
1312         "name": "block",\r
1313         "xml": "<block>\n",\r
1314         "atomic": "false",\r
1315         "comments": "",\r
1316         "outputs": 1,\r
1317         "x": 3426,\r
1318         "y": 320,\r
1319         "z": "8cb67e95.d771b8",\r
1320         "wires": [\r
1321             [\r
1322                 "8fdc47cc.432ab",\r
1323                 "b5eed741.5fbb08",\r
1324                 "1656178e.3ba998"\r
1325             ]\r
1326         ]\r
1327     },\r
1328     {\r
1329         "id": "5634a256.4e2744",\r
1330         "type": "call",\r
1331         "name": "call update-tp-ttp-relationship",\r
1332         "xml": "<call module='DataChange' rpc='update-tp-ttp-relationship' mode='sync' >\n",\r
1333         "comments": "",\r
1334         "outputs": 1,\r
1335         "x": 3241,\r
1336         "y": 383,\r
1337         "z": "8cb67e95.d771b8",\r
1338         "wires": [\r
1339             []\r
1340         ]\r
1341     },\r
1342     {\r
1343         "id": "9dfbe1b1.0501b8",\r
1344         "type": "block",\r
1345         "name": "block : atomic",\r
1346         "xml": "<block atomic='true'>",\r
1347         "atomic": "true",\r
1348         "comments": "",\r
1349         "outputs": 1,\r
1350         "x": 3005,\r
1351         "y": 326,\r
1352         "z": "8cb67e95.d771b8",\r
1353         "wires": [\r
1354             [\r
1355                 "27de91fe.6ca4f6",\r
1356                 "5634a256.4e2744"\r
1357             ]\r
1358         ]\r
1359     },\r
1360     {\r
1361         "id": "1656178e.3ba998",\r
1362         "type": "set",\r
1363         "name": "unset network",\r
1364         "xml": "<set>\n<parameter name='network.' value='' />\n",\r
1365         "comments": "",\r
1366         "x": 3585,\r
1367         "y": 260,\r
1368         "z": "8cb67e95.d771b8",\r
1369         "wires": []\r
1370     },\r
1371     {\r
1372         "id": "8fdc47cc.432ab",\r
1373         "type": "set",\r
1374         "name": "set network",\r
1375         "xml": "<set>\n<parameter name='network.' value='`$topology.networks.network[$netidx].`' />\n",\r
1376         "comments": "",\r
1377         "x": 3579,\r
1378         "y": 308,\r
1379         "z": "8cb67e95.d771b8",\r
1380         "wires": []\r
1381     },\r
1382     {\r
1383         "id": "b5eed741.5fbb08",\r
1384         "type": "switchNode",\r
1385         "name": "switch network-types with topologyId",\r
1386         "xml": "<switch test='`$network.te-topology-id`'>\n",\r
1387         "comments": "",\r
1388         "outputs": 1,\r
1389         "x": 3656,\r
1390         "y": 355,\r
1391         "z": "8cb67e95.d771b8",\r
1392         "wires": [\r
1393             [\r
1394                 "c1423a29.1c46e8",\r
1395                 "ab490ddf.8e1c1"\r
1396             ]\r
1397         ]\r
1398     },\r
1399     {\r
1400         "id": "c1423a29.1c46e8",\r
1401         "type": "outcome",\r
1402         "name": "1",\r
1403         "xml": "<outcome value='1'>\n",\r
1404         "comments": "",\r
1405         "outputs": 1,\r
1406         "x": 3882,\r
1407         "y": 324,\r
1408         "z": "8cb67e95.d771b8",\r
1409         "wires": [\r
1410             [\r
1411                 "3c6e5d11.fbd2b2"\r
1412             ]\r
1413         ]\r
1414     },\r
1415     {\r
1416         "id": "ab490ddf.8e1c1",\r
1417         "type": "outcome",\r
1418         "name": "2",\r
1419         "xml": "<outcome value='2'>\n",\r
1420         "comments": "",\r
1421         "outputs": 1,\r
1422         "x": 3882,\r
1423         "y": 385,\r
1424         "z": "8cb67e95.d771b8",\r
1425         "wires": [\r
1426             [\r
1427                 "654a57a4.0fd38"\r
1428             ]\r
1429         ]\r
1430     },\r
1431     {\r
1432         "id": "adf965cc.3e515",\r
1433         "type": "set",\r
1434         "name": "set network-otn",\r
1435         "xml": "<set>\n<parameter name='network-otn.' value='`$topology.networks.network[$netidx].`' />\n",\r
1436         "comments": "",\r
1437         "x": 4177,\r
1438         "y": 324,\r
1439         "z": "8cb67e95.d771b8",\r
1440         "wires": []\r
1441     },\r
1442     {\r
1443         "id": "f1dbbcab.0dda4",\r
1444         "type": "set",\r
1445         "name": "set network eth",\r
1446         "xml": "<set>\n<parameter name='network-eth.' value='`$topology.networks.network[$netidx].`' />\n",\r
1447         "comments": "",\r
1448         "x": 4177,\r
1449         "y": 385,\r
1450         "z": "8cb67e95.d771b8",\r
1451         "wires": []\r
1452     },\r
1453     {\r
1454         "id": "3c6e5d11.fbd2b2",\r
1455         "type": "block",\r
1456         "name": "block",\r
1457         "xml": "<block>\n",\r
1458         "atomic": "false",\r
1459         "comments": "",\r
1460         "outputs": 1,\r
1461         "x": 4016,\r
1462         "y": 324,\r
1463         "z": "8cb67e95.d771b8",\r
1464         "wires": [\r
1465             [\r
1466                 "adf965cc.3e515"\r
1467             ]\r
1468         ]\r
1469     },\r
1470     {\r
1471         "id": "654a57a4.0fd38",\r
1472         "type": "block",\r
1473         "name": "block",\r
1474         "xml": "<block>\n",\r
1475         "atomic": "false",\r
1476         "comments": "",\r
1477         "outputs": 1,\r
1478         "x": 4017,\r
1479         "y": 385,\r
1480         "z": "8cb67e95.d771b8",\r
1481         "wires": [\r
1482             [\r
1483                 "f1dbbcab.0dda4"\r
1484             ]\r
1485         ]\r
1486     }\r
1487 ]