Updating Topology Discovery DGs to align with the latest changes of IETF TE-Topology...
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_esr-thirdparty-sdnc-discovery.json
1 [\r
2     {\r
3         "id": "66d82769.1d01a8",\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": 271,\r
11         "z": "dc90116d.356cd8",\r
12         "wires": [\r
13             [\r
14                 "ae6185fd.f9c2d8"\r
15             ]\r
16         ]\r
17     },\r
18     {\r
19         "id": "3efeb782.bfc1",\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": 351,\r
27         "z": "dc90116d.356cd8",\r
28         "wires": [\r
29             [\r
30                 "a1ab5058.aebdf"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "a1ab5058.aebdf",\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": 351,\r
43         "z": "dc90116d.356cd8",\r
44         "wires": [\r
45             [\r
46                 "fb3f26da.0ae3f8"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "22ce6fbc.3616d",\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": 311,\r
59         "z": "dc90116d.356cd8",\r
60         "wires": [\r
61             [\r
62                 "66d82769.1d01a8",\r
63                 "3efeb782.bfc1"\r
64             ]\r
65         ]\r
66     },\r
67     {\r
68         "id": "8b8fad8f.084508",\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": 182,\r
76         "z": "dc90116d.356cd8",\r
77         "wires": [\r
78             [\r
79                 "cb379294.cf5aa8",\r
80                 "43fea2be.adabc4",\r
81                 "4f03377f.b0c4c8",\r
82                 "590ac352.e76a14",\r
83                 "80b5f8f0.c85808"\r
84             ]\r
85         ]\r
86     },\r
87     {\r
88         "id": "43fea2be.adabc4",\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": 103.00000953674316,\r
96         "z": "dc90116d.356cd8",\r
97         "wires": [\r
98             [\r
99                 "1315a46.1a747dc",\r
100                 "5b12ff34.641e88"\r
101             ]\r
102         ]\r
103     },\r
104     {\r
105         "id": "1315a46.1a747dc",\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": 95,\r
113         "z": "dc90116d.356cd8",\r
114         "wires": [\r
115             [\r
116                 "396d79e7.1bf7ce"\r
117             ]\r
118         ]\r
119     },\r
120     {\r
121         "id": "5b12ff34.641e88",\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": 135,\r
129         "z": "dc90116d.356cd8",\r
130         "wires": [\r
131             [\r
132                 "20884b0c.6135fc"\r
133             ]\r
134         ]\r
135     },\r
136     {\r
137         "id": "396d79e7.1bf7ce",\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": 95,\r
144         "z": "dc90116d.356cd8",\r
145         "wires": []\r
146     },\r
147     {\r
148         "id": "794a42a5.7ff634",\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": 215,\r
156         "z": "dc90116d.356cd8",\r
157         "wires": [\r
158             [\r
159                 "38377ff8.a67d2",\r
160                 "b0153eb4.a0abb"\r
161             ]\r
162         ]\r
163     },\r
164     {\r
165         "id": "38377ff8.a67d2",\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": 235,\r
173         "z": "dc90116d.356cd8",\r
174         "wires": [\r
175             [\r
176                 "1c21d3a8.a908bc"\r
177             ]\r
178         ]\r
179     },\r
180     {\r
181         "id": "1c21d3a8.a908bc",\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": 235,\r
190         "z": "dc90116d.356cd8",\r
191         "wires": [\r
192             [\r
193                 "6ecea195.591998",\r
194                 "10fd3c36.34f02c"\r
195             ]\r
196         ]\r
197     },\r
198     {\r
199         "id": "e2c46cc9.208aa",\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": 135,\r
206         "z": "dc90116d.356cd8",\r
207         "wires": []\r
208     },\r
209     {\r
210         "id": "b0153eb4.a0abb",\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": 135,\r
218         "z": "dc90116d.356cd8",\r
219         "wires": [\r
220             [\r
221                 "e2c46cc9.208aa"\r
222             ]\r
223         ]\r
224     },\r
225     {\r
226         "id": "8bce8e2f.0d81e8",\r
227         "type": "dgstart",\r
228         "name": "DGSTART",\r
229         "outputs": 1,\r
230         "x": 192,\r
231         "y": 46,\r
232         "z": "dc90116d.356cd8",\r
233         "wires": [\r
234             [\r
235                 "75e87f6c.a6d9e"\r
236             ]\r
237         ]\r
238     },\r
239     {\r
240         "id": "75e87f6c.a6d9e",\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": 106,\r
250         "z": "dc90116d.356cd8",\r
251         "wires": [\r
252             [\r
253                 "11c7e938.bc92c7"\r
254             ]\r
255         ]\r
256     },\r
257     {\r
258         "id": "11c7e938.bc92c7",\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": 186,\r
266         "z": "dc90116d.356cd8",\r
267         "wires": [\r
268             [\r
269                 "e3374842.e3f818"\r
270             ]\r
271         ]\r
272     },\r
273     {\r
274         "id": "e3374842.e3f818",\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": 186,\r
283         "z": "dc90116d.356cd8",\r
284         "wires": [\r
285             [\r
286                 "f09b5855.16ea9"\r
287             ]\r
288         ]\r
289     },\r
290     {\r
291         "id": "6ecea195.591998",\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": 164,\r
299         "z": "dc90116d.356cd8",\r
300         "wires": [\r
301             [\r
302                 "6ca8b7e7.59b19"\r
303             ]\r
304         ]\r
305     },\r
306     {\r
307         "id": "6ca8b7e7.59b19",\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": 164,\r
316         "z": "dc90116d.356cd8",\r
317         "wires": [\r
318             [\r
319                 "43a0eef1.e5c518",\r
320                 "e94a8c36.a2247",\r
321                 "92aeb11c.309eb8"\r
322             ]\r
323         ]\r
324     },\r
325     {\r
326         "id": "43a0eef1.e5c518",\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": 2993.000244140625,\r
333         "y": 184,\r
334         "z": "dc90116d.356cd8",\r
335         "wires": [\r
336             []\r
337         ]\r
338     },\r
339     {\r
340         "id": "e94a8c36.a2247",\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": 2946.000244140625,\r
346         "y": 144,\r
347         "z": "dc90116d.356cd8",\r
348         "wires": []\r
349     },\r
350     {\r
351         "id": "20884b0c.6135fc",\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": 1945.000244140625,\r
359         "y": 135,\r
360         "z": "dc90116d.356cd8",\r
361         "wires": [\r
362             []\r
363         ]\r
364     },\r
365     {\r
366         "id": "62ce2665.d3bbc",\r
367         "type": "comment",\r
368         "name": "Do Nothing",\r
369         "info": "",\r
370         "comments": "",\r
371         "x": 2115.000244140625,\r
372         "y": 175,\r
373         "z": "dc90116d.356cd8",\r
374         "wires": []\r
375     },\r
376     {\r
377         "id": "c35780c2.b517a8",\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": 992,\r
384         "y": 271,\r
385         "z": "dc90116d.356cd8",\r
386         "wires": [\r
387             [\r
388                 "4be7af0d.179fe8",\r
389                 "9d611449.5dcd4",\r
390                 "88a47a49.6947f",\r
391                 "c116943.cd1a8e8"\r
392             ]\r
393         ]\r
394     },\r
395     {\r
396         "id": "ae6185fd.f9c2d8",\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": 859,\r
404         "y": 271,\r
405         "z": "dc90116d.356cd8",\r
406         "wires": [\r
407             [\r
408                 "c35780c2.b517a8"\r
409             ]\r
410         ]\r
411     },\r
412     {\r
413         "id": "4be7af0d.179fe8",\r
414         "type": "other",\r
415         "name": "WAN",\r
416         "xml": "<outcome value='WAN'>\n",\r
417         "comments": "",\r
418         "outputs": 1,\r
419         "x": 1105,\r
420         "y": 182,\r
421         "z": "dc90116d.356cd8",\r
422         "wires": [\r
423             [\r
424                 "8b8fad8f.084508"\r
425             ]\r
426         ]\r
427     },\r
428     {\r
429         "id": "9d611449.5dcd4",\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": 1134.5,\r
436         "y": 643.5001220703125,\r
437         "z": "dc90116d.356cd8",\r
438         "wires": [\r
439             [\r
440                 "8a5453eb.ab4e28"\r
441             ]\r
442         ]\r
443     },\r
444     {\r
445         "id": "8a5453eb.ab4e28",\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": 1320.75,\r
451         "y": 669.5001220703125,\r
452         "z": "dc90116d.356cd8",\r
453         "wires": []\r
454     },\r
455     {\r
456         "id": "cb379294.cf5aa8",\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": 1486.0001983642578,\r
463         "y": 63.000009536743164,\r
464         "z": "dc90116d.356cd8",\r
465         "wires": [\r
466             []\r
467         ]\r
468     },\r
469     {\r
470         "id": "4f03377f.b0c4c8",\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": 1532.5001983642578,\r
477         "y": 183.00000953674316,\r
478         "z": "dc90116d.356cd8",\r
479         "wires": [\r
480             [\r
481                 "e2260a6c.d9a708",\r
482                 "536e3c2c.29577c"\r
483             ]\r
484         ]\r
485     },\r
486     {\r
487         "id": "e2260a6c.d9a708",\r
488         "type": "other",\r
489         "name": "Null",\r
490         "xml": "<outcome value=''>\n",\r
491         "comments": "",\r
492         "outputs": 1,\r
493         "x": 1825.000244140625,\r
494         "y": 175,\r
495         "z": "dc90116d.356cd8",\r
496         "wires": [\r
497             [\r
498                 "9626e71e.38aeb8"\r
499             ]\r
500         ]\r
501     },\r
502     {\r
503         "id": "536e3c2c.29577c",\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": 1825.000244140625,\r
510         "y": 215,\r
511         "z": "dc90116d.356cd8",\r
512         "wires": [\r
513             [\r
514                 "794a42a5.7ff634"\r
515             ]\r
516         ]\r
517     },\r
518     {\r
519         "id": "9626e71e.38aeb8",\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": 2046.500244140625,\r
526         "y": 175,\r
527         "z": "dc90116d.356cd8",\r
528         "wires": [\r
529             [\r
530                 "b0153eb4.a0abb",\r
531                 "38377ff8.a67d2"\r
532             ]\r
533         ]\r
534     },\r
535     {\r
536         "id": "80b5f8f0.c85808",\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": 1529.0001983642578,\r
543         "y": 323.00000953674316,\r
544         "z": "dc90116d.356cd8",\r
545         "wires": [\r
546             []\r
547         ]\r
548     },\r
549     {\r
550         "id": "590ac352.e76a14",\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": 1489.0001983642578,\r
556         "y": 283.00000953674316,\r
557         "z": "dc90116d.356cd8",\r
558         "wires": []\r
559     },\r
560     {\r
561         "id": "50fcae42.2c2a8",\r
562         "type": "comment",\r
563         "name": "Notification subscription",\r
564         "info": "",\r
565         "comments": "",\r
566         "x": 1494.000343322754,\r
567         "y": 240.00000858306885,\r
568         "z": "dc90116d.356cd8",\r
569         "wires": []\r
570     },\r
571     {\r
572         "id": "f09b5855.16ea9",\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": 179,\r
579         "y": 311,\r
580         "z": "dc90116d.356cd8",\r
581         "wires": [\r
582             [\r
583                 "bf78bf6d.9dbf38",\r
584                 "2804a0b9.d69f28"\r
585             ]\r
586         ]\r
587     },\r
588     {\r
589         "id": "bf78bf6d.9dbf38",\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": 366,\r
596         "y": 311,\r
597         "z": "dc90116d.356cd8",\r
598         "wires": [\r
599             [\r
600                 "22ce6fbc.3616d"\r
601             ]\r
602         ]\r
603     },\r
604     {\r
605         "id": "2804a0b9.d69f28",\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": 140.00003051757812,\r
612         "y": 1067.75,\r
613         "z": "dc90116d.356cd8",\r
614         "wires": [\r
615             [\r
616                 "53ab0ac2.38d284"\r
617             ]\r
618         ]\r
619     },\r
620     {\r
621         "id": "53ab0ac2.38d284",\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": 371.75,\r
628         "y": 1084.5000610351562,\r
629         "z": "dc90116d.356cd8",\r
630         "wires": [\r
631             []\r
632         ]\r
633     },\r
634     {\r
635         "id": "88a47a49.6947f",\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": 1183,\r
642         "y": 416,\r
643         "z": "dc90116d.356cd8",\r
644         "wires": [\r
645             [\r
646                 "d5710d01.9be8f8"\r
647             ]\r
648         ]\r
649     },\r
650     {\r
651         "id": "d5710d01.9be8f8",\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": 1346,\r
658         "y": 415,\r
659         "z": "dc90116d.356cd8",\r
660         "wires": [\r
661             [\r
662                 "a039ff23.d54198"\r
663             ]\r
664         ]\r
665     },\r
666     {\r
667         "id": "a039ff23.d54198",\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": 1507,\r
674         "y": 414,\r
675         "z": "dc90116d.356cd8",\r
676         "wires": [\r
677             [\r
678                 "44a0211d.fd2598",\r
679                 "493dc7eb.c52f08"\r
680             ]\r
681         ]\r
682     },\r
683     {\r
684         "id": "493dc7eb.c52f08",\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": 1649,\r
691         "y": 490,\r
692         "z": "dc90116d.356cd8",\r
693         "wires": [\r
694             [\r
695                 "2d7698ce.b0a7a"\r
696             ]\r
697         ]\r
698     },\r
699     {\r
700         "id": "44a0211d.fd2598",\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": 1683,\r
707         "y": 411,\r
708         "z": "dc90116d.356cd8",\r
709         "wires": [\r
710             [\r
711                 "fe95a25e.cdaa98"\r
712             ]\r
713         ]\r
714     },\r
715     {\r
716         "id": "fe95a25e.cdaa98",\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": 1853,\r
722         "y": 410,\r
723         "z": "dc90116d.356cd8",\r
724         "wires": []\r
725     },\r
726     {\r
727         "id": "2d7698ce.b0a7a",\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": 1810,\r
734         "y": 489,\r
735         "z": "dc90116d.356cd8",\r
736         "wires": [\r
737             [\r
738                 "1dc691cb.358196"\r
739             ]\r
740         ]\r
741     },\r
742     {\r
743         "id": "1dc691cb.358196",\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": 1989,\r
750         "y": 489,\r
751         "z": "dc90116d.356cd8",\r
752         "wires": [\r
753             [\r
754                 "48d82ee8.688dd"\r
755             ]\r
756         ]\r
757     },\r
758     {\r
759         "id": "48d82ee8.688dd",\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": 2156,\r
767         "y": 490,\r
768         "z": "dc90116d.356cd8",\r
769         "wires": [\r
770             [\r
771                 "d5ce9061.b89e98",\r
772                 "b1436387.1231d8"\r
773             ]\r
774         ]\r
775     },\r
776     {\r
777         "id": "d5ce9061.b89e98",\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": 2315,\r
783         "y": 491,\r
784         "z": "dc90116d.356cd8",\r
785         "wires": []\r
786     },\r
787     {\r
788         "id": "b1436387.1231d8",\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": 2306,\r
795         "y": 557,\r
796         "z": "dc90116d.356cd8",\r
797         "wires": [\r
798             []\r
799         ]\r
800     },\r
801     {\r
802         "id": "c116943.cd1a8e8",\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": 1153.677324295044,\r
809         "y": 572.8993349075317,\r
810         "z": "dc90116d.356cd8",\r
811         "wires": [\r
812             [\r
813                 "9d338868.302c1"\r
814             ]\r
815         ]\r
816     },\r
817     {\r
818         "id": "9d338868.302c1",\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": 1315.6773872375488,\r
825         "y": 570.899335861206,\r
826         "z": "dc90116d.356cd8",\r
827         "wires": [\r
828             [\r
829                 "b0b285cb.6ebea"\r
830             ]\r
831         ]\r
832     },\r
833     {\r
834         "id": "b0b285cb.6ebea",\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": 1492.6771354675293,\r
841         "y": 562.8992919921875,\r
842         "z": "dc90116d.356cd8",\r
843         "wires": [\r
844             [\r
845                 "8054b37a.3900a8",\r
846                 "37099c40.484064"\r
847             ]\r
848         ]\r
849     },\r
850     {\r
851         "id": "8054b37a.3900a8",\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": 1645.6771354675293,\r
858         "y": 559.8992919921875,\r
859         "z": "dc90116d.356cd8",\r
860         "wires": [\r
861             [\r
862                 "ee854a40.fe1848"\r
863             ]\r
864         ]\r
865     },\r
866     {\r
867         "id": "ee854a40.fe1848",\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": 1820.6771354675293,\r
873         "y": 558.8992919921875,\r
874         "z": "dc90116d.356cd8",\r
875         "wires": []\r
876     },\r
877     {\r
878         "id": "37099c40.484064",\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": 1651.6771354675293,\r
885         "y": 632.8992919921875,\r
886         "z": "dc90116d.356cd8",\r
887         "wires": [\r
888             [\r
889                 "6b6e7027.f016d"\r
890             ]\r
891         ]\r
892     },\r
893     {\r
894         "id": "6b6e7027.f016d",\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": 1835.6771354675293,\r
901         "y": 634.8992919921875,\r
902         "z": "dc90116d.356cd8",\r
903         "wires": [\r
904             [\r
905                 "5444f8a5.36fed"\r
906             ]\r
907         ]\r
908     },\r
909     {\r
910         "id": "5444f8a5.36fed",\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": 2114.677001953125,\r
917         "y": 632.8992919921875,\r
918         "z": "dc90116d.356cd8",\r
919         "wires": [\r
920             []\r
921         ]\r
922     },\r
923     {\r
924         "id": "fb3f26da.0ae3f8",\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": 285.566650390625,\r
931         "y": 801.5666809082031,\r
932         "z": "dc90116d.356cd8",\r
933         "wires": [\r
934             [\r
935                 "57cb25c2.9e9be4",\r
936                 "30ce121c.bfe97e",\r
937                 "d3232a5d.18a288"\r
938             ]\r
939         ]\r
940     },\r
941     {\r
942         "id": "57cb25c2.9e9be4",\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": 464.857177734375,\r
949         "y": 718.9285888671875,\r
950         "z": "dc90116d.356cd8",\r
951         "wires": [\r
952             [\r
953                 "7a4cfe82.92d42"\r
954             ]\r
955         ]\r
956     },\r
957     {\r
958         "id": "30ce121c.bfe97e",\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": 473.6070556640625,\r
965         "y": 969.6428527832031,\r
966         "z": "dc90116d.356cd8",\r
967         "wires": [\r
968             [\r
969                 "d394227.d0cf06"\r
970             ]\r
971         ]\r
972     },\r
973     {\r
974         "id": "7a4cfe82.92d42",\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": 618.607177734375,\r
982         "y": 715.7143249511719,\r
983         "z": "dc90116d.356cd8",\r
984         "wires": [\r
985             [\r
986                 "b595413f.cfe8e8",\r
987                 "8c8fae68.b08168"\r
988             ]\r
989         ]\r
990     },\r
991     {\r
992         "id": "d394227.d0cf06",\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": 623,\r
1000         "y": 969.5,\r
1001         "z": "dc90116d.356cd8",\r
1002         "wires": [\r
1003             [\r
1004                 "6724f8a4.5cbe3",\r
1005                 "c711ca11.6e628"\r
1006             ]\r
1007         ]\r
1008     },\r
1009     {\r
1010         "id": "d3232a5d.18a288",\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": 576,\r
1017         "y": 1133.5,\r
1018         "z": "dc90116d.356cd8",\r
1019         "wires": [\r
1020             [\r
1021                 "ba5f29b3.a93ac8"\r
1022             ]\r
1023         ]\r
1024     },\r
1025     {\r
1026         "id": "ba5f29b3.a93ac8",\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": 738,\r
1032         "y": 1172.5,\r
1033         "z": "dc90116d.356cd8",\r
1034         "wires": []\r
1035     },\r
1036     {\r
1037         "id": "b595413f.cfe8e8",\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": 850.5,\r
1044         "y": 763.5,\r
1045         "z": "dc90116d.356cd8",\r
1046         "wires": [\r
1047             [\r
1048                 "74d7baba.1daacc",\r
1049                 "582fc831.36e3c",\r
1050                 "b559176c.28e268"\r
1051             ]\r
1052         ]\r
1053     },\r
1054     {\r
1055         "id": "8c8fae68.b08168",\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": 810.5,\r
1061         "y": 697.5,\r
1062         "z": "dc90116d.356cd8",\r
1063         "wires": []\r
1064     },\r
1065     {\r
1066         "id": "74d7baba.1daacc",\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": 1089.5,\r
1073         "y": 783.5,\r
1074         "z": "dc90116d.356cd8",\r
1075         "wires": [\r
1076             [\r
1077                 "c192dc38.daa8b8"\r
1078             ]\r
1079         ]\r
1080     },\r
1081     {\r
1082         "id": "c192dc38.daa8b8",\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": 1258.5,\r
1089         "y": 790.5,\r
1090         "z": "dc90116d.356cd8",\r
1091         "wires": [\r
1092             []\r
1093         ]\r
1094     },\r
1095     {\r
1096         "id": "6724f8a4.5cbe3",\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": 787.5,\r
1102         "y": 925.5,\r
1103         "z": "dc90116d.356cd8",\r
1104         "wires": []\r
1105     },\r
1106     {\r
1107         "id": "c711ca11.6e628",\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": 800.5,\r
1114         "y": 1014.5,\r
1115         "z": "dc90116d.356cd8",\r
1116         "wires": [\r
1117             [\r
1118                 "9c302232.f8804",\r
1119                 "b1ece16a.0f3c9",\r
1120                 "3da8c72e.feda78"\r
1121             ]\r
1122         ]\r
1123     },\r
1124     {\r
1125         "id": "9c302232.f8804",\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": 1025.5,\r
1132         "y": 1029.5,\r
1133         "z": "dc90116d.356cd8",\r
1134         "wires": [\r
1135             [\r
1136                 "dd99da73.f2065"\r
1137             ]\r
1138         ]\r
1139     },\r
1140     {\r
1141         "id": "dd99da73.f2065",\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": 1196.5,\r
1148         "y": 1030.5,\r
1149         "z": "dc90116d.356cd8",\r
1150         "wires": [\r
1151             []\r
1152         ]\r
1153     },\r
1154     {\r
1155         "id": "582fc831.36e3c",\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": 1075.5,\r
1162         "y": 862.5,\r
1163         "z": "dc90116d.356cd8",\r
1164         "wires": [\r
1165             [\r
1166                 "b099b128.5136c8"\r
1167             ]\r
1168         ]\r
1169     },\r
1170     {\r
1171         "id": "b1ece16a.0f3c9",\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": 1006.5,\r
1178         "y": 1102.5,\r
1179         "z": "dc90116d.356cd8",\r
1180         "wires": [\r
1181             [\r
1182                 "c581f585.410918"\r
1183             ]\r
1184         ]\r
1185     },\r
1186     {\r
1187         "id": "b099b128.5136c8",\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": 1236.5,\r
1193         "y": 867.5,\r
1194         "z": "dc90116d.356cd8",\r
1195         "wires": []\r
1196     },\r
1197     {\r
1198         "id": "b559176c.28e268",\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": 1066.5,\r
1205         "y": 922.5,\r
1206         "z": "dc90116d.356cd8",\r
1207         "wires": [\r
1208             [\r
1209                 "50ff2098.8d83d"\r
1210             ]\r
1211         ]\r
1212     },\r
1213     {\r
1214         "id": "50ff2098.8d83d",\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": 1215.5,\r
1220         "y": 924.5,\r
1221         "z": "dc90116d.356cd8",\r
1222         "wires": []\r
1223     },\r
1224     {\r
1225         "id": "c581f585.410918",\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": 1154.5,\r
1231         "y": 1103.5,\r
1232         "z": "dc90116d.356cd8",\r
1233         "wires": []\r
1234     },\r
1235     {\r
1236         "id": "3da8c72e.feda78",\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": 1006.5,\r
1243         "y": 1146.5,\r
1244         "z": "dc90116d.356cd8",\r
1245         "wires": [\r
1246             [\r
1247                 "37d6a3b7.1cca8c"\r
1248             ]\r
1249         ]\r
1250     },\r
1251     {\r
1252         "id": "37d6a3b7.1cca8c",\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": 1171.5,\r
1258         "y": 1143.5,\r
1259         "z": "dc90116d.356cd8",\r
1260         "wires": []\r
1261     },\r
1262     {\r
1263         "id": "10fd3c36.34f02c",\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": 2682,\r
1270         "y": 295,\r
1271         "z": "dc90116d.356cd8",\r
1272         "wires": [\r
1273             [\r
1274                 "fbaeb9ed.a2e628"\r
1275             ]\r
1276         ]\r
1277     },\r
1278     {\r
1279         "id": "fbaeb9ed.a2e628",\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": 2864,\r
1286         "y": 296,\r
1287         "z": "dc90116d.356cd8",\r
1288         "wires": [\r
1289             [\r
1290                 "93fe6a3d.a61a8"\r
1291             ]\r
1292         ]\r
1293     },\r
1294     {\r
1295         "id": "c8aabe3a.b7443",\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": 3237,\r
1302         "y": 289,\r
1303         "z": "dc90116d.356cd8",\r
1304         "wires": [\r
1305             [\r
1306                 "c5d07173.a82"\r
1307             ]\r
1308         ]\r
1309     },\r
1310     {\r
1311         "id": "c5d07173.a82",\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": 3455,\r
1319         "y": 286,\r
1320         "z": "dc90116d.356cd8",\r
1321         "wires": [\r
1322             [\r
1323                 "6173b924.39e6a8",\r
1324                 "a7527c77.d05fd8",\r
1325                 "17750ab4.92778d"\r
1326             ]\r
1327         ]\r
1328     },\r
1329     {\r
1330         "id": "1c54dabe.e430a5",\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": 3270,\r
1337         "y": 349,\r
1338         "z": "dc90116d.356cd8",\r
1339         "wires": [\r
1340             []\r
1341         ]\r
1342     },\r
1343     {\r
1344         "id": "93fe6a3d.a61a8",\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": 3034,\r
1352         "y": 292,\r
1353         "z": "dc90116d.356cd8",\r
1354         "wires": [\r
1355             [\r
1356                 "c8aabe3a.b7443",\r
1357                 "1c54dabe.e430a5"\r
1358             ]\r
1359         ]\r
1360     },\r
1361     {\r
1362         "id": "17750ab4.92778d",\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": 3614,\r
1368         "y": 226,\r
1369         "z": "dc90116d.356cd8",\r
1370         "wires": []\r
1371     },\r
1372     {\r
1373         "id": "6173b924.39e6a8",\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": 3608,\r
1379         "y": 274,\r
1380         "z": "dc90116d.356cd8",\r
1381         "wires": []\r
1382     },\r
1383     {\r
1384         "id": "a7527c77.d05fd8",\r
1385         "type": "switchNode",\r
1386         "name": "switch network-types with topologyId",\r
1387         "xml": "<switch test='`$network.te-topology-identifier.topology-id`'>\n",\r
1388         "comments": "",\r
1389         "outputs": 1,\r
1390         "x": 3685,\r
1391         "y": 321,\r
1392         "z": "dc90116d.356cd8",\r
1393         "wires": [\r
1394             [\r
1395                 "de52bd0e.85db08",\r
1396                 "fa3a626b.d125c8"\r
1397             ]\r
1398         ]\r
1399     },\r
1400     {\r
1401         "id": "de52bd0e.85db08",\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": 3911,\r
1408         "y": 290,\r
1409         "z": "dc90116d.356cd8",\r
1410         "wires": [\r
1411             [\r
1412                 "84c7d418.e115f8"\r
1413             ]\r
1414         ]\r
1415     },\r
1416     {\r
1417         "id": "fa3a626b.d125c8",\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": 3911,\r
1424         "y": 351,\r
1425         "z": "dc90116d.356cd8",\r
1426         "wires": [\r
1427             [\r
1428                 "caaba956.377e8"\r
1429             ]\r
1430         ]\r
1431     },\r
1432     {\r
1433         "id": "23780bd3.2604dc",\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": 4206,\r
1439         "y": 290,\r
1440         "z": "dc90116d.356cd8",\r
1441         "wires": []\r
1442     },\r
1443     {\r
1444         "id": "6f9e8e73.c1bc3",\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": 4206,\r
1450         "y": 351,\r
1451         "z": "dc90116d.356cd8",\r
1452         "wires": []\r
1453     },\r
1454     {\r
1455         "id": "84c7d418.e115f8",\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": 4045,\r
1463         "y": 290,\r
1464         "z": "dc90116d.356cd8",\r
1465         "wires": [\r
1466             [\r
1467                 "23780bd3.2604dc"\r
1468             ]\r
1469         ]\r
1470     },\r
1471     {\r
1472         "id": "caaba956.377e8",\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": 4046,\r
1480         "y": 351,\r
1481         "z": "dc90116d.356cd8",\r
1482         "wires": [\r
1483             [\r
1484                 "6f9e8e73.c1bc3"\r
1485             ]\r
1486         ]\r
1487     },\r
1488     {\r
1489         "id": "92aeb11c.309eb8",\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": 2952,\r
1495         "y": 94,\r
1496         "z": "dc90116d.356cd8",\r
1497         "wires": []\r
1498     }\r
1499 ]