862817a3732bd8a74bfc1852a768e684fa3a3e8b
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_esr-thirdparty-sdnc-discovery.json
1 [\r
2     {\r
3         "id": "e773e89.91c6b98",\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": 716,\r
10         "y": 331,\r
11         "z": "8a5117b5.c01db8",\r
12         "wires": [\r
13             [\r
14                 "e959cc87.47852"\r
15             ]\r
16         ]\r
17     },\r
18     {\r
19         "id": "c1b624e8.c4a36",\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": 716,\r
26         "y": 411,\r
27         "z": "8a5117b5.c01db8",\r
28         "wires": [\r
29             [\r
30                 "f94d770b.d7a21"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "f94d770b.d7a21",\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": 857.5,\r
42         "y": 411,\r
43         "z": "8a5117b5.c01db8",\r
44         "wires": [\r
45             [\r
46                 "4f7d3c56.d58604"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "a0413cd2.f1f8e8",\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": 546.5,\r
58         "y": 371,\r
59         "z": "8a5117b5.c01db8",\r
60         "wires": [\r
61             [\r
62                 "e773e89.91c6b98",\r
63                 "c1b624e8.c4a36"\r
64             ]\r
65         ]\r
66     },\r
67     {\r
68         "id": "24096151.ae8cf6",\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": 1243.5,\r
75         "y": 242,\r
76         "z": "8a5117b5.c01db8",\r
77         "wires": [\r
78             [\r
79                 "d3849c0c.290268",\r
80                 "2e3a9914.38f54e",\r
81                 "5d9111f6.fc1a7",\r
82                 "e1aa7ec9.6ea95",\r
83                 "4884da36.8dcb24"\r
84             ]\r
85         ]\r
86     },\r
87     {\r
88         "id": "2e3a9914.38f54e",\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": 1516.5001983642578,\r
95         "y": 163.00000953674316,\r
96         "z": "8a5117b5.c01db8",\r
97         "wires": [\r
98             [\r
99                 "e0b90864.1c659",\r
100                 "2d5ac090.7f4d28"\r
101             ]\r
102         ]\r
103     },\r
104     {\r
105         "id": "e0b90864.1c659",\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": 1806.000244140625,\r
112         "y": 155,\r
113         "z": "8a5117b5.c01db8",\r
114         "wires": [\r
115             [\r
116                 "fbadc5f1.b9042"\r
117             ]\r
118         ]\r
119     },\r
120     {\r
121         "id": "2d5ac090.7f4d28",\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": 1802.000244140625,\r
128         "y": 195,\r
129         "z": "8a5117b5.c01db8",\r
130         "wires": [\r
131             [\r
132                 "8ebd62d2.d420b"\r
133             ]\r
134         ]\r
135     },\r
136     {\r
137         "id": "fbadc5f1.b9042",\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": 1956.500244140625,\r
143         "y": 155,\r
144         "z": "8a5117b5.c01db8",\r
145         "wires": []\r
146     },\r
147     {\r
148         "id": "74d21b60.35097c",\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": 2023.500244140625,\r
155         "y": 275,\r
156         "z": "8a5117b5.c01db8",\r
157         "wires": [\r
158             [\r
159                 "73b2188f.535b88",\r
160                 "e3942d82.1d981"\r
161             ]\r
162         ]\r
163     },\r
164     {\r
165         "id": "73b2188f.535b88",\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": 2266.000244140625,\r
172         "y": 295,\r
173         "z": "8a5117b5.c01db8",\r
174         "wires": [\r
175             [\r
176                 "4a760f4a.5cb7e8"\r
177             ]\r
178         ]\r
179     },\r
180     {\r
181         "id": "4a760f4a.5cb7e8",\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": 2423.500244140625,\r
189         "y": 295,\r
190         "z": "8a5117b5.c01db8",\r
191         "wires": [\r
192             [\r
193                 "300a5bac.b9481c",\r
194                 "ad97aa98.c768d"\r
195             ]\r
196         ]\r
197     },\r
198     {\r
199         "id": "8f9fe5f7.1e28d",\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": 2400.000244140625,\r
205         "y": 195,\r
206         "z": "8a5117b5.c01db8",\r
207         "wires": []\r
208     },\r
209     {\r
210         "id": "e3942d82.1d981",\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": 2262.000244140625,\r
217         "y": 195,\r
218         "z": "8a5117b5.c01db8",\r
219         "wires": [\r
220             [\r
221                 "8f9fe5f7.1e28d"\r
222             ]\r
223         ]\r
224     },\r
225     {\r
226         "id": "52ac41c0.5bfd18",\r
227         "type": "dgstart",\r
228         "name": "DGSTART",\r
229         "outputs": 1,\r
230         "x": 169,\r
231         "y": 106,\r
232         "z": "8a5117b5.c01db8",\r
233         "wires": [\r
234             [\r
235                 "2f07965a.1dd8e2"\r
236             ]\r
237         ]\r
238     },\r
239     {\r
240         "id": "2f07965a.1dd8e2",\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": 182,\r
249         "y": 166,\r
250         "z": "8a5117b5.c01db8",\r
251         "wires": [\r
252             [\r
253                 "be9d83e5.bff8b"\r
254             ]\r
255         ]\r
256     },\r
257     {\r
258         "id": "be9d83e5.bff8b",\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": 202,\r
265         "y": 246,\r
266         "z": "8a5117b5.c01db8",\r
267         "wires": [\r
268             [\r
269                 "dc3c6fc7.178d18"\r
270             ]\r
271         ]\r
272     },\r
273     {\r
274         "id": "dc3c6fc7.178d18",\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": 449.5,\r
282         "y": 246,\r
283         "z": "8a5117b5.c01db8",\r
284         "wires": [\r
285             [\r
286                 "febec156.8b3598"\r
287             ]\r
288         ]\r
289     },\r
290     {\r
291         "id": "300a5bac.b9481c",\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": 2642.500244140625,\r
298         "y": 224,\r
299         "z": "8a5117b5.c01db8",\r
300         "wires": [\r
301             [\r
302                 "2eec7c8a.0065d4"\r
303             ]\r
304         ]\r
305     },\r
306     {\r
307         "id": "2eec7c8a.0065d4",\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": 2791.000244140625,\r
315         "y": 224,\r
316         "z": "8a5117b5.c01db8",\r
317         "wires": [\r
318             [\r
319                 "c6d65b06.9b8418",\r
320                 "d5bb0470.a0963",\r
321                 "51f49074.c67e58"\r
322             ]\r
323         ]\r
324     },\r
325     {\r
326         "id": "c6d65b06.9b8418",\r
327         "type": "call",\r
328         "name": "call update-network-to-aai",\r
329         "xml": "<call module='DataChange' rpc='update-network-to-aai' mode='sync' >\n",\r
330         "comments": "",\r
331         "outputs": 1,\r
332         "x": 2970.000244140625,\r
333         "y": 244,\r
334         "z": "8a5117b5.c01db8",\r
335         "wires": [\r
336             []\r
337         ]\r
338     },\r
339     {\r
340         "id": "d5bb0470.a0963",\r
341         "type": "set",\r
342         "name": "set network",\r
343         "xml": "<set>\n<parameter name='network.' value='`$topology.networks.network[$nidx].`' />\n",\r
344         "comments": "",\r
345         "x": 2923.000244140625,\r
346         "y": 204,\r
347         "z": "8a5117b5.c01db8",\r
348         "wires": []\r
349     },\r
350     {\r
351         "id": "8ebd62d2.d420b",\r
352         "type": "block",\r
353         "name": "block",\r
354         "xml": "<block>\n",\r
355         "atomic": "false",\r
356         "comments": "",\r
357         "outputs": 1,\r
358         "x": 1922.000244140625,\r
359         "y": 195,\r
360         "z": "8a5117b5.c01db8",\r
361         "wires": [\r
362             []\r
363         ]\r
364     },\r
365     {\r
366         "id": "e262d253.cb79",\r
367         "type": "comment",\r
368         "name": "Do Nothing",\r
369         "info": "",\r
370         "comments": "",\r
371         "x": 2092.000244140625,\r
372         "y": 235,\r
373         "z": "8a5117b5.c01db8",\r
374         "wires": []\r
375     },\r
376     {\r
377         "id": "a6bffc76.37edc",\r
378         "type": "switchNode",\r
379         "name": "switch type",\r
380         "xml": "<switch test=\"`$prop.sdncRestApi.type`\">\n",\r
381         "comments": "",\r
382         "outputs": 1,\r
383         "x": 969,\r
384         "y": 331,\r
385         "z": "8a5117b5.c01db8",\r
386         "wires": [\r
387             [\r
388                 "6f99e35d.de977c",\r
389                 "c02a6e99.4562c",\r
390                 "3d7935ef.04d57a",\r
391                 "cfd2103d.fd26"\r
392             ]\r
393         ]\r
394     },\r
395     {\r
396         "id": "e959cc87.47852",\r
397         "type": "block",\r
398         "name": "block",\r
399         "xml": "<block>\n",\r
400         "atomic": "false",\r
401         "comments": "",\r
402         "outputs": 1,\r
403         "x": 836,\r
404         "y": 331,\r
405         "z": "8a5117b5.c01db8",\r
406         "wires": [\r
407             [\r
408                 "a6bffc76.37edc"\r
409             ]\r
410         ]\r
411     },\r
412     {\r
413         "id": "6f99e35d.de977c",\r
414         "type": "other",\r
415         "name": "SOTN",\r
416         "xml": "<outcome value='SOTN'>\n",\r
417         "comments": "",\r
418         "outputs": 1,\r
419         "x": 1082,\r
420         "y": 242,\r
421         "z": "8a5117b5.c01db8",\r
422         "wires": [\r
423             [\r
424                 "24096151.ae8cf6"\r
425             ]\r
426         ]\r
427     },\r
428     {\r
429         "id": "c02a6e99.4562c",\r
430         "type": "other",\r
431         "name": "other",\r
432         "xml": "<outcome value='Other'>\n",\r
433         "comments": "",\r
434         "outputs": 1,\r
435         "x": 1111.5,\r
436         "y": 703.5001220703125,\r
437         "z": "8a5117b5.c01db8",\r
438         "wires": [\r
439             [\r
440                 "1f5381b5.13672e"\r
441             ]\r
442         ]\r
443     },\r
444     {\r
445         "id": "1f5381b5.13672e",\r
446         "type": "returnFailure",\r
447         "name": "return failure",\r
448         "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
449         "comments": "",\r
450         "x": 1297.75,\r
451         "y": 729.5001220703125,\r
452         "z": "8a5117b5.c01db8",\r
453         "wires": []\r
454     },\r
455     {\r
456         "id": "d3849c0c.290268",\r
457         "type": "execute",\r
458         "name": "execute Properties",\r
459         "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
460         "comments": "",\r
461         "outputs": 1,\r
462         "x": 1463.0001983642578,\r
463         "y": 123.00000953674316,\r
464         "z": "8a5117b5.c01db8",\r
465         "wires": [\r
466             []\r
467         ]\r
468     },\r
469     {\r
470         "id": "5d9111f6.fc1a7",\r
471         "type": "switchNode",\r
472         "name": "switch prop.sdncRestApi.token_id",\r
473         "xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n",\r
474         "comments": "",\r
475         "outputs": 1,\r
476         "x": 1509.5001983642578,\r
477         "y": 243.00000953674316,\r
478         "z": "8a5117b5.c01db8",\r
479         "wires": [\r
480             [\r
481                 "8bff0ee3.9c1d08",\r
482                 "46defe8b.c98d58"\r
483             ]\r
484         ]\r
485     },\r
486     {\r
487         "id": "8bff0ee3.9c1d08",\r
488         "type": "other",\r
489         "name": "Null",\r
490         "xml": "<outcome value=''>\n",\r
491         "comments": "",\r
492         "outputs": 1,\r
493         "x": 1802.000244140625,\r
494         "y": 235,\r
495         "z": "8a5117b5.c01db8",\r
496         "wires": [\r
497             [\r
498                 "4af5b25c.a6728c"\r
499             ]\r
500         ]\r
501     },\r
502     {\r
503         "id": "46defe8b.c98d58",\r
504         "type": "other",\r
505         "name": "other",\r
506         "xml": "<outcome value='Other'>\n",\r
507         "comments": "",\r
508         "outputs": 1,\r
509         "x": 1802.000244140625,\r
510         "y": 275,\r
511         "z": "8a5117b5.c01db8",\r
512         "wires": [\r
513             [\r
514                 "74d21b60.35097c"\r
515             ]\r
516         ]\r
517     },\r
518     {\r
519         "id": "4af5b25c.a6728c",\r
520         "type": "execute",\r
521         "name": "execute RestApiCallNode Get Topology",\r
522         "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
523         "comments": "",\r
524         "outputs": 1,\r
525         "x": 2023.500244140625,\r
526         "y": 235,\r
527         "z": "8a5117b5.c01db8",\r
528         "wires": [\r
529             [\r
530                 "e3942d82.1d981",\r
531                 "73b2188f.535b88"\r
532             ]\r
533         ]\r
534     },\r
535     {\r
536         "id": "4884da36.8dcb24",\r
537         "type": "execute",\r
538         "name": "execute RestconfDiscoveryNode",\r
539         "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
540         "comments": "",\r
541         "outputs": 1,\r
542         "x": 1506.0001983642578,\r
543         "y": 383.00000953674316,\r
544         "z": "8a5117b5.c01db8",\r
545         "wires": [\r
546             []\r
547         ]\r
548     },\r
549     {\r
550         "id": "e1aa7ec9.6ea95",\r
551         "type": "set",\r
552         "name": "set encoding-format",\r
553         "xml": "<set>\n<parameter name='input' value='ietf-subscribed-notifications:establish-subscription.input.' />\n<parameter name=\"`$input + 'encoding'`\" value=\"encode-json\" />",\r
554         "comments": "",\r
555         "x": 1466.0001983642578,\r
556         "y": 343.00000953674316,\r
557         "z": "8a5117b5.c01db8",\r
558         "wires": []\r
559     },\r
560     {\r
561         "id": "bbab4551.0a236",\r
562         "type": "comment",\r
563         "name": "Notification subscription",\r
564         "info": "",\r
565         "comments": "",\r
566         "x": 1471.000343322754,\r
567         "y": 300.00000858306885,\r
568         "z": "8a5117b5.c01db8",\r
569         "wires": []\r
570     },\r
571     {\r
572         "id": "febec156.8b3598",\r
573         "type": "switchNode",\r
574         "name": "switch",\r
575         "xml": "<switch test=\"`$prop.sdncRestApi.vendor == 'ZTE'`\">\n",\r
576         "comments": "",\r
577         "outputs": 1,\r
578         "x": 156,\r
579         "y": 371,\r
580         "z": "8a5117b5.c01db8",\r
581         "wires": [\r
582             [\r
583                 "9a519619.b1895",\r
584                 "48ffb5b3.b827e4"\r
585             ]\r
586         ]\r
587     },\r
588     {\r
589         "id": "9a519619.b1895",\r
590         "type": "outcomeFalse",\r
591         "name": "false",\r
592         "xml": "<outcome value='false'>\n",\r
593         "comments": "",\r
594         "outputs": 1,\r
595         "x": 343,\r
596         "y": 371,\r
597         "z": "8a5117b5.c01db8",\r
598         "wires": [\r
599             [\r
600                 "a0413cd2.f1f8e8"\r
601             ]\r
602         ]\r
603     },\r
604     {\r
605         "id": "48ffb5b3.b827e4",\r
606         "type": "outcomeTrue",\r
607         "name": "true",\r
608         "xml": "<outcome value='true'>\n",\r
609         "comments": "",\r
610         "outputs": 1,\r
611         "x": 117.00003051757812,\r
612         "y": 1127.75,\r
613         "z": "8a5117b5.c01db8",\r
614         "wires": [\r
615             [\r
616                 "9ffa3ea5.b70bf"\r
617             ]\r
618         ]\r
619     },\r
620     {\r
621         "id": "9ffa3ea5.b70bf",\r
622         "type": "call",\r
623         "name": "call esr-thirdparty-sdnc-of-zte",\r
624         "xml": "<call module='DataChange' rpc='esr-thirdparty-sdnc-of-zte' mode='sync' >\n",\r
625         "comments": "",\r
626         "outputs": 1,\r
627         "x": 348.75,\r
628         "y": 1144.5000610351562,\r
629         "z": "8a5117b5.c01db8",\r
630         "wires": [\r
631             []\r
632         ]\r
633     },\r
634     {\r
635         "id": "3d7935ef.04d57a",\r
636         "type": "other",\r
637         "name": "TAPI",\r
638         "xml": "<outcome value='TAPI'>\n",\r
639         "comments": "",\r
640         "outputs": 1,\r
641         "x": 1160,\r
642         "y": 476,\r
643         "z": "8a5117b5.c01db8",\r
644         "wires": [\r
645             [\r
646                 "4fe6a7b1.5767f"\r
647             ]\r
648         ]\r
649     },\r
650     {\r
651         "id": "4fe6a7b1.5767f",\r
652         "type": "block",\r
653         "name": "block : atomic",\r
654         "xml": "<block atomic=\"true\">",\r
655         "atomic": "true",\r
656         "outputs": 1,\r
657         "x": 1323,\r
658         "y": 475,\r
659         "z": "8a5117b5.c01db8",\r
660         "wires": [\r
661             [\r
662                 "f9123ca9.fc888"\r
663             ]\r
664         ]\r
665     },\r
666     {\r
667         "id": "f9123ca9.fc888",\r
668         "type": "execute",\r
669         "name": "execute",\r
670         "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
671         "comments": "",\r
672         "outputs": 1,\r
673         "x": 1484,\r
674         "y": 474,\r
675         "z": "8a5117b5.c01db8",\r
676         "wires": [\r
677             [\r
678                 "cc52ed00.f5d2c",\r
679                 "dd1ac4e1.b59088"\r
680             ]\r
681         ]\r
682     },\r
683     {\r
684         "id": "dd1ac4e1.b59088",\r
685         "type": "success",\r
686         "name": "success",\r
687         "xml": "<outcome value='success'>\n",\r
688         "comments": "",\r
689         "outputs": 1,\r
690         "x": 1626,\r
691         "y": 550,\r
692         "z": "8a5117b5.c01db8",\r
693         "wires": [\r
694             [\r
695                 "f1e8f88.8710a88"\r
696             ]\r
697         ]\r
698     },\r
699     {\r
700         "id": "cc52ed00.f5d2c",\r
701         "type": "failure",\r
702         "name": "failure",\r
703         "xml": "<outcome value='failure'>\n",\r
704         "comments": "",\r
705         "outputs": 1,\r
706         "x": 1660,\r
707         "y": 471,\r
708         "z": "8a5117b5.c01db8",\r
709         "wires": [\r
710             [\r
711                 "54fdb7ce.6dd1a"\r
712             ]\r
713         ]\r
714     },\r
715     {\r
716         "id": "54fdb7ce.6dd1a",\r
717         "type": "returnFailure",\r
718         "name": "return failure",\r
719         "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
720         "comments": "",\r
721         "x": 1830,\r
722         "y": 470,\r
723         "z": "8a5117b5.c01db8",\r
724         "wires": []\r
725     },\r
726     {\r
727         "id": "f1e8f88.8710a88",\r
728         "type": "block",\r
729         "name": "block : atomic",\r
730         "xml": "<block atomic=\"true\">",\r
731         "atomic": "true",\r
732         "outputs": 1,\r
733         "x": 1787,\r
734         "y": 549,\r
735         "z": "8a5117b5.c01db8",\r
736         "wires": [\r
737             [\r
738                 "f8f968a.7a53a98"\r
739             ]\r
740         ]\r
741     },\r
742     {\r
743         "id": "f8f968a.7a53a98",\r
744         "type": "for",\r
745         "name": "for each topology",\r
746         "xml": "<for index='tidx' start='0' end=\"`$topologies.topology_length`\" >\n",\r
747         "comments": "",\r
748         "outputs": 1,\r
749         "x": 1966,\r
750         "y": 549,\r
751         "z": "8a5117b5.c01db8",\r
752         "wires": [\r
753             [\r
754                 "3fb827df.939078"\r
755             ]\r
756         ]\r
757     },\r
758     {\r
759         "id": "3fb827df.939078",\r
760         "type": "block",\r
761         "name": "block",\r
762         "xml": "<block>\n",\r
763         "atomic": "false",\r
764         "comments": "",\r
765         "outputs": 1,\r
766         "x": 2133,\r
767         "y": 550,\r
768         "z": "8a5117b5.c01db8",\r
769         "wires": [\r
770             [\r
771                 "6c8666ff.44e6e8",\r
772                 "8622f8e6.4ca888"\r
773             ]\r
774         ]\r
775     },\r
776     {\r
777         "id": "6c8666ff.44e6e8",\r
778         "type": "set",\r
779         "name": "set topology",\r
780         "xml": "<set>\n<parameter name='topology.' value='`$topologies.topology[$tidx].`' />\n",\r
781         "comments": "",\r
782         "x": 2292,\r
783         "y": 551,\r
784         "z": "8a5117b5.c01db8",\r
785         "wires": []\r
786     },\r
787     {\r
788         "id": "8622f8e6.4ca888",\r
789         "type": "call",\r
790         "name": "call tapi-update-network-to-aai",\r
791         "xml": "<call module='DataChange' rpc='tapi-update-network-to-aai' mode='sync' >\n\n",\r
792         "comments": "",\r
793         "outputs": 1,\r
794         "x": 2283,\r
795         "y": 617,\r
796         "z": "8a5117b5.c01db8",\r
797         "wires": [\r
798             []\r
799         ]\r
800     },\r
801     {\r
802         "id": "cfd2103d.fd26",\r
803         "type": "outcome",\r
804         "name": "MSA",\r
805         "xml": "<outcome value='MSA'>\n",\r
806         "comments": "",\r
807         "outputs": 1,\r
808         "x": 1130.677324295044,\r
809         "y": 632.8993349075317,\r
810         "z": "8a5117b5.c01db8",\r
811         "wires": [\r
812             [\r
813                 "787c580c.21a83"\r
814             ]\r
815         ]\r
816     },\r
817     {\r
818         "id": "787c580c.21a83",\r
819         "type": "block",\r
820         "name": "block : atomic",\r
821         "xml": "<block atomic=\"true\">",\r
822         "atomic": "true",\r
823         "outputs": 1,\r
824         "x": 1292.6773872375488,\r
825         "y": 630.899335861206,\r
826         "z": "8a5117b5.c01db8",\r
827         "wires": [\r
828             [\r
829                 "cb55af39.dad0b"\r
830             ]\r
831         ]\r
832     },\r
833     {\r
834         "id": "cb55af39.dad0b",\r
835         "type": "execute",\r
836         "name": "execute",\r
837         "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
838         "comments": "",\r
839         "outputs": 1,\r
840         "x": 1469.6771354675293,\r
841         "y": 622.8992919921875,\r
842         "z": "8a5117b5.c01db8",\r
843         "wires": [\r
844             [\r
845                 "55b8f3fc.f2c404",\r
846                 "dba7d725.59fa18"\r
847             ]\r
848         ]\r
849     },\r
850     {\r
851         "id": "55b8f3fc.f2c404",\r
852         "type": "failure",\r
853         "name": "failure",\r
854         "xml": "<outcome value='failure'>\n",\r
855         "comments": "",\r
856         "outputs": 1,\r
857         "x": 1622.6771354675293,\r
858         "y": 619.8992919921875,\r
859         "z": "8a5117b5.c01db8",\r
860         "wires": [\r
861             [\r
862                 "2cc6fdd5.2640a2"\r
863             ]\r
864         ]\r
865     },\r
866     {\r
867         "id": "2cc6fdd5.2640a2",\r
868         "type": "returnFailure",\r
869         "name": "return failure",\r
870         "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
871         "comments": "",\r
872         "x": 1797.6771354675293,\r
873         "y": 618.8992919921875,\r
874         "z": "8a5117b5.c01db8",\r
875         "wires": []\r
876     },\r
877     {\r
878         "id": "dba7d725.59fa18",\r
879         "type": "success",\r
880         "name": "success",\r
881         "xml": "<outcome value='success'>\n",\r
882         "comments": "",\r
883         "outputs": 1,\r
884         "x": 1628.6771354675293,\r
885         "y": 692.8992919921875,\r
886         "z": "8a5117b5.c01db8",\r
887         "wires": [\r
888             [\r
889                 "170b822d.317ece"\r
890             ]\r
891         ]\r
892     },\r
893     {\r
894         "id": "170b822d.317ece",\r
895         "type": "block",\r
896         "name": "block : atomic",\r
897         "xml": "<block atomic=\"true\">",\r
898         "atomic": "true",\r
899         "outputs": 1,\r
900         "x": 1812.6771354675293,\r
901         "y": 694.8992919921875,\r
902         "z": "8a5117b5.c01db8",\r
903         "wires": [\r
904             [\r
905                 "8f4caf49.c88e68"\r
906             ]\r
907         ]\r
908     },\r
909     {\r
910         "id": "8f4caf49.c88e68",\r
911         "type": "call",\r
912         "name": "call msa-update-network-to-aai",\r
913         "xml": "<call module='DataChange' rpc='msa-update-network-to-aai' mode='sync' >\n\n",\r
914         "comments": "",\r
915         "outputs": 1,\r
916         "x": 2091.677001953125,\r
917         "y": 692.8992919921875,\r
918         "z": "8a5117b5.c01db8",\r
919         "wires": [\r
920             []\r
921         ]\r
922     },\r
923     {\r
924         "id": "4f7d3c56.d58604",\r
925         "type": "switchNode",\r
926         "name": "switch type",\r
927         "xml": "<switch test=\"`$prop.sdncRestApi.type`\">\n",\r
928         "comments": "",\r
929         "outputs": 1,\r
930         "x": 262.566650390625,\r
931         "y": 861.5666809082031,\r
932         "z": "8a5117b5.c01db8",\r
933         "wires": [\r
934             [\r
935                 "7c479945.15b6c",\r
936                 "41dab8d.79e9dc8",\r
937                 "fb32359d.de7e3"\r
938             ]\r
939         ]\r
940     },\r
941     {\r
942         "id": "7c479945.15b6c",\r
943         "type": "outcome",\r
944         "name": "MSA",\r
945         "xml": "<outcome value='MSA'>\n",\r
946         "comments": "",\r
947         "outputs": 1,\r
948         "x": 441.857177734375,\r
949         "y": 778.9285888671875,\r
950         "z": "8a5117b5.c01db8",\r
951         "wires": [\r
952             [\r
953                 "d9d0d78b.47d9f"\r
954             ]\r
955         ]\r
956     },\r
957     {\r
958         "id": "41dab8d.79e9dc8",\r
959         "type": "other",\r
960         "name": "TAPI",\r
961         "xml": "<outcome value='TAPI'>\n",\r
962         "comments": "",\r
963         "outputs": 1,\r
964         "x": 450.6070556640625,\r
965         "y": 1029.6428527832031,\r
966         "z": "8a5117b5.c01db8",\r
967         "wires": [\r
968             [\r
969                 "1a2de346.3f0ebd"\r
970             ]\r
971         ]\r
972     },\r
973     {\r
974         "id": "d9d0d78b.47d9f",\r
975         "type": "block",\r
976         "name": "block : atomic",\r
977         "xml": "<block atomic='true'>",\r
978         "atomic": "true",\r
979         "comments": "",\r
980         "outputs": 1,\r
981         "x": 595.607177734375,\r
982         "y": 775.7143249511719,\r
983         "z": "8a5117b5.c01db8",\r
984         "wires": [\r
985             [\r
986                 "e787c325.7a3d48",\r
987                 "e74f02d1.684a5"\r
988             ]\r
989         ]\r
990     },\r
991     {\r
992         "id": "1a2de346.3f0ebd",\r
993         "type": "block",\r
994         "name": "block",\r
995         "xml": "<block>\n",\r
996         "atomic": "false",\r
997         "comments": "",\r
998         "outputs": 1,\r
999         "x": 600,\r
1000         "y": 1029.5,\r
1001         "z": "8a5117b5.c01db8",\r
1002         "wires": [\r
1003             [\r
1004                 "39caa350.271204",\r
1005                 "14436f1d.f47b89"\r
1006             ]\r
1007         ]\r
1008     },\r
1009     {\r
1010         "id": "fb32359d.de7e3",\r
1011         "type": "other",\r
1012         "name": "other",\r
1013         "xml": "<outcome value='Other'>\n",\r
1014         "comments": "",\r
1015         "outputs": 1,\r
1016         "x": 553,\r
1017         "y": 1193.5,\r
1018         "z": "8a5117b5.c01db8",\r
1019         "wires": [\r
1020             [\r
1021                 "33b66d76.b73a6a"\r
1022             ]\r
1023         ]\r
1024     },\r
1025     {\r
1026         "id": "33b66d76.b73a6a",\r
1027         "type": "returnFailure",\r
1028         "name": "return failure",\r
1029         "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
1030         "comments": "",\r
1031         "x": 715,\r
1032         "y": 1232.5,\r
1033         "z": "8a5117b5.c01db8",\r
1034         "wires": []\r
1035     },\r
1036     {\r
1037         "id": "e787c325.7a3d48",\r
1038         "type": "get-resource",\r
1039         "name": "get resources from DB -controller_id",\r
1040         "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
1041         "comments": "",\r
1042         "outputs": 1,\r
1043         "x": 827.5,\r
1044         "y": 823.5,\r
1045         "z": "8a5117b5.c01db8",\r
1046         "wires": [\r
1047             [\r
1048                 "48ef075d.23d478",\r
1049                 "6aefa7bc.0e864",\r
1050                 "b6643c83.4fa068"\r
1051             ]\r
1052         ]\r
1053     },\r
1054     {\r
1055         "id": "e74f02d1.684a5",\r
1056         "type": "set",\r
1057         "name": "set controller_id",\r
1058         "xml": "<set>\n<parameter name='controllerid' value=\"`$prop.sdncRestApi.type + '_' + $prop.sdncRestApi.thirdpartySdnc.url + '_' + $prop.sdncRestApi.thirdpartySdnc.id`\" />\n\n\n\n",\r
1059         "comments": "",\r
1060         "x": 787.5,\r
1061         "y": 757.5,\r
1062         "z": "8a5117b5.c01db8",\r
1063         "wires": []\r
1064     },\r
1065     {\r
1066         "id": "48ef075d.23d478",\r
1067         "type": "success",\r
1068         "name": "success",\r
1069         "xml": "<outcome value='success'>\n",\r
1070         "comments": "",\r
1071         "outputs": 1,\r
1072         "x": 1066.5,\r
1073         "y": 843.5,\r
1074         "z": "8a5117b5.c01db8",\r
1075         "wires": [\r
1076             [\r
1077                 "3a0200d5.7fabc"\r
1078             ]\r
1079         ]\r
1080     },\r
1081     {\r
1082         "id": "3a0200d5.7fabc",\r
1083         "type": "delete",\r
1084         "name": "delete from db",\r
1085         "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
1086         "comments": "",\r
1087         "outputs": 1,\r
1088         "x": 1235.5,\r
1089         "y": 850.5,\r
1090         "z": "8a5117b5.c01db8",\r
1091         "wires": [\r
1092             []\r
1093         ]\r
1094     },\r
1095     {\r
1096         "id": "39caa350.271204",\r
1097         "type": "set",\r
1098         "name": "set controller_id",\r
1099         "xml": "<set>\n<parameter name='controllerid' value=\"`$prop.sdncRestApi.type + '_' + $prop.sdncRestApi.thirdpartySdnc.url + '_' + $prop.sdncRestApi.thirdpartySdnc.id`\" />\n\n\n\n",\r
1100         "comments": "",\r
1101         "x": 764.5,\r
1102         "y": 985.5,\r
1103         "z": "8a5117b5.c01db8",\r
1104         "wires": []\r
1105     },\r
1106     {\r
1107         "id": "14436f1d.f47b89",\r
1108         "type": "get-resource",\r
1109         "name": "get resources from DB -controller_id",\r
1110         "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
1111         "comments": "",\r
1112         "outputs": 1,\r
1113         "x": 777.5,\r
1114         "y": 1074.5,\r
1115         "z": "8a5117b5.c01db8",\r
1116         "wires": [\r
1117             [\r
1118                 "82076a69.af01a",\r
1119                 "7b1e0312.764db4",\r
1120                 "5cc08e4.aa9e2f"\r
1121             ]\r
1122         ]\r
1123     },\r
1124     {\r
1125         "id": "82076a69.af01a",\r
1126         "type": "success",\r
1127         "name": "success",\r
1128         "xml": "<outcome value='success'>\n",\r
1129         "comments": "",\r
1130         "outputs": 1,\r
1131         "x": 1002.5,\r
1132         "y": 1089.5,\r
1133         "z": "8a5117b5.c01db8",\r
1134         "wires": [\r
1135             [\r
1136                 "dc7dee5b.44e56"\r
1137             ]\r
1138         ]\r
1139     },\r
1140     {\r
1141         "id": "dc7dee5b.44e56",\r
1142         "type": "delete",\r
1143         "name": "delete from db",\r
1144         "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
1145         "comments": "",\r
1146         "outputs": 1,\r
1147         "x": 1173.5,\r
1148         "y": 1090.5,\r
1149         "z": "8a5117b5.c01db8",\r
1150         "wires": [\r
1151             []\r
1152         ]\r
1153     },\r
1154     {\r
1155         "id": "6aefa7bc.0e864",\r
1156         "type": "failure",\r
1157         "name": "failure",\r
1158         "xml": "<outcome value='failure'>\n",\r
1159         "comments": "",\r
1160         "outputs": 1,\r
1161         "x": 1052.5,\r
1162         "y": 922.5,\r
1163         "z": "8a5117b5.c01db8",\r
1164         "wires": [\r
1165             [\r
1166                 "2c713fb3.4d6888"\r
1167             ]\r
1168         ]\r
1169     },\r
1170     {\r
1171         "id": "7b1e0312.764db4",\r
1172         "type": "failure",\r
1173         "name": "failure",\r
1174         "xml": "<outcome value='failure'>\n",\r
1175         "comments": "",\r
1176         "outputs": 1,\r
1177         "x": 983.5,\r
1178         "y": 1162.5,\r
1179         "z": "8a5117b5.c01db8",\r
1180         "wires": [\r
1181             [\r
1182                 "2bfd8d24.d64f22"\r
1183             ]\r
1184         ]\r
1185     },\r
1186     {\r
1187         "id": "2c713fb3.4d6888",\r
1188         "type": "returnFailure",\r
1189         "name": "return failure",\r
1190         "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
1191         "comments": "",\r
1192         "x": 1213.5,\r
1193         "y": 927.5,\r
1194         "z": "8a5117b5.c01db8",\r
1195         "wires": []\r
1196     },\r
1197     {\r
1198         "id": "b6643c83.4fa068",\r
1199         "type": "not-found",\r
1200         "name": "not-found",\r
1201         "xml": "<outcome value='not-found'>\n",\r
1202         "comments": "",\r
1203         "outputs": 1,\r
1204         "x": 1043.5,\r
1205         "y": 982.5,\r
1206         "z": "8a5117b5.c01db8",\r
1207         "wires": [\r
1208             [\r
1209                 "a2919cf8.1bf828"\r
1210             ]\r
1211         ]\r
1212     },\r
1213     {\r
1214         "id": "a2919cf8.1bf828",\r
1215         "type": "returnFailure",\r
1216         "name": "return failure",\r
1217         "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
1218         "comments": "",\r
1219         "x": 1192.5,\r
1220         "y": 984.5,\r
1221         "z": "8a5117b5.c01db8",\r
1222         "wires": []\r
1223     },\r
1224     {\r
1225         "id": "2bfd8d24.d64f22",\r
1226         "type": "returnFailure",\r
1227         "name": "return failure",\r
1228         "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
1229         "comments": "",\r
1230         "x": 1131.5,\r
1231         "y": 1163.5,\r
1232         "z": "8a5117b5.c01db8",\r
1233         "wires": []\r
1234     },\r
1235     {\r
1236         "id": "5cc08e4.aa9e2f",\r
1237         "type": "not-found",\r
1238         "name": "not-found",\r
1239         "xml": "<outcome value='not-found'>\n",\r
1240         "comments": "",\r
1241         "outputs": 1,\r
1242         "x": 983.5,\r
1243         "y": 1206.5,\r
1244         "z": "8a5117b5.c01db8",\r
1245         "wires": [\r
1246             [\r
1247                 "2f855e70.bc0c7a"\r
1248             ]\r
1249         ]\r
1250     },\r
1251     {\r
1252         "id": "2f855e70.bc0c7a",\r
1253         "type": "returnFailure",\r
1254         "name": "return failure",\r
1255         "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
1256         "comments": "",\r
1257         "x": 1148.5,\r
1258         "y": 1203.5,\r
1259         "z": "8a5117b5.c01db8",\r
1260         "wires": []\r
1261     },\r
1262     {\r
1263         "id": "ad97aa98.c768d",\r
1264         "type": "switchNode",\r
1265         "name": "switch network_length",\r
1266         "xml": "<switch test='`$topology.networks.network_length >= 2`'>\n",\r
1267         "comments": "",\r
1268         "outputs": 1,\r
1269         "x": 2659,\r
1270         "y": 355,\r
1271         "z": "8a5117b5.c01db8",\r
1272         "wires": [\r
1273             [\r
1274                 "47f11a60.715fe4"\r
1275             ]\r
1276         ]\r
1277     },\r
1278     {\r
1279         "id": "47f11a60.715fe4",\r
1280         "type": "outcomeTrue",\r
1281         "name": "true",\r
1282         "xml": "<outcome value='true'>\n",\r
1283         "comments": "",\r
1284         "outputs": 1,\r
1285         "x": 2841,\r
1286         "y": 356,\r
1287         "z": "8a5117b5.c01db8",\r
1288         "wires": [\r
1289             [\r
1290                 "610c5ba8.ab12f4"\r
1291             ]\r
1292         ]\r
1293     },\r
1294     {\r
1295         "id": "3f621874.83f7b",\r
1296         "type": "for",\r
1297         "name": "for each Network",\r
1298         "xml": "<for index='netidx' start='0' end='`$topology.networks.network_length`' >\n",\r
1299         "comments": "",\r
1300         "outputs": 1,\r
1301         "x": 3214,\r
1302         "y": 349,\r
1303         "z": "8a5117b5.c01db8",\r
1304         "wires": [\r
1305             [\r
1306                 "47e16032.729b78"\r
1307             ]\r
1308         ]\r
1309     },\r
1310     {\r
1311         "id": "47e16032.729b78",\r
1312         "type": "block",\r
1313         "name": "block",\r
1314         "xml": "<block>\n",\r
1315         "atomic": "false",\r
1316         "comments": "",\r
1317         "outputs": 1,\r
1318         "x": 3432,\r
1319         "y": 346,\r
1320         "z": "8a5117b5.c01db8",\r
1321         "wires": [\r
1322             [\r
1323                 "cc7e5bc4.9fb7e8",\r
1324                 "8fc85a95.09a108",\r
1325                 "c99c88.f08ccb78"\r
1326             ]\r
1327         ]\r
1328     },\r
1329     {\r
1330         "id": "40eac1bc.82a228",\r
1331         "type": "call",\r
1332         "name": "call update-tp-ttp-relationship",\r
1333         "xml": "<call module='DataChange' rpc='update-tp-ttp-relationship' mode='sync' >\n",\r
1334         "comments": "",\r
1335         "outputs": 1,\r
1336         "x": 3247,\r
1337         "y": 409,\r
1338         "z": "8a5117b5.c01db8",\r
1339         "wires": [\r
1340             []\r
1341         ]\r
1342     },\r
1343     {\r
1344         "id": "610c5ba8.ab12f4",\r
1345         "type": "block",\r
1346         "name": "block : atomic",\r
1347         "xml": "<block atomic='true'>",\r
1348         "atomic": "true",\r
1349         "comments": "",\r
1350         "outputs": 1,\r
1351         "x": 3011,\r
1352         "y": 352,\r
1353         "z": "8a5117b5.c01db8",\r
1354         "wires": [\r
1355             [\r
1356                 "3f621874.83f7b",\r
1357                 "40eac1bc.82a228"\r
1358             ]\r
1359         ]\r
1360     },\r
1361     {\r
1362         "id": "c99c88.f08ccb78",\r
1363         "type": "set",\r
1364         "name": "unset network",\r
1365         "xml": "<set>\n<parameter name='network.' value='' />\n",\r
1366         "comments": "",\r
1367         "x": 3591,\r
1368         "y": 286,\r
1369         "z": "8a5117b5.c01db8",\r
1370         "wires": []\r
1371     },\r
1372     {\r
1373         "id": "cc7e5bc4.9fb7e8",\r
1374         "type": "set",\r
1375         "name": "set network",\r
1376         "xml": "<set>\n<parameter name='network.' value='`$topology.networks.network[$netidx].`' />\n",\r
1377         "comments": "",\r
1378         "x": 3585,\r
1379         "y": 334,\r
1380         "z": "8a5117b5.c01db8",\r
1381         "wires": []\r
1382     },\r
1383     {\r
1384         "id": "8fc85a95.09a108",\r
1385         "type": "switchNode",\r
1386         "name": "switch network-types with topologyId",\r
1387         "xml": "<switch test='`$network.te-topology-id`'>\n",\r
1388         "comments": "",\r
1389         "outputs": 1,\r
1390         "x": 3662,\r
1391         "y": 381,\r
1392         "z": "8a5117b5.c01db8",\r
1393         "wires": [\r
1394             [\r
1395                 "a101ef60.461f68",\r
1396                 "46ddd7fc.c3c038"\r
1397             ]\r
1398         ]\r
1399     },\r
1400     {\r
1401         "id": "a101ef60.461f68",\r
1402         "type": "outcome",\r
1403         "name": "1",\r
1404         "xml": "<outcome value='1'>\n",\r
1405         "comments": "",\r
1406         "outputs": 1,\r
1407         "x": 3888,\r
1408         "y": 350,\r
1409         "z": "8a5117b5.c01db8",\r
1410         "wires": [\r
1411             [\r
1412                 "9f9b045e.002478"\r
1413             ]\r
1414         ]\r
1415     },\r
1416     {\r
1417         "id": "46ddd7fc.c3c038",\r
1418         "type": "outcome",\r
1419         "name": "2",\r
1420         "xml": "<outcome value='2'>\n",\r
1421         "comments": "",\r
1422         "outputs": 1,\r
1423         "x": 3888,\r
1424         "y": 411,\r
1425         "z": "8a5117b5.c01db8",\r
1426         "wires": [\r
1427             [\r
1428                 "c00ddb6e.187aa"\r
1429             ]\r
1430         ]\r
1431     },\r
1432     {\r
1433         "id": "55fe80ee.35e4c",\r
1434         "type": "set",\r
1435         "name": "set network-otn",\r
1436         "xml": "<set>\n<parameter name='network-otn.' value='`$topology.networks.network[$netidx].`' />\n",\r
1437         "comments": "",\r
1438         "x": 4183,\r
1439         "y": 350,\r
1440         "z": "8a5117b5.c01db8",\r
1441         "wires": []\r
1442     },\r
1443     {\r
1444         "id": "b736da6.72f0128",\r
1445         "type": "set",\r
1446         "name": "set network eth",\r
1447         "xml": "<set>\n<parameter name='network-eth.' value='`$topology.networks.network[$netidx].`' />\n",\r
1448         "comments": "",\r
1449         "x": 4183,\r
1450         "y": 411,\r
1451         "z": "8a5117b5.c01db8",\r
1452         "wires": []\r
1453     },\r
1454     {\r
1455         "id": "9f9b045e.002478",\r
1456         "type": "block",\r
1457         "name": "block",\r
1458         "xml": "<block>\n",\r
1459         "atomic": "false",\r
1460         "comments": "",\r
1461         "outputs": 1,\r
1462         "x": 4022,\r
1463         "y": 350,\r
1464         "z": "8a5117b5.c01db8",\r
1465         "wires": [\r
1466             [\r
1467                 "55fe80ee.35e4c"\r
1468             ]\r
1469         ]\r
1470     },\r
1471     {\r
1472         "id": "c00ddb6e.187aa",\r
1473         "type": "block",\r
1474         "name": "block",\r
1475         "xml": "<block>\n",\r
1476         "atomic": "false",\r
1477         "comments": "",\r
1478         "outputs": 1,\r
1479         "x": 4023,\r
1480         "y": 411,\r
1481         "z": "8a5117b5.c01db8",\r
1482         "wires": [\r
1483             [\r
1484                 "b736da6.72f0128"\r
1485             ]\r
1486         ]\r
1487     },\r
1488     {\r
1489         "id": "51f49074.c67e58",\r
1490         "type": "set",\r
1491         "name": "unset network",\r
1492         "xml": "<set>\n<parameter name='network.' value='' />\n",\r
1493         "comments": "",\r
1494         "x": 2929,\r
1495         "y": 154,\r
1496         "z": "8a5117b5.c01db8",\r
1497         "wires": []\r
1498     }\r
1499 ]