Bug fixing in topology discovery as part of CCVPN (Cross-Layer Cross-Domain VPN)...
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_update-tp-ttp-relationship.json
1 [\r
2     {\r
3         "id": "db76d876.619d4",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 107,\r
8         "y": 76,\r
9         "z": "ffd702ea.3cd72",\r
10         "wires": [\r
11             [\r
12                 "ac7d0d8e.d68168"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "ac7d0d8e.d68168",\r
18         "type": "service-logic",\r
19         "name": "DataChange ${project.version}",\r
20         "module": "DataChange",\r
21         "version": "${project.version}",\r
22         "comments": "",\r
23         "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
24         "outputs": 1,\r
25         "x": 196.00003051757812,\r
26         "y": 166.88891220092773,\r
27         "z": "ffd702ea.3cd72",\r
28         "wires": [\r
29             [\r
30                 "15add1ed.67bb06"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "15add1ed.67bb06",\r
36         "type": "method",\r
37         "name": "method update-tp-ttp-relationship",\r
38         "xml": "<method rpc='update-tp-ttp-relationship' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 232.1112518310547,\r
42         "y": 237.22223663330078,\r
43         "z": "ffd702ea.3cd72",\r
44         "wires": [\r
45             [\r
46                 "2ef3d64c.d8633a"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "2ef3d64c.d8633a",\r
52         "type": "block",\r
53         "name": "block : atomic",\r
54         "xml": "<block atomic=\"true\">\n",\r
55         "atomic": "false",\r
56         "comments": "",\r
57         "outputs": 1,\r
58         "x": 457.33343505859375,\r
59         "y": 236.77792358398438,\r
60         "z": "ffd702ea.3cd72",\r
61         "wires": [\r
62             [\r
63                 "929780.1985e88",\r
64                 "25858afe.2b9bce",\r
65                 "e912429a.04b788"\r
66             ]\r
67         ]\r
68     },\r
69     {\r
70         "id": "25858afe.2b9bce",\r
71         "type": "for",\r
72         "name": "for each node in network-eth",\r
73         "xml": "<for index='pethidx' start='0' end='`$network-eth.node_length`' >\n",\r
74         "comments": "",\r
75         "outputs": 1,\r
76         "x": 689.8888549804688,\r
77         "y": 191.33331298828125,\r
78         "z": "ffd702ea.3cd72",\r
79         "wires": [\r
80             [\r
81                 "9ceedf0.da974a",\r
82                 "2a93e407.ae18bc",\r
83                 "e6e033d7.96653"\r
84             ]\r
85         ]\r
86     },\r
87     {\r
88         "id": "9ceedf0.da974a",\r
89         "type": "set",\r
90         "name": "set node-eth",\r
91         "xml": "<set>\n<parameter name='node-eth.' value='`$network-eth.node[$pethidx].`' />",\r
92         "comments": "",\r
93         "x": 973.111083984375,\r
94         "y": 98.22221374511719,\r
95         "z": "ffd702ea.3cd72",\r
96         "wires": []\r
97     },\r
98     {\r
99         "id": "79b02bc6.8ef74c",\r
100         "type": "set",\r
101         "name": "set termination point tp-eth",\r
102         "xml": "<set>\n<parameter name='tp-eth.' value='`$node-eth.termination-point[$tidx].`' />\n",\r
103         "comments": "",\r
104         "x": 1194.111328125,\r
105         "y": 225.00006103515625,\r
106         "z": "ffd702ea.3cd72",\r
107         "wires": []\r
108     },\r
109     {\r
110         "id": "53e75306.b60214",\r
111         "type": "set",\r
112         "name": "set unique-ltpethId",\r
113         "xml": "<set>\n<parameter name='unique-ltpethId' value=\"`$unique-node-ethId + '-ltpId-' + $tp-eth.te-tp-id`\" />\n",\r
114         "comments": "",\r
115         "x": 1172.000244140625,\r
116         "y": 262.111083984375,\r
117         "z": "ffd702ea.3cd72",\r
118         "wires": []\r
119     },\r
120     {\r
121         "id": "929780.1985e88",\r
122         "type": "execute",\r
123         "name": "execute set tmp.network-eth.network-id",\r
124         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$network-eth.network-id`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.network-eth.network-id\"/>\n    <parameter name=\"target\" value=\"/\"/>\n    <parameter name=\"replacement\" value=\"-\"/>\n    ",\r
125         "comments": "",\r
126         "outputs": 1,\r
127         "x": 647.9935302734375,\r
128         "y": 55.993499755859375,\r
129         "z": "ffd702ea.3cd72",\r
130         "wires": [\r
131             []\r
132         ]\r
133     },\r
134     {\r
135         "id": "2a93e407.ae18bc",\r
136         "type": "set",\r
137         "name": "set local variables",\r
138         "xml": "<set>\n<parameter name='unique-network-ethId' value='`$tmp.network-eth.network-id`' />\n<parameter name='unique-node-ethId' value=\"`'networkId-' + $unique-network-ethId + '-nodeId-' + $node-eth.node-id`\" />\n",\r
139         "comments": "",\r
140         "x": 972,\r
141         "y": 146,\r
142         "z": "ffd702ea.3cd72",\r
143         "wires": []\r
144     },\r
145     {\r
146         "id": "e912429a.04b788",\r
147         "type": "execute",\r
148         "name": "execute set tmp.network-otn.network-id",\r
149         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$network-otn.network-id`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.network-otn.network-id\"/>\n    <parameter name=\"target\" value=\"/\"/>\n    <parameter name=\"replacement\" value=\"-\"/>\n    ",\r
150         "comments": "",\r
151         "outputs": 1,\r
152         "x": 645,\r
153         "y": 95,\r
154         "z": "ffd702ea.3cd72",\r
155         "wires": [\r
156             []\r
157         ]\r
158     },\r
159     {\r
160         "id": "8be3e429.ccb7d",\r
161         "type": "for",\r
162         "name": "for each tunnel termination point in otn",\r
163         "xml": "<for index='ttidx' start='0' end='`$node-otn.te.tunnel-termination-point_length`' >\n",\r
164         "comments": "",\r
165         "outputs": 1,\r
166         "x": 1549,\r
167         "y": 622,\r
168         "z": "ffd702ea.3cd72",\r
169         "wires": [\r
170             [\r
171                 "f3d35e68.c9d718",\r
172                 "3ad809f1.06ba16",\r
173                 "4db37c69.2430a4",\r
174                 "ec80108a.70e1d",\r
175                 "6c3aac2e.471db4"\r
176             ]\r
177         ]\r
178     },\r
179     {\r
180         "id": "f3d35e68.c9d718",\r
181         "type": "set",\r
182         "name": "set tunnel termination point",\r
183         "xml": "<set>\n<parameter name='ttp.' value='`$node-otn.te.tunnel-termination-point[$ttidx].`' />\n",\r
184         "comments": "",\r
185         "x": 1918,\r
186         "y": 334,\r
187         "z": "ffd702ea.3cd72",\r
188         "wires": []\r
189     },\r
190     {\r
191         "id": "3ad809f1.06ba16",\r
192         "type": "set",\r
193         "name": "set unique-ttpId",\r
194         "xml": "<set>\n<parameter name='unique-ttpId' value=\"`$unique-node-otnId + '-ttpId-' + $ttp.tunnel-tp-id`\" />\n",\r
195         "comments": "",\r
196         "x": 1885.888916015625,\r
197         "y": 398.111083984375,\r
198         "z": "ffd702ea.3cd72",\r
199         "wires": []\r
200     },\r
201     {\r
202         "id": "7c6c9bf4.1268f4",\r
203         "type": "set",\r
204         "name": "set tp-inter-layer-lock-id",\r
205         "xml": "<set>\n<parameter name='tp-inter-layer-lock-id' value='`$node-eth.termination-point[$tidx].te.inter-layer-lock-id[0]`' />\n",\r
206         "comments": "",\r
207         "x": 1212,\r
208         "y": 302,\r
209         "z": "ffd702ea.3cd72",\r
210         "wires": []\r
211     },\r
212     {\r
213         "id": "38915841.38d1e",\r
214         "type": "for",\r
215         "name": "for each node in network-otn",\r
216         "xml": "<for index='potnidx' start='0' end='`$network-otn.node_length`' >\n",\r
217         "comments": "",\r
218         "outputs": 1,\r
219         "x": 1230,\r
220         "y": 351,\r
221         "z": "ffd702ea.3cd72",\r
222         "wires": [\r
223             [\r
224                 "b1b6d531.8e8428",\r
225                 "591e31d0.de7628",\r
226                 "e2cb35d4.99da",\r
227                 "32e4e342.a9f04c"\r
228             ]\r
229         ]\r
230     },\r
231     {\r
232         "id": "b1b6d531.8e8428",\r
233         "type": "set",\r
234         "name": "set node-otn",\r
235         "xml": "<set>\n<parameter name='node-otn.' value='`$network-otn.node[$potnidx].`' />",\r
236         "comments": "",\r
237         "x": 1524,\r
238         "y": 321,\r
239         "z": "ffd702ea.3cd72",\r
240         "wires": []\r
241     },\r
242     {\r
243         "id": "591e31d0.de7628",\r
244         "type": "set",\r
245         "name": "set local variables",\r
246         "xml": "<set>\n<parameter name='unique-network-otnId' value='`$tmp.network-otn.network-id`' />\n<parameter name='unique-node-otnId' value=\"`'networkId-' + $unique-network-otnId + '-nodeId-' + $node-otn.node-id`\" />\n",\r
247         "comments": "",\r
248         "x": 1522.888916015625,\r
249         "y": 368.7777862548828,\r
250         "z": "ffd702ea.3cd72",\r
251         "wires": []\r
252     },\r
253     {\r
254         "id": "4db37c69.2430a4",\r
255         "type": "set",\r
256         "name": "set ttp-inter-layer-lock-id",\r
257         "xml": "<set>\n<parameter name='ttp-inter-layer-lock-id' value='`$node-otn.te.tunnel-termination-point[$ttidx].inter-layer-lock-id`' />\n",\r
258         "comments": "",\r
259         "x": 1910,\r
260         "y": 452,\r
261         "z": "ffd702ea.3cd72",\r
262         "wires": []\r
263     },\r
264     {\r
265         "id": "ec80108a.70e1d",\r
266         "type": "switchNode",\r
267         "name": "switch tp-inter-layer-lock-id",\r
268         "xml": "<switch test='`$tp-inter-layer-lock-id`'>\n",\r
269         "comments": "",\r
270         "outputs": 1,\r
271         "x": 1917,\r
272         "y": 508,\r
273         "z": "ffd702ea.3cd72",\r
274         "wires": [\r
275             [\r
276                 "cf4f4a72.7d5168"\r
277             ]\r
278         ]\r
279     },\r
280     {\r
281         "id": "cf4f4a72.7d5168",\r
282         "type": "outcome",\r
283         "name": "ttp-inter-layer-lock-id",\r
284         "xml": "<outcome value='`$ttp-inter-layer-lock-id`'>\n",\r
285         "comments": "",\r
286         "outputs": 1,\r
287         "x": 1975,\r
288         "y": 604,\r
289         "z": "ffd702ea.3cd72",\r
290         "wires": [\r
291             [\r
292                 "3d7797fd.32b9a8"\r
293             ]\r
294         ]\r
295     },\r
296     {\r
297         "id": "3d7797fd.32b9a8",\r
298         "type": "save",\r
299         "name": "save p-interface relationship to ttp in AAI",\r
300         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface:relationship-list' \n      key='p-interface.interface-name = $unique-ltpethId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"tunnel-termination-point\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"/network/tunnel-termination-points/tunnel-termination-point/ + `$unique-ttpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"tunnel-termination-point.tunnel-tp-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-ttpId`\" />\n",\r
301         "comments": "",\r
302         "outputs": 1,\r
303         "x": 2293,\r
304         "y": 604,\r
305         "z": "ffd702ea.3cd72",\r
306         "wires": [\r
307             []\r
308         ]\r
309     },\r
310     {\r
311         "id": "b8fd2648.6f854",\r
312         "type": "set",\r
313         "name": "unset termination point tp-eth",\r
314         "xml": "<set>\n<parameter name='tp-eth.' value='' />\n",\r
315         "comments": "",\r
316         "x": 1189,\r
317         "y": 187.99349975585938,\r
318         "z": "ffd702ea.3cd72",\r
319         "wires": []\r
320     },\r
321     {\r
322         "id": "6c3aac2e.471db4",\r
323         "type": "set",\r
324         "name": "unset tunnel termination point",\r
325         "xml": "<set>\n<parameter name='ttp.' value='' />\n",\r
326         "comments": "",\r
327         "x": 1926,\r
328         "y": 280.9934997558594,\r
329         "z": "ffd702ea.3cd72",\r
330         "wires": []\r
331     },\r
332     {\r
333         "id": "e6e033d7.96653",\r
334         "type": "switchNode",\r
335         "name": "switch node-eth tp",\r
336         "xml": "<switch test='`$node-eth.termination-point_length`'>\n",\r
337         "comments": "",\r
338         "outputs": 1,\r
339         "x": 556,\r
340         "y": 370,\r
341         "z": "ffd702ea.3cd72",\r
342         "wires": [\r
343             [\r
344                 "80e4765d.fcdaa8",\r
345                 "a8cca188.f375d",\r
346                 "b96aa4a5.384fe8"\r
347             ]\r
348         ]\r
349     },\r
350     {\r
351         "id": "80e4765d.fcdaa8",\r
352         "type": "other",\r
353         "name": "Null",\r
354         "xml": "<outcome value=''>\n",\r
355         "comments": "",\r
356         "outputs": 1,\r
357         "x": 735,\r
358         "y": 322,\r
359         "z": "ffd702ea.3cd72",\r
360         "wires": [\r
361             [\r
362                 "adea3129.2af79"\r
363             ]\r
364         ]\r
365     },\r
366     {\r
367         "id": "adea3129.2af79",\r
368         "type": "block",\r
369         "name": "block",\r
370         "xml": "<block>\n",\r
371         "atomic": "false",\r
372         "comments": "",\r
373         "outputs": 1,\r
374         "x": 890,\r
375         "y": 322,\r
376         "z": "ffd702ea.3cd72",\r
377         "wires": [\r
378             []\r
379         ]\r
380     },\r
381     {\r
382         "id": "b96aa4a5.384fe8",\r
383         "type": "outcome",\r
384         "name": "length 0",\r
385         "xml": "<outcome value='0'>\n",\r
386         "comments": "",\r
387         "outputs": 1,\r
388         "x": 745,\r
389         "y": 370,\r
390         "z": "ffd702ea.3cd72",\r
391         "wires": [\r
392             [\r
393                 "adea3129.2af79"\r
394             ]\r
395         ]\r
396     },\r
397     {\r
398         "id": "a8cca188.f375d",\r
399         "type": "other",\r
400         "name": "other",\r
401         "xml": "<outcome value='Other'>\n",\r
402         "comments": "",\r
403         "outputs": 1,\r
404         "x": 734,\r
405         "y": 424,\r
406         "z": "ffd702ea.3cd72",\r
407         "wires": [\r
408             [\r
409                 "2c29c804.a15ee"\r
410             ]\r
411         ]\r
412     },\r
413     {\r
414         "id": "2c29c804.a15ee",\r
415         "type": "for",\r
416         "name": "for each termination point",\r
417         "xml": "<for index='tidx' start='0' end='`$node-eth.termination-point_length`' >\n",\r
418         "comments": "",\r
419         "outputs": 1,\r
420         "x": 942.4444580078125,\r
421         "y": 394.111083984375,\r
422         "z": "ffd702ea.3cd72",\r
423         "wires": [\r
424             [\r
425                 "b8fd2648.6f854",\r
426                 "79b02bc6.8ef74c",\r
427                 "53e75306.b60214",\r
428                 "7c6c9bf4.1268f4",\r
429                 "38915841.38d1e"\r
430             ]\r
431         ]\r
432     },\r
433     {\r
434         "id": "e2cb35d4.99da",\r
435         "type": "set",\r
436         "name": "unset node-otn",\r
437         "xml": "<set>\n<parameter name='node-otn.' value='' />\n<parameter name='unique-network-otnId' value='' />\n<parameter name='unique-node-otnId' value=\"\" />\n",\r
438         "comments": "",\r
439         "x": 1525,\r
440         "y": 270,\r
441         "z": "ffd702ea.3cd72",\r
442         "wires": []\r
443     },\r
444     {\r
445         "id": "32e4e342.a9f04c",\r
446         "type": "switchNode",\r
447         "name": "switch node-otn ttp",\r
448         "xml": "<switch test='`$node-otn.te.tunnel-termination-point_length`'>\n",\r
449         "comments": "",\r
450         "outputs": 1,\r
451         "x": 1122,\r
452         "y": 601,\r
453         "z": "ffd702ea.3cd72",\r
454         "wires": [\r
455             [\r
456                 "571c7e22.88577",\r
457                 "c4c843ca.dc868",\r
458                 "dcc7ee12.1af12"\r
459             ]\r
460         ]\r
461     },\r
462     {\r
463         "id": "571c7e22.88577",\r
464         "type": "other",\r
465         "name": "Null",\r
466         "xml": "<outcome value=''>\n",\r
467         "comments": "",\r
468         "outputs": 1,\r
469         "x": 1310,\r
470         "y": 487,\r
471         "z": "ffd702ea.3cd72",\r
472         "wires": [\r
473             [\r
474                 "3d4d0383.b594e4"\r
475             ]\r
476         ]\r
477     },\r
478     {\r
479         "id": "c4c843ca.dc868",\r
480         "type": "outcome",\r
481         "name": "length 0",\r
482         "xml": "<outcome value='0'>\n",\r
483         "comments": "",\r
484         "outputs": 1,\r
485         "x": 1315,\r
486         "y": 562,\r
487         "z": "ffd702ea.3cd72",\r
488         "wires": [\r
489             [\r
490                 "3d4d0383.b594e4"\r
491             ]\r
492         ]\r
493     },\r
494     {\r
495         "id": "dcc7ee12.1af12",\r
496         "type": "other",\r
497         "name": "other",\r
498         "xml": "<outcome value='Other'>\n",\r
499         "comments": "",\r
500         "outputs": 1,\r
501         "x": 1312,\r
502         "y": 624,\r
503         "z": "ffd702ea.3cd72",\r
504         "wires": [\r
505             [\r
506                 "8be3e429.ccb7d"\r
507             ]\r
508         ]\r
509     },\r
510     {\r
511         "id": "3d4d0383.b594e4",\r
512         "type": "block",\r
513         "name": "block",\r
514         "xml": "<block>\n",\r
515         "atomic": "false",\r
516         "comments": "",\r
517         "outputs": 1,\r
518         "x": 1470,\r
519         "y": 553,\r
520         "z": "ffd702ea.3cd72",\r
521         "wires": [\r
522             []\r
523         ]\r
524     }\r
525 ]