Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_update-tp-ttp-relationship.json
1 [\r
2     {\r
3         "id": "cba977f9.85534",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 137,\r
8         "y": 125.77778625488281,\r
9         "z": "b3282176.32be28",\r
10         "wires": [\r
11             [\r
12                 "dde6a42.304b158"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "dde6a42.304b158",\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": 226.00003051757812,\r
26         "y": 216.66669845581055,\r
27         "z": "b3282176.32be28",\r
28         "wires": [\r
29             [\r
30                 "459043f1.b44bbc"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "459043f1.b44bbc",\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": 262.1112518310547,\r
42         "y": 287.0000228881836,\r
43         "z": "b3282176.32be28",\r
44         "wires": [\r
45             [\r
46                 "186c55de.c4aa02"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "186c55de.c4aa02",\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": 487.33343505859375,\r
59         "y": 286.5557098388672,\r
60         "z": "b3282176.32be28",\r
61         "wires": [\r
62             [\r
63                 "bae21f69.72b29",\r
64                 "c754730e.915558",\r
65                 "1242acf2.9455a3",\r
66                 "f448c5cf.144de8"\r
67             ]\r
68         ]\r
69     },\r
70     {\r
71         "id": "c754730e.915558",\r
72         "type": "for",\r
73         "name": "for each node in network-eth",\r
74         "xml": "<for index='pethidx' start='0' end='`$network-eth.node_length`' >\n",\r
75         "comments": "",\r
76         "outputs": 1,\r
77         "x": 719.8888549804688,\r
78         "y": 241.11109924316406,\r
79         "z": "b3282176.32be28",\r
80         "wires": [\r
81             [\r
82                 "3d9e22e8.4c63be",\r
83                 "8255778d.4bbb18",\r
84                 "fc2531d8.c81378",\r
85                 "c794ebab.b4d2b8"\r
86             ]\r
87         ]\r
88     },\r
89     {\r
90         "id": "3d9e22e8.4c63be",\r
91         "type": "set",\r
92         "name": "set node-eth",\r
93         "xml": "<set>\n<parameter name='node-eth.' value='`$network-eth.node[$pethidx].`' />",\r
94         "comments": "",\r
95         "x": 982.111083984375,\r
96         "y": 85,\r
97         "z": "b3282176.32be28",\r
98         "wires": []\r
99     },\r
100     {\r
101         "id": "f02496e2.4d8238",\r
102         "type": "set",\r
103         "name": "set termination point tp-eth",\r
104         "xml": "<set>\n<parameter name='tp-eth.' value='`$node-eth.termination-point[$tidx].`' />\n",\r
105         "comments": "",\r
106         "x": 1224.111328125,\r
107         "y": 274.77784729003906,\r
108         "z": "b3282176.32be28",\r
109         "wires": []\r
110     },\r
111     {\r
112         "id": "3b37c604.4d197a",\r
113         "type": "set",\r
114         "name": "set unique-ltpethId",\r
115         "xml": "<set>\n<parameter name='unique-ltpethId' value=\"`$unique-node-ethId + '-ltpId-' + $tp-eth.te-tp-id`\" />\n",\r
116         "comments": "",\r
117         "x": 1202.000244140625,\r
118         "y": 311.8888702392578,\r
119         "z": "b3282176.32be28",\r
120         "wires": []\r
121     },\r
122     {\r
123         "id": "bae21f69.72b29",\r
124         "type": "execute",\r
125         "name": "execute set tmp.network-eth.network-id",\r
126         "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.original-network-eth.network-id\"/>\n    <parameter name=\"target\" value=\"/\"/>\n    <parameter name=\"replacement\" value=\"-\"/>\n    ",\r
127         "comments": "",\r
128         "outputs": 1,\r
129         "x": 677.9935302734375,\r
130         "y": 105.77128601074219,\r
131         "z": "b3282176.32be28",\r
132         "wires": [\r
133             []\r
134         ]\r
135     },\r
136     {\r
137         "id": "8255778d.4bbb18",\r
138         "type": "set",\r
139         "name": "set local variables",\r
140         "xml": "<set>\n<parameter name='unique-network-ethId' value='`$tmp.network-eth.network-id`' />\n",\r
141         "comments": "",\r
142         "x": 996,\r
143         "y": 139.7777862548828,\r
144         "z": "b3282176.32be28",\r
145         "wires": []\r
146     },\r
147     {\r
148         "id": "1242acf2.9455a3",\r
149         "type": "execute",\r
150         "name": "execute set tmp.network-otn.network-id",\r
151         "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.original-network-otn.network-id\"/>\n    <parameter name=\"target\" value=\"/\"/>\n    <parameter name=\"replacement\" value=\"-\"/>\n    ",\r
152         "comments": "",\r
153         "outputs": 1,\r
154         "x": 675,\r
155         "y": 144.7777862548828,\r
156         "z": "b3282176.32be28",\r
157         "wires": [\r
158             []\r
159         ]\r
160     },\r
161     {\r
162         "id": "a7f3a830.3d5f7",\r
163         "type": "for",\r
164         "name": "for each tunnel termination point in otn",\r
165         "xml": "<for index='ttidx' start='0' end='`$node-otn.te.tunnel-termination-point_length`' >\n",\r
166         "comments": "",\r
167         "outputs": 1,\r
168         "x": 1579,\r
169         "y": 671.7777862548828,\r
170         "z": "b3282176.32be28",\r
171         "wires": [\r
172             [\r
173                 "10ff0cec.24339b",\r
174                 "9056ce37.3f1b1",\r
175                 "52a7d8e5.f166d",\r
176                 "dbe73ecc.1015c8",\r
177                 "734513b1.8f6e74"\r
178             ]\r
179         ]\r
180     },\r
181     {\r
182         "id": "10ff0cec.24339b",\r
183         "type": "set",\r
184         "name": "set tunnel termination point",\r
185         "xml": "<set>\n<parameter name='ttp.' value='`$node-otn.te.tunnel-termination-point[$ttidx].`' />\n",\r
186         "comments": "",\r
187         "x": 1948,\r
188         "y": 383.7777862548828,\r
189         "z": "b3282176.32be28",\r
190         "wires": []\r
191     },\r
192     {\r
193         "id": "9056ce37.3f1b1",\r
194         "type": "set",\r
195         "name": "set unique-ttpId",\r
196         "xml": "<set>\n<parameter name='unique-ttpId' value=\"`$unique-node-otnId + '-ttpId-' + $ttp.tunnel-tp-id`\" />\n",\r
197         "comments": "",\r
198         "x": 1915.888916015625,\r
199         "y": 447.8888702392578,\r
200         "z": "b3282176.32be28",\r
201         "wires": []\r
202     },\r
203     {\r
204         "id": "588044e.57930bc",\r
205         "type": "set",\r
206         "name": "set tp-inter-layer-lock-id",\r
207         "xml": "<set>\n<parameter name='tp-inter-layer-lock-id' value='`$node-eth.termination-point[$tidx].te.inter-layer-lock-id[0]`' />\n",\r
208         "comments": "",\r
209         "x": 1242,\r
210         "y": 351.7777862548828,\r
211         "z": "b3282176.32be28",\r
212         "wires": []\r
213     },\r
214     {\r
215         "id": "5be60218.18e4f4",\r
216         "type": "for",\r
217         "name": "for each node in network-otn",\r
218         "xml": "<for index='potnidx' start='0' end='`$network-otn.node_length`' >\n",\r
219         "comments": "",\r
220         "outputs": 1,\r
221         "x": 1260,\r
222         "y": 400.7777862548828,\r
223         "z": "b3282176.32be28",\r
224         "wires": [\r
225             [\r
226                 "bcce7947.89d4e",\r
227                 "6a38d3e2.fd7954",\r
228                 "85e0a40f.e7ed",\r
229                 "4764cff0.412538",\r
230                 "46555423.5326e4"\r
231             ]\r
232         ]\r
233     },\r
234     {\r
235         "id": "bcce7947.89d4e",\r
236         "type": "set",\r
237         "name": "set node-otn",\r
238         "xml": "<set>\n<parameter name='node-otn.' value='`$network-otn.node[$potnidx].`' />",\r
239         "comments": "",\r
240         "x": 1554,\r
241         "y": 370.7777862548828,\r
242         "z": "b3282176.32be28",\r
243         "wires": []\r
244     },\r
245     {\r
246         "id": "6a38d3e2.fd7954",\r
247         "type": "set",\r
248         "name": "set local variables",\r
249         "xml": "<set>\n<parameter name='unique-network-otnId' value='`$tmp.network-otn.network-id`' />\n",\r
250         "comments": "",\r
251         "x": 1552.888916015625,\r
252         "y": 418.5555725097656,\r
253         "z": "b3282176.32be28",\r
254         "wires": []\r
255     },\r
256     {\r
257         "id": "52a7d8e5.f166d",\r
258         "type": "set",\r
259         "name": "set ttp-inter-layer-lock-id",\r
260         "xml": "<set>\n<parameter name='ttp-inter-layer-lock-id' value='`$node-otn.te.tunnel-termination-point[$ttidx].inter-layer-lock-id[0]`' />\n",\r
261         "comments": "",\r
262         "x": 1940,\r
263         "y": 501.7777862548828,\r
264         "z": "b3282176.32be28",\r
265         "wires": []\r
266     },\r
267     {\r
268         "id": "dbe73ecc.1015c8",\r
269         "type": "switchNode",\r
270         "name": "switch tp-inter-layer-lock-id",\r
271         "xml": "<switch test='`$tp-inter-layer-lock-id`'>\n",\r
272         "comments": "",\r
273         "outputs": 1,\r
274         "x": 1947,\r
275         "y": 557.7777862548828,\r
276         "z": "b3282176.32be28",\r
277         "wires": [\r
278             [\r
279                 "dd2d2104.bc9a18"\r
280             ]\r
281         ]\r
282     },\r
283     {\r
284         "id": "dd2d2104.bc9a18",\r
285         "type": "outcome",\r
286         "name": "ttp-inter-layer-lock-id",\r
287         "xml": "<outcome value='`$ttp-inter-layer-lock-id`'>\n",\r
288         "comments": "",\r
289         "outputs": 1,\r
290         "x": 2005,\r
291         "y": 653.7777862548828,\r
292         "z": "b3282176.32be28",\r
293         "wires": [\r
294             [\r
295                 "48fc2c75.77d024"\r
296             ]\r
297         ]\r
298     },\r
299     {\r
300         "id": "48fc2c75.77d024",\r
301         "type": "save",\r
302         "name": "save p-interface relationship to ttp in AAI",\r
303         "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
304         "comments": "",\r
305         "outputs": 1,\r
306         "x": 2323,\r
307         "y": 653.7777862548828,\r
308         "z": "b3282176.32be28",\r
309         "wires": [\r
310             []\r
311         ]\r
312     },\r
313     {\r
314         "id": "f7880100.7c4d78",\r
315         "type": "set",\r
316         "name": "unset termination point tp-eth",\r
317         "xml": "<set>\n<parameter name='tp-eth.' value='' />\n",\r
318         "comments": "",\r
319         "x": 1219,\r
320         "y": 237.7712860107422,\r
321         "z": "b3282176.32be28",\r
322         "wires": []\r
323     },\r
324     {\r
325         "id": "734513b1.8f6e74",\r
326         "type": "set",\r
327         "name": "unset tunnel termination point",\r
328         "xml": "<set>\n<parameter name='ttp.' value='' />\n",\r
329         "comments": "",\r
330         "x": 1956,\r
331         "y": 330.7712860107422,\r
332         "z": "b3282176.32be28",\r
333         "wires": []\r
334     },\r
335     {\r
336         "id": "fc2531d8.c81378",\r
337         "type": "switchNode",\r
338         "name": "switch node-eth tp",\r
339         "xml": "<switch test='`$node-eth.termination-point_length`'>\n",\r
340         "comments": "",\r
341         "outputs": 1,\r
342         "x": 586,\r
343         "y": 419.7777862548828,\r
344         "z": "b3282176.32be28",\r
345         "wires": [\r
346             [\r
347                 "601d7951.71e8b",\r
348                 "d861b589.14035",\r
349                 "7f887585.d4b524"\r
350             ]\r
351         ]\r
352     },\r
353     {\r
354         "id": "601d7951.71e8b",\r
355         "type": "other",\r
356         "name": "Null",\r
357         "xml": "<outcome value=''>\n",\r
358         "comments": "",\r
359         "outputs": 1,\r
360         "x": 765,\r
361         "y": 371.7777862548828,\r
362         "z": "b3282176.32be28",\r
363         "wires": [\r
364             [\r
365                 "7824b45e.78053c"\r
366             ]\r
367         ]\r
368     },\r
369     {\r
370         "id": "7824b45e.78053c",\r
371         "type": "block",\r
372         "name": "block",\r
373         "xml": "<block>\n",\r
374         "atomic": "false",\r
375         "comments": "",\r
376         "outputs": 1,\r
377         "x": 920,\r
378         "y": 371.7777862548828,\r
379         "z": "b3282176.32be28",\r
380         "wires": [\r
381             []\r
382         ]\r
383     },\r
384     {\r
385         "id": "7f887585.d4b524",\r
386         "type": "outcome",\r
387         "name": "length 0",\r
388         "xml": "<outcome value='0'>\n",\r
389         "comments": "",\r
390         "outputs": 1,\r
391         "x": 775,\r
392         "y": 419.7777862548828,\r
393         "z": "b3282176.32be28",\r
394         "wires": [\r
395             [\r
396                 "7824b45e.78053c"\r
397             ]\r
398         ]\r
399     },\r
400     {\r
401         "id": "d861b589.14035",\r
402         "type": "other",\r
403         "name": "other",\r
404         "xml": "<outcome value='Other'>\n",\r
405         "comments": "",\r
406         "outputs": 1,\r
407         "x": 764,\r
408         "y": 473.7777862548828,\r
409         "z": "b3282176.32be28",\r
410         "wires": [\r
411             [\r
412                 "a6890129.4d77c"\r
413             ]\r
414         ]\r
415     },\r
416     {\r
417         "id": "a6890129.4d77c",\r
418         "type": "for",\r
419         "name": "for each termination point",\r
420         "xml": "<for index='tidx' start='0' end='`$node-eth.termination-point_length`' >\n",\r
421         "comments": "",\r
422         "outputs": 1,\r
423         "x": 972.4444580078125,\r
424         "y": 443.8888702392578,\r
425         "z": "b3282176.32be28",\r
426         "wires": [\r
427             [\r
428                 "f7880100.7c4d78",\r
429                 "f02496e2.4d8238",\r
430                 "3b37c604.4d197a",\r
431                 "588044e.57930bc",\r
432                 "5be60218.18e4f4"\r
433             ]\r
434         ]\r
435     },\r
436     {\r
437         "id": "85e0a40f.e7ed",\r
438         "type": "set",\r
439         "name": "unset node-otn",\r
440         "xml": "<set>\n<parameter name='node-otn.' value='' />\n<parameter name='unique-network-otnId' value='' />\n<parameter name='unique-node-otnId' value=\"\" />\n",\r
441         "comments": "",\r
442         "x": 1555,\r
443         "y": 319.7777862548828,\r
444         "z": "b3282176.32be28",\r
445         "wires": []\r
446     },\r
447     {\r
448         "id": "4764cff0.412538",\r
449         "type": "switchNode",\r
450         "name": "switch node-otn ttp",\r
451         "xml": "<switch test='`$node-otn.te.tunnel-termination-point_length`'>\n",\r
452         "comments": "",\r
453         "outputs": 1,\r
454         "x": 1152,\r
455         "y": 650.7777862548828,\r
456         "z": "b3282176.32be28",\r
457         "wires": [\r
458             [\r
459                 "abfc6cbb.6eaee8",\r
460                 "6c6ea4d2.be42cc",\r
461                 "1f3ac3bf.46c73c"\r
462             ]\r
463         ]\r
464     },\r
465     {\r
466         "id": "abfc6cbb.6eaee8",\r
467         "type": "other",\r
468         "name": "Null",\r
469         "xml": "<outcome value=''>\n",\r
470         "comments": "",\r
471         "outputs": 1,\r
472         "x": 1340,\r
473         "y": 536.7777862548828,\r
474         "z": "b3282176.32be28",\r
475         "wires": [\r
476             [\r
477                 "ceb636f.d5bb7c8"\r
478             ]\r
479         ]\r
480     },\r
481     {\r
482         "id": "6c6ea4d2.be42cc",\r
483         "type": "outcome",\r
484         "name": "length 0",\r
485         "xml": "<outcome value='0'>\n",\r
486         "comments": "",\r
487         "outputs": 1,\r
488         "x": 1345,\r
489         "y": 611.7777862548828,\r
490         "z": "b3282176.32be28",\r
491         "wires": [\r
492             [\r
493                 "ceb636f.d5bb7c8"\r
494             ]\r
495         ]\r
496     },\r
497     {\r
498         "id": "1f3ac3bf.46c73c",\r
499         "type": "other",\r
500         "name": "other",\r
501         "xml": "<outcome value='Other'>\n",\r
502         "comments": "",\r
503         "outputs": 1,\r
504         "x": 1342,\r
505         "y": 673.7777862548828,\r
506         "z": "b3282176.32be28",\r
507         "wires": [\r
508             [\r
509                 "a7f3a830.3d5f7"\r
510             ]\r
511         ]\r
512     },\r
513     {\r
514         "id": "ceb636f.d5bb7c8",\r
515         "type": "block",\r
516         "name": "block",\r
517         "xml": "<block>\n",\r
518         "atomic": "false",\r
519         "comments": "",\r
520         "outputs": 1,\r
521         "x": 1500,\r
522         "y": 602.7777862548828,\r
523         "z": "b3282176.32be28",\r
524         "wires": [\r
525             []\r
526         ]\r
527     },\r
528     {\r
529         "id": "c794ebab.b4d2b8",\r
530         "type": "set",\r
531         "name": "set local variables",\r
532         "xml": "<set>\n<parameter name='unique-node-ethId' value=\"`'networkId-' + $unique-network-ethId + '-nodeId-' + $node-eth.node-id`\" />\n",\r
533         "comments": "",\r
534         "x": 998,\r
535         "y": 195.7777862548828,\r
536         "z": "b3282176.32be28",\r
537         "wires": []\r
538     },\r
539     {\r
540         "id": "f448c5cf.144de8",\r
541         "type": "set",\r
542         "name": "set local variables",\r
543         "xml": "<set>\n<parameter name='tmp.network-eth.network-id' value=\"`$prop.sdncRestApi.thirdpartySdnc.id + '-' + $tmp.original-network-eth.network-id`\" />\n<parameter name='tmp.network-otn.network-id' value=\"`$prop.sdncRestApi.thirdpartySdnc.id + '-' + $tmp.original-network-otn.network-id`\" />\n\n",\r
544         "comments": "",\r
545         "x": 667,\r
546         "y": 186.7777862548828,\r
547         "z": "b3282176.32be28",\r
548         "wires": []\r
549     },\r
550     {\r
551         "id": "46555423.5326e4",\r
552         "type": "set",\r
553         "name": "set local variables",\r
554         "xml": "<set>\n<parameter name='unique-node-otnId' value=\"`'networkId-' + $unique-network-otnId + '-nodeId-' + $node-otn.node-id`\" />\n",\r
555         "comments": "",\r
556         "x": 1553,\r
557         "y": 467.7777862548828,\r
558         "z": "b3282176.32be28",\r
559         "wires": []\r
560     }\r
561 ]