NNI-based Service creation DG bug fixes (uni, l2vpn, and underlay resources).
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_update-tp-ttp-relationship.json
1 [\r
2     {\r
3         "id": "f3e0b928.e8c7e",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 128,\r
8         "y": 83,\r
9         "z": "8966128c.40fc9",\r
10         "wires": [\r
11             [\r
12                 "2b8024f5.a0b3e4"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "2b8024f5.a0b3e4",\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": 217.00003051757812,\r
26         "y": 173.88891220092773,\r
27         "z": "8966128c.40fc9",\r
28         "wires": [\r
29             [\r
30                 "e0b4218d.2d604"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "e0b4218d.2d604",\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": 253.1112518310547,\r
42         "y": 244.22223663330078,\r
43         "z": "8966128c.40fc9",\r
44         "wires": [\r
45             [\r
46                 "36afdba8.70bb5c"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "36afdba8.70bb5c",\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": 478.33343505859375,\r
59         "y": 243.77792358398438,\r
60         "z": "8966128c.40fc9",\r
61         "wires": [\r
62             [\r
63                 "63bd9611.390fd8",\r
64                 "1ed8c21a.583ede",\r
65                 "232a5f0a.159568",\r
66                 "e63ab049.15d1f"\r
67             ]\r
68         ]\r
69     },\r
70     {\r
71         "id": "1ed8c21a.583ede",\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": 710.8888549804688,\r
78         "y": 198.33331298828125,\r
79         "z": "8966128c.40fc9",\r
80         "wires": [\r
81             [\r
82                 "d25c4b67.5fdd7",\r
83                 "7e336092.2a08",\r
84                 "d912c615.382f4",\r
85                 "e1c780a1.bce018"\r
86             ]\r
87         ]\r
88     },\r
89     {\r
90         "id": "d25c4b67.5fdd7",\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": 973.111083984375,\r
96         "y": 42.22221374511719,\r
97         "z": "8966128c.40fc9",\r
98         "wires": []\r
99     },\r
100     {\r
101         "id": "68049.3760dfb7c",\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": 1215.111328125,\r
107         "y": 232.00006103515625,\r
108         "z": "8966128c.40fc9",\r
109         "wires": []\r
110     },\r
111     {\r
112         "id": "78ae2560.1cea4c",\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": 1193.000244140625,\r
118         "y": 269.111083984375,\r
119         "z": "8966128c.40fc9",\r
120         "wires": []\r
121     },\r
122     {\r
123         "id": "63bd9611.390fd8",\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": 668.9935302734375,\r
130         "y": 62.993499755859375,\r
131         "z": "8966128c.40fc9",\r
132         "wires": [\r
133             []\r
134         ]\r
135     },\r
136     {\r
137         "id": "7e336092.2a08",\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": 987,\r
143         "y": 97,\r
144         "z": "8966128c.40fc9",\r
145         "wires": []\r
146     },\r
147     {\r
148         "id": "232a5f0a.159568",\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": 666,\r
155         "y": 102,\r
156         "z": "8966128c.40fc9",\r
157         "wires": [\r
158             []\r
159         ]\r
160     },\r
161     {\r
162         "id": "5ced7489.3fd33c",\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": 1570,\r
169         "y": 629,\r
170         "z": "8966128c.40fc9",\r
171         "wires": [\r
172             [\r
173                 "c149dbcd.dbc5b",\r
174                 "a007e2e5.f8d76",\r
175                 "1e876a82.9683f5",\r
176                 "a5938665.3779c8",\r
177                 "a06a50c9.82a2f"\r
178             ]\r
179         ]\r
180     },\r
181     {\r
182         "id": "c149dbcd.dbc5b",\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": 1939,\r
188         "y": 341,\r
189         "z": "8966128c.40fc9",\r
190         "wires": []\r
191     },\r
192     {\r
193         "id": "a007e2e5.f8d76",\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": 1906.888916015625,\r
199         "y": 405.111083984375,\r
200         "z": "8966128c.40fc9",\r
201         "wires": []\r
202     },\r
203     {\r
204         "id": "b56a229e.94c8d8",\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": 1233,\r
210         "y": 309,\r
211         "z": "8966128c.40fc9",\r
212         "wires": []\r
213     },\r
214     {\r
215         "id": "91b08f38.b7b1f",\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": 1251,\r
222         "y": 358,\r
223         "z": "8966128c.40fc9",\r
224         "wires": [\r
225             [\r
226                 "2a04c22a.d38706",\r
227                 "747557f8.e08f6",\r
228                 "23d7e732.31c878",\r
229                 "7fec5669.9d797",\r
230                 "5525a122.db022"\r
231             ]\r
232         ]\r
233     },\r
234     {\r
235         "id": "2a04c22a.d38706",\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": 1545,\r
241         "y": 328,\r
242         "z": "8966128c.40fc9",\r
243         "wires": []\r
244     },\r
245     {\r
246         "id": "747557f8.e08f6",\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": 1543.888916015625,\r
252         "y": 375.7777862548828,\r
253         "z": "8966128c.40fc9",\r
254         "wires": []\r
255     },\r
256     {\r
257         "id": "1e876a82.9683f5",\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`' />\n",\r
261         "comments": "",\r
262         "x": 1931,\r
263         "y": 459,\r
264         "z": "8966128c.40fc9",\r
265         "wires": []\r
266     },\r
267     {\r
268         "id": "a5938665.3779c8",\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": 1938,\r
275         "y": 515,\r
276         "z": "8966128c.40fc9",\r
277         "wires": [\r
278             [\r
279                 "48b284bc.31f88c"\r
280             ]\r
281         ]\r
282     },\r
283     {\r
284         "id": "48b284bc.31f88c",\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": 1996,\r
291         "y": 611,\r
292         "z": "8966128c.40fc9",\r
293         "wires": [\r
294             [\r
295                 "d5168225.118b5"\r
296             ]\r
297         ]\r
298     },\r
299     {\r
300         "id": "d5168225.118b5",\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": 2314,\r
307         "y": 611,\r
308         "z": "8966128c.40fc9",\r
309         "wires": [\r
310             []\r
311         ]\r
312     },\r
313     {\r
314         "id": "679b8e41.9ed698",\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": 1210,\r
320         "y": 194.99349975585938,\r
321         "z": "8966128c.40fc9",\r
322         "wires": []\r
323     },\r
324     {\r
325         "id": "a06a50c9.82a2f",\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": 1947,\r
331         "y": 287.9934997558594,\r
332         "z": "8966128c.40fc9",\r
333         "wires": []\r
334     },\r
335     {\r
336         "id": "d912c615.382f4",\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": 577,\r
343         "y": 377,\r
344         "z": "8966128c.40fc9",\r
345         "wires": [\r
346             [\r
347                 "a5220607.a1fd88",\r
348                 "ed33421.4d77fc",\r
349                 "60e52ea8.adce88"\r
350             ]\r
351         ]\r
352     },\r
353     {\r
354         "id": "a5220607.a1fd88",\r
355         "type": "other",\r
356         "name": "Null",\r
357         "xml": "<outcome value=''>\n",\r
358         "comments": "",\r
359         "outputs": 1,\r
360         "x": 756,\r
361         "y": 329,\r
362         "z": "8966128c.40fc9",\r
363         "wires": [\r
364             [\r
365                 "f8847f3a.3586c"\r
366             ]\r
367         ]\r
368     },\r
369     {\r
370         "id": "f8847f3a.3586c",\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": 911,\r
378         "y": 329,\r
379         "z": "8966128c.40fc9",\r
380         "wires": [\r
381             []\r
382         ]\r
383     },\r
384     {\r
385         "id": "60e52ea8.adce88",\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": 766,\r
392         "y": 377,\r
393         "z": "8966128c.40fc9",\r
394         "wires": [\r
395             [\r
396                 "f8847f3a.3586c"\r
397             ]\r
398         ]\r
399     },\r
400     {\r
401         "id": "ed33421.4d77fc",\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": 755,\r
408         "y": 431,\r
409         "z": "8966128c.40fc9",\r
410         "wires": [\r
411             [\r
412                 "4137593c.5397c"\r
413             ]\r
414         ]\r
415     },\r
416     {\r
417         "id": "4137593c.5397c",\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": 963.4444580078125,\r
424         "y": 401.111083984375,\r
425         "z": "8966128c.40fc9",\r
426         "wires": [\r
427             [\r
428                 "679b8e41.9ed698",\r
429                 "68049.3760dfb7c",\r
430                 "78ae2560.1cea4c",\r
431                 "b56a229e.94c8d8",\r
432                 "91b08f38.b7b1f"\r
433             ]\r
434         ]\r
435     },\r
436     {\r
437         "id": "23d7e732.31c878",\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": 1546,\r
443         "y": 277,\r
444         "z": "8966128c.40fc9",\r
445         "wires": []\r
446     },\r
447     {\r
448         "id": "7fec5669.9d797",\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": 1143,\r
455         "y": 608,\r
456         "z": "8966128c.40fc9",\r
457         "wires": [\r
458             [\r
459                 "c2495d37.4f1a88",\r
460                 "4a7d6e3.4a2c99",\r
461                 "e5a8fd10.f52c58"\r
462             ]\r
463         ]\r
464     },\r
465     {\r
466         "id": "c2495d37.4f1a88",\r
467         "type": "other",\r
468         "name": "Null",\r
469         "xml": "<outcome value=''>\n",\r
470         "comments": "",\r
471         "outputs": 1,\r
472         "x": 1331,\r
473         "y": 494,\r
474         "z": "8966128c.40fc9",\r
475         "wires": [\r
476             [\r
477                 "50aa44cc.08445c"\r
478             ]\r
479         ]\r
480     },\r
481     {\r
482         "id": "4a7d6e3.4a2c99",\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": 1336,\r
489         "y": 569,\r
490         "z": "8966128c.40fc9",\r
491         "wires": [\r
492             [\r
493                 "50aa44cc.08445c"\r
494             ]\r
495         ]\r
496     },\r
497     {\r
498         "id": "e5a8fd10.f52c58",\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": 1333,\r
505         "y": 631,\r
506         "z": "8966128c.40fc9",\r
507         "wires": [\r
508             [\r
509                 "5ced7489.3fd33c"\r
510             ]\r
511         ]\r
512     },\r
513     {\r
514         "id": "50aa44cc.08445c",\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": 1491,\r
522         "y": 560,\r
523         "z": "8966128c.40fc9",\r
524         "wires": [\r
525             []\r
526         ]\r
527     },\r
528     {\r
529         "id": "e1c780a1.bce018",\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": 989,\r
535         "y": 153,\r
536         "z": "8966128c.40fc9",\r
537         "wires": []\r
538     },\r
539     {\r
540         "id": "e63ab049.15d1f",\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": 658,\r
546         "y": 144,\r
547         "z": "8966128c.40fc9",\r
548         "wires": []\r
549     },\r
550     {\r
551         "id": "5525a122.db022",\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": 1544,\r
557         "y": 425,\r
558         "z": "8966128c.40fc9",\r
559         "wires": []\r
560     }\r
561 ]