Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_update-network-to-aai.json
1 [\r
2     {\r
3         "id": "833893fc.cd4dc",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 135.56666564941406,\r
8         "y": 158.56666564941406,\r
9         "z": "a00613f8.474e58",\r
10         "wires": [\r
11             [\r
12                 "ddef51e8.c000f"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "ddef51e8.c000f",\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": 224.5666961669922,\r
26         "y": 249.4555778503418,\r
27         "z": "a00613f8.474e58",\r
28         "wires": [\r
29             [\r
30                 "590cf9dc.a4f168"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "590cf9dc.a4f168",\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": 260.67791748046875,\r
42         "y": 319.78890228271484,\r
43         "z": "a00613f8.474e58",\r
44         "wires": [\r
45             [\r
46                 "4ea80a5b.3a2674"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "4ea80a5b.3a2674",\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": 485.9001007080078,\r
59         "y": 319.34458923339844,\r
60         "z": "a00613f8.474e58",\r
61         "wires": [\r
62             [\r
63                 "ebff53.633678b",\r
64                 "ca110ee4.0623c",\r
65                 "a428df69.d4918",\r
66                 "bcb331d5.4b2888",\r
67                 "621633c6.c8ab1c",\r
68                 "f650a5ef.af19b",\r
69                 "41c6a2f9.33057c",\r
70                 "55d89697.da8d4",\r
71                 "fc94b1ae.7adf4",\r
72                 "d0070ca3.12857",\r
73                 "7cbfe92.8c19d98"\r
74             ]\r
75         ]\r
76     },\r
77     {\r
78         "id": "ca110ee4.0623c",\r
79         "type": "save",\r
80         "name": "save network-resource",\r
81         "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='`$tmp.client-id`' />\n<parameter name='te-topo-id' value='`$tmp.te-topo-id`' />\n<parameter name='provider-id' value='`$tmp.provider-id`' />\n<!--<parameter name='client-id' value='`$network.te-topology-identifier.client-id`' />-->\n<!--<parameter name='te-topo-id' value='`$network.te-topology-identifier.topology-id`' />-->\n<!--<parameter name='provider-id' value='`$network.te-topology-identifier.provider-id`' />-->\n\n<parameter name='network-type' value='`$network.network-types`' />\n\n\n",\r
82         "comments": "",\r
83         "outputs": 1,\r
84         "x": 815.89990234375,\r
85         "y": 1077.5667419433594,\r
86         "z": "a00613f8.474e58",\r
87         "wires": [\r
88             []\r
89         ]\r
90     },\r
91     {\r
92         "id": "1c5189aa.97911e",\r
93         "type": "save",\r
94         "name": "save pnf",\r
95         "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
96         "comments": "",\r
97         "outputs": 1,\r
98         "x": 979.6777954101562,\r
99         "y": 1599.6777038574219,\r
100         "z": "a00613f8.474e58",\r
101         "wires": [\r
102             []\r
103         ]\r
104     },\r
105     {\r
106         "id": "a428df69.d4918",\r
107         "type": "for",\r
108         "name": "for each node",\r
109         "xml": "<for index='pidx' start='0' end='`$network.node_length`' >\n",\r
110         "comments": "",\r
111         "outputs": 1,\r
112         "x": 751.4555053710938,\r
113         "y": 1579.8999328613281,\r
114         "z": "a00613f8.474e58",\r
115         "wires": [\r
116             [\r
117                 "1c5189aa.97911e",\r
118                 "5cc65873.45f068",\r
119                 "6e932325.b3ce0c",\r
120                 "fa029f12.0579a8",\r
121                 "74eb96bf.859028",\r
122                 "f1753d6a.8970a",\r
123                 "488b7493.2568f4",\r
124                 "5792a57.27026dc"\r
125             ]\r
126         ]\r
127     },\r
128     {\r
129         "id": "5cc65873.45f068",\r
130         "type": "set",\r
131         "name": "set node",\r
132         "xml": "<set>\n<parameter name='node.' value='`$network.node[$pidx].`' />\n<parameter name='unique-networkId' value='`$tmp.network-id`' />\n\n",\r
133         "comments": "",\r
134         "x": 984.677734375,\r
135         "y": 1495.788833618164,\r
136         "z": "a00613f8.474e58",\r
137         "wires": []\r
138     },\r
139     {\r
140         "id": "fa029f12.0579a8",\r
141         "type": "save",\r
142         "name": "save pnf relationship to network-resource in AAI",\r
143         "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
144         "comments": "",\r
145         "outputs": 1,\r
146         "x": 1076.3446044921875,\r
147         "y": 1775.01109790802,\r
148         "z": "a00613f8.474e58",\r
149         "wires": [\r
150             []\r
151         ]\r
152     },\r
153     {\r
154         "id": "673098cb.075338",\r
155         "type": "for",\r
156         "name": "for each termination point",\r
157         "xml": "<for index='tidx' start='0' end='`$node.termination-point_length`' >\n",\r
158         "comments": "",\r
159         "outputs": 1,\r
160         "x": 1384.0111083984375,\r
161         "y": 1690.6776733398438,\r
162         "z": "a00613f8.474e58",\r
163         "wires": [\r
164             [\r
165                 "14328870.e01fc8",\r
166                 "98b3a9f1.3c7a",\r
167                 "1e0cb0c8.6af377",\r
168                 "d97910b0.5bb5e8",\r
169                 "2568e5e9.694fba"\r
170             ]\r
171         ]\r
172     },\r
173     {\r
174         "id": "14328870.e01fc8",\r
175         "type": "set",\r
176         "name": "set termination point",\r
177         "xml": "<set>\n<parameter name='tp.' value='`$node.termination-point[$tidx].`' />\n",\r
178         "comments": "",\r
179         "x": 1653.677978515625,\r
180         "y": 1673.566650390625,\r
181         "z": "a00613f8.474e58",\r
182         "wires": []\r
183     },\r
184     {\r
185         "id": "1e0cb0c8.6af377",\r
186         "type": "save",\r
187         "name": "save p-interface",\r
188         "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
189         "comments": "",\r
190         "outputs": 1,\r
191         "x": 1648.3818359375,\r
192         "y": 1861.1221923828125,\r
193         "z": "a00613f8.474e58",\r
194         "wires": [\r
195             [\r
196                 "27884524.eae2da",\r
197                 "6320df74.68c278"\r
198             ]\r
199         ]\r
200     },\r
201     {\r
202         "id": "522b5f86.997c5",\r
203         "type": "save",\r
204         "name": "save pnf relationship to p-interface in AAI",\r
205         "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
206         "comments": "",\r
207         "outputs": 1,\r
208         "x": 1469.2705078125,\r
209         "y": 2773.8999633789062,\r
210         "z": "a00613f8.474e58",\r
211         "wires": [\r
212             []\r
213         ]\r
214     },\r
215     {\r
216         "id": "98b3a9f1.3c7a",\r
217         "type": "set",\r
218         "name": "set unique-ltpId",\r
219         "xml": "<set>\n<parameter name='unique-ltpId' value=\"`$unique-nodeId + '-ltpId-' + $tp.te-tp-id`\" />\n",\r
220         "comments": "",\r
221         "x": 1637.56689453125,\r
222         "y": 1730.6776733398438,\r
223         "z": "a00613f8.474e58",\r
224         "wires": []\r
225     },\r
226     {\r
227         "id": "ebff53.633678b",\r
228         "type": "execute",\r
229         "name": "execute",\r
230         "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
231         "comments": "",\r
232         "outputs": 1,\r
233         "x": 658.5601806640625,\r
234         "y": 39.56017303466797,\r
235         "z": "a00613f8.474e58",\r
236         "wires": [\r
237             []\r
238         ]\r
239     },\r
240     {\r
241         "id": "6e932325.b3ce0c",\r
242         "type": "save",\r
243         "name": "save pnf relation with esr-thirdparty-sdnc",\r
244         "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/' + $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
245         "comments": "",\r
246         "outputs": 1,\r
247         "x": 1057.566650390625,\r
248         "y": 1811.5601196289062,\r
249         "z": "a00613f8.474e58",\r
250         "wires": [\r
251             []\r
252         ]\r
253     },\r
254     {\r
255         "id": "27884524.eae2da",\r
256         "type": "success",\r
257         "name": "success",\r
258         "xml": "<outcome value='success'>\n",\r
259         "comments": "",\r
260         "outputs": 1,\r
261         "x": 1820.066535949707,\r
262         "y": 1848.3126678466797,\r
263         "z": "a00613f8.474e58",\r
264         "wires": [\r
265             [\r
266                 "eca5dc85.dc169"\r
267             ]\r
268         ]\r
269     },\r
270     {\r
271         "id": "6320df74.68c278",\r
272         "type": "failure",\r
273         "name": "failure",\r
274         "xml": "<outcome value='failure'>\n",\r
275         "comments": "",\r
276         "outputs": 1,\r
277         "x": 1813.7451248168945,\r
278         "y": 1900.5269794464111,\r
279         "z": "a00613f8.474e58",\r
280         "wires": [\r
281             [\r
282                 "4f36fae3.fb3d2c"\r
283             ]\r
284         ]\r
285     },\r
286     {\r
287         "id": "eca5dc85.dc169",\r
288         "type": "block",\r
289         "name": "block",\r
290         "xml": "<block>\n",\r
291         "atomic": "false",\r
292         "comments": "",\r
293         "outputs": 1,\r
294         "x": 1970.5666961669922,\r
295         "y": 1847.566598892212,\r
296         "z": "a00613f8.474e58",\r
297         "wires": [\r
298             []\r
299         ]\r
300     },\r
301     {\r
302         "id": "4f36fae3.fb3d2c",\r
303         "type": "update",\r
304         "name": "update p-interface",\r
305         "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
306         "comments": "",\r
307         "outputs": 1,\r
308         "x": 1999.566650390625,\r
309         "y": 1901.5665893554688,\r
310         "z": "a00613f8.474e58",\r
311         "wires": [\r
312             []\r
313         ]\r
314     },\r
315     {\r
316         "id": "9afbe60e.d5e018",\r
317         "type": "save",\r
318         "name": "save tunnel-termination-point",\r
319         "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[0]`' />\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
320         "comments": "",\r
321         "outputs": 1,\r
322         "x": 1713.566650390625,\r
323         "y": 2152.5665893554688,\r
324         "z": "a00613f8.474e58",\r
325         "wires": [\r
326             [\r
327                 "d31fa9d0.e36698",\r
328                 "6da3b2ca.c0f984"\r
329             ]\r
330         ]\r
331     },\r
332     {\r
333         "id": "db4633a0.6d81",\r
334         "type": "for",\r
335         "name": "for each tunnel termination point",\r
336         "xml": "<for index='ttidx' start='0' end='`$node.te.tunnel-termination-point_length`' >\n",\r
337         "comments": "",\r
338         "outputs": 1,\r
339         "x": 1376.566650390625,\r
340         "y": 2140.5665893554688,\r
341         "z": "a00613f8.474e58",\r
342         "wires": [\r
343             [\r
344                 "f58dd7ba.f71ba8",\r
345                 "e9a95ae5.095c7",\r
346                 "9afbe60e.d5e018",\r
347                 "dfba66a0.a570f",\r
348                 "8e56a27.ed9656",\r
349                 "a3b0d055.5709c"\r
350             ]\r
351         ]\r
352     },\r
353     {\r
354         "id": "f58dd7ba.f71ba8",\r
355         "type": "set",\r
356         "name": "set tunnel termination point",\r
357         "xml": "<set>\n<parameter name='ttp.' value='`$node.te.tunnel-termination-point[$ttidx].`' />\n",\r
358         "comments": "",\r
359         "x": 1711.566650390625,\r
360         "y": 2060.5665893554688,\r
361         "z": "a00613f8.474e58",\r
362         "wires": []\r
363     },\r
364     {\r
365         "id": "e9a95ae5.095c7",\r
366         "type": "set",\r
367         "name": "set unique-ttpId",\r
368         "xml": "<set>\n<parameter name='unique-ttpId' value=\"`$unique-nodeId + '-ttpId-' + $ttp.tunnel-tp-id`\" />\n",\r
369         "comments": "",\r
370         "x": 1670.45556640625,\r
371         "y": 2098.6776733398438,\r
372         "z": "a00613f8.474e58",\r
373         "wires": []\r
374     },\r
375     {\r
376         "id": "d31fa9d0.e36698",\r
377         "type": "success",\r
378         "name": "success",\r
379         "xml": "<outcome value='success'>\n",\r
380         "comments": "",\r
381         "outputs": 1,\r
382         "x": 1979.566650390625,\r
383         "y": 2138.5665893554688,\r
384         "z": "a00613f8.474e58",\r
385         "wires": [\r
386             [\r
387                 "95619f03.b62ee"\r
388             ]\r
389         ]\r
390     },\r
391     {\r
392         "id": "6da3b2ca.c0f984",\r
393         "type": "failure",\r
394         "name": "failure",\r
395         "xml": "<outcome value='failure'>\n",\r
396         "comments": "",\r
397         "outputs": 1,\r
398         "x": 1973.2452392578125,\r
399         "y": 2190.7809009552,\r
400         "z": "a00613f8.474e58",\r
401         "wires": [\r
402             [\r
403                 "88d246a7.3c6ed8"\r
404             ]\r
405         ]\r
406     },\r
407     {\r
408         "id": "95619f03.b62ee",\r
409         "type": "block",\r
410         "name": "block",\r
411         "xml": "<block>\n",\r
412         "atomic": "false",\r
413         "comments": "",\r
414         "outputs": 1,\r
415         "x": 2130.06681060791,\r
416         "y": 2137.820520401001,\r
417         "z": "a00613f8.474e58",\r
418         "wires": [\r
419             []\r
420         ]\r
421     },\r
422     {\r
423         "id": "88d246a7.3c6ed8",\r
424         "type": "update",\r
425         "name": "update tunnel-termination-point",\r
426         "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[0]`' />\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
427         "comments": "",\r
428         "outputs": 1,\r
429         "x": 2210.566650390625,\r
430         "y": 2192.5665893554688,\r
431         "z": "a00613f8.474e58",\r
432         "wires": [\r
433             []\r
434         ]\r
435     },\r
436     {\r
437         "id": "74eb96bf.859028",\r
438         "type": "set",\r
439         "name": "set local variables",\r
440         "xml": "<set>\n<parameter name='unique-nodeId' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $node.node-id`\" />\n",\r
441         "comments": "",\r
442         "x": 1009.566650390625,\r
443         "y": 1542.5666198730469,\r
444         "z": "a00613f8.474e58",\r
445         "wires": []\r
446     },\r
447     {\r
448         "id": "bcb331d5.4b2888",\r
449         "type": "call",\r
450         "name": "call update-network-links-to-aai",\r
451         "xml": "<call module='DataChange' rpc='update-network-links-to-aai' mode='sync' >\n",\r
452         "comments": "",\r
453         "outputs": 1,\r
454         "x": 693.566650390625,\r
455         "y": 1705.5666198730469,\r
456         "z": "a00613f8.474e58",\r
457         "wires": [\r
458             []\r
459         ]\r
460     },\r
461     {\r
462         "id": "842a0151.8415f",\r
463         "type": "save",\r
464         "name": "save pnf-interface relationship to pnf in AAI",\r
465         "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
466         "comments": "",\r
467         "outputs": 1,\r
468         "x": 1475.566650390625,\r
469         "y": 2729.5665893554688,\r
470         "z": "a00613f8.474e58",\r
471         "wires": [\r
472             []\r
473         ]\r
474     },\r
475     {\r
476         "id": "dfba66a0.a570f",\r
477         "type": "save",\r
478         "name": "save pnf relationship to tunnel termination point in AAI",\r
479         "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=\"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[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.ttp-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-ttpId`\" />",\r
480         "comments": "",\r
481         "outputs": 1,\r
482         "x": 1784.566650390625,\r
483         "y": 2244.5665893554688,\r
484         "z": "a00613f8.474e58",\r
485         "wires": [\r
486             [\r
487                 "e89e91e3.86ef68",\r
488                 "cb114306.b09568"\r
489             ]\r
490         ]\r
491     },\r
492     {\r
493         "id": "f1753d6a.8970a",\r
494         "type": "switchNode",\r
495         "name": "switch node ttp",\r
496         "xml": "<switch test='`$node.te.tunnel-termination-point_length`'>\n",\r
497         "comments": "",\r
498         "outputs": 1,\r
499         "x": 948.566650390625,\r
500         "y": 2116.5665893554688,\r
501         "z": "a00613f8.474e58",\r
502         "wires": [\r
503             [\r
504                 "3e378927.66a8e6",\r
505                 "8e7d32ae.6545b8",\r
506                 "823a8d5c.adc0e"\r
507             ]\r
508         ]\r
509     },\r
510     {\r
511         "id": "c17cfb12.a956f",\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": 1296.566650390625,\r
519         "y": 2068.5665893554688,\r
520         "z": "a00613f8.474e58",\r
521         "wires": [\r
522             []\r
523         ]\r
524     },\r
525     {\r
526         "id": "823a8d5c.adc0e",\r
527         "type": "other",\r
528         "name": "other",\r
529         "xml": "<outcome value='Other'>\n",\r
530         "comments": "",\r
531         "outputs": 1,\r
532         "x": 1143.566650390625,\r
533         "y": 2151.5665893554688,\r
534         "z": "a00613f8.474e58",\r
535         "wires": [\r
536             [\r
537                 "db4633a0.6d81"\r
538             ]\r
539         ]\r
540     },\r
541     {\r
542         "id": "488b7493.2568f4",\r
543         "type": "switchNode",\r
544         "name": "switch node tp",\r
545         "xml": "<switch test='`$node.termination-point_length`'>\n",\r
546         "comments": "",\r
547         "outputs": 1,\r
548         "x": 997.566650390625,\r
549         "y": 1666.5665893554688,\r
550         "z": "a00613f8.474e58",\r
551         "wires": [\r
552             [\r
553                 "28c0a1a9.e89256",\r
554                 "298d87ce.e145a",\r
555                 "dc9cd29a.1758c8"\r
556             ]\r
557         ]\r
558     },\r
559     {\r
560         "id": "28c0a1a9.e89256",\r
561         "type": "other",\r
562         "name": "Null",\r
563         "xml": "<outcome value=''>\n",\r
564         "comments": "",\r
565         "outputs": 1,\r
566         "x": 1176.566650390625,\r
567         "y": 1618.5665893554688,\r
568         "z": "a00613f8.474e58",\r
569         "wires": [\r
570             [\r
571                 "dbf4e13b.6fd0b"\r
572             ]\r
573         ]\r
574     },\r
575     {\r
576         "id": "298d87ce.e145a",\r
577         "type": "other",\r
578         "name": "other",\r
579         "xml": "<outcome value='Other'>\n",\r
580         "comments": "",\r
581         "outputs": 1,\r
582         "x": 1175.566650390625,\r
583         "y": 1720.5665893554688,\r
584         "z": "a00613f8.474e58",\r
585         "wires": [\r
586             [\r
587                 "673098cb.075338"\r
588             ]\r
589         ]\r
590     },\r
591     {\r
592         "id": "dbf4e13b.6fd0b",\r
593         "type": "block",\r
594         "name": "block",\r
595         "xml": "<block>\n",\r
596         "atomic": "false",\r
597         "comments": "",\r
598         "outputs": 1,\r
599         "x": 1331.566650390625,\r
600         "y": 1618.5665893554688,\r
601         "z": "a00613f8.474e58",\r
602         "wires": [\r
603             []\r
604         ]\r
605     },\r
606     {\r
607         "id": "ba8600e5.03dd3",\r
608         "type": "record",\r
609         "name": "log file",\r
610         "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
611         "comments": "",\r
612         "outputs": 1,\r
613         "x": 926.566650390625,\r
614         "y": 2160.5665893554688,\r
615         "z": "a00613f8.474e58",\r
616         "wires": [\r
617             []\r
618         ]\r
619     },\r
620     {\r
621         "id": "3e378927.66a8e6",\r
622         "type": "other",\r
623         "name": "Null",\r
624         "xml": "<outcome value=''>\n",\r
625         "comments": "",\r
626         "outputs": 1,\r
627         "x": 1136.566650390625,\r
628         "y": 2002.5665893554688,\r
629         "z": "a00613f8.474e58",\r
630         "wires": [\r
631             [\r
632                 "c17cfb12.a956f"\r
633             ]\r
634         ]\r
635     },\r
636     {\r
637         "id": "8e7d32ae.6545b8",\r
638         "type": "outcome",\r
639         "name": "length 0",\r
640         "xml": "<outcome value='0'>\n",\r
641         "comments": "",\r
642         "outputs": 1,\r
643         "x": 1141.566650390625,\r
644         "y": 2077.5665893554688,\r
645         "z": "a00613f8.474e58",\r
646         "wires": [\r
647             [\r
648                 "c17cfb12.a956f"\r
649             ]\r
650         ]\r
651     },\r
652     {\r
653         "id": "dc9cd29a.1758c8",\r
654         "type": "outcome",\r
655         "name": "length 0",\r
656         "xml": "<outcome value='0'>\n",\r
657         "comments": "",\r
658         "outputs": 1,\r
659         "x": 1186.566650390625,\r
660         "y": 1666.5665893554688,\r
661         "z": "a00613f8.474e58",\r
662         "wires": [\r
663             [\r
664                 "dbf4e13b.6fd0b"\r
665             ]\r
666         ]\r
667     },\r
668     {\r
669         "id": "5792a57.27026dc",\r
670         "type": "set",\r
671         "name": "unset node",\r
672         "xml": "<set>\n<parameter name='node.' value='' />\n\n",\r
673         "comments": "",\r
674         "x": 981.566650390625,\r
675         "y": 1444.5666198730469,\r
676         "z": "a00613f8.474e58",\r
677         "wires": []\r
678     },\r
679     {\r
680         "id": "d97910b0.5bb5e8",\r
681         "type": "set",\r
682         "name": "unset termination point",\r
683         "xml": "<set>\n<parameter name='tp.' value='' />\n",\r
684         "comments": "",\r
685         "x": 1665.566650390625,\r
686         "y": 1616.5665893554688,\r
687         "z": "a00613f8.474e58",\r
688         "wires": []\r
689     },\r
690     {\r
691         "id": "8e56a27.ed9656",\r
692         "type": "set",\r
693         "name": "unset tunnel termination point",\r
694         "xml": "<set>\n<parameter name='ttp.' value='' />\n",\r
695         "comments": "",\r
696         "x": 1711.566650390625,\r
697         "y": 2012.5665893554688,\r
698         "z": "a00613f8.474e58",\r
699         "wires": []\r
700     },\r
701     {\r
702         "id": "e89e91e3.86ef68",\r
703         "type": "success",\r
704         "name": "success",\r
705         "xml": "<outcome value='success'>\n",\r
706         "comments": "",\r
707         "outputs": 1,\r
708         "x": 2116.566650390625,\r
709         "y": 2247.5665893554688,\r
710         "z": "a00613f8.474e58",\r
711         "wires": [\r
712             []\r
713         ]\r
714     },\r
715     {\r
716         "id": "cb114306.b09568",\r
717         "type": "failure",\r
718         "name": "failure",\r
719         "xml": "<outcome value='failure'>\n",\r
720         "comments": "",\r
721         "outputs": 1,\r
722         "x": 2113.566650390625,\r
723         "y": 2295.5665893554688,\r
724         "z": "a00613f8.474e58",\r
725         "wires": [\r
726             []\r
727         ]\r
728     },\r
729     {\r
730         "id": "d3d202cd.308948",\r
731         "type": "record",\r
732         "name": "log file",\r
733         "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
734         "comments": "",\r
735         "outputs": 1,\r
736         "x": 2271.566650390625,\r
737         "y": 2248.5665893554688,\r
738         "z": "a00613f8.474e58",\r
739         "wires": [\r
740             []\r
741         ]\r
742     },\r
743     {\r
744         "id": "8a1cfb4d.696d18",\r
745         "type": "record",\r
746         "name": "log file",\r
747         "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
748         "comments": "",\r
749         "outputs": 1,\r
750         "x": 2272.566650390625,\r
751         "y": 2296.5665893554688,\r
752         "z": "a00613f8.474e58",\r
753         "wires": [\r
754             []\r
755         ]\r
756     },\r
757     {\r
758         "id": "50b8a3b8.1b8644",\r
759         "type": "execute",\r
760         "name": "execute Base64 Converter",\r
761         "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
762         "comments": "",\r
763         "outputs": 1,\r
764         "x": 2131.566650390625,\r
765         "y": 1785.5665893554688,\r
766         "z": "a00613f8.474e58",\r
767         "wires": [\r
768             [\r
769                 "fd502708.7f6088",\r
770                 "ceed1c04.61dda"\r
771             ]\r
772         ]\r
773     },\r
774     {\r
775         "id": "2568e5e9.694fba",\r
776         "type": "switchNode",\r
777         "name": "switch inter-domain-plug-id empty?",\r
778         "xml": "<switch test='`length($tp.te.inter-domain-plug-id) == 0`'>\n\n",\r
779         "comments": "",\r
780         "outputs": 1,\r
781         "x": 1701.566650390625,\r
782         "y": 1786.5665893554688,\r
783         "z": "a00613f8.474e58",\r
784         "wires": [\r
785             [\r
786                 "96134678.4ddb",\r
787                 "b351d2bc.b887c"\r
788             ]\r
789         ]\r
790     },\r
791     {\r
792         "id": "b351d2bc.b887c",\r
793         "type": "outcomeTrue",\r
794         "name": "true",\r
795         "xml": "<outcome value='true'>\n",\r
796         "comments": "",\r
797         "outputs": 1,\r
798         "x": 1928.566650390625,\r
799         "y": 1739.5665893554688,\r
800         "z": "a00613f8.474e58",\r
801         "wires": [\r
802             [\r
803                 "465845f4.285064"\r
804             ]\r
805         ]\r
806     },\r
807     {\r
808         "id": "96134678.4ddb",\r
809         "type": "outcomeFalse",\r
810         "name": "false",\r
811         "xml": "<outcome value='false'>\n",\r
812         "comments": "",\r
813         "outputs": 1,\r
814         "x": 1929.566650390625,\r
815         "y": 1785.5665893554688,\r
816         "z": "a00613f8.474e58",\r
817         "wires": [\r
818             [\r
819                 "50b8a3b8.1b8644"\r
820             ]\r
821         ]\r
822     },\r
823     {\r
824         "id": "465845f4.285064",\r
825         "type": "set",\r
826         "name": "unset tmp.decoded-plug-id",\r
827         "xml": "<set>\n<parameter name='tmp.decoded-plug-id' value='' />\n",\r
828         "comments": "",\r
829         "x": 2132.566650390625,\r
830         "y": 1739.5665893554688,\r
831         "z": "a00613f8.474e58",\r
832         "wires": []\r
833     },\r
834     {\r
835         "id": "fd502708.7f6088",\r
836         "type": "success",\r
837         "name": "success",\r
838         "xml": "<outcome value='success'>\n",\r
839         "comments": "",\r
840         "outputs": 1,\r
841         "x": 2336.566650390625,\r
842         "y": 1762.5665893554688,\r
843         "z": "a00613f8.474e58",\r
844         "wires": [\r
845             [\r
846                 "4fd4e9b0.85ded8"\r
847             ]\r
848         ]\r
849     },\r
850     {\r
851         "id": "ceed1c04.61dda",\r
852         "type": "failure",\r
853         "name": "failure",\r
854         "xml": "<outcome value='failure'>\n",\r
855         "comments": "",\r
856         "outputs": 1,\r
857         "x": 2330.2452392578125,\r
858         "y": 1814.7809009552002,\r
859         "z": "a00613f8.474e58",\r
860         "wires": [\r
861             [\r
862                 "7cb0f25f.577834"\r
863             ]\r
864         ]\r
865     },\r
866     {\r
867         "id": "4fd4e9b0.85ded8",\r
868         "type": "block",\r
869         "name": "block",\r
870         "xml": "<block>\n",\r
871         "atomic": "false",\r
872         "comments": "",\r
873         "outputs": 1,\r
874         "x": 2477.566650390625,\r
875         "y": 1762.5665893554688,\r
876         "z": "a00613f8.474e58",\r
877         "wires": [\r
878             []\r
879         ]\r
880     },\r
881     {\r
882         "id": "7cb0f25f.577834",\r
883         "type": "set",\r
884         "name": "unset tmp.decoded-plug-id",\r
885         "xml": "<set>\n<parameter name='tmp.decoded-plug-id' value='`$tp.te.inter-domain-plug-id`' />\n",\r
886         "comments": "",\r
887         "x": 2536.566650390625,\r
888         "y": 1814.5665893554688,\r
889         "z": "a00613f8.474e58",\r
890         "wires": []\r
891     },\r
892     {\r
893         "id": "621633c6.c8ab1c",\r
894         "type": "set",\r
895         "name": "set tmp.network-if",\r
896         "xml": "<set>\n<!--<parameter name='tmp.network-id' value=\"`$prop.sdncRestApi.thirdpartySdnc.id + '-' + $tmp.original-network-id`\" />-->\n<parameter name='tmp.network-id' value=\"`$tmp.original-network-id`\" />\n\n",\r
897         "comments": "",\r
898         "x": 695.566650390625,\r
899         "y": 84.5666732788086,\r
900         "z": "a00613f8.474e58",\r
901         "wires": []\r
902     },\r
903     {\r
904         "id": "f650a5ef.af19b",\r
905         "type": "get-resource",\r
906         "name": "get-resource esr-thirdparty-sdnc",\r
907         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",\r
908         "comments": "",\r
909         "outputs": 1,\r
910         "x": 822.566650390625,\r
911         "y": 1317.5601196289062,\r
912         "z": "a00613f8.474e58",\r
913         "wires": [\r
914             [\r
915                 "bf82df38.5fc2f8",\r
916                 "ce81da89.35a2c8",\r
917                 "f4d6f467.ce569"\r
918             ]\r
919         ]\r
920     },\r
921     {\r
922         "id": "bf82df38.5fc2f8",\r
923         "type": "success",\r
924         "name": "success",\r
925         "xml": "<outcome value='success'>\n",\r
926         "comments": "",\r
927         "outputs": 1,\r
928         "x": 1068.566650390625,\r
929         "y": 1277.5601196289062,\r
930         "z": "a00613f8.474e58",\r
931         "wires": [\r
932             [\r
933                 "d25f7df8.46aa78"\r
934             ]\r
935         ]\r
936     },\r
937     {\r
938         "id": "ce81da89.35a2c8",\r
939         "type": "not-found",\r
940         "name": "not-found",\r
941         "xml": "<outcome value='not-found'>\n",\r
942         "comments": "",\r
943         "outputs": 1,\r
944         "x": 1072.566650390625,\r
945         "y": 1317.5601196289062,\r
946         "z": "a00613f8.474e58",\r
947         "wires": [\r
948             [\r
949                 "695ad308.5680bc"\r
950             ]\r
951         ]\r
952     },\r
953     {\r
954         "id": "f4d6f467.ce569",\r
955         "type": "other",\r
956         "name": "other",\r
957         "xml": "<outcome value='Other'>\n",\r
958         "comments": "",\r
959         "outputs": 1,\r
960         "x": 1064.566650390625,\r
961         "y": 1357.5601196289062,\r
962         "z": "a00613f8.474e58",\r
963         "wires": [\r
964             [\r
965                 "bf5c49d4.b655e"\r
966             ]\r
967         ]\r
968     },\r
969     {\r
970         "id": "695ad308.5680bc",\r
971         "type": "returnFailure",\r
972         "name": "return failure",\r
973         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
974         "comments": "",\r
975         "x": 1222.566650390625,\r
976         "y": 1317.5601196289062,\r
977         "z": "a00613f8.474e58",\r
978         "wires": []\r
979     },\r
980     {\r
981         "id": "bf5c49d4.b655e",\r
982         "type": "returnFailure",\r
983         "name": "return failure",\r
984         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
985         "comments": "",\r
986         "x": 1222.566650390625,\r
987         "y": 1357.5601196289062,\r
988         "z": "a00613f8.474e58",\r
989         "wires": []\r
990     },\r
991     {\r
992         "id": "d25f7df8.46aa78",\r
993         "type": "block",\r
994         "name": "block",\r
995         "xml": "<block>\n",\r
996         "atomic": "false",\r
997         "comments": "",\r
998         "outputs": 1,\r
999         "x": 1212.566650390625,\r
1000         "y": 1275.5601196289062,\r
1001         "z": "a00613f8.474e58",\r
1002         "wires": [\r
1003             [\r
1004                 "792abb8a.e3a5dc"\r
1005             ]\r
1006         ]\r
1007     },\r
1008     {\r
1009         "id": "792abb8a.e3a5dc",\r
1010         "type": "save",\r
1011         "name": "save network-resource relationship to esr-thirdparty-sdnc",\r
1012         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='network-resource:relationship-list' \n      key='network-resource.network-id = $tmp.network-id'\n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"esr-thirdparty-sdnc\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/aai/v19/external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/' + $prop.sdncRestApi.thirdpartySdnc.id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"esr-thirdparty-sdnc.thirdparty-sdnc-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sdncRestApi.thirdpartySdnc.id`\" />\n\n<!--/aai/v19/external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/SOTNControllerDomain2-->\n",\r
1013         "comments": "",\r
1014         "outputs": 1,\r
1015         "x": 1515.566650390625,\r
1016         "y": 1276.5601196289062,\r
1017         "z": "a00613f8.474e58",\r
1018         "wires": [\r
1019             []\r
1020         ]\r
1021     },\r
1022     {\r
1023         "id": "a3b0d055.5709c",\r
1024         "type": "switchNode",\r
1025         "name": "switch llcl length",\r
1026         "xml": "<switch test='`$node.te.tunnel-termination-point[$ttidx].local-link-connectivities.local-link-connectivity_length`'>\n",\r
1027         "comments": "",\r
1028         "outputs": 1,\r
1029         "x": 1645.566650390625,\r
1030         "y": 2416.5601196289062,\r
1031         "z": "a00613f8.474e58",\r
1032         "wires": [\r
1033             [\r
1034                 "51a385c5.556044",\r
1035                 "df46ecf8.1b26",\r
1036                 "6a30fe4f.16242"\r
1037             ]\r
1038         ]\r
1039     },\r
1040     {\r
1041         "id": "51a385c5.556044",\r
1042         "type": "other",\r
1043         "name": "Null",\r
1044         "xml": "<outcome value=''>\n",\r
1045         "comments": "",\r
1046         "outputs": 1,\r
1047         "x": 1833.566650390625,\r
1048         "y": 2302.5601196289062,\r
1049         "z": "a00613f8.474e58",\r
1050         "wires": [\r
1051             [\r
1052                 "f8b8a3a6.588ed8"\r
1053             ]\r
1054         ]\r
1055     },\r
1056     {\r
1057         "id": "df46ecf8.1b26",\r
1058         "type": "outcome",\r
1059         "name": "length 0",\r
1060         "xml": "<outcome value='0'>\n",\r
1061         "comments": "",\r
1062         "outputs": 1,\r
1063         "x": 1838.566650390625,\r
1064         "y": 2377.5601196289062,\r
1065         "z": "a00613f8.474e58",\r
1066         "wires": [\r
1067             [\r
1068                 "f8b8a3a6.588ed8"\r
1069             ]\r
1070         ]\r
1071     },\r
1072     {\r
1073         "id": "6a30fe4f.16242",\r
1074         "type": "other",\r
1075         "name": "other",\r
1076         "xml": "<outcome value='Other'>\n",\r
1077         "comments": "",\r
1078         "outputs": 1,\r
1079         "x": 1840.566650390625,\r
1080         "y": 2451.5601196289062,\r
1081         "z": "a00613f8.474e58",\r
1082         "wires": [\r
1083             [\r
1084                 "fa9c435a.363ed"\r
1085             ]\r
1086         ]\r
1087     },\r
1088     {\r
1089         "id": "f8b8a3a6.588ed8",\r
1090         "type": "block",\r
1091         "name": "block",\r
1092         "xml": "<block>\n",\r
1093         "atomic": "false",\r
1094         "comments": "",\r
1095         "outputs": 1,\r
1096         "x": 1993.566650390625,\r
1097         "y": 2368.5601196289062,\r
1098         "z": "a00613f8.474e58",\r
1099         "wires": [\r
1100             []\r
1101         ]\r
1102     },\r
1103     {\r
1104         "id": "76c367aa.287738",\r
1105         "type": "save",\r
1106         "name": "save ttp relationship to tp in AAI",\r
1107         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='tunnel-termination-point:relationship-list' \n      key='tunnel-termination-point.ttp-id = $unique-ttpId' 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/pnfs/pnf/' + $unique-nodeId + '/p-interfaces/p-interface/' + $unique-ltpId-second`\" />\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-second`\" />",\r
1108         "comments": "",\r
1109         "outputs": 1,\r
1110         "x": 2221.566650390625,\r
1111         "y": 2454.5601196289062,\r
1112         "z": "a00613f8.474e58",\r
1113         "wires": [\r
1114             []\r
1115         ]\r
1116     },\r
1117     {\r
1118         "id": "c237437d.176ec",\r
1119         "type": "set",\r
1120         "name": "set unique-ltpId second",\r
1121         "xml": "<set>\n<parameter name='unique-ltpId-second' value=\"`$unique-nodeId + '-ltpId-' + $node.te.tunnel-termination-point[$ttidx].local-link-connectivities.local-link-connectivity[0].link-tp-ref`\" />\n",\r
1122         "comments": "",\r
1123         "x": 2170.566650390625,\r
1124         "y": 2410.5601196289062,\r
1125         "z": "a00613f8.474e58",\r
1126         "wires": []\r
1127     },\r
1128     {\r
1129         "id": "fa9c435a.363ed",\r
1130         "type": "block",\r
1131         "name": "block",\r
1132         "xml": "<block>\n",\r
1133         "atomic": "false",\r
1134         "comments": "",\r
1135         "outputs": 1,\r
1136         "x": 1980.566650390625,\r
1137         "y": 2447.5601196289062,\r
1138         "z": "a00613f8.474e58",\r
1139         "wires": [\r
1140             [\r
1141                 "c237437d.176ec",\r
1142                 "76c367aa.287738"\r
1143             ]\r
1144         ]\r
1145     },\r
1146     {\r
1147         "id": "7aeac230.77765c",\r
1148         "type": "switchNode",\r
1149         "name": "switch tmp.client-id == null",\r
1150         "xml": "<switch test=\"`$tmp.client-id == ''`\">\n",\r
1151         "comments": "",\r
1152         "outputs": 1,\r
1153         "x": 1334.566650390625,\r
1154         "y": 180.76666259765625,\r
1155         "z": "a00613f8.474e58",\r
1156         "wires": [\r
1157             [\r
1158                 "9fd2771f.b2305"\r
1159             ]\r
1160         ]\r
1161     },\r
1162     {\r
1163         "id": "d25e9719.928048",\r
1164         "type": "block",\r
1165         "name": "block",\r
1166         "xml": "<block>\n",\r
1167         "atomic": "false",\r
1168         "comments": "",\r
1169         "outputs": 1,\r
1170         "x": 1683.566650390625,\r
1171         "y": 180.76666259765625,\r
1172         "z": "a00613f8.474e58",\r
1173         "wires": [\r
1174             [\r
1175                 "32b7e6d6.b83d1a"\r
1176             ]\r
1177         ]\r
1178     },\r
1179     {\r
1180         "id": "9fd2771f.b2305",\r
1181         "type": "outcomeTrue",\r
1182         "name": "true",\r
1183         "xml": "<outcome value='true'>\n",\r
1184         "comments": "",\r
1185         "outputs": 1,\r
1186         "x": 1534.566650390625,\r
1187         "y": 180.566650390625,\r
1188         "z": "a00613f8.474e58",\r
1189         "wires": [\r
1190             [\r
1191                 "d25e9719.928048"\r
1192             ]\r
1193         ]\r
1194     },\r
1195     {\r
1196         "id": "41c6a2f9.33057c",\r
1197         "type": "set",\r
1198         "name": "set tmp.client-id tmp.te-topo-id tmp.provider-id",\r
1199         "xml": "<set>\n<parameter name='tmp.client-id' value='`$network.te-topology-identifier.client-id`' />\n<parameter name='tmp.te-topo-id' value='`$network.te-topology-identifier.topology-id`' />\n<parameter name='tmp.provider-id' value='`$network.te-topology-identifier.provider-id`' />",\r
1200         "comments": "",\r
1201         "x": 790.566650390625,\r
1202         "y": 124.16668701171875,\r
1203         "z": "a00613f8.474e58",\r
1204         "wires": []\r
1205     },\r
1206     {\r
1207         "id": "32b7e6d6.b83d1a",\r
1208         "type": "set",\r
1209         "name": "set tmp.client-id",\r
1210         "xml": "<set>\n<parameter name='tmp.client-id' value='`$network.client-id`' />",\r
1211         "comments": "",\r
1212         "x": 1849.566650390625,\r
1213         "y": 181.16665649414062,\r
1214         "z": "a00613f8.474e58",\r
1215         "wires": []\r
1216     },\r
1217     {\r
1218         "id": "6b15946e.9597ac",\r
1219         "type": "switchNode",\r
1220         "name": "switch tmp.te-topo-id == null",\r
1221         "xml": "<switch test=\"`$tmp.te-topo-id == ''`\">",\r
1222         "comments": "",\r
1223         "outputs": 1,\r
1224         "x": 1335.566650390625,\r
1225         "y": 244.16665649414062,\r
1226         "z": "a00613f8.474e58",\r
1227         "wires": [\r
1228             [\r
1229                 "71fa1b7b.ba79b4"\r
1230             ]\r
1231         ]\r
1232     },\r
1233     {\r
1234         "id": "a3f5f044.007008",\r
1235         "type": "block",\r
1236         "name": "block",\r
1237         "xml": "<block>\n",\r
1238         "atomic": "false",\r
1239         "comments": "",\r
1240         "outputs": 1,\r
1241         "x": 1684.566650390625,\r
1242         "y": 244.16665649414062,\r
1243         "z": "a00613f8.474e58",\r
1244         "wires": [\r
1245             [\r
1246                 "a8f5864b.aef3c8"\r
1247             ]\r
1248         ]\r
1249     },\r
1250     {\r
1251         "id": "71fa1b7b.ba79b4",\r
1252         "type": "outcomeTrue",\r
1253         "name": "true",\r
1254         "xml": "<outcome value='true'>\n",\r
1255         "comments": "",\r
1256         "outputs": 1,\r
1257         "x": 1535.566650390625,\r
1258         "y": 243.96664428710938,\r
1259         "z": "a00613f8.474e58",\r
1260         "wires": [\r
1261             [\r
1262                 "a3f5f044.007008"\r
1263             ]\r
1264         ]\r
1265     },\r
1266     {\r
1267         "id": "a8f5864b.aef3c8",\r
1268         "type": "set",\r
1269         "name": "set tmp.te-topo-id",\r
1270         "xml": "<set>\n<parameter name='tmp.te-topo-id' value='`$network.te-topology-id`' />\n",\r
1271         "comments": "",\r
1272         "x": 1859.566650390625,\r
1273         "y": 243.566650390625,\r
1274         "z": "a00613f8.474e58",\r
1275         "wires": []\r
1276     },\r
1277     {\r
1278         "id": "f92eff62.249f6",\r
1279         "type": "switchNode",\r
1280         "name": "switch tmp.provider-id == null",\r
1281         "xml": "<switch test=\"`$tmp.provider-id == ''`\">\n",\r
1282         "comments": "",\r
1283         "outputs": 1,\r
1284         "x": 1342.566650390625,\r
1285         "y": 296.1666564941406,\r
1286         "z": "a00613f8.474e58",\r
1287         "wires": [\r
1288             [\r
1289                 "2d5bf1b1.a9788e"\r
1290             ]\r
1291         ]\r
1292     },\r
1293     {\r
1294         "id": "1a037929.4dd227",\r
1295         "type": "block",\r
1296         "name": "block",\r
1297         "xml": "<block>\n",\r
1298         "atomic": "false",\r
1299         "comments": "",\r
1300         "outputs": 1,\r
1301         "x": 1691.566650390625,\r
1302         "y": 296.1666564941406,\r
1303         "z": "a00613f8.474e58",\r
1304         "wires": [\r
1305             [\r
1306                 "a99d65fe.4861b8"\r
1307             ]\r
1308         ]\r
1309     },\r
1310     {\r
1311         "id": "2d5bf1b1.a9788e",\r
1312         "type": "outcomeTrue",\r
1313         "name": "true",\r
1314         "xml": "<outcome value='true'>\n",\r
1315         "comments": "",\r
1316         "outputs": 1,\r
1317         "x": 1542.566650390625,\r
1318         "y": 295.9666442871094,\r
1319         "z": "a00613f8.474e58",\r
1320         "wires": [\r
1321             [\r
1322                 "1a037929.4dd227"\r
1323             ]\r
1324         ]\r
1325     },\r
1326     {\r
1327         "id": "a99d65fe.4861b8",\r
1328         "type": "set",\r
1329         "name": "set tmp.provider-id",\r
1330         "xml": "<set>\n<parameter name='tmp.provider-id' value='`$network.provider-id`' />",\r
1331         "comments": "",\r
1332         "x": 1866.566650390625,\r
1333         "y": 296.566650390625,\r
1334         "z": "a00613f8.474e58",\r
1335         "wires": []\r
1336     },\r
1337     {\r
1338         "id": "55d89697.da8d4",\r
1339         "type": "switchNode",\r
1340         "name": "switch tmp.client-id == null",\r
1341         "xml": "<switch test=\"`length($tmp.client-id) == 0`\">\n",\r
1342         "comments": "",\r
1343         "outputs": 1,\r
1344         "x": 1267.3333740234375,\r
1345         "y": 389.3333435058594,\r
1346         "z": "a00613f8.474e58",\r
1347         "wires": [\r
1348             [\r
1349                 "272672a2.e44276"\r
1350             ]\r
1351         ]\r
1352     },\r
1353     {\r
1354         "id": "ab7feb07.dbe038",\r
1355         "type": "block",\r
1356         "name": "block",\r
1357         "xml": "<block>\n",\r
1358         "atomic": "false",\r
1359         "comments": "",\r
1360         "outputs": 1,\r
1361         "x": 1731.3333740234375,\r
1362         "y": 369.3333435058594,\r
1363         "z": "a00613f8.474e58",\r
1364         "wires": [\r
1365             [\r
1366                 "2193f8b4.77b338"\r
1367             ]\r
1368         ]\r
1369     },\r
1370     {\r
1371         "id": "2193f8b4.77b338",\r
1372         "type": "set",\r
1373         "name": "set tmp.client-id",\r
1374         "xml": "<set>\n<parameter name='tmp.client-id' value='`$network.client-id`' />",\r
1375         "comments": "",\r
1376         "x": 1897.3333740234375,\r
1377         "y": 369.73333740234375,\r
1378         "z": "a00613f8.474e58",\r
1379         "wires": []\r
1380     },\r
1381     {\r
1382         "id": "fc94b1ae.7adf4",\r
1383         "type": "switchNode",\r
1384         "name": "switch tmp.te-topo-id == null",\r
1385         "xml": "<switch test=\"`length($tmp.te-topo-id) == 0`\">",\r
1386         "comments": "",\r
1387         "outputs": 1,\r
1388         "x": 1251.3333740234375,\r
1389         "y": 472.7333679199219,\r
1390         "z": "a00613f8.474e58",\r
1391         "wires": [\r
1392             [\r
1393                 "9b4c347f.fa1878"\r
1394             ]\r
1395         ]\r
1396     },\r
1397     {\r
1398         "id": "71cf7044.501c68",\r
1399         "type": "block",\r
1400         "name": "block",\r
1401         "xml": "<block>\n",\r
1402         "atomic": "false",\r
1403         "comments": "",\r
1404         "outputs": 1,\r
1405         "x": 1723.3333740234375,\r
1406         "y": 436.73333740234375,\r
1407         "z": "a00613f8.474e58",\r
1408         "wires": [\r
1409             [\r
1410                 "9f940be9.c32868"\r
1411             ]\r
1412         ]\r
1413     },\r
1414     {\r
1415         "id": "9f940be9.c32868",\r
1416         "type": "set",\r
1417         "name": "set tmp.te-topo-id",\r
1418         "xml": "<set>\n<parameter name='tmp.te-topo-id' value='`$network.te-topology-id`' />\n",\r
1419         "comments": "",\r
1420         "x": 1898.3333740234375,\r
1421         "y": 436.1333312988281,\r
1422         "z": "a00613f8.474e58",\r
1423         "wires": []\r
1424     },\r
1425     {\r
1426         "id": "d0070ca3.12857",\r
1427         "type": "switchNode",\r
1428         "name": "switch tmp.provider-id == null",\r
1429         "xml": "<switch test=\"`length($tmp.provider-id) == 0`\">\n",\r
1430         "comments": "",\r
1431         "outputs": 1,\r
1432         "x": 1258.3333740234375,\r
1433         "y": 537.7333374023438,\r
1434         "z": "a00613f8.474e58",\r
1435         "wires": [\r
1436             [\r
1437                 "63564627.e914c8"\r
1438             ]\r
1439         ]\r
1440     },\r
1441     {\r
1442         "id": "1ee1eaf5.757aed",\r
1443         "type": "block",\r
1444         "name": "block",\r
1445         "xml": "<block>\n",\r
1446         "atomic": "false",\r
1447         "comments": "",\r
1448         "outputs": 1,\r
1449         "x": 1730.3333740234375,\r
1450         "y": 488.73333740234375,\r
1451         "z": "a00613f8.474e58",\r
1452         "wires": [\r
1453             [\r
1454                 "be338d62.c1df2"\r
1455             ]\r
1456         ]\r
1457     },\r
1458     {\r
1459         "id": "be338d62.c1df2",\r
1460         "type": "set",\r
1461         "name": "set tmp.provider-id",\r
1462         "xml": "<set>\n<parameter name='tmp.provider-id' value='`$network.provider-id`' />",\r
1463         "comments": "",\r
1464         "x": 1905.3333740234375,\r
1465         "y": 489.1333312988281,\r
1466         "z": "a00613f8.474e58",\r
1467         "wires": []\r
1468     },\r
1469     {\r
1470         "id": "272672a2.e44276",\r
1471         "type": "outcomeTrue",\r
1472         "name": "true",\r
1473         "xml": "<outcome value='true'>\n",\r
1474         "comments": "",\r
1475         "outputs": 1,\r
1476         "x": 1468.3333740234375,\r
1477         "y": 389.3333435058594,\r
1478         "z": "a00613f8.474e58",\r
1479         "wires": [\r
1480             [\r
1481                 "ab7feb07.dbe038"\r
1482             ]\r
1483         ]\r
1484     },\r
1485     {\r
1486         "id": "9b4c347f.fa1878",\r
1487         "type": "outcomeTrue",\r
1488         "name": "true",\r
1489         "xml": "<outcome value='true'>\n",\r
1490         "comments": "",\r
1491         "outputs": 1,\r
1492         "x": 1469.3333740234375,\r
1493         "y": 452.73333740234375,\r
1494         "z": "a00613f8.474e58",\r
1495         "wires": [\r
1496             [\r
1497                 "71cf7044.501c68"\r
1498             ]\r
1499         ]\r
1500     },\r
1501     {\r
1502         "id": "63564627.e914c8",\r
1503         "type": "outcomeTrue",\r
1504         "name": "true",\r
1505         "xml": "<outcome value='true'>\n",\r
1506         "comments": "",\r
1507         "outputs": 1,\r
1508         "x": 1476.3333740234375,\r
1509         "y": 504.73333740234375,\r
1510         "z": "a00613f8.474e58",\r
1511         "wires": [\r
1512             [\r
1513                 "1ee1eaf5.757aed"\r
1514             ]\r
1515         ]\r
1516     },\r
1517     {\r
1518         "id": "7cbfe92.8c19d98",\r
1519         "type": "save",\r
1520         "name": "get network-resource from aai",\r
1521         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-resource\"\n\t    key=\"network-resource.network-id = $tmp.network-id\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmpo.aai.network-resource\" >\n",\r
1522         "comments": "",\r
1523         "outputs": 1,\r
1524         "x": 819.3333129882812,\r
1525         "y": 729.3333129882812,\r
1526         "z": "a00613f8.474e58",\r
1527         "wires": [\r
1528             [\r
1529                 "8087f47e.b7d908",\r
1530                 "2e139068.5a46b"\r
1531             ]\r
1532         ]\r
1533     },\r
1534     {\r
1535         "id": "8087f47e.b7d908",\r
1536         "type": "success",\r
1537         "name": "success",\r
1538         "xml": "<outcome value='success'>\n",\r
1539         "comments": "",\r
1540         "outputs": 1,\r
1541         "x": 1079.333251953125,\r
1542         "y": 694.3332824707031,\r
1543         "z": "a00613f8.474e58",\r
1544         "wires": [\r
1545             [\r
1546                 "6dd6f49f.057544"\r
1547             ]\r
1548         ]\r
1549     },\r
1550     {\r
1551         "id": "2e139068.5a46b",\r
1552         "type": "not-found",\r
1553         "name": "not-found",\r
1554         "xml": "<outcome value='not-found'>\n",\r
1555         "comments": "",\r
1556         "outputs": 1,\r
1557         "x": 1085.82421875,\r
1558         "y": 755.9073486328125,\r
1559         "z": "a00613f8.474e58",\r
1560         "wires": [\r
1561             [\r
1562                 "6d4b5f63.14c128"\r
1563             ]\r
1564         ]\r
1565     },\r
1566     {\r
1567         "id": "6dd6f49f.057544",\r
1568         "type": "block",\r
1569         "name": "block",\r
1570         "xml": "<block>\n",\r
1571         "atomic": "false",\r
1572         "comments": "",\r
1573         "outputs": 1,\r
1574         "x": 1227.3333740234375,\r
1575         "y": 692.3333129882812,\r
1576         "z": "a00613f8.474e58",\r
1577         "wires": [\r
1578             [\r
1579                 "4e2a0d4a.685e74",\r
1580                 "d3c795bb.795f1",\r
1581                 "5fcca940.5ce38",\r
1582                 "6c8a563f.779dc"\r
1583             ]\r
1584         ]\r
1585     },\r
1586     {\r
1587         "id": "6d4b5f63.14c128",\r
1588         "type": "block",\r
1589         "name": "block",\r
1590         "xml": "<block>\n",\r
1591         "atomic": "false",\r
1592         "comments": "",\r
1593         "outputs": 1,\r
1594         "x": 1228.3333740234375,\r
1595         "y": 757.3333129882812,\r
1596         "z": "a00613f8.474e58",\r
1597         "wires": [\r
1598             []\r
1599         ]\r
1600     },\r
1601     {\r
1602         "id": "4e2a0d4a.685e74",\r
1603         "type": "set",\r
1604         "name": "set tmp.network-if",\r
1605         "xml": "<set>\n<!--<parameter name='tmp.network-id' value=\"`$prop.sdncRestApi.thirdpartySdnc.id + '-' + $tmp.original-network-id`\" />-->\n<parameter name='tmp.network-id' value=\"`'providerId-' + $tmp.provider-id + '-clientId-' + $tmp.client-id + '-topologyId-' + $tmp.te-topo-id `\" />\n<!--<parameter name='tmp.network-id' value=\"`'providerId-' + $tmpo.provider-id `\" />-->\n\n",\r
1606         "comments": "",\r
1607         "x": 1425.3333740234375,\r
1608         "y": 814.3333129882812,\r
1609         "z": "a00613f8.474e58",\r
1610         "wires": []\r
1611     },\r
1612     {\r
1613         "id": "d3c795bb.795f1",\r
1614         "type": "set",\r
1615         "name": "set tmpo.provider-id",\r
1616         "xml": "<set>\n<parameter name='tmpo.provider-id' value=\"`$tmp.provider-id + 'new' `\" />",\r
1617         "comments": "",\r
1618         "x": 1418.3333740234375,\r
1619         "y": 620.3333129882812,\r
1620         "z": "a00613f8.474e58",\r
1621         "wires": []\r
1622     },\r
1623     {\r
1624         "id": "5fcca940.5ce38",\r
1625         "type": "set",\r
1626         "name": "unset tmp.network-if",\r
1627         "xml": "<set>\n<!--<parameter name='tmp.network-id' value=\"`$prop.sdncRestApi.thirdpartySdnc.id + '-' + $tmp.original-network-id`\" />-->\n<parameter name='tmp.network-id' value=\"\" />\n\n",\r
1628         "comments": "",\r
1629         "x": 1425.3333740234375,\r
1630         "y": 738.3333129882812,\r
1631         "z": "a00613f8.474e58",\r
1632         "wires": []\r
1633     },\r
1634     {\r
1635         "id": "6c8a563f.779dc",\r
1636         "type": "set",\r
1637         "name": "set tmp.provider-id",\r
1638         "xml": "<set>\n<parameter name='tmp.provider-id' value=\"`$tmpo.provider-id`\" />",\r
1639         "comments": "",\r
1640         "x": 1419.566650390625,\r
1641         "y": 662.566650390625,\r
1642         "z": "a00613f8.474e58",\r
1643         "wires": []\r
1644     }\r
1645 ]