Bug fixing in topology discovery as part of CCVPN (Cross-Layer Cross-Domain VPN)...
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_esr-thirdparty-sdnc-discovery.json
1 [\r
2     {\r
3         "id": "c3dc4adb.8c6008",\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": 739,\r
10         "y": 311,\r
11         "z": "fcc91756.c8d038",\r
12         "wires": [\r
13             [\r
14                 "bd0845c9.41d478"\r
15             ]\r
16         ]\r
17     },\r
18     {\r
19         "id": "71253ee0.23906",\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": 739,\r
26         "y": 391,\r
27         "z": "fcc91756.c8d038",\r
28         "wires": [\r
29             [\r
30                 "3f0bf71e.180588"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "3f0bf71e.180588",\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": 880.5,\r
42         "y": 391,\r
43         "z": "fcc91756.c8d038",\r
44         "wires": [\r
45             [\r
46                 "67540de7.5dd14c"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "de801ea6.e90758",\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": 569.5,\r
58         "y": 351,\r
59         "z": "fcc91756.c8d038",\r
60         "wires": [\r
61             [\r
62                 "c3dc4adb.8c6008",\r
63                 "71253ee0.23906"\r
64             ]\r
65         ]\r
66     },\r
67     {\r
68         "id": "1007cea6.282501",\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": 1266.5,\r
75         "y": 222,\r
76         "z": "fcc91756.c8d038",\r
77         "wires": [\r
78             [\r
79                 "95e785b5.d067b",\r
80                 "7a1058d1.4b2d6",\r
81                 "558bdafc.122dbc",\r
82                 "54848569.ec4d54",\r
83                 "25993b47.1f060c"\r
84             ]\r
85         ]\r
86     },\r
87     {\r
88         "id": "7a1058d1.4b2d6",\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": 1539.5001983642578,\r
95         "y": 143.00000953674316,\r
96         "z": "fcc91756.c8d038",\r
97         "wires": [\r
98             [\r
99                 "1f13ca65.eddc8e",\r
100                 "fa7642f7.a126c8"\r
101             ]\r
102         ]\r
103     },\r
104     {\r
105         "id": "1f13ca65.eddc8e",\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": 1829.000244140625,\r
112         "y": 135,\r
113         "z": "fcc91756.c8d038",\r
114         "wires": [\r
115             [\r
116                 "a5768e87.aa1bb"\r
117             ]\r
118         ]\r
119     },\r
120     {\r
121         "id": "fa7642f7.a126c8",\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": 1825.000244140625,\r
128         "y": 175,\r
129         "z": "fcc91756.c8d038",\r
130         "wires": [\r
131             [\r
132                 "334af206.383786"\r
133             ]\r
134         ]\r
135     },\r
136     {\r
137         "id": "a5768e87.aa1bb",\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": 1979.500244140625,\r
143         "y": 135,\r
144         "z": "fcc91756.c8d038",\r
145         "wires": []\r
146     },\r
147     {\r
148         "id": "272f0d19.0aa972",\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": 2046.500244140625,\r
155         "y": 255,\r
156         "z": "fcc91756.c8d038",\r
157         "wires": [\r
158             [\r
159                 "c0f8711f.5047d8",\r
160                 "6134ff85.3a875"\r
161             ]\r
162         ]\r
163     },\r
164     {\r
165         "id": "c0f8711f.5047d8",\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": 2289.000244140625,\r
172         "y": 275,\r
173         "z": "fcc91756.c8d038",\r
174         "wires": [\r
175             [\r
176                 "f5e8d64.1d84ba8"\r
177             ]\r
178         ]\r
179     },\r
180     {\r
181         "id": "f5e8d64.1d84ba8",\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": 2446.500244140625,\r
189         "y": 275,\r
190         "z": "fcc91756.c8d038",\r
191         "wires": [\r
192             [\r
193                 "f392518f.1c82f",\r
194                 "f7bc5da7.da31b"\r
195             ]\r
196         ]\r
197     },\r
198     {\r
199         "id": "dd9ef895.8d06e8",\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": 2423.000244140625,\r
205         "y": 175,\r
206         "z": "fcc91756.c8d038",\r
207         "wires": []\r
208     },\r
209     {\r
210         "id": "6134ff85.3a875",\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": 2285.000244140625,\r
217         "y": 175,\r
218         "z": "fcc91756.c8d038",\r
219         "wires": [\r
220             [\r
221                 "dd9ef895.8d06e8"\r
222             ]\r
223         ]\r
224     },\r
225     {\r
226         "id": "bca2c88c.f5748",\r
227         "type": "dgstart",\r
228         "name": "DGSTART",\r
229         "outputs": 1,\r
230         "x": 192,\r
231         "y": 86,\r
232         "z": "fcc91756.c8d038",\r
233         "wires": [\r
234             [\r
235                 "1c8eebdb.be2d0c"\r
236             ]\r
237         ]\r
238     },\r
239     {\r
240         "id": "1c8eebdb.be2d0c",\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": 205,\r
249         "y": 146,\r
250         "z": "fcc91756.c8d038",\r
251         "wires": [\r
252             [\r
253                 "a6fcf3ab.5f9578"\r
254             ]\r
255         ]\r
256     },\r
257     {\r
258         "id": "a6fcf3ab.5f9578",\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": 225,\r
265         "y": 226,\r
266         "z": "fcc91756.c8d038",\r
267         "wires": [\r
268             [\r
269                 "6420c8d3.d15ee"\r
270             ]\r
271         ]\r
272     },\r
273     {\r
274         "id": "6420c8d3.d15ee",\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": 472.5,\r
282         "y": 226,\r
283         "z": "fcc91756.c8d038",\r
284         "wires": [\r
285             [\r
286                 "39152f22.f0d4a8"\r
287             ]\r
288         ]\r
289     },\r
290     {\r
291         "id": "f392518f.1c82f",\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": 2665.500244140625,\r
298         "y": 204,\r
299         "z": "fcc91756.c8d038",\r
300         "wires": [\r
301             [\r
302                 "48caa041.662da"\r
303             ]\r
304         ]\r
305     },\r
306     {\r
307         "id": "48caa041.662da",\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": 2814.000244140625,\r
315         "y": 204,\r
316         "z": "fcc91756.c8d038",\r
317         "wires": [\r
318             [\r
319                 "f9d6723a.6cdf78",\r
320                 "929dfcd4.4e318"\r
321             ]\r
322         ]\r
323     },\r
324     {\r
325         "id": "f9d6723a.6cdf78",\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": 2993.000244140625,\r
332         "y": 224,\r
333         "z": "fcc91756.c8d038",\r
334         "wires": [\r
335             []\r
336         ]\r
337     },\r
338     {\r
339         "id": "929dfcd4.4e318",\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": 2948.000244140625,\r
345         "y": 184,\r
346         "z": "fcc91756.c8d038",\r
347         "wires": []\r
348     },\r
349     {\r
350         "id": "334af206.383786",\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": 1945.000244140625,\r
358         "y": 175,\r
359         "z": "fcc91756.c8d038",\r
360         "wires": [\r
361             []\r
362         ]\r
363     },\r
364     {\r
365         "id": "2b9bc1fc.7f9d86",\r
366         "type": "comment",\r
367         "name": "Do Nothing",\r
368         "info": "",\r
369         "comments": "",\r
370         "x": 2115.000244140625,\r
371         "y": 215,\r
372         "z": "fcc91756.c8d038",\r
373         "wires": []\r
374     },\r
375     {\r
376         "id": "ec977bcd.52b8a8",\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": 992,\r
383         "y": 311,\r
384         "z": "fcc91756.c8d038",\r
385         "wires": [\r
386             [\r
387                 "e6327558.85a0e",\r
388                 "ece3c1dc.08a25",\r
389                 "57f0cdff.7f0d04",\r
390                 "e6efb547.0bd5a8"\r
391             ]\r
392         ]\r
393     },\r
394     {\r
395         "id": "bd0845c9.41d478",\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": 859,\r
403         "y": 311,\r
404         "z": "fcc91756.c8d038",\r
405         "wires": [\r
406             [\r
407                 "ec977bcd.52b8a8"\r
408             ]\r
409         ]\r
410     },\r
411     {\r
412         "id": "e6327558.85a0e",\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": 1105,\r
419         "y": 222,\r
420         "z": "fcc91756.c8d038",\r
421         "wires": [\r
422             [\r
423                 "1007cea6.282501"\r
424             ]\r
425         ]\r
426     },\r
427     {\r
428         "id": "ece3c1dc.08a25",\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": 1134.5,\r
435         "y": 683.5001220703125,\r
436         "z": "fcc91756.c8d038",\r
437         "wires": [\r
438             [\r
439                 "752a836e.32daf4"\r
440             ]\r
441         ]\r
442     },\r
443     {\r
444         "id": "752a836e.32daf4",\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": 1320.75,\r
450         "y": 709.5001220703125,\r
451         "z": "fcc91756.c8d038",\r
452         "wires": []\r
453     },\r
454     {\r
455         "id": "95e785b5.d067b",\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": 1486.0001983642578,\r
462         "y": 103.00000953674316,\r
463         "z": "fcc91756.c8d038",\r
464         "wires": [\r
465             []\r
466         ]\r
467     },\r
468     {\r
469         "id": "558bdafc.122dbc",\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": 1532.5001983642578,\r
476         "y": 223.00000953674316,\r
477         "z": "fcc91756.c8d038",\r
478         "wires": [\r
479             [\r
480                 "9764857a.46386",\r
481                 "b55a5855.1b4c4"\r
482             ]\r
483         ]\r
484     },\r
485     {\r
486         "id": "9764857a.46386",\r
487         "type": "other",\r
488         "name": "Null",\r
489         "xml": "<outcome value=''>\n",\r
490         "comments": "",\r
491         "outputs": 1,\r
492         "x": 1825.000244140625,\r
493         "y": 215,\r
494         "z": "fcc91756.c8d038",\r
495         "wires": [\r
496             [\r
497                 "d18413fb.5938e8"\r
498             ]\r
499         ]\r
500     },\r
501     {\r
502         "id": "b55a5855.1b4c4",\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": 1825.000244140625,\r
509         "y": 255,\r
510         "z": "fcc91756.c8d038",\r
511         "wires": [\r
512             [\r
513                 "272f0d19.0aa972"\r
514             ]\r
515         ]\r
516     },\r
517     {\r
518         "id": "d18413fb.5938e8",\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": 2046.500244140625,\r
525         "y": 215,\r
526         "z": "fcc91756.c8d038",\r
527         "wires": [\r
528             [\r
529                 "6134ff85.3a875",\r
530                 "c0f8711f.5047d8"\r
531             ]\r
532         ]\r
533     },\r
534     {\r
535         "id": "25993b47.1f060c",\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": 1529.0001983642578,\r
542         "y": 363.00000953674316,\r
543         "z": "fcc91756.c8d038",\r
544         "wires": [\r
545             []\r
546         ]\r
547     },\r
548     {\r
549         "id": "54848569.ec4d54",\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": 1489.0001983642578,\r
555         "y": 323.00000953674316,\r
556         "z": "fcc91756.c8d038",\r
557         "wires": []\r
558     },\r
559     {\r
560         "id": "c147e994.7edd08",\r
561         "type": "comment",\r
562         "name": "Notification subscription",\r
563         "info": "",\r
564         "comments": "",\r
565         "x": 1494.000343322754,\r
566         "y": 280.00000858306885,\r
567         "z": "fcc91756.c8d038",\r
568         "wires": []\r
569     },\r
570     {\r
571         "id": "39152f22.f0d4a8",\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": 179,\r
578         "y": 351,\r
579         "z": "fcc91756.c8d038",\r
580         "wires": [\r
581             [\r
582                 "404d2f08.96ad7",\r
583                 "74ffd1db.2f31c8"\r
584             ]\r
585         ]\r
586     },\r
587     {\r
588         "id": "404d2f08.96ad7",\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": 366,\r
595         "y": 351,\r
596         "z": "fcc91756.c8d038",\r
597         "wires": [\r
598             [\r
599                 "de801ea6.e90758"\r
600             ]\r
601         ]\r
602     },\r
603     {\r
604         "id": "74ffd1db.2f31c8",\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": 140.00003051757812,\r
611         "y": 1107.75,\r
612         "z": "fcc91756.c8d038",\r
613         "wires": [\r
614             [\r
615                 "c3886c05.a14928"\r
616             ]\r
617         ]\r
618     },\r
619     {\r
620         "id": "c3886c05.a14928",\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": 371.75,\r
627         "y": 1124.5000610351562,\r
628         "z": "fcc91756.c8d038",\r
629         "wires": [\r
630             []\r
631         ]\r
632     },\r
633     {\r
634         "id": "57f0cdff.7f0d04",\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": 1183,\r
641         "y": 456,\r
642         "z": "fcc91756.c8d038",\r
643         "wires": [\r
644             [\r
645                 "9159c5db.f9ecb"\r
646             ]\r
647         ]\r
648     },\r
649     {\r
650         "id": "9159c5db.f9ecb",\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": 1346,\r
657         "y": 455,\r
658         "z": "fcc91756.c8d038",\r
659         "wires": [\r
660             [\r
661                 "359e52a9.fb7c36"\r
662             ]\r
663         ]\r
664     },\r
665     {\r
666         "id": "359e52a9.fb7c36",\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": 1507,\r
673         "y": 454,\r
674         "z": "fcc91756.c8d038",\r
675         "wires": [\r
676             [\r
677                 "bdd5dc28.9d2908",\r
678                 "a872bbb4.c3aec8"\r
679             ]\r
680         ]\r
681     },\r
682     {\r
683         "id": "a872bbb4.c3aec8",\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": 1649,\r
690         "y": 530,\r
691         "z": "fcc91756.c8d038",\r
692         "wires": [\r
693             [\r
694                 "e24829ea.497098"\r
695             ]\r
696         ]\r
697     },\r
698     {\r
699         "id": "bdd5dc28.9d2908",\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": 1683,\r
706         "y": 451,\r
707         "z": "fcc91756.c8d038",\r
708         "wires": [\r
709             [\r
710                 "ba70e873.59e928"\r
711             ]\r
712         ]\r
713     },\r
714     {\r
715         "id": "ba70e873.59e928",\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": 1853,\r
721         "y": 450,\r
722         "z": "fcc91756.c8d038",\r
723         "wires": []\r
724     },\r
725     {\r
726         "id": "e24829ea.497098",\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": 1810,\r
733         "y": 529,\r
734         "z": "fcc91756.c8d038",\r
735         "wires": [\r
736             [\r
737                 "e5d11bee.6d3f3"\r
738             ]\r
739         ]\r
740     },\r
741     {\r
742         "id": "e5d11bee.6d3f3",\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": 1989,\r
749         "y": 529,\r
750         "z": "fcc91756.c8d038",\r
751         "wires": [\r
752             [\r
753                 "f9dbd640.006d18"\r
754             ]\r
755         ]\r
756     },\r
757     {\r
758         "id": "f9dbd640.006d18",\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": 2156,\r
766         "y": 530,\r
767         "z": "fcc91756.c8d038",\r
768         "wires": [\r
769             [\r
770                 "c60ea7f.3bd2058",\r
771                 "b4f9b29d.c49458"\r
772             ]\r
773         ]\r
774     },\r
775     {\r
776         "id": "c60ea7f.3bd2058",\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": 2315,\r
782         "y": 531,\r
783         "z": "fcc91756.c8d038",\r
784         "wires": []\r
785     },\r
786     {\r
787         "id": "b4f9b29d.c49458",\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": 2306,\r
794         "y": 597,\r
795         "z": "fcc91756.c8d038",\r
796         "wires": [\r
797             []\r
798         ]\r
799     },\r
800     {\r
801         "id": "e6efb547.0bd5a8",\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": 1153.677324295044,\r
808         "y": 612.8993349075317,\r
809         "z": "fcc91756.c8d038",\r
810         "wires": [\r
811             [\r
812                 "e1657417.9cefe8"\r
813             ]\r
814         ]\r
815     },\r
816     {\r
817         "id": "e1657417.9cefe8",\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": 1315.6773872375488,\r
824         "y": 610.899335861206,\r
825         "z": "fcc91756.c8d038",\r
826         "wires": [\r
827             [\r
828                 "1f0bde0a.fa2cb2"\r
829             ]\r
830         ]\r
831     },\r
832     {\r
833         "id": "1f0bde0a.fa2cb2",\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": 1492.6771354675293,\r
840         "y": 602.8992919921875,\r
841         "z": "fcc91756.c8d038",\r
842         "wires": [\r
843             [\r
844                 "7133cad2.99b11c",\r
845                 "c3d837c.d0ca2c8"\r
846             ]\r
847         ]\r
848     },\r
849     {\r
850         "id": "7133cad2.99b11c",\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": 1645.6771354675293,\r
857         "y": 599.8992919921875,\r
858         "z": "fcc91756.c8d038",\r
859         "wires": [\r
860             [\r
861                 "eab907ff.882ae8"\r
862             ]\r
863         ]\r
864     },\r
865     {\r
866         "id": "eab907ff.882ae8",\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": 1820.6771354675293,\r
872         "y": 598.8992919921875,\r
873         "z": "fcc91756.c8d038",\r
874         "wires": []\r
875     },\r
876     {\r
877         "id": "c3d837c.d0ca2c8",\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": 1651.6771354675293,\r
884         "y": 672.8992919921875,\r
885         "z": "fcc91756.c8d038",\r
886         "wires": [\r
887             [\r
888                 "224d6e37.21354a"\r
889             ]\r
890         ]\r
891     },\r
892     {\r
893         "id": "224d6e37.21354a",\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": 1835.6771354675293,\r
900         "y": 674.8992919921875,\r
901         "z": "fcc91756.c8d038",\r
902         "wires": [\r
903             [\r
904                 "622b9c10.ebdeac"\r
905             ]\r
906         ]\r
907     },\r
908     {\r
909         "id": "622b9c10.ebdeac",\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": 2114.677001953125,\r
916         "y": 672.8992919921875,\r
917         "z": "fcc91756.c8d038",\r
918         "wires": [\r
919             []\r
920         ]\r
921     },\r
922     {\r
923         "id": "67540de7.5dd14c",\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": 285.566650390625,\r
930         "y": 841.5666809082031,\r
931         "z": "fcc91756.c8d038",\r
932         "wires": [\r
933             [\r
934                 "ed11f93e.13815",\r
935                 "b9986099.553ab8",\r
936                 "eeccf78a.d71e3"\r
937             ]\r
938         ]\r
939     },\r
940     {\r
941         "id": "ed11f93e.13815",\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": 464.857177734375,\r
948         "y": 758.9285888671875,\r
949         "z": "fcc91756.c8d038",\r
950         "wires": [\r
951             [\r
952                 "40980c29.103654"\r
953             ]\r
954         ]\r
955     },\r
956     {\r
957         "id": "b9986099.553ab8",\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": 473.6070556640625,\r
964         "y": 1009.6428527832031,\r
965         "z": "fcc91756.c8d038",\r
966         "wires": [\r
967             [\r
968                 "b9906adb.aedb"\r
969             ]\r
970         ]\r
971     },\r
972     {\r
973         "id": "40980c29.103654",\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": 618.607177734375,\r
981         "y": 755.7143249511719,\r
982         "z": "fcc91756.c8d038",\r
983         "wires": [\r
984             [\r
985                 "f4759d50.5acb",\r
986                 "6300b23d.858844"\r
987             ]\r
988         ]\r
989     },\r
990     {\r
991         "id": "b9906adb.aedb",\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": 623,\r
999         "y": 1009.5,\r
1000         "z": "fcc91756.c8d038",\r
1001         "wires": [\r
1002             [\r
1003                 "ee72aef0.96b35",\r
1004                 "80047dba.a18518"\r
1005             ]\r
1006         ]\r
1007     },\r
1008     {\r
1009         "id": "eeccf78a.d71e3",\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": 576,\r
1016         "y": 1173.5,\r
1017         "z": "fcc91756.c8d038",\r
1018         "wires": [\r
1019             [\r
1020                 "a7ccb229.5cc45"\r
1021             ]\r
1022         ]\r
1023     },\r
1024     {\r
1025         "id": "a7ccb229.5cc45",\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": 738,\r
1031         "y": 1212.5,\r
1032         "z": "fcc91756.c8d038",\r
1033         "wires": []\r
1034     },\r
1035     {\r
1036         "id": "f4759d50.5acb",\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": 850.5,\r
1043         "y": 803.5,\r
1044         "z": "fcc91756.c8d038",\r
1045         "wires": [\r
1046             [\r
1047                 "418351d.550fdb",\r
1048                 "5d9de12a.c40778",\r
1049                 "4f52ba75.31f414"\r
1050             ]\r
1051         ]\r
1052     },\r
1053     {\r
1054         "id": "6300b23d.858844",\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": 810.5,\r
1060         "y": 737.5,\r
1061         "z": "fcc91756.c8d038",\r
1062         "wires": []\r
1063     },\r
1064     {\r
1065         "id": "418351d.550fdb",\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": 1089.5,\r
1072         "y": 823.5,\r
1073         "z": "fcc91756.c8d038",\r
1074         "wires": [\r
1075             [\r
1076                 "7d4b021f.b58864"\r
1077             ]\r
1078         ]\r
1079     },\r
1080     {\r
1081         "id": "7d4b021f.b58864",\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": 1258.5,\r
1088         "y": 830.5,\r
1089         "z": "fcc91756.c8d038",\r
1090         "wires": [\r
1091             []\r
1092         ]\r
1093     },\r
1094     {\r
1095         "id": "ee72aef0.96b35",\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": 787.5,\r
1101         "y": 965.5,\r
1102         "z": "fcc91756.c8d038",\r
1103         "wires": []\r
1104     },\r
1105     {\r
1106         "id": "80047dba.a18518",\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": 800.5,\r
1113         "y": 1054.5,\r
1114         "z": "fcc91756.c8d038",\r
1115         "wires": [\r
1116             [\r
1117                 "193e8ffa.2d1e68",\r
1118                 "392a4087.7340c",\r
1119                 "3b51b50f.fabfaa"\r
1120             ]\r
1121         ]\r
1122     },\r
1123     {\r
1124         "id": "193e8ffa.2d1e68",\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": 1025.5,\r
1131         "y": 1069.5,\r
1132         "z": "fcc91756.c8d038",\r
1133         "wires": [\r
1134             [\r
1135                 "7c3655cf.c7356c"\r
1136             ]\r
1137         ]\r
1138     },\r
1139     {\r
1140         "id": "7c3655cf.c7356c",\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": 1196.5,\r
1147         "y": 1070.5,\r
1148         "z": "fcc91756.c8d038",\r
1149         "wires": [\r
1150             []\r
1151         ]\r
1152     },\r
1153     {\r
1154         "id": "5d9de12a.c40778",\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": 1075.5,\r
1161         "y": 902.5,\r
1162         "z": "fcc91756.c8d038",\r
1163         "wires": [\r
1164             [\r
1165                 "44b36cb9.4f203c"\r
1166             ]\r
1167         ]\r
1168     },\r
1169     {\r
1170         "id": "392a4087.7340c",\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": 1006.5,\r
1177         "y": 1142.5,\r
1178         "z": "fcc91756.c8d038",\r
1179         "wires": [\r
1180             [\r
1181                 "568e56df.183be8"\r
1182             ]\r
1183         ]\r
1184     },\r
1185     {\r
1186         "id": "44b36cb9.4f203c",\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": 1236.5,\r
1192         "y": 907.5,\r
1193         "z": "fcc91756.c8d038",\r
1194         "wires": []\r
1195     },\r
1196     {\r
1197         "id": "4f52ba75.31f414",\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": 1066.5,\r
1204         "y": 962.5,\r
1205         "z": "fcc91756.c8d038",\r
1206         "wires": [\r
1207             [\r
1208                 "67091014.c5cb48"\r
1209             ]\r
1210         ]\r
1211     },\r
1212     {\r
1213         "id": "67091014.c5cb48",\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": 1215.5,\r
1219         "y": 964.5,\r
1220         "z": "fcc91756.c8d038",\r
1221         "wires": []\r
1222     },\r
1223     {\r
1224         "id": "568e56df.183be8",\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": 1154.5,\r
1230         "y": 1143.5,\r
1231         "z": "fcc91756.c8d038",\r
1232         "wires": []\r
1233     },\r
1234     {\r
1235         "id": "3b51b50f.fabfaa",\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": 1006.5,\r
1242         "y": 1186.5,\r
1243         "z": "fcc91756.c8d038",\r
1244         "wires": [\r
1245             [\r
1246                 "74792395.d77524"\r
1247             ]\r
1248         ]\r
1249     },\r
1250     {\r
1251         "id": "74792395.d77524",\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": 1171.5,\r
1257         "y": 1183.5,\r
1258         "z": "fcc91756.c8d038",\r
1259         "wires": []\r
1260     },\r
1261     {\r
1262         "id": "f7bc5da7.da31b",\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": 2682,\r
1269         "y": 335,\r
1270         "z": "fcc91756.c8d038",\r
1271         "wires": [\r
1272             [\r
1273                 "aa4a8663.38bb68"\r
1274             ]\r
1275         ]\r
1276     },\r
1277     {\r
1278         "id": "aa4a8663.38bb68",\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": 2864,\r
1285         "y": 336,\r
1286         "z": "fcc91756.c8d038",\r
1287         "wires": [\r
1288             [\r
1289                 "efdac693.289728"\r
1290             ]\r
1291         ]\r
1292     },\r
1293     {\r
1294         "id": "6a7f62ea.d32524",\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": 3237,\r
1301         "y": 329,\r
1302         "z": "fcc91756.c8d038",\r
1303         "wires": [\r
1304             [\r
1305                 "de962ed4.8e2558"\r
1306             ]\r
1307         ]\r
1308     },\r
1309     {\r
1310         "id": "de962ed4.8e2558",\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": 3455,\r
1318         "y": 326,\r
1319         "z": "fcc91756.c8d038",\r
1320         "wires": [\r
1321             [\r
1322                 "d31ddaea.690348",\r
1323                 "bbbca45f.8e2228",\r
1324                 "acccc325.a38838"\r
1325             ]\r
1326         ]\r
1327     },\r
1328     {\r
1329         "id": "73e20b64.41827c",\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": 3270,\r
1336         "y": 389,\r
1337         "z": "fcc91756.c8d038",\r
1338         "wires": [\r
1339             []\r
1340         ]\r
1341     },\r
1342     {\r
1343         "id": "efdac693.289728",\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": 3034,\r
1351         "y": 332,\r
1352         "z": "fcc91756.c8d038",\r
1353         "wires": [\r
1354             [\r
1355                 "6a7f62ea.d32524",\r
1356                 "73e20b64.41827c"\r
1357             ]\r
1358         ]\r
1359     },\r
1360     {\r
1361         "id": "acccc325.a38838",\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": 3614,\r
1367         "y": 266,\r
1368         "z": "fcc91756.c8d038",\r
1369         "wires": []\r
1370     },\r
1371     {\r
1372         "id": "d31ddaea.690348",\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": 3608,\r
1378         "y": 314,\r
1379         "z": "fcc91756.c8d038",\r
1380         "wires": []\r
1381     },\r
1382     {\r
1383         "id": "bbbca45f.8e2228",\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": 3685,\r
1390         "y": 361,\r
1391         "z": "fcc91756.c8d038",\r
1392         "wires": [\r
1393             [\r
1394                 "e4f22bce.03ea18",\r
1395                 "2f6da0f9.e964d8"\r
1396             ]\r
1397         ]\r
1398     },\r
1399     {\r
1400         "id": "e4f22bce.03ea18",\r
1401         "type": "outcome",\r
1402         "name": "11",\r
1403         "xml": "<outcome value='11'>\n",\r
1404         "comments": "",\r
1405         "outputs": 1,\r
1406         "x": 3911,\r
1407         "y": 330,\r
1408         "z": "fcc91756.c8d038",\r
1409         "wires": [\r
1410             [\r
1411                 "a545d36e.f0b618"\r
1412             ]\r
1413         ]\r
1414     },\r
1415     {\r
1416         "id": "2f6da0f9.e964d8",\r
1417         "type": "outcome",\r
1418         "name": "33",\r
1419         "xml": "<outcome value='33'>\n",\r
1420         "comments": "",\r
1421         "outputs": 1,\r
1422         "x": 3911,\r
1423         "y": 391,\r
1424         "z": "fcc91756.c8d038",\r
1425         "wires": [\r
1426             [\r
1427                 "d2ccc5d0.bc949"\r
1428             ]\r
1429         ]\r
1430     },\r
1431     {\r
1432         "id": "dcbdf3ee.469d4",\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": 4206,\r
1438         "y": 330,\r
1439         "z": "fcc91756.c8d038",\r
1440         "wires": []\r
1441     },\r
1442     {\r
1443         "id": "6a7bd0f0.92b65",\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": 4206,\r
1449         "y": 391,\r
1450         "z": "fcc91756.c8d038",\r
1451         "wires": []\r
1452     },\r
1453     {\r
1454         "id": "a545d36e.f0b618",\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": 4045,\r
1462         "y": 330,\r
1463         "z": "fcc91756.c8d038",\r
1464         "wires": [\r
1465             [\r
1466                 "dcbdf3ee.469d4"\r
1467             ]\r
1468         ]\r
1469     },\r
1470     {\r
1471         "id": "d2ccc5d0.bc949",\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": 4046,\r
1479         "y": 391,\r
1480         "z": "fcc91756.c8d038",\r
1481         "wires": [\r
1482             [\r
1483                 "6a7bd0f0.92b65"\r
1484             ]\r
1485         ]\r
1486     }\r
1487 ]