Cross-domain topology discovery for ACTN, bug fixing.
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_esr-thirdparty-sdnc-discovery.json
1 [\r
2     {\r
3         "id": "cd2352df.fe133",\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": 717,\r
10         "y": 280,\r
11         "z": "1620e9e3.f93e5e",\r
12         "wires": [\r
13             [\r
14                 "d7605eba.de53c8"\r
15             ]\r
16         ]\r
17     },\r
18     {\r
19         "id": "a5fb8600.92c56",\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": 717,\r
26         "y": 360,\r
27         "z": "1620e9e3.f93e5e",\r
28         "wires": [\r
29             [\r
30                 "a9fa59c4.23eb88"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "a9fa59c4.23eb88",\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": 858.5,\r
42         "y": 360,\r
43         "z": "1620e9e3.f93e5e",\r
44         "wires": [\r
45             []\r
46         ]\r
47     },\r
48     {\r
49         "id": "4266435.e82743c",\r
50         "type": "comment",\r
51         "name": "TODO: Delete topology from AAI",\r
52         "info": "",\r
53         "comments": "",\r
54         "x": 791.3335189819336,\r
55         "y": 327.96899485588074,\r
56         "z": "1620e9e3.f93e5e",\r
57         "wires": []\r
58     },\r
59     {\r
60         "id": "78227710.8145c",\r
61         "type": "switchNode",\r
62         "name": "switch aai-event-trigger",\r
63         "xml": "<switch test=\"`$data-change-notification-input.aai-event-trigger`\">\n",\r
64         "comments": "",\r
65         "outputs": 1,\r
66         "x": 547.5,\r
67         "y": 320,\r
68         "z": "1620e9e3.f93e5e",\r
69         "wires": [\r
70             [\r
71                 "cd2352df.fe133",\r
72                 "a5fb8600.92c56"\r
73             ]\r
74         ]\r
75     },\r
76     {\r
77         "id": "6a609919.dbddb",\r
78         "type": "block",\r
79         "name": "block : atomic",\r
80         "xml": "<block atomic=\"true\">",\r
81         "atomic": "true",\r
82         "outputs": 1,\r
83         "x": 1244.5,\r
84         "y": 191,\r
85         "z": "1620e9e3.f93e5e",\r
86         "wires": [\r
87             [\r
88                 "a8db8257.07cda8",\r
89                 "6c3c4f73.322ab8",\r
90                 "49ad06a0.4e0b98",\r
91                 "5d1f20b8.954bc8",\r
92                 "8b00173e.a90248"\r
93             ]\r
94         ]\r
95     },\r
96     {\r
97         "id": "6c3c4f73.322ab8",\r
98         "type": "execute",\r
99         "name": "execute RestApiCallNode Get token",\r
100         "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
101         "comments": "",\r
102         "outputs": 1,\r
103         "x": 1517.5001983642578,\r
104         "y": 112.00000953674316,\r
105         "z": "1620e9e3.f93e5e",\r
106         "wires": [\r
107             [\r
108                 "4ca383bd.7f19f4",\r
109                 "a7b25c4e.37855"\r
110             ]\r
111         ]\r
112     },\r
113     {\r
114         "id": "4ca383bd.7f19f4",\r
115         "type": "success",\r
116         "name": "success",\r
117         "xml": "<outcome value='success'>\n",\r
118         "comments": "",\r
119         "outputs": 1,\r
120         "x": 1807.000244140625,\r
121         "y": 104,\r
122         "z": "1620e9e3.f93e5e",\r
123         "wires": [\r
124             [\r
125                 "bb6558fe.165e6"\r
126             ]\r
127         ]\r
128     },\r
129     {\r
130         "id": "a7b25c4e.37855",\r
131         "type": "failure",\r
132         "name": "failure",\r
133         "xml": "<outcome value='failure'>\n",\r
134         "comments": "",\r
135         "outputs": 1,\r
136         "x": 1803.000244140625,\r
137         "y": 144,\r
138         "z": "1620e9e3.f93e5e",\r
139         "wires": [\r
140             [\r
141                 "929ec7a5.9a46b8"\r
142             ]\r
143         ]\r
144     },\r
145     {\r
146         "id": "bb6558fe.165e6",\r
147         "type": "set",\r
148         "name": "set token-id",\r
149         "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",\r
150         "comments": "",\r
151         "x": 1957.500244140625,\r
152         "y": 104,\r
153         "z": "1620e9e3.f93e5e",\r
154         "wires": []\r
155     },\r
156     {\r
157         "id": "3afa5b8a.d8b45c",\r
158         "type": "execute",\r
159         "name": "execute RestApiCallNode Get Topology",\r
160         "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
161         "comments": "",\r
162         "outputs": 1,\r
163         "x": 2024.500244140625,\r
164         "y": 224,\r
165         "z": "1620e9e3.f93e5e",\r
166         "wires": [\r
167             [\r
168                 "fe4ed86b.9ca41",\r
169                 "6e1598d4.05ae"\r
170             ]\r
171         ]\r
172     },\r
173     {\r
174         "id": "fe4ed86b.9ca41",\r
175         "type": "success",\r
176         "name": "success",\r
177         "xml": "<outcome value='success'>\n",\r
178         "comments": "",\r
179         "outputs": 1,\r
180         "x": 2267.000244140625,\r
181         "y": 244,\r
182         "z": "1620e9e3.f93e5e",\r
183         "wires": [\r
184             [\r
185                 "f8f7918f.b05da"\r
186             ]\r
187         ]\r
188     },\r
189     {\r
190         "id": "f8f7918f.b05da",\r
191         "type": "block",\r
192         "name": "block : atomic",\r
193         "xml": "<block atomic=\"true\">",\r
194         "atomic": "true",\r
195         "comments": "",\r
196         "outputs": 1,\r
197         "x": 2424.500244140625,\r
198         "y": 244,\r
199         "z": "1620e9e3.f93e5e",\r
200         "wires": [\r
201             [\r
202                 "6837c77a.4d245",\r
203                 "945331d0.def158"\r
204             ]\r
205         ]\r
206     },\r
207     {\r
208         "id": "c26cc871.32d778",\r
209         "type": "returnFailure",\r
210         "name": "return failure",\r
211         "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
212         "comments": "",\r
213         "x": 2401.000244140625,\r
214         "y": 144,\r
215         "z": "1620e9e3.f93e5e",\r
216         "wires": []\r
217     },\r
218     {\r
219         "id": "6e1598d4.05ae",\r
220         "type": "failure",\r
221         "name": "failure",\r
222         "xml": "<outcome value='failure'>\n",\r
223         "comments": "",\r
224         "outputs": 1,\r
225         "x": 2263.000244140625,\r
226         "y": 144,\r
227         "z": "1620e9e3.f93e5e",\r
228         "wires": [\r
229             [\r
230                 "c26cc871.32d778"\r
231             ]\r
232         ]\r
233     },\r
234     {\r
235         "id": "74011233.c1b04c",\r
236         "type": "dgstart",\r
237         "name": "DGSTART",\r
238         "outputs": 1,\r
239         "x": 170,\r
240         "y": 55,\r
241         "z": "1620e9e3.f93e5e",\r
242         "wires": [\r
243             [\r
244                 "7dcd2a77.b03e04"\r
245             ]\r
246         ]\r
247     },\r
248     {\r
249         "id": "7dcd2a77.b03e04",\r
250         "type": "service-logic",\r
251         "name": "DataChange ${project.version}",\r
252         "module": "DataChange",\r
253         "version": "${project.version}",\r
254         "comments": "",\r
255         "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
256         "outputs": 1,\r
257         "x": 183,\r
258         "y": 115,\r
259         "z": "1620e9e3.f93e5e",\r
260         "wires": [\r
261             [\r
262                 "e046753f.a8811"\r
263             ]\r
264         ]\r
265     },\r
266     {\r
267         "id": "e046753f.a8811",\r
268         "type": "method",\r
269         "name": "method esr-thirdparty-sdnc-discovery",\r
270         "xml": "<method rpc='esr-thirdparty-sdnc-discovery' mode='sync'>\n",\r
271         "comments": "",\r
272         "outputs": 1,\r
273         "x": 203,\r
274         "y": 195,\r
275         "z": "1620e9e3.f93e5e",\r
276         "wires": [\r
277             [\r
278                 "a7955eaa.8ebd"\r
279             ]\r
280         ]\r
281     },\r
282     {\r
283         "id": "a7955eaa.8ebd",\r
284         "type": "block",\r
285         "name": "block : atomic",\r
286         "xml": "<block atomic=\"true\">\n",\r
287         "atomic": "false",\r
288         "comments": "",\r
289         "outputs": 1,\r
290         "x": 450.5,\r
291         "y": 195,\r
292         "z": "1620e9e3.f93e5e",\r
293         "wires": [\r
294             [\r
295                 "cee74437.1c5038"\r
296             ]\r
297         ]\r
298     },\r
299     {\r
300         "id": "6837c77a.4d245",\r
301         "type": "for",\r
302         "name": "for each Network",\r
303         "xml": "<for index='nidx' start='0' end='`$topology.networks.network_length`' >\n",\r
304         "comments": "",\r
305         "outputs": 1,\r
306         "x": 2663.500244140625,\r
307         "y": 204,\r
308         "z": "1620e9e3.f93e5e",\r
309         "wires": [\r
310             [\r
311                 "d73b1be.693fde8"\r
312             ]\r
313         ]\r
314     },\r
315     {\r
316         "id": "d73b1be.693fde8",\r
317         "type": "block",\r
318         "name": "block",\r
319         "xml": "<block>\n",\r
320         "atomic": "false",\r
321         "comments": "",\r
322         "outputs": 1,\r
323         "x": 2840.000244140625,\r
324         "y": 199,\r
325         "z": "1620e9e3.f93e5e",\r
326         "wires": [\r
327             [\r
328                 "1071ecfb.db6683",\r
329                 "22040d8e.81ad3a"\r
330             ]\r
331         ]\r
332     },\r
333     {\r
334         "id": "1071ecfb.db6683",\r
335         "type": "call",\r
336         "name": "call update-network-to-aai",\r
337         "xml": "<call module='DataChange' rpc='update-network-to-aai' mode='sync' >\n",\r
338         "comments": "",\r
339         "outputs": 1,\r
340         "x": 3019.000244140625,\r
341         "y": 219,\r
342         "z": "1620e9e3.f93e5e",\r
343         "wires": [\r
344             []\r
345         ]\r
346     },\r
347     {\r
348         "id": "22040d8e.81ad3a",\r
349         "type": "set",\r
350         "name": "set network",\r
351         "xml": "<set>\n<parameter name='network.' value='`$topology.networks.network[$nidx].`' />\n",\r
352         "comments": "",\r
353         "x": 2974.000244140625,\r
354         "y": 179,\r
355         "z": "1620e9e3.f93e5e",\r
356         "wires": []\r
357     },\r
358     {\r
359         "id": "929ec7a5.9a46b8",\r
360         "type": "block",\r
361         "name": "block",\r
362         "xml": "<block>\n",\r
363         "atomic": "false",\r
364         "comments": "",\r
365         "outputs": 1,\r
366         "x": 1923.000244140625,\r
367         "y": 144,\r
368         "z": "1620e9e3.f93e5e",\r
369         "wires": [\r
370             []\r
371         ]\r
372     },\r
373     {\r
374         "id": "a95e321b.626b1",\r
375         "type": "comment",\r
376         "name": "Do Nothing",\r
377         "info": "",\r
378         "comments": "",\r
379         "x": 2093.000244140625,\r
380         "y": 184,\r
381         "z": "1620e9e3.f93e5e",\r
382         "wires": []\r
383     },\r
384     {\r
385         "id": "30eb5834.80e7d",\r
386         "type": "switchNode",\r
387         "name": "switch type",\r
388         "xml": "<switch test=\"`$prop.sdncRestApi.type`\">\n",\r
389         "comments": "",\r
390         "outputs": 1,\r
391         "x": 970,\r
392         "y": 280,\r
393         "z": "1620e9e3.f93e5e",\r
394         "wires": [\r
395             [\r
396                 "bad9968b.bbaf5",\r
397                 "826758bc.846648",\r
398                 "f43baf3c.399558",\r
399                 "6e19e1c4.aa4d28"\r
400             ]\r
401         ]\r
402     },\r
403     {\r
404         "id": "d7605eba.de53c8",\r
405         "type": "block",\r
406         "name": "block",\r
407         "xml": "<block>\n",\r
408         "atomic": "false",\r
409         "comments": "",\r
410         "outputs": 1,\r
411         "x": 837,\r
412         "y": 280,\r
413         "z": "1620e9e3.f93e5e",\r
414         "wires": [\r
415             [\r
416                 "30eb5834.80e7d"\r
417             ]\r
418         ]\r
419     },\r
420     {\r
421         "id": "bad9968b.bbaf5",\r
422         "type": "other",\r
423         "name": "SOTN",\r
424         "xml": "<outcome value='SOTN'>\n",\r
425         "comments": "",\r
426         "outputs": 1,\r
427         "x": 1083,\r
428         "y": 191,\r
429         "z": "1620e9e3.f93e5e",\r
430         "wires": [\r
431             [\r
432                 "6a609919.dbddb"\r
433             ]\r
434         ]\r
435     },\r
436     {\r
437         "id": "826758bc.846648",\r
438         "type": "other",\r
439         "name": "other",\r
440         "xml": "<outcome value='Other'>\n",\r
441         "comments": "",\r
442         "outputs": 1,\r
443         "x": 1085.000087738037,\r
444         "y": 740.0001106262207,\r
445         "z": "1620e9e3.f93e5e",\r
446         "wires": [\r
447             [\r
448                 "8d466c1d.2dbd88"\r
449             ]\r
450         ]\r
451     },\r
452     {\r
453         "id": "8d466c1d.2dbd88",\r
454         "type": "returnFailure",\r
455         "name": "return failure",\r
456         "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
457         "comments": "",\r
458         "x": 1235.0000610351562,\r
459         "y": 736.0000972747803,\r
460         "z": "1620e9e3.f93e5e",\r
461         "wires": []\r
462     },\r
463     {\r
464         "id": "a8db8257.07cda8",\r
465         "type": "execute",\r
466         "name": "execute Properties",\r
467         "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
468         "comments": "",\r
469         "outputs": 1,\r
470         "x": 1464.0001983642578,\r
471         "y": 72.00000953674316,\r
472         "z": "1620e9e3.f93e5e",\r
473         "wires": [\r
474             []\r
475         ]\r
476     },\r
477     {\r
478         "id": "49ad06a0.4e0b98",\r
479         "type": "switchNode",\r
480         "name": "switch prop.sdncRestApi.token_id",\r
481         "xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n",\r
482         "comments": "",\r
483         "outputs": 1,\r
484         "x": 1510.5001983642578,\r
485         "y": 192.00000953674316,\r
486         "z": "1620e9e3.f93e5e",\r
487         "wires": [\r
488             [\r
489                 "8c8153ea.0d28b8",\r
490                 "f01555ec.92788"\r
491             ]\r
492         ]\r
493     },\r
494     {\r
495         "id": "8c8153ea.0d28b8",\r
496         "type": "other",\r
497         "name": "Null",\r
498         "xml": "<outcome value=''>\n",\r
499         "comments": "",\r
500         "outputs": 1,\r
501         "x": 1803.000244140625,\r
502         "y": 184,\r
503         "z": "1620e9e3.f93e5e",\r
504         "wires": [\r
505             [\r
506                 "6e76fd4a.c154c4"\r
507             ]\r
508         ]\r
509     },\r
510     {\r
511         "id": "f01555ec.92788",\r
512         "type": "other",\r
513         "name": "other",\r
514         "xml": "<outcome value='Other'>\n",\r
515         "comments": "",\r
516         "outputs": 1,\r
517         "x": 1803.000244140625,\r
518         "y": 224,\r
519         "z": "1620e9e3.f93e5e",\r
520         "wires": [\r
521             [\r
522                 "3afa5b8a.d8b45c"\r
523             ]\r
524         ]\r
525     },\r
526     {\r
527         "id": "6e76fd4a.c154c4",\r
528         "type": "execute",\r
529         "name": "execute RestApiCallNode Get Topology",\r
530         "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
531         "comments": "",\r
532         "outputs": 1,\r
533         "x": 2024.500244140625,\r
534         "y": 184,\r
535         "z": "1620e9e3.f93e5e",\r
536         "wires": [\r
537             [\r
538                 "6e1598d4.05ae",\r
539                 "fe4ed86b.9ca41"\r
540             ]\r
541         ]\r
542     },\r
543     {\r
544         "id": "8b00173e.a90248",\r
545         "type": "execute",\r
546         "name": "execute RestconfDiscoveryNode",\r
547         "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
548         "comments": "",\r
549         "outputs": 1,\r
550         "x": 1507.0001983642578,\r
551         "y": 332.00000953674316,\r
552         "z": "1620e9e3.f93e5e",\r
553         "wires": [\r
554             []\r
555         ]\r
556     },\r
557     {\r
558         "id": "5d1f20b8.954bc8",\r
559         "type": "set",\r
560         "name": "set encoding-format",\r
561         "xml": "<set>\n<parameter name='input' value='ietf-subscribed-notifications:establish-subscription.input.' />\n<parameter name=\"`$input + 'encoding'`\" value=\"encode-json\" />",\r
562         "comments": "",\r
563         "x": 1467.0001983642578,\r
564         "y": 292.00000953674316,\r
565         "z": "1620e9e3.f93e5e",\r
566         "wires": []\r
567     },\r
568     {\r
569         "id": "720c5fa5.cf9fc8",\r
570         "type": "comment",\r
571         "name": "Notification subscription",\r
572         "info": "",\r
573         "comments": "",\r
574         "x": 1472.000343322754,\r
575         "y": 249.00000858306885,\r
576         "z": "1620e9e3.f93e5e",\r
577         "wires": []\r
578     },\r
579     {\r
580         "id": "cee74437.1c5038",\r
581         "type": "switchNode",\r
582         "name": "switch",\r
583         "xml": "<switch test=\"`$prop.sdncRestApi.vendor == 'ZTE'`\">\n",\r
584         "comments": "",\r
585         "outputs": 1,\r
586         "x": 157,\r
587         "y": 320,\r
588         "z": "1620e9e3.f93e5e",\r
589         "wires": [\r
590             [\r
591                 "68735a94.d40f5c",\r
592                 "ab95c3e8.90657"\r
593             ]\r
594         ]\r
595     },\r
596     {\r
597         "id": "68735a94.d40f5c",\r
598         "type": "outcomeFalse",\r
599         "name": "false",\r
600         "xml": "<outcome value='false'>\n",\r
601         "comments": "",\r
602         "outputs": 1,\r
603         "x": 344,\r
604         "y": 320,\r
605         "z": "1620e9e3.f93e5e",\r
606         "wires": [\r
607             [\r
608                 "78227710.8145c"\r
609             ]\r
610         ]\r
611     },\r
612     {\r
613         "id": "ab95c3e8.90657",\r
614         "type": "outcomeTrue",\r
615         "name": "true",\r
616         "xml": "<outcome value='true'>\n",\r
617         "comments": "",\r
618         "outputs": 1,\r
619         "x": 345,\r
620         "y": 445,\r
621         "z": "1620e9e3.f93e5e",\r
622         "wires": [\r
623             [\r
624                 "9bf3753b.e16a38"\r
625             ]\r
626         ]\r
627     },\r
628     {\r
629         "id": "9bf3753b.e16a38",\r
630         "type": "call",\r
631         "name": "call esr-thirdparty-sdnc-of-zte",\r
632         "xml": "<call module='DataChange' rpc='esr-thirdparty-sdnc-of-zte' mode='sync' >\n",\r
633         "comments": "",\r
634         "outputs": 1,\r
635         "x": 568,\r
636         "y": 445,\r
637         "z": "1620e9e3.f93e5e",\r
638         "wires": [\r
639             []\r
640         ]\r
641     },\r
642     {\r
643         "id": "f43baf3c.399558",\r
644         "type": "other",\r
645         "name": "TAPI",\r
646         "xml": "<outcome value='TAPI'>\n",\r
647         "comments": "",\r
648         "outputs": 1,\r
649         "x": 1161,\r
650         "y": 425,\r
651         "z": "1620e9e3.f93e5e",\r
652         "wires": [\r
653             [\r
654                 "75540bd7.9ba5f4"\r
655             ]\r
656         ]\r
657     },\r
658     {\r
659         "id": "75540bd7.9ba5f4",\r
660         "type": "block",\r
661         "name": "block : atomic",\r
662         "xml": "<block atomic=\"true\">",\r
663         "atomic": "true",\r
664         "outputs": 1,\r
665         "x": 1324,\r
666         "y": 424,\r
667         "z": "1620e9e3.f93e5e",\r
668         "wires": [\r
669             [\r
670                 "a24deaa6.af3108"\r
671             ]\r
672         ]\r
673     },\r
674     {\r
675         "id": "a24deaa6.af3108",\r
676         "type": "execute",\r
677         "name": "execute",\r
678         "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
679         "comments": "",\r
680         "outputs": 1,\r
681         "x": 1485,\r
682         "y": 423,\r
683         "z": "1620e9e3.f93e5e",\r
684         "wires": [\r
685             [\r
686                 "cdd2d534.962938",\r
687                 "363290e2.c2512"\r
688             ]\r
689         ]\r
690     },\r
691     {\r
692         "id": "363290e2.c2512",\r
693         "type": "success",\r
694         "name": "success",\r
695         "xml": "<outcome value='success'>\n",\r
696         "comments": "",\r
697         "outputs": 1,\r
698         "x": 1627,\r
699         "y": 499,\r
700         "z": "1620e9e3.f93e5e",\r
701         "wires": [\r
702             [\r
703                 "91d6cda6.f47358"\r
704             ]\r
705         ]\r
706     },\r
707     {\r
708         "id": "cdd2d534.962938",\r
709         "type": "failure",\r
710         "name": "failure",\r
711         "xml": "<outcome value='failure'>\n",\r
712         "comments": "",\r
713         "outputs": 1,\r
714         "x": 1661,\r
715         "y": 420,\r
716         "z": "1620e9e3.f93e5e",\r
717         "wires": [\r
718             [\r
719                 "78d89c1.df36ce4"\r
720             ]\r
721         ]\r
722     },\r
723     {\r
724         "id": "78d89c1.df36ce4",\r
725         "type": "returnFailure",\r
726         "name": "return failure",\r
727         "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
728         "comments": "",\r
729         "x": 1831,\r
730         "y": 419,\r
731         "z": "1620e9e3.f93e5e",\r
732         "wires": []\r
733     },\r
734     {\r
735         "id": "91d6cda6.f47358",\r
736         "type": "block",\r
737         "name": "block : atomic",\r
738         "xml": "<block atomic=\"true\">",\r
739         "atomic": "true",\r
740         "outputs": 1,\r
741         "x": 1788,\r
742         "y": 498,\r
743         "z": "1620e9e3.f93e5e",\r
744         "wires": [\r
745             [\r
746                 "68a08572.6d4e94"\r
747             ]\r
748         ]\r
749     },\r
750     {\r
751         "id": "68a08572.6d4e94",\r
752         "type": "for",\r
753         "name": "for each topology",\r
754         "xml": "<for index='tidx' start='0' end=\"`$topologies.topology_length`\" >\n",\r
755         "comments": "",\r
756         "outputs": 1,\r
757         "x": 1967,\r
758         "y": 498,\r
759         "z": "1620e9e3.f93e5e",\r
760         "wires": [\r
761             [\r
762                 "e2491c10.3a12"\r
763             ]\r
764         ]\r
765     },\r
766     {\r
767         "id": "e2491c10.3a12",\r
768         "type": "block",\r
769         "name": "block",\r
770         "xml": "<block>\n",\r
771         "atomic": "false",\r
772         "comments": "",\r
773         "outputs": 1,\r
774         "x": 2134,\r
775         "y": 499,\r
776         "z": "1620e9e3.f93e5e",\r
777         "wires": [\r
778             [\r
779                 "b1c3c921.3c12a",\r
780                 "b5a39927.d40208"\r
781             ]\r
782         ]\r
783     },\r
784     {\r
785         "id": "b1c3c921.3c12a",\r
786         "type": "set",\r
787         "name": "set topology",\r
788         "xml": "<set>\n<parameter name='topology.' value='`$topologies.topology[$tidx].`' />\n",\r
789         "comments": "",\r
790         "x": 2293,\r
791         "y": 500,\r
792         "z": "1620e9e3.f93e5e",\r
793         "wires": []\r
794     },\r
795     {\r
796         "id": "b5a39927.d40208",\r
797         "type": "call",\r
798         "name": "call tapi-update-network-to-aai",\r
799         "xml": "<call module='DataChange' rpc='tapi-update-network-to-aai' mode='sync' >\n\n",\r
800         "comments": "",\r
801         "outputs": 1,\r
802         "x": 2284,\r
803         "y": 566,\r
804         "z": "1620e9e3.f93e5e",\r
805         "wires": [\r
806             []\r
807         ]\r
808     },\r
809     {\r
810         "id": "6e19e1c4.aa4d28",\r
811         "type": "outcome",\r
812         "name": "MSA",\r
813         "xml": "<outcome value='MSA'>\n",\r
814         "comments": "",\r
815         "outputs": 1,\r
816         "x": 1131.677324295044,\r
817         "y": 581.8993349075317,\r
818         "z": "1620e9e3.f93e5e",\r
819         "wires": [\r
820             [\r
821                 "4227a936.fe14d"\r
822             ]\r
823         ]\r
824     },\r
825     {\r
826         "id": "4227a936.fe14d",\r
827         "type": "block",\r
828         "name": "block : atomic",\r
829         "xml": "<block atomic=\"true\">",\r
830         "atomic": "true",\r
831         "outputs": 1,\r
832         "x": 1293.6773872375488,\r
833         "y": 579.899335861206,\r
834         "z": "1620e9e3.f93e5e",\r
835         "wires": [\r
836             [\r
837                 "f20725de.f4794"\r
838             ]\r
839         ]\r
840     },\r
841     {\r
842         "id": "f20725de.f4794",\r
843         "type": "execute",\r
844         "name": "execute",\r
845         "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
846         "comments": "",\r
847         "outputs": 1,\r
848         "x": 1470.6771354675293,\r
849         "y": 571.8992919921875,\r
850         "z": "1620e9e3.f93e5e",\r
851         "wires": [\r
852             [\r
853                 "49b0fd8b.249e2c",\r
854                 "792d01db.8d11"\r
855             ]\r
856         ]\r
857     },\r
858     {\r
859         "id": "49b0fd8b.249e2c",\r
860         "type": "failure",\r
861         "name": "failure",\r
862         "xml": "<outcome value='failure'>\n",\r
863         "comments": "",\r
864         "outputs": 1,\r
865         "x": 1623.6771354675293,\r
866         "y": 568.8992919921875,\r
867         "z": "1620e9e3.f93e5e",\r
868         "wires": [\r
869             [\r
870                 "85d21e1a.a14be8"\r
871             ]\r
872         ]\r
873     },\r
874     {\r
875         "id": "85d21e1a.a14be8",\r
876         "type": "returnFailure",\r
877         "name": "return failure",\r
878         "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
879         "comments": "",\r
880         "x": 1798.6771354675293,\r
881         "y": 567.8992919921875,\r
882         "z": "1620e9e3.f93e5e",\r
883         "wires": []\r
884     },\r
885     {\r
886         "id": "792d01db.8d11",\r
887         "type": "success",\r
888         "name": "success",\r
889         "xml": "<outcome value='success'>\n",\r
890         "comments": "",\r
891         "outputs": 1,\r
892         "x": 1629.6771354675293,\r
893         "y": 641.8992919921875,\r
894         "z": "1620e9e3.f93e5e",\r
895         "wires": [\r
896             [\r
897                 "d5110405.aee948"\r
898             ]\r
899         ]\r
900     },\r
901     {\r
902         "id": "d5110405.aee948",\r
903         "type": "block",\r
904         "name": "block : atomic",\r
905         "xml": "<block atomic=\"true\">",\r
906         "atomic": "true",\r
907         "outputs": 1,\r
908         "x": 1813.6771354675293,\r
909         "y": 643.8992919921875,\r
910         "z": "1620e9e3.f93e5e",\r
911         "wires": [\r
912             [\r
913                 "68851b61.ef75e4"\r
914             ]\r
915         ]\r
916     },\r
917     {\r
918         "id": "68851b61.ef75e4",\r
919         "type": "call",\r
920         "name": "call msa-update-network-to-aai",\r
921         "xml": "<call module='DataChange' rpc='msa-update-network-to-aai' mode='sync' >\n\n",\r
922         "comments": "",\r
923         "outputs": 1,\r
924         "x": 2092.677001953125,\r
925         "y": 641.8992919921875,\r
926         "z": "1620e9e3.f93e5e",\r
927         "wires": [\r
928             []\r
929         ]\r
930     },\r
931     {\r
932         "id": "945331d0.def158",\r
933         "type": "switchNode",\r
934         "name": "switch network_length",\r
935         "xml": "<switch test='`$topology.networks.network_length >= 2`'>\n",\r
936         "comments": "",\r
937         "outputs": 1,\r
938         "x": 2684,\r
939         "y": 310,\r
940         "z": "1620e9e3.f93e5e",\r
941         "wires": [\r
942             [\r
943                 "901d4e1a.652118",\r
944                 "11935c8a.a490ab"\r
945             ]\r
946         ]\r
947     },\r
948     {\r
949         "id": "9c61f388.1f0838",\r
950         "type": "outcome",\r
951         "name": "2 Topologies (1 Domain)",\r
952         "xml": "<outcome value='2'>\n",\r
953         "comments": "",\r
954         "outputs": 1,\r
955         "x": 2894,\r
956         "y": 611,\r
957         "z": "1620e9e3.f93e5e",\r
958         "wires": [\r
959             []\r
960         ]\r
961     },\r
962     {\r
963         "id": "326c6d24.4336b2",\r
964         "type": "switchNode",\r
965         "name": "switch network-types[0]",\r
966         "xml": "<switch test='`$topology.networks.network[0].network-types`'>\n",\r
967         "comments": "",\r
968         "outputs": 1,\r
969         "x": 4603,\r
970         "y": 400,\r
971         "z": "1620e9e3.f93e5e",\r
972         "wires": [\r
973             [\r
974                 "709f94a4.b34cf4",\r
975                 "9cfb2d7f.448bd8"\r
976             ]\r
977         ]\r
978     },\r
979     {\r
980         "id": "709f94a4.b34cf4",\r
981         "type": "outcome",\r
982         "name": "ethernet-topology",\r
983         "xml": "<outcome value='ethernet-topology'>\n",\r
984         "comments": "",\r
985         "outputs": 1,\r
986         "x": 4819,\r
987         "y": 400,\r
988         "z": "1620e9e3.f93e5e",\r
989         "wires": [\r
990             [\r
991                 "6ad78f52.8d683"\r
992             ]\r
993         ]\r
994     },\r
995     {\r
996         "id": "6ad78f52.8d683",\r
997         "type": "switchNode",\r
998         "name": "switch network-types[1]",\r
999         "xml": "<switch test='`$topology.networks.network[1].network-types`'>\n",\r
1000         "comments": "",\r
1001         "outputs": 1,\r
1002         "x": 5044,\r
1003         "y": 400,\r
1004         "z": "1620e9e3.f93e5e",\r
1005         "wires": [\r
1006             [\r
1007                 "4e12c36c.f82d3c",\r
1008                 "17b8d1f3.652706"\r
1009             ]\r
1010         ]\r
1011     },\r
1012     {\r
1013         "id": "4e12c36c.f82d3c",\r
1014         "type": "outcome",\r
1015         "name": "otn-topology",\r
1016         "xml": "<outcome value='otn-topology'>\n",\r
1017         "comments": "",\r
1018         "outputs": 1,\r
1019         "x": 5280,\r
1020         "y": 353,\r
1021         "z": "1620e9e3.f93e5e",\r
1022         "wires": [\r
1023             [\r
1024                 "cd9d2417.06096"\r
1025             ]\r
1026         ]\r
1027     },\r
1028     {\r
1029         "id": "172a24d9.92ec93",\r
1030         "type": "call",\r
1031         "name": "call update-tp-ttp-relationship",\r
1032         "xml": "<call module='DataChange' rpc='update-tp-ttp-relationship' mode='sync' >\n",\r
1033         "comments": "",\r
1034         "outputs": 1,\r
1035         "x": 5696,\r
1036         "y": 341,\r
1037         "z": "1620e9e3.f93e5e",\r
1038         "wires": [\r
1039             []\r
1040         ]\r
1041     },\r
1042     {\r
1043         "id": "61a560e1.35c54",\r
1044         "type": "set",\r
1045         "name": "set networks",\r
1046         "xml": "<set>\n<parameter name='network-eth.' value='`$topology.networks.network[0].`' />\n<parameter name='network-otn.' value='`$topology.networks.network[1].`' />\n",\r
1047         "comments": "",\r
1048         "x": 5541,\r
1049         "y": 207,\r
1050         "z": "1620e9e3.f93e5e",\r
1051         "wires": []\r
1052     },\r
1053     {\r
1054         "id": "9cfb2d7f.448bd8",\r
1055         "type": "outcome",\r
1056         "name": "otn-topology",\r
1057         "xml": "<outcome value='otn-topology'>\n",\r
1058         "comments": "",\r
1059         "outputs": 1,\r
1060         "x": 4824,\r
1061         "y": 457,\r
1062         "z": "1620e9e3.f93e5e",\r
1063         "wires": [\r
1064             [\r
1065                 "f16b5928.2b534"\r
1066             ]\r
1067         ]\r
1068     },\r
1069     {\r
1070         "id": "cd9d2417.06096",\r
1071         "type": "block",\r
1072         "name": "block",\r
1073         "xml": "<block>\n",\r
1074         "atomic": "false",\r
1075         "comments": "",\r
1076         "outputs": 1,\r
1077         "x": 5462,\r
1078         "y": 327,\r
1079         "z": "1620e9e3.f93e5e",\r
1080         "wires": [\r
1081             [\r
1082                 "61a560e1.35c54",\r
1083                 "172a24d9.92ec93"\r
1084             ]\r
1085         ]\r
1086     },\r
1087     {\r
1088         "id": "f16b5928.2b534",\r
1089         "type": "switchNode",\r
1090         "name": "switch network-types[1]",\r
1091         "xml": "<switch test='`$topology.networks.network[1].network-types`'>\n",\r
1092         "comments": "",\r
1093         "outputs": 1,\r
1094         "x": 5043,\r
1095         "y": 459,\r
1096         "z": "1620e9e3.f93e5e",\r
1097         "wires": [\r
1098             [\r
1099                 "b02955b9.ece2c",\r
1100                 "1f0d239a.a59004"\r
1101             ]\r
1102         ]\r
1103     },\r
1104     {\r
1105         "id": "17b8d1f3.652706",\r
1106         "type": "other",\r
1107         "name": "other",\r
1108         "xml": "<outcome value='Other'>\n",\r
1109         "comments": "",\r
1110         "outputs": 1,\r
1111         "x": 5274,\r
1112         "y": 412,\r
1113         "z": "1620e9e3.f93e5e",\r
1114         "wires": [\r
1115             [\r
1116                 "d245d127.681cb"\r
1117             ]\r
1118         ]\r
1119     },\r
1120     {\r
1121         "id": "d245d127.681cb",\r
1122         "type": "returnFailure",\r
1123         "name": "return failure",\r
1124         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1125         "comments": "",\r
1126         "x": 5476,\r
1127         "y": 410,\r
1128         "z": "1620e9e3.f93e5e",\r
1129         "wires": []\r
1130     },\r
1131     {\r
1132         "id": "b02955b9.ece2c",\r
1133         "type": "outcome",\r
1134         "name": "ethernet-topology",\r
1135         "xml": "<outcome value='ethernet-topology'>\n",\r
1136         "comments": "",\r
1137         "outputs": 1,\r
1138         "x": 5266,\r
1139         "y": 473,\r
1140         "z": "1620e9e3.f93e5e",\r
1141         "wires": [\r
1142             [\r
1143                 "a776716e.08be98"\r
1144             ]\r
1145         ]\r
1146     },\r
1147     {\r
1148         "id": "b2d9af5c.6d71e8",\r
1149         "type": "set",\r
1150         "name": "set networks",\r
1151         "xml": "<set>\n<parameter name='network.eth' value='`$topology.networks.network[1].`' />\n<parameter name='network.otn' value='`$topology.networks.network[0].`' />\n",\r
1152         "comments": "",\r
1153         "x": 5682,\r
1154         "y": 454,\r
1155         "z": "1620e9e3.f93e5e",\r
1156         "wires": []\r
1157     },\r
1158     {\r
1159         "id": "1f0d239a.a59004",\r
1160         "type": "other",\r
1161         "name": "other",\r
1162         "xml": "<outcome value='Other'>\n",\r
1163         "comments": "",\r
1164         "outputs": 1,\r
1165         "x": 5225,\r
1166         "y": 534,\r
1167         "z": "1620e9e3.f93e5e",\r
1168         "wires": [\r
1169             [\r
1170                 "7a25521e.b55894"\r
1171             ]\r
1172         ]\r
1173     },\r
1174     {\r
1175         "id": "7a25521e.b55894",\r
1176         "type": "returnFailure",\r
1177         "name": "return failure",\r
1178         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1179         "comments": "",\r
1180         "x": 5370,\r
1181         "y": 541,\r
1182         "z": "1620e9e3.f93e5e",\r
1183         "wires": []\r
1184     },\r
1185     {\r
1186         "id": "a776716e.08be98",\r
1187         "type": "block",\r
1188         "name": "block",\r
1189         "xml": "<block>\n",\r
1190         "atomic": "false",\r
1191         "comments": "",\r
1192         "outputs": 1,\r
1193         "x": 5444,\r
1194         "y": 469,\r
1195         "z": "1620e9e3.f93e5e",\r
1196         "wires": [\r
1197             [\r
1198                 "b2d9af5c.6d71e8",\r
1199                 "7141defd.d7f3a8"\r
1200             ]\r
1201         ]\r
1202     },\r
1203     {\r
1204         "id": "1a8710e5.1ad6b7",\r
1205         "type": "get-resource",\r
1206         "name": "get-resource network-resources",\r
1207         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"network-resources\" \n        pfx='tmp.aai.network-resources' local-only='false' >\n\n",\r
1208         "comments": "",\r
1209         "outputs": 1,\r
1210         "x": 2504,\r
1211         "y": 784,\r
1212         "z": "1620e9e3.f93e5e",\r
1213         "wires": [\r
1214             [\r
1215                 "3a8bf069.f85ce",\r
1216                 "aebcabff.82acc",\r
1217                 "1f447726.4be529"\r
1218             ]\r
1219         ]\r
1220     },\r
1221     {\r
1222         "id": "3a8bf069.f85ce",\r
1223         "type": "success",\r
1224         "name": "success",\r
1225         "xml": "<outcome value='success'>\n",\r
1226         "comments": "",\r
1227         "outputs": 1,\r
1228         "x": 2757,\r
1229         "y": 702,\r
1230         "z": "1620e9e3.f93e5e",\r
1231         "wires": [\r
1232             [\r
1233                 "e98ead73.d60f3"\r
1234             ]\r
1235         ]\r
1236     },\r
1237     {\r
1238         "id": "aebcabff.82acc",\r
1239         "type": "not-found",\r
1240         "name": "not-found",\r
1241         "xml": "<outcome value='not-found'>\n",\r
1242         "comments": "",\r
1243         "outputs": 1,\r
1244         "x": 2760.490966796875,\r
1245         "y": 749.5740356445312,\r
1246         "z": "1620e9e3.f93e5e",\r
1247         "wires": [\r
1248             [\r
1249                 "94257a05.fc968"\r
1250             ]\r
1251         ]\r
1252     },\r
1253     {\r
1254         "id": "1f447726.4be529",\r
1255         "type": "other",\r
1256         "name": "other",\r
1257         "xml": "<outcome value='Other'>\n",\r
1258         "comments": "",\r
1259         "outputs": 1,\r
1260         "x": 2748.823974609375,\r
1261         "y": 793.9073486328125,\r
1262         "z": "1620e9e3.f93e5e",\r
1263         "wires": [\r
1264             [\r
1265                 "fe4ab328.74eee"\r
1266             ]\r
1267         ]\r
1268     },\r
1269     {\r
1270         "id": "7141defd.d7f3a8",\r
1271         "type": "call",\r
1272         "name": "call update-tp-ttp-relationship",\r
1273         "xml": "<call module='DataChange' rpc='update-tp-ttp-relationship' mode='sync' >\n",\r
1274         "comments": "",\r
1275         "outputs": 1,\r
1276         "x": 5717,\r
1277         "y": 520,\r
1278         "z": "1620e9e3.f93e5e",\r
1279         "wires": [\r
1280             []\r
1281         ]\r
1282     },\r
1283     {\r
1284         "id": "db2f1670.e36278",\r
1285         "type": "call",\r
1286         "name": "call update-open-ended-links",\r
1287         "xml": "<call module='DataChange' rpc='update-open-ended-links' mode='sync' >\n",\r
1288         "comments": "",\r
1289         "outputs": 1,\r
1290         "x": 3712,\r
1291         "y": 737,\r
1292         "z": "1620e9e3.f93e5e",\r
1293         "wires": [\r
1294             []\r
1295         ]\r
1296     },\r
1297     {\r
1298         "id": "e98ead73.d60f3",\r
1299         "type": "switchNode",\r
1300         "name": "switch network-resources_length",\r
1301         "xml": "<switch test='tmp.aai.network-resources_length'>\n",\r
1302         "comments": "",\r
1303         "outputs": 1,\r
1304         "x": 2972,\r
1305         "y": 700,\r
1306         "z": "1620e9e3.f93e5e",\r
1307         "wires": [\r
1308             [\r
1309                 "c72d2527.4f27d8"\r
1310             ]\r
1311         ]\r
1312     },\r
1313     {\r
1314         "id": "c72d2527.4f27d8",\r
1315         "type": "outcome",\r
1316         "name": "4 Topologies (2 Domains)",\r
1317         "xml": "<outcome value='4'>\n",\r
1318         "comments": "",\r
1319         "outputs": 1,\r
1320         "x": 3233,\r
1321         "y": 700,\r
1322         "z": "1620e9e3.f93e5e",\r
1323         "wires": [\r
1324             [\r
1325                 "3dcb11c5.a0564e"\r
1326             ]\r
1327         ]\r
1328     },\r
1329     {\r
1330         "id": "94257a05.fc968",\r
1331         "type": "returnFailure",\r
1332         "name": "return failure",\r
1333         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1334         "comments": "",\r
1335         "x": 2933,\r
1336         "y": 750,\r
1337         "z": "1620e9e3.f93e5e",\r
1338         "wires": []\r
1339     },\r
1340     {\r
1341         "id": "fe4ab328.74eee",\r
1342         "type": "returnFailure",\r
1343         "name": "return failure",\r
1344         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1345         "comments": "",\r
1346         "x": 2922,\r
1347         "y": 796,\r
1348         "z": "1620e9e3.f93e5e",\r
1349         "wires": []\r
1350     },\r
1351     {\r
1352         "id": "6b9df565.677604",\r
1353         "type": "for",\r
1354         "name": "for each network-resource",\r
1355         "xml": "<for index='nridx' start='0' end='`$tmp.aai.network-resources.network-resource_length`' >\n",\r
1356         "comments": "",\r
1357         "outputs": 1,\r
1358         "x": 3695,\r
1359         "y": 664,\r
1360         "z": "1620e9e3.f93e5e",\r
1361         "wires": [\r
1362             [\r
1363                 "db1ad019.66229"\r
1364             ]\r
1365         ]\r
1366     },\r
1367     {\r
1368         "id": "db1ad019.66229",\r
1369         "type": "block",\r
1370         "name": "block",\r
1371         "xml": "<block>\n",\r
1372         "atomic": "false",\r
1373         "comments": "",\r
1374         "outputs": 1,\r
1375         "x": 3924,\r
1376         "y": 690,\r
1377         "z": "1620e9e3.f93e5e",\r
1378         "wires": [\r
1379             [\r
1380                 "9c9a1adf.4a9568",\r
1381                 "df8384d1.95fc28"\r
1382             ]\r
1383         ]\r
1384     },\r
1385     {\r
1386         "id": "9c9a1adf.4a9568",\r
1387         "type": "switchNode",\r
1388         "name": "switch network-types[nridx]",\r
1389         "xml": "<switch test='`$tmp.aai.network-resources.network-resource[$nridx].network-type`'>\n",\r
1390         "comments": "",\r
1391         "outputs": 1,\r
1392         "x": 4197,\r
1393         "y": 715,\r
1394         "z": "1620e9e3.f93e5e",\r
1395         "wires": [\r
1396             [\r
1397                 "be613956.e7594"\r
1398             ]\r
1399         ]\r
1400     },\r
1401     {\r
1402         "id": "be613956.e7594",\r
1403         "type": "outcome",\r
1404         "name": "otn-topology",\r
1405         "xml": "<outcome value='otn-topology'>\n",\r
1406         "comments": "",\r
1407         "outputs": 1,\r
1408         "x": 4410,\r
1409         "y": 709,\r
1410         "z": "1620e9e3.f93e5e",\r
1411         "wires": [\r
1412             [\r
1413                 "a82463e6.b9c248"\r
1414             ]\r
1415         ]\r
1416     },\r
1417     {\r
1418         "id": "369083d8.76a43c",\r
1419         "type": "set",\r
1420         "name": "set network-resource-otn[$otnidx]",\r
1421         "xml": "<set>\n<parameter name='network-resource-otn[$otnidx].' value='`$tmp.aai.network-resources.network-resource[$nridx].`' />\n",\r
1422         "comments": "",\r
1423         "x": 4776,\r
1424         "y": 702,\r
1425         "z": "1620e9e3.f93e5e",\r
1426         "wires": []\r
1427     },\r
1428     {\r
1429         "id": "df8384d1.95fc28",\r
1430         "type": "set",\r
1431         "name": "set otnidx",\r
1432         "xml": "<set>\n<parameter name='otnidx' value='0' />\n",\r
1433         "comments": "",\r
1434         "x": 4142,\r
1435         "y": 673,\r
1436         "z": "1620e9e3.f93e5e",\r
1437         "wires": []\r
1438     },\r
1439     {\r
1440         "id": "fd786916.269048",\r
1441         "type": "set",\r
1442         "name": "set otnidx",\r
1443         "xml": "<set>\n<parameter name='otnidx' value='`$otnidx + 1`' />\n",\r
1444         "comments": "",\r
1445         "x": 4693,\r
1446         "y": 754,\r
1447         "z": "1620e9e3.f93e5e",\r
1448         "wires": []\r
1449     },\r
1450     {\r
1451         "id": "a82463e6.b9c248",\r
1452         "type": "block",\r
1453         "name": "block",\r
1454         "xml": "<block>\n",\r
1455         "atomic": "false",\r
1456         "comments": "",\r
1457         "outputs": 1,\r
1458         "x": 4556,\r
1459         "y": 722,\r
1460         "z": "1620e9e3.f93e5e",\r
1461         "wires": [\r
1462             [\r
1463                 "369083d8.76a43c",\r
1464                 "fd786916.269048"\r
1465             ]\r
1466         ]\r
1467     },\r
1468     {\r
1469         "id": "3dcb11c5.a0564e",\r
1470         "type": "block",\r
1471         "name": "block : atomic",\r
1472         "xml": "<block atomic='true'>",\r
1473         "atomic": "true",\r
1474         "comments": "",\r
1475         "outputs": 1,\r
1476         "x": 3449,\r
1477         "y": 695,\r
1478         "z": "1620e9e3.f93e5e",\r
1479         "wires": [\r
1480             [\r
1481                 "6b9df565.677604",\r
1482                 "db2f1670.e36278"\r
1483             ]\r
1484         ]\r
1485     },\r
1486     {\r
1487         "id": "901d4e1a.652118",\r
1488         "type": "outcomeTrue",\r
1489         "name": "true",\r
1490         "xml": "<outcome value='true'>\n",\r
1491         "comments": "",\r
1492         "outputs": 1,\r
1493         "x": 2866,\r
1494         "y": 311,\r
1495         "z": "1620e9e3.f93e5e",\r
1496         "wires": [\r
1497             [\r
1498                 "2165924a.476cde"\r
1499             ]\r
1500         ]\r
1501     },\r
1502     {\r
1503         "id": "11935c8a.a490ab",\r
1504         "type": "outcomeFalse",\r
1505         "name": "false",\r
1506         "xml": "<outcome value='false'>\n",\r
1507         "comments": "",\r
1508         "outputs": 1,\r
1509         "x": 2868,\r
1510         "y": 358,\r
1511         "z": "1620e9e3.f93e5e",\r
1512         "wires": [\r
1513             [\r
1514                 "94ef4628.95e6b8"\r
1515             ]\r
1516         ]\r
1517     },\r
1518     {\r
1519         "id": "94ef4628.95e6b8",\r
1520         "type": "record",\r
1521         "name": "log file",\r
1522         "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n    <parameter name=\"file\" value=\"/opt/onap/logSdncDiscovery.txt\" />\n    <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n    <parameter name=\"field2\" value=\"networks_length\" />\n    <parameter name=\"field3\" value=\"`$topology.networks.network_length`\" />\n    ",\r
1523         "comments": "",\r
1524         "outputs": 1,\r
1525         "x": 2996,\r
1526         "y": 360,\r
1527         "z": "1620e9e3.f93e5e",\r
1528         "wires": [\r
1529             []\r
1530         ]\r
1531     },\r
1532     {\r
1533         "id": "2165924a.476cde",\r
1534         "type": "for",\r
1535         "name": "for each Network",\r
1536         "xml": "<for index='netidx' start='0' end='`$topology.networks.network_length`' >\n",\r
1537         "comments": "",\r
1538         "outputs": 1,\r
1539         "x": 3039,\r
1540         "y": 310,\r
1541         "z": "1620e9e3.f93e5e",\r
1542         "wires": [\r
1543             [\r
1544                 "115276c4.acec21"\r
1545             ]\r
1546         ]\r
1547     },\r
1548     {\r
1549         "id": "115276c4.acec21",\r
1550         "type": "block",\r
1551         "name": "block",\r
1552         "xml": "<block>\n",\r
1553         "atomic": "false",\r
1554         "comments": "",\r
1555         "outputs": 1,\r
1556         "x": 3209,\r
1557         "y": 308,\r
1558         "z": "1620e9e3.f93e5e",\r
1559         "wires": [\r
1560             [\r
1561                 "2a57d05e.a0dc88",\r
1562                 "dde988af.f0e1f",\r
1563                 "ccc4b2dc.03b6",\r
1564                 "9266c042.cf422",\r
1565                 "b4168243.614878"\r
1566             ]\r
1567         ]\r
1568     },\r
1569     {\r
1570         "id": "2a57d05e.a0dc88",\r
1571         "type": "set",\r
1572         "name": "set network",\r
1573         "xml": "<set>\n<parameter name='network.' value='`$topology.networks.network[$netidx].`' />\n",\r
1574         "comments": "",\r
1575         "x": 3375,\r
1576         "y": 276,\r
1577         "z": "1620e9e3.f93e5e",\r
1578         "wires": []\r
1579     },\r
1580     {\r
1581         "id": "dde988af.f0e1f",\r
1582         "type": "switchNode",\r
1583         "name": "switch network-types with topologyId",\r
1584         "xml": "<switch test='`$network.te-topology-id`'>\n",\r
1585         "comments": "",\r
1586         "outputs": 1,\r
1587         "x": 3420,\r
1588         "y": 355,\r
1589         "z": "1620e9e3.f93e5e",\r
1590         "wires": [\r
1591             [\r
1592                 "eaf6a3f8.6275b",\r
1593                 "92b40685.e87b6"\r
1594             ]\r
1595         ]\r
1596     },\r
1597     {\r
1598         "id": "b3e974ed.02509",\r
1599         "type": "record",\r
1600         "name": "log file",\r
1601         "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n    <parameter name=\"file\" value=\"/opt/onap/logSdncDiscovery.txt\" />\n    <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n    <parameter name=\"field2\" value=\"networks_length\" />\n    <parameter name=\"field3\" value=\"`$topology.networks.network_length`\" />\n    <parameter name=\"field4\" value=\"network-type-is\" />\n    <parameter name=\"field5\" value=\"OTN\" />\n",\r
1602         "comments": "",\r
1603         "outputs": 1,\r
1604         "x": 3904,\r
1605         "y": 245,\r
1606         "z": "1620e9e3.f93e5e",\r
1607         "wires": [\r
1608             []\r
1609         ]\r
1610     },\r
1611     {\r
1612         "id": "eaf6a3f8.6275b",\r
1613         "type": "outcome",\r
1614         "name": "11",\r
1615         "xml": "<outcome value='11'>\n",\r
1616         "comments": "",\r
1617         "outputs": 1,\r
1618         "x": 3639,\r
1619         "y": 309,\r
1620         "z": "1620e9e3.f93e5e",\r
1621         "wires": [\r
1622             [\r
1623                 "7df875b.d3cf70c"\r
1624             ]\r
1625         ]\r
1626     },\r
1627     {\r
1628         "id": "92b40685.e87b6",\r
1629         "type": "outcome",\r
1630         "name": "33",\r
1631         "xml": "<outcome value='33'>\n",\r
1632         "comments": "",\r
1633         "outputs": 1,\r
1634         "x": 3639,\r
1635         "y": 370,\r
1636         "z": "1620e9e3.f93e5e",\r
1637         "wires": [\r
1638             [\r
1639                 "16aa4525.8ff0c3"\r
1640             ]\r
1641         ]\r
1642     },\r
1643     {\r
1644         "id": "d246fb34.c2a69",\r
1645         "type": "record",\r
1646         "name": "log file",\r
1647         "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n    <parameter name=\"file\" value=\"/opt/onap/logSdncDiscovery.txt\" />\n    <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n    <parameter name=\"field2\" value=\"networks_length\" />\n    <parameter name=\"field3\" value=\"`$topology.networks.network_length`\" />\n    <parameter name=\"field4\" value=\"network-type-is\" />\n    <parameter name=\"field5\" value=\"ETH\" />\n",\r
1648         "comments": "",\r
1649         "outputs": 1,\r
1650         "x": 3898,\r
1651         "y": 370,\r
1652         "z": "1620e9e3.f93e5e",\r
1653         "wires": [\r
1654             []\r
1655         ]\r
1656     },\r
1657     {\r
1658         "id": "50aa8e02.3ace68",\r
1659         "type": "set",\r
1660         "name": "set network-otn",\r
1661         "xml": "<set>\n<parameter name='network-otn.' value='`$topology.networks.network[$netidx].`' />\n",\r
1662         "comments": "",\r
1663         "x": 3934,\r
1664         "y": 315,\r
1665         "z": "1620e9e3.f93e5e",\r
1666         "wires": []\r
1667     },\r
1668     {\r
1669         "id": "1ffaf146.64fab7",\r
1670         "type": "set",\r
1671         "name": "set networks",\r
1672         "xml": "<set>\n<parameter name='network-eth.' value='`$topology.networks.network[$netidx].`' />\n",\r
1673         "comments": "",\r
1674         "x": 3916,\r
1675         "y": 409,\r
1676         "z": "1620e9e3.f93e5e",\r
1677         "wires": []\r
1678     },\r
1679     {\r
1680         "id": "ccc4b2dc.03b6",\r
1681         "type": "set",\r
1682         "name": "unset network",\r
1683         "xml": "<set>\n<parameter name='network.' value='' />\n",\r
1684         "comments": "",\r
1685         "x": 3369,\r
1686         "y": 222,\r
1687         "z": "1620e9e3.f93e5e",\r
1688         "wires": []\r
1689     },\r
1690     {\r
1691         "id": "9266c042.cf422",\r
1692         "type": "record",\r
1693         "name": "log file",\r
1694         "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n    <parameter name=\"file\" value=\"/opt/onap/logSdncDiscovery.txt\" />\n    <parameter name=\"field6\" value=\"network-otn-is\" />\n    <parameter name=\"field7\" value=\"`$network-otn.te-topology-id`\" />\n    <parameter name=\"field8\" value=\"network-eth-is\" />\n    <parameter name=\"field9\" value=\"`$network-eth.te-topology-id`\" />\n",\r
1695         "comments": "",\r
1696         "outputs": 1,\r
1697         "x": 3340,\r
1698         "y": 480,\r
1699         "z": "1620e9e3.f93e5e",\r
1700         "wires": [\r
1701             []\r
1702         ]\r
1703     },\r
1704     {\r
1705         "id": "7df875b.d3cf70c",\r
1706         "type": "block",\r
1707         "name": "block",\r
1708         "xml": "<block>\n",\r
1709         "atomic": "false",\r
1710         "comments": "",\r
1711         "outputs": 1,\r
1712         "x": 3770,\r
1713         "y": 314,\r
1714         "z": "1620e9e3.f93e5e",\r
1715         "wires": [\r
1716             [\r
1717                 "b3e974ed.02509",\r
1718                 "50aa8e02.3ace68"\r
1719             ]\r
1720         ]\r
1721     },\r
1722     {\r
1723         "id": "16aa4525.8ff0c3",\r
1724         "type": "block",\r
1725         "name": "block",\r
1726         "xml": "<block>\n",\r
1727         "atomic": "false",\r
1728         "comments": "",\r
1729         "outputs": 1,\r
1730         "x": 3775,\r
1731         "y": 391,\r
1732         "z": "1620e9e3.f93e5e",\r
1733         "wires": [\r
1734             [\r
1735                 "d246fb34.c2a69",\r
1736                 "1ffaf146.64fab7"\r
1737             ]\r
1738         ]\r
1739     },\r
1740     {\r
1741         "id": "b4168243.614878",\r
1742         "type": "call",\r
1743         "name": "call update-tp-ttp-relationship",\r
1744         "xml": "<call module='DataChange' rpc='update-tp-ttp-relationship' mode='sync' >\n",\r
1745         "comments": "",\r
1746         "outputs": 1,\r
1747         "x": 3410,\r
1748         "y": 531,\r
1749         "z": "1620e9e3.f93e5e",\r
1750         "wires": [\r
1751             []\r
1752         ]\r
1753     }\r
1754 ]