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-network-to-aai.json
1 [\r
2     {\r
3         "id": "ef88be3f.517f78",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 105,\r
8         "y": 67,\r
9         "z": "6d6b8a1f.be1cb4",\r
10         "wires": [\r
11             [\r
12                 "74a7a837.229be"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "74a7a837.229be",\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": 194.00003051757812,\r
26         "y": 157.88891220092773,\r
27         "z": "6d6b8a1f.be1cb4",\r
28         "wires": [\r
29             [\r
30                 "284dae72.737532"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "284dae72.737532",\r
36         "type": "method",\r
37         "name": "update-network-to-aai",\r
38         "xml": "<method rpc='update-network-to-aai' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 230.1112518310547,\r
42         "y": 228.22223663330078,\r
43         "z": "6d6b8a1f.be1cb4",\r
44         "wires": [\r
45             [\r
46                 "da05320e.186d48"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "da05320e.186d48",\r
52         "type": "block",\r
53         "name": "block : atomic",\r
54         "xml": "<block atomic=\"true\">\n",\r
55         "atomic": "true",\r
56         "comments": "",\r
57         "outputs": 1,\r
58         "x": 455.33343505859375,\r
59         "y": 227.77792358398438,\r
60         "z": "6d6b8a1f.be1cb4",\r
61         "wires": [\r
62             [\r
63                 "8c187a81.9e4d28",\r
64                 "75113293.98ea0c",\r
65                 "9937b93d.ff5938",\r
66                 "55dde830.cc61b8",\r
67                 "f7667eb6.ec8938"\r
68             ]\r
69         ]\r
70     },\r
71     {\r
72         "id": "75113293.98ea0c",\r
73         "type": "save",\r
74         "name": "save network-resource",\r
75         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='network-resource'  \n     key='network-resource.network-id = $tmp.network-id' >\n<parameter name='network-id' value='`$tmp.network-id`' />\n<parameter name='client-id' value='`$network.client-id`' />\n<parameter name='te-topo-id' value='`$network.te-topology-id`' />\n<parameter name='provider-id' value='`$network.provider-id`' />\n\n<parameter name='network-type' value='`$network.network-types`' />\n\n\n",\r
76         "comments": "",\r
77         "outputs": 1,\r
78         "x": 685.333251953125,\r
79         "y": 133.00001525878906,\r
80         "z": "6d6b8a1f.be1cb4",\r
81         "wires": [\r
82             []\r
83         ]\r
84     },\r
85     {\r
86         "id": "74f65e67.75c658",\r
87         "type": "save",\r
88         "name": "save pnf",\r
89         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf' \n      key='pnf.pnf-name = $unique-nodeId' >\n<parameter name='pnf-name' value='`$unique-nodeId`' />\n<parameter name='pnf-id' value='`$node.node-id`' />\n<parameter name='operational-status' value='`$node.te.oper-status`' />\n<parameter name='admin-status' value='`$node.te.te-node-attributes.admin-status`' />\n<parameter name='in-maint' value='true' />\n\n\n\n\n\n",\r
90         "comments": "",\r
91         "outputs": 1,\r
92         "x": 897.1111450195312,\r
93         "y": 223.111083984375,\r
94         "z": "6d6b8a1f.be1cb4",\r
95         "wires": [\r
96             []\r
97         ]\r
98     },\r
99     {\r
100         "id": "9937b93d.ff5938",\r
101         "type": "for",\r
102         "name": "for each node",\r
103         "xml": "<for index='pidx' start='0' end='`$network.node_length`' >\n",\r
104         "comments": "",\r
105         "outputs": 1,\r
106         "x": 668.8888549804688,\r
107         "y": 203.33331298828125,\r
108         "z": "6d6b8a1f.be1cb4",\r
109         "wires": [\r
110             [\r
111                 "74f65e67.75c658",\r
112                 "60e29b35.16fbd4",\r
113                 "b27f201.393186",\r
114                 "e83884ed.3fb2d8",\r
115                 "7257c53.4f087bc",\r
116                 "395bef40.08498",\r
117                 "1392eb55.76adbd",\r
118                 "e55192de.2cc998",\r
119                 "a1ffb2f2.4b50b8"\r
120             ]\r
121         ]\r
122     },\r
123     {\r
124         "id": "60e29b35.16fbd4",\r
125         "type": "set",\r
126         "name": "set node",\r
127         "xml": "<set>\n<parameter name='node.' value='`$network.node[$pidx].`' />\n<parameter name='unique-networkId' value='`$tmp.network-id`' />\n\n",\r
128         "comments": "",\r
129         "x": 902.111083984375,\r
130         "y": 119.22221374511719,\r
131         "z": "6d6b8a1f.be1cb4",\r
132         "wires": []\r
133     },\r
134     {\r
135         "id": "e83884ed.3fb2d8",\r
136         "type": "save",\r
137         "name": "save pnf relationship to network-resource in AAI",\r
138         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n      key='pnf.pnf-name = $unique-nodeId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"network-resource\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"network-resource.network-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.network-id`\" />",\r
139         "comments": "",\r
140         "outputs": 1,\r
141         "x": 993.7779541015625,\r
142         "y": 398.44447803497314,\r
143         "z": "6d6b8a1f.be1cb4",\r
144         "wires": [\r
145             []\r
146         ]\r
147     },\r
148     {\r
149         "id": "9c15e41a.6cfbc8",\r
150         "type": "for",\r
151         "name": "for each termination point",\r
152         "xml": "<for index='tidx' start='0' end='`$node.termination-point_length`' >\n",\r
153         "comments": "",\r
154         "outputs": 1,\r
155         "x": 1279.4444580078125,\r
156         "y": 574.111083984375,\r
157         "z": "6d6b8a1f.be1cb4",\r
158         "wires": [\r
159             [\r
160                 "3c657cae.66477c",\r
161                 "2e1dc2b9.f23686",\r
162                 "8c144095.b1eaf8",\r
163                 "9abbad80.6c0f7",\r
164                 "ef702ba5.ac71e"\r
165             ]\r
166         ]\r
167     },\r
168     {\r
169         "id": "3c657cae.66477c",\r
170         "type": "set",\r
171         "name": "set termination point",\r
172         "xml": "<set>\n<parameter name='tp.' value='`$node.termination-point[$tidx].`' />\n",\r
173         "comments": "",\r
174         "x": 1549.111328125,\r
175         "y": 557.0000610351562,\r
176         "z": "6d6b8a1f.be1cb4",\r
177         "wires": []\r
178     },\r
179     {\r
180         "id": "8c144095.b1eaf8",\r
181         "type": "save",\r
182         "name": "save p-interface",\r
183         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n      key='pnf.pnf-name = $unique-nodeId\n      AND p-interface.interface-name = $unique-ltpId' >      \n<parameter name='interface-name' value='`$unique-ltpId`' />\n<parameter name='network-ref' value='`$tp.supporting-termination-point[0].network-ref`' />\n<parameter name='transparent' value='`$tp.svc.supported-classification.transparent`' />\n<parameter name='speed-value' value='`$tp.te.interface-switching-capability[0].max-lsp-bandwidth[0].te-bandwidth.eth-bandwidth`' />\n<parameter name='operational-status' value='`$tp.te.oper-status`' />\n<parameter name='in-maint' value=\"true\" />\n\n<parameter name='inter-layer-lock-id' value='`$tp.te.inter-layer-lock-id[0]`' />\n<!--<parameter name='inter-domain-plug-id' value='`$tp.te.inter-domain-plug-id`' />-->\n<parameter name='inter-domain-plug-id' value='`$tmp.decoded-plug-id`' />\n\n",\r
184         "comments": "",\r
185         "outputs": 1,\r
186         "x": 1543.815185546875,\r
187         "y": 744.5556030273438,\r
188         "z": "6d6b8a1f.be1cb4",\r
189         "wires": [\r
190             [\r
191                 "3fc33363.5b82ec",\r
192                 "34c813e4.f5477c"\r
193             ]\r
194         ]\r
195     },\r
196     {\r
197         "id": "f6e5129a.8bd048",\r
198         "type": "save",\r
199         "name": "save pnf relationship to p-interface in AAI",\r
200         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n      key='pnf.pnf-name = $unique-nodeId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id + '/pnfs/pnf/' + $unique-nodeId '/p-interfaces/p-interface/' + $unique-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-ltpId`\" />",\r
201         "comments": "",\r
202         "outputs": 1,\r
203         "x": 1626.703857421875,\r
204         "y": 901.3333740234375,\r
205         "z": "6d6b8a1f.be1cb4",\r
206         "wires": [\r
207             []\r
208         ]\r
209     },\r
210     {\r
211         "id": "2e1dc2b9.f23686",\r
212         "type": "set",\r
213         "name": "set unique-ltpId",\r
214         "xml": "<set>\n<parameter name='unique-ltpId' value=\"`$unique-nodeId + '-ltpId-' + $tp.te-tp-id`\" />\n",\r
215         "comments": "",\r
216         "x": 1533.000244140625,\r
217         "y": 614.111083984375,\r
218         "z": "6d6b8a1f.be1cb4",\r
219         "wires": []\r
220     },\r
221     {\r
222         "id": "8c187a81.9e4d28",\r
223         "type": "execute",\r
224         "name": "execute",\r
225         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$network.network-id`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.original-network-id\"/>\n    <parameter name=\"target\" value=\"/\"/>\n    <parameter name=\"replacement\" value=\"-\"/>\n    ",\r
226         "comments": "",\r
227         "outputs": 1,\r
228         "x": 641.9935302734375,\r
229         "y": 41.993499755859375,\r
230         "z": "6d6b8a1f.be1cb4",\r
231         "wires": [\r
232             []\r
233         ]\r
234     },\r
235     {\r
236         "id": "b27f201.393186",\r
237         "type": "save",\r
238         "name": "save pnf relation with esr-thirdparty-sdnc",\r
239         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='esr-thirdparty-sdnc:relationship-list' \n      key='esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"pnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $node.node-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$node.node-id`\" />\n",\r
240         "comments": "",\r
241         "outputs": 1,\r
242         "x": 975,\r
243         "y": 434.9934997558594,\r
244         "z": "6d6b8a1f.be1cb4",\r
245         "wires": [\r
246             []\r
247         ]\r
248     },\r
249     {\r
250         "id": "3fc33363.5b82ec",\r
251         "type": "success",\r
252         "name": "success",\r
253         "xml": "<outcome value='success'>\n",\r
254         "comments": "",\r
255         "outputs": 1,\r
256         "x": 1715.499885559082,\r
257         "y": 731.7460784912109,\r
258         "z": "6d6b8a1f.be1cb4",\r
259         "wires": [\r
260             [\r
261                 "a873419b.bc81c"\r
262             ]\r
263         ]\r
264     },\r
265     {\r
266         "id": "34c813e4.f5477c",\r
267         "type": "failure",\r
268         "name": "failure",\r
269         "xml": "<outcome value='failure'>\n",\r
270         "comments": "",\r
271         "outputs": 1,\r
272         "x": 1709.1784744262695,\r
273         "y": 783.9603900909424,\r
274         "z": "6d6b8a1f.be1cb4",\r
275         "wires": [\r
276             [\r
277                 "66113f50.7819f8"\r
278             ]\r
279         ]\r
280     },\r
281     {\r
282         "id": "a873419b.bc81c",\r
283         "type": "block",\r
284         "name": "block",\r
285         "xml": "<block>\n",\r
286         "atomic": "false",\r
287         "comments": "",\r
288         "outputs": 1,\r
289         "x": 1866.0000457763672,\r
290         "y": 731.0000095367432,\r
291         "z": "6d6b8a1f.be1cb4",\r
292         "wires": [\r
293             []\r
294         ]\r
295     },\r
296     {\r
297         "id": "66113f50.7819f8",\r
298         "type": "update",\r
299         "name": "update p-interface",\r
300         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n      key='pnf.pnf-name = $unique-nodeId\n      AND p-interface.interface-name = $unique-ltpId' >      \n<parameter name='interface-name' value='`$unique-ltpId`' />\n<parameter name='network-ref' value='`$tp.supporting-termination-point[0].network-ref`' />\n<parameter name='transparent' value='`$tp.svc.supported-classification.transparent`' />\n<parameter name='speed-value' value='`$tp.te.interface-switching-capability[0].max-lsp-bandwidth[0].te-bandwidth.eth-bandwidth`' />\n<parameter name='operational-status' value='`$tp.te.oper-status`' />\n<parameter name='in-maint' value=\"true\" />\n\n<parameter name='inter-layer-lock-id' value='`$tp.te.inter-layer-lock-id[0]`' />\n<!--<parameter name='inter-domain-plug-id' value='`$tp.te.inter-domain-plug-id`' />-->\n<parameter name='inter-domain-plug-id' value='`$tmp.decoded-plug-id`' />",\r
301         "comments": "",\r
302         "outputs": 1,\r
303         "x": 1895,\r
304         "y": 785,\r
305         "z": "6d6b8a1f.be1cb4",\r
306         "wires": [\r
307             []\r
308         ]\r
309     },\r
310     {\r
311         "id": "c8e5472a.d10408",\r
312         "type": "save",\r
313         "name": "save tunnel-termination-point",\r
314         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='tunnel-termination-point' \n      key='tunnel-termination-point.ttp-id = $unique-ttpId' >\n\n<parameter name='ttp-id' value='`$unique-ttpId`' />\n<parameter name='tunnel-tp-id' value='`$ttp.tunnel-tp-id`' />\n<parameter name='name' value='`$ttp.name`' />\n<parameter name='admin-status' value='`$ttp.admin-status`' />\n<parameter name='oper-status' value='`$ttp.oper-status`' />\n<parameter name='inter-layer-lock-id' value='`$ttp.inter-layer-lock-id`' />\n<parameter name='switching-capability' value='`$ttp.switching-capability`' />\n<parameter name='protection-type' value='`$ttp.protection-type`' />\n<parameter name='encoding' value='`$ttp.encoding`' />\n\n\n\n\n\n\n",\r
315         "comments": "",\r
316         "outputs": 1,\r
317         "x": 1678,\r
318         "y": 331,\r
319         "z": "6d6b8a1f.be1cb4",\r
320         "wires": [\r
321             [\r
322                 "11cb3cf8.02c3eb",\r
323                 "1a336806.ba4bc8"\r
324             ]\r
325         ]\r
326     },\r
327     {\r
328         "id": "8b0a557c.b35cd",\r
329         "type": "for",\r
330         "name": "for each tunnel termination point",\r
331         "xml": "<for index='ttidx' start='0' end='`$node.te.tunnel-termination-point_length`' >\n",\r
332         "comments": "",\r
333         "outputs": 1,\r
334         "x": 1341,\r
335         "y": 319,\r
336         "z": "6d6b8a1f.be1cb4",\r
337         "wires": [\r
338             [\r
339                 "58c4d943.63d2f",\r
340                 "e7e93cd.8f563c",\r
341                 "c8e5472a.d10408",\r
342                 "7c00c858.c87ab8",\r
343                 "1bd07bf.99e9784"\r
344             ]\r
345         ]\r
346     },\r
347     {\r
348         "id": "58c4d943.63d2f",\r
349         "type": "set",\r
350         "name": "set tunnel termination point",\r
351         "xml": "<set>\n<parameter name='ttp.' value='`$node.te.tunnel-termination-point[$ttidx].`' />\n",\r
352         "comments": "",\r
353         "x": 1676,\r
354         "y": 239,\r
355         "z": "6d6b8a1f.be1cb4",\r
356         "wires": []\r
357     },\r
358     {\r
359         "id": "e7e93cd.8f563c",\r
360         "type": "set",\r
361         "name": "set unique-ttpId",\r
362         "xml": "<set>\n<parameter name='unique-ttpId' value=\"`$unique-nodeId + '-ttpId-' + $ttp.tunnel-tp-id`\" />\n",\r
363         "comments": "",\r
364         "x": 1634.888916015625,\r
365         "y": 277.111083984375,\r
366         "z": "6d6b8a1f.be1cb4",\r
367         "wires": []\r
368     },\r
369     {\r
370         "id": "11cb3cf8.02c3eb",\r
371         "type": "success",\r
372         "name": "success",\r
373         "xml": "<outcome value='success'>\n",\r
374         "comments": "",\r
375         "outputs": 1,\r
376         "x": 1944,\r
377         "y": 317,\r
378         "z": "6d6b8a1f.be1cb4",\r
379         "wires": [\r
380             [\r
381                 "9ad375c8.fab3e8"\r
382             ]\r
383         ]\r
384     },\r
385     {\r
386         "id": "1a336806.ba4bc8",\r
387         "type": "failure",\r
388         "name": "failure",\r
389         "xml": "<outcome value='failure'>\n",\r
390         "comments": "",\r
391         "outputs": 1,\r
392         "x": 1937.6785888671875,\r
393         "y": 369.21431159973145,\r
394         "z": "6d6b8a1f.be1cb4",\r
395         "wires": [\r
396             [\r
397                 "842e7e75.fc0558"\r
398             ]\r
399         ]\r
400     },\r
401     {\r
402         "id": "9ad375c8.fab3e8",\r
403         "type": "block",\r
404         "name": "block",\r
405         "xml": "<block>\n",\r
406         "atomic": "false",\r
407         "comments": "",\r
408         "outputs": 1,\r
409         "x": 2094.500160217285,\r
410         "y": 316.2539310455322,\r
411         "z": "6d6b8a1f.be1cb4",\r
412         "wires": [\r
413             []\r
414         ]\r
415     },\r
416     {\r
417         "id": "842e7e75.fc0558",\r
418         "type": "update",\r
419         "name": "update tunnel-termination-point",\r
420         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='tunnel-termination-point' \n      key='tunnel-termination-point.ttp-id = $unique-ttpId' >\n\n<parameter name='ttp-id' value='`$unique-ttpId`' />\n<parameter name='tunnel-tp-id' value='`$ttp.tunnel-tp-id`' />\n<parameter name='name' value='`$ttp.name`' />\n<parameter name='admin-status' value='`$ttp.admin-status`' />\n<parameter name='oper-status' value='`$ttp.oper-status`' />\n<parameter name='inter-layer-lock-id' value='`$ttp.inter-layer-lock-id`' />\n<parameter name='switching-capability' value='`$ttp.switching-capability`' />\n<parameter name='protection-type' value='`$ttp.protection-type`' />\n<parameter name='encoding' value='`$ttp.encoding`' />\n\n\n\n\n\n\n",\r
421         "comments": "",\r
422         "outputs": 1,\r
423         "x": 2175,\r
424         "y": 371,\r
425         "z": "6d6b8a1f.be1cb4",\r
426         "wires": [\r
427             []\r
428         ]\r
429     },\r
430     {\r
431         "id": "7257c53.4f087bc",\r
432         "type": "set",\r
433         "name": "set local variables",\r
434         "xml": "<set>\n<parameter name='unique-nodeId' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $node.node-id`\" />\n",\r
435         "comments": "",\r
436         "x": 927,\r
437         "y": 166,\r
438         "z": "6d6b8a1f.be1cb4",\r
439         "wires": []\r
440     },\r
441     {\r
442         "id": "55dde830.cc61b8",\r
443         "type": "call",\r
444         "name": "call update-network-links-to-aai",\r
445         "xml": "<call module='DataChange' rpc='update-network-links-to-aai' mode='sync' >\n",\r
446         "comments": "",\r
447         "outputs": 1,\r
448         "x": 611,\r
449         "y": 329,\r
450         "z": "6d6b8a1f.be1cb4",\r
451         "wires": [\r
452             []\r
453         ]\r
454     },\r
455     {\r
456         "id": "b86a9ee9.558c2",\r
457         "type": "save",\r
458         "name": "save pnf-interface relationship to pnf in AAI",\r
459         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface:relationship-list' \n      key='pnf.pnf-name = $unique-nodeId\n      AND p-interface.interface-name = $unique-ltpId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"pnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $unique-nodeId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-nodeId`\" />\n",\r
460         "comments": "",\r
461         "outputs": 1,\r
462         "x": 1627,\r
463         "y": 844,\r
464         "z": "6d6b8a1f.be1cb4",\r
465         "wires": [\r
466             []\r
467         ]\r
468     },\r
469     {\r
470         "id": "7c00c858.c87ab8",\r
471         "type": "save",\r
472         "name": "save pnf relationship to tunnel termination point in AAI",\r
473         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n      key='pnf.pnf-name = $unique-nodeId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"`relationship-list.relationship[$ttidx].related-to`\" value=\"tunnel-termination-point\" />\n<!--<parameter name=\"relationship-list.relationship[$ttidx].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id + '/pnfs/pnf/' + $node.node-id '/tunnel-termination-points/tunnel-termination-point/' + $unique-ttpId`\" />-->\n<parameter name=\"`relationship-list.relationship[$ttidx].related-link`\" value=\"`'/network/tunnel-termination-points/tunnel-termination-point/' + $unique-ttpId`\" />\n<parameter name=\"`relationship-list.relationship[$ttidx].relationship-data[0].relationship-key`\" value=\"tunnel-termination-point.ttp-id\" />\n<parameter name=\"`relationship-list.relationship[$ttidx].relationship-data[0].relationship-value`\" value=\"`$unique-ttpId`\" />",\r
474         "comments": "",\r
475         "outputs": 1,\r
476         "x": 1749,\r
477         "y": 423,\r
478         "z": "6d6b8a1f.be1cb4",\r
479         "wires": [\r
480             [\r
481                 "5d32d079.32cfb8",\r
482                 "5c2d8774.9a9178"\r
483             ]\r
484         ]\r
485     },\r
486     {\r
487         "id": "395bef40.08498",\r
488         "type": "switchNode",\r
489         "name": "switch node ttp",\r
490         "xml": "<switch test='`$node.te.tunnel-termination-point_length`'>\n",\r
491         "comments": "",\r
492         "outputs": 1,\r
493         "x": 913,\r
494         "y": 295,\r
495         "z": "6d6b8a1f.be1cb4",\r
496         "wires": [\r
497             [\r
498                 "84bf875e.b8d51",\r
499                 "cc6df2e.2398e9",\r
500                 "f2d2c388.1aa578"\r
501             ]\r
502         ]\r
503     },\r
504     {\r
505         "id": "5889c4ed.3fc544",\r
506         "type": "block",\r
507         "name": "block",\r
508         "xml": "<block>\n",\r
509         "atomic": "false",\r
510         "comments": "",\r
511         "outputs": 1,\r
512         "x": 1261,\r
513         "y": 247,\r
514         "z": "6d6b8a1f.be1cb4",\r
515         "wires": [\r
516             []\r
517         ]\r
518     },\r
519     {\r
520         "id": "f2d2c388.1aa578",\r
521         "type": "other",\r
522         "name": "other",\r
523         "xml": "<outcome value='Other'>\n",\r
524         "comments": "",\r
525         "outputs": 1,\r
526         "x": 1103,\r
527         "y": 318,\r
528         "z": "6d6b8a1f.be1cb4",\r
529         "wires": [\r
530             [\r
531                 "8b0a557c.b35cd"\r
532             ]\r
533         ]\r
534     },\r
535     {\r
536         "id": "1392eb55.76adbd",\r
537         "type": "switchNode",\r
538         "name": "switch node tp",\r
539         "xml": "<switch test='`$node.termination-point_length`'>\n",\r
540         "comments": "",\r
541         "outputs": 1,\r
542         "x": 893,\r
543         "y": 550,\r
544         "z": "6d6b8a1f.be1cb4",\r
545         "wires": [\r
546             [\r
547                 "c5e649ab.cfe2e8",\r
548                 "d7a3de29.b44a1",\r
549                 "a21fbfb7.b6608"\r
550             ]\r
551         ]\r
552     },\r
553     {\r
554         "id": "c5e649ab.cfe2e8",\r
555         "type": "other",\r
556         "name": "Null",\r
557         "xml": "<outcome value=''>\n",\r
558         "comments": "",\r
559         "outputs": 1,\r
560         "x": 1072,\r
561         "y": 502,\r
562         "z": "6d6b8a1f.be1cb4",\r
563         "wires": [\r
564             [\r
565                 "3d51c59d.7acffa"\r
566             ]\r
567         ]\r
568     },\r
569     {\r
570         "id": "d7a3de29.b44a1",\r
571         "type": "other",\r
572         "name": "other",\r
573         "xml": "<outcome value='Other'>\n",\r
574         "comments": "",\r
575         "outputs": 1,\r
576         "x": 1071,\r
577         "y": 604,\r
578         "z": "6d6b8a1f.be1cb4",\r
579         "wires": [\r
580             [\r
581                 "9c15e41a.6cfbc8"\r
582             ]\r
583         ]\r
584     },\r
585     {\r
586         "id": "3d51c59d.7acffa",\r
587         "type": "block",\r
588         "name": "block",\r
589         "xml": "<block>\n",\r
590         "atomic": "false",\r
591         "comments": "",\r
592         "outputs": 1,\r
593         "x": 1227,\r
594         "y": 502,\r
595         "z": "6d6b8a1f.be1cb4",\r
596         "wires": [\r
597             []\r
598         ]\r
599     },\r
600     {\r
601         "id": "e55192de.2cc998",\r
602         "type": "record",\r
603         "name": "log file",\r
604         "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n    <parameter name=\"file\" value=\"/opt/onap/logTopologyDiscovery.txt\" />\n    <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n    <parameter name=\"field2\" value=\"sucess executing Hesam log file\" />\n    <parameter name=\"field3\" value=\"`$node.te.tunnel-termination-point_length`\" />\n    <parameter name=\"field4\" value=\"`$node.termination-point_length`\" />\n    ",\r
605         "comments": "",\r
606         "outputs": 1,\r
607         "x": 891,\r
608         "y": 339,\r
609         "z": "6d6b8a1f.be1cb4",\r
610         "wires": [\r
611             []\r
612         ]\r
613     },\r
614     {\r
615         "id": "84bf875e.b8d51",\r
616         "type": "other",\r
617         "name": "Null",\r
618         "xml": "<outcome value=''>\n",\r
619         "comments": "",\r
620         "outputs": 1,\r
621         "x": 1101,\r
622         "y": 181,\r
623         "z": "6d6b8a1f.be1cb4",\r
624         "wires": [\r
625             [\r
626                 "5889c4ed.3fc544"\r
627             ]\r
628         ]\r
629     },\r
630     {\r
631         "id": "cc6df2e.2398e9",\r
632         "type": "outcome",\r
633         "name": "length 0",\r
634         "xml": "<outcome value='0'>\n",\r
635         "comments": "",\r
636         "outputs": 1,\r
637         "x": 1106,\r
638         "y": 256,\r
639         "z": "6d6b8a1f.be1cb4",\r
640         "wires": [\r
641             [\r
642                 "5889c4ed.3fc544"\r
643             ]\r
644         ]\r
645     },\r
646     {\r
647         "id": "a21fbfb7.b6608",\r
648         "type": "outcome",\r
649         "name": "length 0",\r
650         "xml": "<outcome value='0'>\n",\r
651         "comments": "",\r
652         "outputs": 1,\r
653         "x": 1082,\r
654         "y": 550,\r
655         "z": "6d6b8a1f.be1cb4",\r
656         "wires": [\r
657             [\r
658                 "3d51c59d.7acffa"\r
659             ]\r
660         ]\r
661     },\r
662     {\r
663         "id": "a1ffb2f2.4b50b8",\r
664         "type": "set",\r
665         "name": "unset node",\r
666         "xml": "<set>\n<parameter name='node.' value='' />\n\n",\r
667         "comments": "",\r
668         "x": 899,\r
669         "y": 68,\r
670         "z": "6d6b8a1f.be1cb4",\r
671         "wires": []\r
672     },\r
673     {\r
674         "id": "9abbad80.6c0f7",\r
675         "type": "set",\r
676         "name": "unset termination point",\r
677         "xml": "<set>\n<parameter name='tp.' value='' />\n",\r
678         "comments": "",\r
679         "x": 1561,\r
680         "y": 500,\r
681         "z": "6d6b8a1f.be1cb4",\r
682         "wires": []\r
683     },\r
684     {\r
685         "id": "1bd07bf.99e9784",\r
686         "type": "set",\r
687         "name": "unset tunnel termination point",\r
688         "xml": "<set>\n<parameter name='ttp.' value='' />\n",\r
689         "comments": "",\r
690         "x": 1676,\r
691         "y": 191,\r
692         "z": "6d6b8a1f.be1cb4",\r
693         "wires": []\r
694     },\r
695     {\r
696         "id": "5d32d079.32cfb8",\r
697         "type": "success",\r
698         "name": "success",\r
699         "xml": "<outcome value='success'>\n",\r
700         "comments": "",\r
701         "outputs": 1,\r
702         "x": 2081,\r
703         "y": 426,\r
704         "z": "6d6b8a1f.be1cb4",\r
705         "wires": [\r
706             [\r
707                 "42b15971.2191b8"\r
708             ]\r
709         ]\r
710     },\r
711     {\r
712         "id": "5c2d8774.9a9178",\r
713         "type": "failure",\r
714         "name": "failure",\r
715         "xml": "<outcome value='failure'>\n",\r
716         "comments": "",\r
717         "outputs": 1,\r
718         "x": 2078,\r
719         "y": 474,\r
720         "z": "6d6b8a1f.be1cb4",\r
721         "wires": [\r
722             [\r
723                 "ad595c83.2160d"\r
724             ]\r
725         ]\r
726     },\r
727     {\r
728         "id": "42b15971.2191b8",\r
729         "type": "record",\r
730         "name": "log file",\r
731         "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n    <parameter name=\"file\" value=\"/opt/onap/logTopologyDiscovery.txt\" />\n    <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n    <parameter name=\"field2\" value=\"sucess executing Hesam log file\" />\n    <parameter name=\"field3\" value=\"`$node.te.tunnel-termination-point_length`\" />\n    <parameter name=\"field4\" value=\"`$node.termination-point_length`\" />\n    <parameter name=\"field5\" value=\"sucessfully saved ttp\" />\n    <parameter name=\"field6\" value=\"`relationship-list.relationship[$ttidx].related-link`\" />\n    ",\r
732         "comments": "",\r
733         "outputs": 1,\r
734         "x": 2236,\r
735         "y": 427,\r
736         "z": "6d6b8a1f.be1cb4",\r
737         "wires": [\r
738             []\r
739         ]\r
740     },\r
741     {\r
742         "id": "ad595c83.2160d",\r
743         "type": "record",\r
744         "name": "log file",\r
745         "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n    <parameter name=\"file\" value=\"/opt/onap/logTopologyDiscovery.txt\" />\n    <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n    <parameter name=\"field2\" value=\"sucess executing Hesam log file\" />\n    <parameter name=\"field3\" value=\"`$node.te.tunnel-termination-point_length`\" />\n    <parameter name=\"field4\" value=\"`$node.termination-point_length`\" />\n    <parameter name=\"field5\" value=\"failuire on saving ttp\" />\n    <parameter name=\"field6\" value=\"`relationship-list.relationship[$ttidx].related-link`\" />\n\n    ",\r
746         "comments": "",\r
747         "outputs": 1,\r
748         "x": 2237,\r
749         "y": 475,\r
750         "z": "6d6b8a1f.be1cb4",\r
751         "wires": [\r
752             []\r
753         ]\r
754     },\r
755     {\r
756         "id": "b9a378e9.3ee13",\r
757         "type": "execute",\r
758         "name": "execute Base64 Converter",\r
759         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='base64DecodingAlgo' >\n    <parameter name=\"encodedValue\" value='`$tp.te.inter-domain-plug-id`'/>\n    <parameter name=\"decodedValue\" value=\"tmp.decoded-plug-id\"/>\n    ",\r
760         "comments": "",\r
761         "outputs": 1,\r
762         "x": 2027,\r
763         "y": 669,\r
764         "z": "6d6b8a1f.be1cb4",\r
765         "wires": [\r
766             [\r
767                 "1cdf8713.954a51",\r
768                 "3754d4b.0357eac"\r
769             ]\r
770         ]\r
771     },\r
772     {\r
773         "id": "ef702ba5.ac71e",\r
774         "type": "switchNode",\r
775         "name": "switch inter-domain-plug-id empty?",\r
776         "xml": "<switch test='`length($tp.te.inter-domain-plug-id) == 0`'>\n\n",\r
777         "comments": "",\r
778         "outputs": 1,\r
779         "x": 1597,\r
780         "y": 670,\r
781         "z": "6d6b8a1f.be1cb4",\r
782         "wires": [\r
783             [\r
784                 "95523b36.e61fe",\r
785                 "a2f27028.9e578"\r
786             ]\r
787         ]\r
788     },\r
789     {\r
790         "id": "a2f27028.9e578",\r
791         "type": "outcomeTrue",\r
792         "name": "true",\r
793         "xml": "<outcome value='true'>\n",\r
794         "comments": "",\r
795         "outputs": 1,\r
796         "x": 1824,\r
797         "y": 623,\r
798         "z": "6d6b8a1f.be1cb4",\r
799         "wires": [\r
800             [\r
801                 "ce508a28.fe217"\r
802             ]\r
803         ]\r
804     },\r
805     {\r
806         "id": "95523b36.e61fe",\r
807         "type": "outcomeFalse",\r
808         "name": "false",\r
809         "xml": "<outcome value='false'>\n",\r
810         "comments": "",\r
811         "outputs": 1,\r
812         "x": 1825,\r
813         "y": 669,\r
814         "z": "6d6b8a1f.be1cb4",\r
815         "wires": [\r
816             [\r
817                 "b9a378e9.3ee13"\r
818             ]\r
819         ]\r
820     },\r
821     {\r
822         "id": "ce508a28.fe217",\r
823         "type": "set",\r
824         "name": "unset tmp.decoded-plug-id",\r
825         "xml": "<set>\n<parameter name='tmp.decoded-plug-id' value='' />\n",\r
826         "comments": "",\r
827         "x": 2028,\r
828         "y": 623,\r
829         "z": "6d6b8a1f.be1cb4",\r
830         "wires": []\r
831     },\r
832     {\r
833         "id": "1cdf8713.954a51",\r
834         "type": "success",\r
835         "name": "success",\r
836         "xml": "<outcome value='success'>\n",\r
837         "comments": "",\r
838         "outputs": 1,\r
839         "x": 2232,\r
840         "y": 646,\r
841         "z": "6d6b8a1f.be1cb4",\r
842         "wires": [\r
843             [\r
844                 "611d993d.82c5c"\r
845             ]\r
846         ]\r
847     },\r
848     {\r
849         "id": "3754d4b.0357eac",\r
850         "type": "failure",\r
851         "name": "failure",\r
852         "xml": "<outcome value='failure'>\n",\r
853         "comments": "",\r
854         "outputs": 1,\r
855         "x": 2225.6785888671875,\r
856         "y": 698.2143115997314,\r
857         "z": "6d6b8a1f.be1cb4",\r
858         "wires": [\r
859             [\r
860                 "495bfe4.4b1a"\r
861             ]\r
862         ]\r
863     },\r
864     {\r
865         "id": "611d993d.82c5c",\r
866         "type": "block",\r
867         "name": "block",\r
868         "xml": "<block>\n",\r
869         "atomic": "false",\r
870         "comments": "",\r
871         "outputs": 1,\r
872         "x": 2373,\r
873         "y": 646,\r
874         "z": "6d6b8a1f.be1cb4",\r
875         "wires": [\r
876             []\r
877         ]\r
878     },\r
879     {\r
880         "id": "495bfe4.4b1a",\r
881         "type": "set",\r
882         "name": "unset tmp.decoded-plug-id",\r
883         "xml": "<set>\n<parameter name='tmp.decoded-plug-id' value='`$tp.te.inter-domain-plug-id`' />\n",\r
884         "comments": "",\r
885         "x": 2432,\r
886         "y": 698,\r
887         "z": "6d6b8a1f.be1cb4",\r
888         "wires": []\r
889     },\r
890     {\r
891         "id": "f7667eb6.ec8938",\r
892         "type": "set",\r
893         "name": "set tmp.network-if",\r
894         "xml": "<set>\n<parameter name='tmp.network-id' value=\"`$prop.sdncRestApi.thirdpartySdnc.id + '-' + $tmp.original-network-id`\" />\n\n",\r
895         "comments": "",\r
896         "x": 667,\r
897         "y": 83,\r
898         "z": "6d6b8a1f.be1cb4",\r
899         "wires": []\r
900     }\r
901 ]