Support individual CLL deletion, and UNI removal from Ethernet Service, and
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / cloud_leased_line / GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-F1-Activate.json
1 [\r
2     {\r
3         "id": "6467c9b6.3ea7b",\r
4         "type": "save",\r
5         "name": "get all-vpn-bindings from aai",\r
6         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-bindings\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v24/network/vpn-bindings\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.all-vpn-bindings\" >\n",\r
7         "comments": "",\r
8         "outputs": 1,\r
9         "x": 415.8833312988281,\r
10         "y": 377,\r
11         "z": "3f6a2e0f.b66c8a",\r
12         "wires": [\r
13             [\r
14                 "1c0c6fa0.017178",\r
15                 "ec984d7b.605098",\r
16                 "25450eba.0fd99a"\r
17             ]\r
18         ]\r
19     },\r
20     {\r
21         "id": "1c0c6fa0.017178",\r
22         "type": "success",\r
23         "name": "success",\r
24         "xml": "<outcome value='success'>\n",\r
25         "comments": "",\r
26         "outputs": 1,\r
27         "x": 603.8833312988281,\r
28         "y": 390,\r
29         "z": "3f6a2e0f.b66c8a",\r
30         "wires": [\r
31             [\r
32                 "fcdf737f.3ba08"\r
33             ]\r
34         ]\r
35     },\r
36     {\r
37         "id": "ec984d7b.605098",\r
38         "type": "not-found",\r
39         "name": "not-found",\r
40         "xml": "<outcome value='not-found'>\n",\r
41         "comments": "",\r
42         "outputs": 1,\r
43         "x": 611.374267578125,\r
44         "y": 432.57403564453125,\r
45         "z": "3f6a2e0f.b66c8a",\r
46         "wires": [\r
47             []\r
48         ]\r
49     },\r
50     {\r
51         "id": "25450eba.0fd99a",\r
52         "type": "failure",\r
53         "name": "failure",\r
54         "xml": "<outcome value='failure'>\n",\r
55         "comments": "",\r
56         "outputs": 1,\r
57         "x": 601.8833312988281,\r
58         "y": 479,\r
59         "z": "3f6a2e0f.b66c8a",\r
60         "wires": [\r
61             [\r
62                 "f645589d.ed3d98"\r
63             ]\r
64         ]\r
65     },\r
66     {\r
67         "id": "fcdf737f.3ba08",\r
68         "type": "block",\r
69         "name": "block : atomic",\r
70         "xml": "<block atomic=\"true\">",\r
71         "atomic": "true",\r
72         "outputs": 1,\r
73         "x": 776.8833312988281,\r
74         "y": 388,\r
75         "z": "3f6a2e0f.b66c8a",\r
76         "wires": [\r
77             [\r
78                 "6641b1bb.011df8"\r
79             ]\r
80         ]\r
81     },\r
82     {\r
83         "id": "6641b1bb.011df8",\r
84         "type": "for",\r
85         "name": "for vpnidx in all-vpn-bindings",\r
86         "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",\r
87         "comments": "",\r
88         "outputs": 1,\r
89         "x": 1005.8833312988281,\r
90         "y": 389,\r
91         "z": "3f6a2e0f.b66c8a",\r
92         "wires": [\r
93             [\r
94                 "42fd94e4.9f459c"\r
95             ]\r
96         ]\r
97     },\r
98     {\r
99         "id": "42fd94e4.9f459c",\r
100         "type": "block",\r
101         "name": "block : atomic",\r
102         "xml": "<block atomic='true'>",\r
103         "atomic": "true",\r
104         "comments": "",\r
105         "outputs": 1,\r
106         "x": 1220.8833312988281,\r
107         "y": 390,\r
108         "z": "3f6a2e0f.b66c8a",\r
109         "wires": [\r
110             [\r
111                 "341f3db4.7e268a"\r
112             ]\r
113         ]\r
114     },\r
115     {\r
116         "id": "802e937a.3ac",\r
117         "type": "switchNode",\r
118         "name": "switch vpnuuid is for this slice",\r
119         "xml": "<!--<switch test=\"`$tmp.slicevpnuuids[$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id] != '' `\">-->\n\n<!-- Replace vpn-type with slice-id (a new attribbute in the latest AAI) -->\n<switch test=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].slice-id == $tmp.aai.service-instance.service-instance-id `\">\n\n",\r
120         "comments": "",\r
121         "outputs": 1,\r
122         "x": 1474.8833312988281,\r
123         "y": 312,\r
124         "z": "3f6a2e0f.b66c8a",\r
125         "wires": [\r
126             [\r
127                 "ccfe4ade.41ae98",\r
128                 "912c0faa.e5e1c8"\r
129             ]\r
130         ]\r
131     },\r
132     {\r
133         "id": "ccfe4ade.41ae98",\r
134         "type": "outcomeTrue",\r
135         "name": "true",\r
136         "xml": "<outcome value='true'>\n",\r
137         "comments": "",\r
138         "outputs": 1,\r
139         "x": 1691.8833312988281,\r
140         "y": 291,\r
141         "z": "3f6a2e0f.b66c8a",\r
142         "wires": [\r
143             [\r
144                 "341f3db4.7e268a"\r
145             ]\r
146         ]\r
147     },\r
148     {\r
149         "id": "912c0faa.e5e1c8",\r
150         "type": "outcomeFalse",\r
151         "name": "false",\r
152         "xml": "<outcome value='false'>\n",\r
153         "comments": "",\r
154         "outputs": 1,\r
155         "x": 1691.8833312988281,\r
156         "y": 340,\r
157         "z": "3f6a2e0f.b66c8a",\r
158         "wires": [\r
159             []\r
160         ]\r
161     },\r
162     {\r
163         "id": "341f3db4.7e268a",\r
164         "type": "block",\r
165         "name": "block : atomic",\r
166         "xml": "<block atomic='true'>",\r
167         "atomic": "true",\r
168         "comments": "",\r
169         "outputs": 1,\r
170         "x": 1875.8833312988281,\r
171         "y": 377,\r
172         "z": "3f6a2e0f.b66c8a",\r
173         "wires": [\r
174             [\r
175                 "b1ca96f9.f78f38",\r
176                 "2c3b3231.83c2be",\r
177                 "4660bf61.473a18"\r
178             ]\r
179         ]\r
180     },\r
181     {\r
182         "id": "377c3031.0fc7c",\r
183         "type": "dgstart",\r
184         "name": "DGSTART",\r
185         "outputs": 1,\r
186         "x": 234.88333129882812,\r
187         "y": 118,\r
188         "z": "3f6a2e0f.b66c8a",\r
189         "wires": [\r
190             [\r
191                 "8b8ba227.5e7638"\r
192             ]\r
193         ]\r
194     },\r
195     {\r
196         "id": "8b8ba227.5e7638",\r
197         "type": "service-logic",\r
198         "name": "GENERIC-RESOURCE-API ${project.version}",\r
199         "module": "GENERIC-RESOURCE-API",\r
200         "version": "${project.version}",\r
201         "comments": "",\r
202         "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='GENERIC-RESOURCE-API' version='${project.version}'>",\r
203         "outputs": 1,\r
204         "x": 519.1690216064453,\r
205         "y": 179.23810863494873,\r
206         "z": "3f6a2e0f.b66c8a",\r
207         "wires": [\r
208             [\r
209                 "6c55ded0.30c498"\r
210             ]\r
211         ]\r
212     },\r
213     {\r
214         "id": "6c55ded0.30c498",\r
215         "type": "method",\r
216         "name": "method cll-vnf-topology-operation-cll-F1-Activate",\r
217         "xml": "<method rpc='cll-vnf-topology-operation-cll-F1-Activate' mode='sync'>\n",\r
218         "comments": "",\r
219         "outputs": 1,\r
220         "x": 525.3119354248047,\r
221         "y": 264.0000305175781,\r
222         "z": "3f6a2e0f.b66c8a",\r
223         "wires": [\r
224             [\r
225                 "b63c19cf.5911b8"\r
226             ]\r
227         ]\r
228     },\r
229     {\r
230         "id": "b63c19cf.5911b8",\r
231         "type": "block",\r
232         "name": "block : atomic",\r
233         "xml": "<block atomic=\"true\">",\r
234         "atomic": "true",\r
235         "outputs": 1,\r
236         "x": 835.1213684082031,\r
237         "y": 255.66668701171875,\r
238         "z": "3f6a2e0f.b66c8a",\r
239         "wires": [\r
240             [\r
241                 "6467c9b6.3ea7b",\r
242                 "7714415.bcb45c",\r
243                 "2cf2ff05.5ecb98",\r
244                 "ff64d6f0.1d24e",\r
245                 "c19ef147.be92d8"\r
246             ]\r
247         ]\r
248     },\r
249     {\r
250         "id": "b1ca96f9.f78f38",\r
251         "type": "set",\r
252         "name": "set tmp.aai.vpn-binding",\r
253         "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].`\" />\n",\r
254         "comments": "",\r
255         "x": 2092.883331298828,\r
256         "y": 315,\r
257         "z": "3f6a2e0f.b66c8a",\r
258         "wires": []\r
259     },\r
260     {\r
261         "id": "f11c1dac.45c748",\r
262         "type": "set",\r
263         "name": "set attachment_param for OTN A",\r
264         "xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingA.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />\n<!--<parameter name='dst-tpn-id' value='1' />-->\n<parameter name='dst-tpn-id' value='`$tmp.aai.vpn-bindingA.customer-vpn-id`' />\n<parameter name='dst-ttp-id' value='`$tmp.aai.vpn-bindingA.dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-src-domain' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />\n",\r
265         "comments": "",\r
266         "x": 4261.883331298828,\r
267         "y": 201,\r
268         "z": "3f6a2e0f.b66c8a",\r
269         "wires": []\r
270     },\r
271     {\r
272         "id": "c95c33ef.381fa8",\r
273         "type": "execute",\r
274         "name": "execute RestApiCallNode Create OTN tunnel with token",\r
275         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cll-otn-src-domain-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
276         "comments": "",\r
277         "outputs": 1,\r
278         "x": 4342.883331298828,\r
279         "y": 516,\r
280         "z": "3f6a2e0f.b66c8a",\r
281         "wires": [\r
282             [\r
283                 "89c7efd5.cb6558",\r
284                 "d5cfec9d.5347f8"\r
285             ]\r
286         ]\r
287     },\r
288     {\r
289         "id": "89c7efd5.cb6558",\r
290         "type": "failure",\r
291         "name": "failure",\r
292         "xml": "<outcome value='failure'>\n",\r
293         "comments": "",\r
294         "outputs": 1,\r
295         "x": 4652.383331298828,\r
296         "y": 485,\r
297         "z": "3f6a2e0f.b66c8a",\r
298         "wires": [\r
299             [\r
300                 "beffe966.8b1b08"\r
301             ]\r
302         ]\r
303     },\r
304     {\r
305         "id": "d5cfec9d.5347f8",\r
306         "type": "success",\r
307         "name": "success",\r
308         "xml": "<outcome value='success'>\n",\r
309         "comments": "",\r
310         "outputs": 1,\r
311         "x": 4657.383331298828,\r
312         "y": 550,\r
313         "z": "3f6a2e0f.b66c8a",\r
314         "wires": [\r
315             [\r
316                 "18fce568.1c292b"\r
317             ]\r
318         ]\r
319     },\r
320     {\r
321         "id": "beffe966.8b1b08",\r
322         "type": "returnFailure",\r
323         "name": "return failure",\r
324         "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=\"Error executing Create OTN tunnel rest api\" />\n",\r
325         "comments": "",\r
326         "x": 4828.383331298828,\r
327         "y": 485,\r
328         "z": "3f6a2e0f.b66c8a",\r
329         "wires": []\r
330     },\r
331     {\r
332         "id": "18fce568.1c292b",\r
333         "type": "block",\r
334         "name": "block : atomic",\r
335         "xml": "<block atomic=\"true\">",\r
336         "atomic": "true",\r
337         "comments": "",\r
338         "outputs": 1,\r
339         "x": 4823.883331298828,\r
340         "y": 550,\r
341         "z": "3f6a2e0f.b66c8a",\r
342         "wires": [\r
343             []\r
344         ]\r
345     },\r
346     {\r
347         "id": "64fdffc9.427678",\r
348         "type": "set",\r
349         "name": "set sotn_value",\r
350         "xml": "<set>\n<!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.connectivity-id`' />-->\n<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.etht-svc-name`' />\n<parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='provider-id' value='`$tmp.aai.connectivityA.access-provider-id`' />\n<parameter name='client-id' value='`$tmp.aai.connectivityA.access-client-id`' />\n<parameter name='topology-id' value='`$tmp.aai.connectivityA.access-topology-id`' />\n<parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n<parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityA.connectivity-id`' />\n<parameter name='index-number' value='0' />\n<parameter name='eth-node-id' value='`$tmp.aai.connectivityA.access-node-id`' />\n<parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityA.access-ltp-id`' />\n<parameter name='CIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />\n<parameter name='EIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />\n<parameter name='cvlan' value='`$tmp.aai.connectivityA.cvlan`' />\n",\r
351         "comments": "",\r
352         "x": 4207.383331298828,\r
353         "y": 770,\r
354         "z": "3f6a2e0f.b66c8a",\r
355         "wires": []\r
356     },\r
357     {\r
358         "id": "c0e95206.343c2",\r
359         "type": "execute",\r
360         "name": "execute RestApiCallNode Create ethernet Service without token",\r
361         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-ethernet-service.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n",\r
362         "comments": "",\r
363         "outputs": 1,\r
364         "x": 4361.383331298828,\r
365         "y": 818,\r
366         "z": "3f6a2e0f.b66c8a",\r
367         "wires": [\r
368             [\r
369                 "7a1edf39.b6a0f8",\r
370                 "b605ddae.9f2b2"\r
371             ]\r
372         ]\r
373     },\r
374     {\r
375         "id": "7a1edf39.b6a0f8",\r
376         "type": "failure",\r
377         "name": "failure",\r
378         "xml": "<outcome value='failure'>\n",\r
379         "comments": "",\r
380         "outputs": 1,\r
381         "x": 4706.883331298828,\r
382         "y": 799,\r
383         "z": "3f6a2e0f.b66c8a",\r
384         "wires": [\r
385             [\r
386                 "db29824f.2b664"\r
387             ]\r
388         ]\r
389     },\r
390     {\r
391         "id": "b605ddae.9f2b2",\r
392         "type": "success",\r
393         "name": "success",\r
394         "xml": "<outcome value='success'>\n",\r
395         "comments": "",\r
396         "outputs": 1,\r
397         "x": 4710.883331298828,\r
398         "y": 839,\r
399         "z": "3f6a2e0f.b66c8a",\r
400         "wires": [\r
401             [\r
402                 "10ebb808.22b9d8"\r
403             ]\r
404         ]\r
405     },\r
406     {\r
407         "id": "db29824f.2b664",\r
408         "type": "returnFailure",\r
409         "name": "return failure",\r
410         "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=\"Error executing Create ethernet service rest api\" />\n",\r
411         "comments": "",\r
412         "x": 4864.883331298828,\r
413         "y": 799,\r
414         "z": "3f6a2e0f.b66c8a",\r
415         "wires": []\r
416     },\r
417     {\r
418         "id": "10ebb808.22b9d8",\r
419         "type": "block",\r
420         "name": "block : atomic",\r
421         "xml": "<block atomic=\"true\">",\r
422         "atomic": "true",\r
423         "comments": "",\r
424         "outputs": 1,\r
425         "x": 4868.383331298828,\r
426         "y": 839,\r
427         "z": "3f6a2e0f.b66c8a",\r
428         "wires": [\r
429             [\r
430                 "6d35eb39.2fe42c",\r
431                 "b62c3c22.2cb09"\r
432             ]\r
433         ]\r
434     },\r
435     {\r
436         "id": "6d35eb39.2fe42c",\r
437         "type": "save",\r
438         "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",\r
439         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.vpn-bindingA.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-bindingA.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",\r
440         "comments": "",\r
441         "outputs": 1,\r
442         "x": 5198.883331298828,\r
443         "y": 804,\r
444         "z": "3f6a2e0f.b66c8a",\r
445         "wires": [\r
446             []\r
447         ]\r
448     },\r
449     {\r
450         "id": "3f34bcf0.b30eb4",\r
451         "type": "comment",\r
452         "name": "TODO: FIXME",\r
453         "info": "use proper vpn-binding id and connectivity id\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",\r
454         "comments": "",\r
455         "x": 5062.883331298828,\r
456         "y": 763,\r
457         "z": "3f6a2e0f.b66c8a",\r
458         "wires": []\r
459     },\r
460     {\r
461         "id": "b62c3c22.2cb09",\r
462         "type": "save",\r
463         "name": "update connectivity resource in AAI",\r
464         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.aai.connectivityA.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivityA.connectivity-id`' />\n<parameter name='operational-status' value='Activated' />\n",\r
465         "comments": "",\r
466         "outputs": 1,\r
467         "x": 5125.883331298828,\r
468         "y": 850,\r
469         "z": "3f6a2e0f.b66c8a",\r
470         "wires": [\r
471             []\r
472         ]\r
473     },\r
474     {\r
475         "id": "dc51dde.504a12",\r
476         "type": "set",\r
477         "name": "set pnf-name",\r
478         "xml": "<set>\n<parameter name='tmp.src.domainA.pnf-name' value=\"`'networkId-providerId-' +\n                                                   $tmp.aai.vpn-bindingA.access-provider-id + '-clientId-' +\n                                                   $tmp.aai.vpn-bindingA.access-client-id + '-topologyId-' +\n                                                   $tmp.aai.vpn-bindingA.access-topology-id + '-nodeId-' +\n                                                   $tmp.aai.vpn-bindingA.src-access-node-id`\" />\n",\r
479         "comments": "",\r
480         "x": 4199.883331298828,\r
481         "y": 249,\r
482         "z": "3f6a2e0f.b66c8a",\r
483         "wires": []\r
484     },\r
485     {\r
486         "id": "25f0cbb9.ff400c",\r
487         "type": "get-resource",\r
488         "name": "get-resource src pnf",\r
489         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.src.domainA.pnf-name\"\n        pfx='tmp.aai.source-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
490         "comments": "",\r
491         "outputs": 1,\r
492         "x": 4225.883331298828,\r
493         "y": 366,\r
494         "z": "3f6a2e0f.b66c8a",\r
495         "wires": [\r
496             [\r
497                 "26af6a64.84f75e",\r
498                 "dfaad5e6.3e7388",\r
499                 "d4f19086.9e394"\r
500             ]\r
501         ]\r
502     },\r
503     {\r
504         "id": "26af6a64.84f75e",\r
505         "type": "success",\r
506         "name": "success",\r
507         "xml": "<outcome value='success'>\n",\r
508         "comments": "",\r
509         "outputs": 1,\r
510         "x": 4421.383453369141,\r
511         "y": 318,\r
512         "z": "3f6a2e0f.b66c8a",\r
513         "wires": [\r
514             [\r
515                 "825f4729.b63ee8"\r
516             ]\r
517         ]\r
518     },\r
519     {\r
520         "id": "dfaad5e6.3e7388",\r
521         "type": "not-found",\r
522         "name": "not-found",\r
523         "xml": "<outcome value='not-found'>\n",\r
524         "comments": "",\r
525         "outputs": 1,\r
526         "x": 4413.383453369141,\r
527         "y": 373,\r
528         "z": "3f6a2e0f.b66c8a",\r
529         "wires": [\r
530             [\r
531                 "92b1984a.bc8b"\r
532             ]\r
533         ]\r
534     },\r
535     {\r
536         "id": "825f4729.b63ee8",\r
537         "type": "block",\r
538         "name": "block",\r
539         "xml": "<block>\n",\r
540         "atomic": "false",\r
541         "comments": "",\r
542         "outputs": 1,\r
543         "x": 4565.765777587891,\r
544         "y": 317.6556701660156,\r
545         "z": "3f6a2e0f.b66c8a",\r
546         "wires": [\r
547             [\r
548                 "415768e6.6651f8"\r
549             ]\r
550         ]\r
551     },\r
552     {\r
553         "id": "a6a2d3e2.2e526",\r
554         "type": "outcome",\r
555         "name": "esr-thirdparty-sdnc",\r
556         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
557         "comments": "",\r
558         "outputs": 1,\r
559         "x": 5147.883331298828,\r
560         "y": 320,\r
561         "z": "3f6a2e0f.b66c8a",\r
562         "wires": [\r
563             [\r
564                 "e243a570.71b51"\r
565             ]\r
566         ]\r
567     },\r
568     {\r
569         "id": "415768e6.6651f8",\r
570         "type": "for",\r
571         "name": "for each relationship",\r
572         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
573         "comments": "",\r
574         "outputs": 1,\r
575         "x": 4749.883331298828,\r
576         "y": 316,\r
577         "z": "3f6a2e0f.b66c8a",\r
578         "wires": [\r
579             [\r
580                 "ab4dd1f4.04e1f"\r
581             ]\r
582         ]\r
583     },\r
584     {\r
585         "id": "ab4dd1f4.04e1f",\r
586         "type": "switchNode",\r
587         "name": "switch related-to",\r
588         "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
589         "comments": "",\r
590         "outputs": 1,\r
591         "x": 4944.883331298828,\r
592         "y": 316,\r
593         "z": "3f6a2e0f.b66c8a",\r
594         "wires": [\r
595             [\r
596                 "a6a2d3e2.2e526"\r
597             ]\r
598         ]\r
599     },\r
600     {\r
601         "id": "d4f19086.9e394",\r
602         "type": "other",\r
603         "name": "other",\r
604         "xml": "<outcome value='Other'>\n",\r
605         "comments": "",\r
606         "outputs": 1,\r
607         "x": 4418.383453369141,\r
608         "y": 430,\r
609         "z": "3f6a2e0f.b66c8a",\r
610         "wires": [\r
611             [\r
612                 "28f88c03.cb5e5c"\r
613             ]\r
614         ]\r
615     },\r
616     {\r
617         "id": "28f88c03.cb5e5c",\r
618         "type": "returnFailure",\r
619         "name": "return failure",\r
620         "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
621         "comments": "",\r
622         "x": 4570.383453369141,\r
623         "y": 431,\r
624         "z": "3f6a2e0f.b66c8a",\r
625         "wires": []\r
626     },\r
627     {\r
628         "id": "92b1984a.bc8b",\r
629         "type": "returnFailure",\r
630         "name": "return failure",\r
631         "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
632         "comments": "",\r
633         "x": 4581.383453369141,\r
634         "y": 374,\r
635         "z": "3f6a2e0f.b66c8a",\r
636         "wires": []\r
637     },\r
638     {\r
639         "id": "677439f1.5f7ed",\r
640         "type": "execute",\r
641         "name": "get esr-thirdparty-sdnc",\r
642         "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 = $tmp.domainA.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainA.esr-thirdparty-sdnc' local-only='false' >",\r
643         "comments": "",\r
644         "outputs": 1,\r
645         "x": 5532.883331298828,\r
646         "y": 333,\r
647         "z": "3f6a2e0f.b66c8a",\r
648         "wires": [\r
649             [\r
650                 "e7fd97d3.bbcd08",\r
651                 "38bba5b7.de41b2",\r
652                 "6bf961e8.c56a58"\r
653             ]\r
654         ]\r
655     },\r
656     {\r
657         "id": "e243a570.71b51",\r
658         "type": "block",\r
659         "name": "block : atomic",\r
660         "xml": "<block atomic=\"true\">",\r
661         "atomic": "true",\r
662         "outputs": 1,\r
663         "x": 5326.883331298828,\r
664         "y": 320,\r
665         "z": "3f6a2e0f.b66c8a",\r
666         "wires": [\r
667             [\r
668                 "857cacb0.81444",\r
669                 "677439f1.5f7ed"\r
670             ]\r
671         ]\r
672     },\r
673     {\r
674         "id": "857cacb0.81444",\r
675         "type": "set",\r
676         "name": "set esr-thirdparty-sdnc domainA id",\r
677         "xml": "<set>\n<parameter name='tmp.domainA.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
678         "comments": "",\r
679         "x": 5562.883331298828,\r
680         "y": 281,\r
681         "z": "3f6a2e0f.b66c8a",\r
682         "wires": []\r
683     },\r
684     {\r
685         "id": "e7fd97d3.bbcd08",\r
686         "type": "success",\r
687         "name": "success",\r
688         "xml": "<outcome value='success'>\n",\r
689         "comments": "",\r
690         "outputs": 1,\r
691         "x": 5742.883331298828,\r
692         "y": 324,\r
693         "z": "3f6a2e0f.b66c8a",\r
694         "wires": [\r
695             [\r
696                 "60a50433.d26434"\r
697             ]\r
698         ]\r
699     },\r
700     {\r
701         "id": "38bba5b7.de41b2",\r
702         "type": "not-found",\r
703         "name": "not-found",\r
704         "xml": "<outcome value='not-found'>\n",\r
705         "comments": "",\r
706         "outputs": 1,\r
707         "x": 5734.883331298828,\r
708         "y": 379,\r
709         "z": "3f6a2e0f.b66c8a",\r
710         "wires": [\r
711             [\r
712                 "d9350787.861f1"\r
713             ]\r
714         ]\r
715     },\r
716     {\r
717         "id": "6bf961e8.c56a58",\r
718         "type": "other",\r
719         "name": "other",\r
720         "xml": "<outcome value='Other'>\n",\r
721         "comments": "",\r
722         "outputs": 1,\r
723         "x": 5739.883331298828,\r
724         "y": 436,\r
725         "z": "3f6a2e0f.b66c8a",\r
726         "wires": [\r
727             [\r
728                 "1afc54ba.8ed313"\r
729             ]\r
730         ]\r
731     },\r
732     {\r
733         "id": "1afc54ba.8ed313",\r
734         "type": "returnFailure",\r
735         "name": "return failure",\r
736         "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
737         "comments": "",\r
738         "x": 5891.883331298828,\r
739         "y": 437,\r
740         "z": "3f6a2e0f.b66c8a",\r
741         "wires": []\r
742     },\r
743     {\r
744         "id": "d9350787.861f1",\r
745         "type": "returnFailure",\r
746         "name": "return failure",\r
747         "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
748         "comments": "",\r
749         "x": 5902.883331298828,\r
750         "y": 382,\r
751         "z": "3f6a2e0f.b66c8a",\r
752         "wires": []\r
753     },\r
754     {\r
755         "id": "60a50433.d26434",\r
756         "type": "block",\r
757         "name": "block",\r
758         "xml": "<block>\n",\r
759         "atomic": "false",\r
760         "comments": "",\r
761         "outputs": 1,\r
762         "x": 5887.265655517578,\r
763         "y": 321.6556701660156,\r
764         "z": "3f6a2e0f.b66c8a",\r
765         "wires": [\r
766             [\r
767                 "8367dac2.ac8b98"\r
768             ]\r
769         ]\r
770     },\r
771     {\r
772         "id": "8367dac2.ac8b98",\r
773         "type": "set",\r
774         "name": "set controller domainA data",\r
775         "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.url' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.user' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.password' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
776         "comments": "",\r
777         "x": 6101.883331298828,\r
778         "y": 318,\r
779         "z": "3f6a2e0f.b66c8a",\r
780         "wires": []\r
781     },\r
782     {\r
783         "id": "aa2473a.12d4d9",\r
784         "type": "set",\r
785         "name": "set attachment_param for OTN B",\r
786         "xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingB.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />\n<!--<parameter name='src-tpn-id' value='1' />-->\n<parameter name='src-tpn-id' value='`$tmp.aai.vpn-bindingB.customer-vpn-id`' />\n<parameter name='src-ttp-id' value='`$tmp.aai.vpn-bindingB.src-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-dst-domain' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />\n",\r
787         "comments": "",\r
788         "x": 3668.883331298828,\r
789         "y": 1658,\r
790         "z": "3f6a2e0f.b66c8a",\r
791         "wires": []\r
792     },\r
793     {\r
794         "id": "28a663c6.7433b4",\r
795         "type": "execute",\r
796         "name": "execute RestApiCallNode Create OTN tunnel with token",\r
797         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cll-otn-dst-domain-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
798         "comments": "",\r
799         "outputs": 1,\r
800         "x": 3731.883331298828,\r
801         "y": 1987,\r
802         "z": "3f6a2e0f.b66c8a",\r
803         "wires": [\r
804             [\r
805                 "422a3196.0fb7d",\r
806                 "371e9e8f.f6f942"\r
807             ]\r
808         ]\r
809     },\r
810     {\r
811         "id": "422a3196.0fb7d",\r
812         "type": "failure",\r
813         "name": "failure",\r
814         "xml": "<outcome value='failure'>\n",\r
815         "comments": "",\r
816         "outputs": 1,\r
817         "x": 4027.383331298828,\r
818         "y": 1954,\r
819         "z": "3f6a2e0f.b66c8a",\r
820         "wires": [\r
821             [\r
822                 "c3084137.121c7"\r
823             ]\r
824         ]\r
825     },\r
826     {\r
827         "id": "371e9e8f.f6f942",\r
828         "type": "success",\r
829         "name": "success",\r
830         "xml": "<outcome value='success'>\n",\r
831         "comments": "",\r
832         "outputs": 1,\r
833         "x": 4032.383331298828,\r
834         "y": 2019,\r
835         "z": "3f6a2e0f.b66c8a",\r
836         "wires": [\r
837             [\r
838                 "c6676165.ac5c"\r
839             ]\r
840         ]\r
841     },\r
842     {\r
843         "id": "c3084137.121c7",\r
844         "type": "returnFailure",\r
845         "name": "return failure",\r
846         "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=\"Error executing Create OTN tunnel rest api\" />\n",\r
847         "comments": "",\r
848         "x": 4195.383331298828,\r
849         "y": 1954,\r
850         "z": "3f6a2e0f.b66c8a",\r
851         "wires": []\r
852     },\r
853     {\r
854         "id": "c6676165.ac5c",\r
855         "type": "block",\r
856         "name": "block : atomic",\r
857         "xml": "<block atomic=\"true\">",\r
858         "atomic": "true",\r
859         "comments": "",\r
860         "outputs": 1,\r
861         "x": 4205.883331298828,\r
862         "y": 2019,\r
863         "z": "3f6a2e0f.b66c8a",\r
864         "wires": [\r
865             []\r
866         ]\r
867     },\r
868     {\r
869         "id": "dfee532c.a1419",\r
870         "type": "set",\r
871         "name": "set pnf-name",\r
872         "xml": "<set>\n<parameter name='tmp.dst.domainB.pnf-name' value=\"`'networkId-providerId-' +\n                                                   $tmp.aai.vpn-bindingB.access-provider-id + '-clientId-' +\n                                                   $tmp.aai.vpn-bindingB.access-client-id + '-topologyId-' +\n                                                   $tmp.aai.vpn-bindingB.access-topology-id + '-nodeId-' +\n                                                   $tmp.aai.vpn-bindingB.dst-access-node-id`\" />\n",\r
873         "comments": "",\r
874         "x": 3607.883331298828,\r
875         "y": 1715,\r
876         "z": "3f6a2e0f.b66c8a",\r
877         "wires": []\r
878     },\r
879     {\r
880         "id": "e52702af.314718",\r
881         "type": "get-resource",\r
882         "name": "get-resource dst pnf",\r
883         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.dst.domainB.pnf-name\"\n        pfx='tmp.aai.destination-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
884         "comments": "",\r
885         "outputs": 1,\r
886         "x": 3627.883331298828,\r
887         "y": 1812,\r
888         "z": "3f6a2e0f.b66c8a",\r
889         "wires": [\r
890             [\r
891                 "9ca1c561.5c796",\r
892                 "9cf5cab4.99d6e",\r
893                 "5d5762eb.724c64"\r
894             ]\r
895         ]\r
896     },\r
897     {\r
898         "id": "9ca1c561.5c796",\r
899         "type": "success",\r
900         "name": "success",\r
901         "xml": "<outcome value='success'>\n",\r
902         "comments": "",\r
903         "outputs": 1,\r
904         "x": 3830.3834533691406,\r
905         "y": 1765,\r
906         "z": "3f6a2e0f.b66c8a",\r
907         "wires": [\r
908             [\r
909                 "502f683e.00cf7"\r
910             ]\r
911         ]\r
912     },\r
913     {\r
914         "id": "9cf5cab4.99d6e",\r
915         "type": "not-found",\r
916         "name": "not-found",\r
917         "xml": "<outcome value='not-found'>\n",\r
918         "comments": "",\r
919         "outputs": 1,\r
920         "x": 3822.3834533691406,\r
921         "y": 1820,\r
922         "z": "3f6a2e0f.b66c8a",\r
923         "wires": [\r
924             [\r
925                 "9587c00d.994eb"\r
926             ]\r
927         ]\r
928     },\r
929     {\r
930         "id": "502f683e.00cf7",\r
931         "type": "block",\r
932         "name": "block",\r
933         "xml": "<block>\n",\r
934         "atomic": "false",\r
935         "comments": "",\r
936         "outputs": 1,\r
937         "x": 3974.7657775878906,\r
938         "y": 1762.6556701660156,\r
939         "z": "3f6a2e0f.b66c8a",\r
940         "wires": [\r
941             [\r
942                 "39b96666.82062a"\r
943             ]\r
944         ]\r
945     },\r
946     {\r
947         "id": "39b96666.82062a",\r
948         "type": "for",\r
949         "name": "for each relationship",\r
950         "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",\r
951         "comments": "",\r
952         "outputs": 1,\r
953         "x": 4158.883331298828,\r
954         "y": 1777,\r
955         "z": "3f6a2e0f.b66c8a",\r
956         "wires": [\r
957             [\r
958                 "94ae9a5d.e5d56"\r
959             ]\r
960         ]\r
961     },\r
962     {\r
963         "id": "5d5762eb.724c64",\r
964         "type": "other",\r
965         "name": "other",\r
966         "xml": "<outcome value='Other'>\n",\r
967         "comments": "",\r
968         "outputs": 1,\r
969         "x": 3827.3834533691406,\r
970         "y": 1877,\r
971         "z": "3f6a2e0f.b66c8a",\r
972         "wires": [\r
973             [\r
974                 "7a00ac4a.8d918c"\r
975             ]\r
976         ]\r
977     },\r
978     {\r
979         "id": "7a00ac4a.8d918c",\r
980         "type": "returnFailure",\r
981         "name": "return failure",\r
982         "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
983         "comments": "",\r
984         "x": 3979.3834533691406,\r
985         "y": 1878,\r
986         "z": "3f6a2e0f.b66c8a",\r
987         "wires": []\r
988     },\r
989     {\r
990         "id": "9587c00d.994eb",\r
991         "type": "returnFailure",\r
992         "name": "return failure",\r
993         "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
994         "comments": "",\r
995         "x": 3990.3834533691406,\r
996         "y": 1823,\r
997         "z": "3f6a2e0f.b66c8a",\r
998         "wires": []\r
999     },\r
1000     {\r
1001         "id": "f1540d0.014217",\r
1002         "type": "outcome",\r
1003         "name": "esr-thirdparty-sdnc",\r
1004         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
1005         "comments": "",\r
1006         "outputs": 1,\r
1007         "x": 4556.883331298828,\r
1008         "y": 1781,\r
1009         "z": "3f6a2e0f.b66c8a",\r
1010         "wires": [\r
1011             [\r
1012                 "c932c6af.938f38"\r
1013             ]\r
1014         ]\r
1015     },\r
1016     {\r
1017         "id": "94ae9a5d.e5d56",\r
1018         "type": "switchNode",\r
1019         "name": "switch related-to",\r
1020         "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",\r
1021         "comments": "",\r
1022         "outputs": 1,\r
1023         "x": 4353.883331298828,\r
1024         "y": 1777,\r
1025         "z": "3f6a2e0f.b66c8a",\r
1026         "wires": [\r
1027             [\r
1028                 "f1540d0.014217"\r
1029             ]\r
1030         ]\r
1031     },\r
1032     {\r
1033         "id": "2ff151e7.182fee",\r
1034         "type": "execute",\r
1035         "name": "get esr-thirdparty-sdnc",\r
1036         "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 = $tmp.domainB.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainB.esr-thirdparty-sdnc' local-only='false' >",\r
1037         "comments": "",\r
1038         "outputs": 1,\r
1039         "x": 4941.883331298828,\r
1040         "y": 1780,\r
1041         "z": "3f6a2e0f.b66c8a",\r
1042         "wires": [\r
1043             [\r
1044                 "40d3a7a.4400bd8",\r
1045                 "353377f9.20c718",\r
1046                 "f8f22501.0020d8"\r
1047             ]\r
1048         ]\r
1049     },\r
1050     {\r
1051         "id": "c932c6af.938f38",\r
1052         "type": "block",\r
1053         "name": "block : atomic",\r
1054         "xml": "<block atomic=\"true\">",\r
1055         "atomic": "true",\r
1056         "outputs": 1,\r
1057         "x": 4733.883331298828,\r
1058         "y": 1773,\r
1059         "z": "3f6a2e0f.b66c8a",\r
1060         "wires": [\r
1061             [\r
1062                 "53fc3a7e.05d404",\r
1063                 "2ff151e7.182fee"\r
1064             ]\r
1065         ]\r
1066     },\r
1067     {\r
1068         "id": "53fc3a7e.05d404",\r
1069         "type": "set",\r
1070         "name": "set esr-thirdparty-sdnc domainB id",\r
1071         "xml": "<set>\n<parameter name='tmp.domainB.esr-thirdparty-id' value=\"`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",\r
1072         "comments": "",\r
1073         "x": 4971.883331298828,\r
1074         "y": 1728,\r
1075         "z": "3f6a2e0f.b66c8a",\r
1076         "wires": []\r
1077     },\r
1078     {\r
1079         "id": "d551b07b.11f68",\r
1080         "type": "returnFailure",\r
1081         "name": "return failure",\r
1082         "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
1083         "comments": "",\r
1084         "x": 5300.883331298828,\r
1085         "y": 1884,\r
1086         "z": "3f6a2e0f.b66c8a",\r
1087         "wires": []\r
1088     },\r
1089     {\r
1090         "id": "c19bb319.e0e2b8",\r
1091         "type": "returnFailure",\r
1092         "name": "return failure",\r
1093         "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
1094         "comments": "",\r
1095         "x": 5311.883331298828,\r
1096         "y": 1829,\r
1097         "z": "3f6a2e0f.b66c8a",\r
1098         "wires": []\r
1099     },\r
1100     {\r
1101         "id": "2dbaf595.6cfed2",\r
1102         "type": "block",\r
1103         "name": "block",\r
1104         "xml": "<block>\n",\r
1105         "atomic": "false",\r
1106         "comments": "",\r
1107         "outputs": 1,\r
1108         "x": 5296.265655517578,\r
1109         "y": 1768.6556701660156,\r
1110         "z": "3f6a2e0f.b66c8a",\r
1111         "wires": [\r
1112             [\r
1113                 "eaeaf1b8.196fc"\r
1114             ]\r
1115         ]\r
1116     },\r
1117     {\r
1118         "id": "eaeaf1b8.196fc",\r
1119         "type": "set",\r
1120         "name": "set controller domainB data",\r
1121         "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.url' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.user' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.password' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
1122         "comments": "",\r
1123         "x": 5510.883331298828,\r
1124         "y": 1765,\r
1125         "z": "3f6a2e0f.b66c8a",\r
1126         "wires": []\r
1127     },\r
1128     {\r
1129         "id": "40d3a7a.4400bd8",\r
1130         "type": "success",\r
1131         "name": "success",\r
1132         "xml": "<outcome value='success'>\n",\r
1133         "comments": "",\r
1134         "outputs": 1,\r
1135         "x": 5151.883331298828,\r
1136         "y": 1771,\r
1137         "z": "3f6a2e0f.b66c8a",\r
1138         "wires": [\r
1139             [\r
1140                 "2dbaf595.6cfed2"\r
1141             ]\r
1142         ]\r
1143     },\r
1144     {\r
1145         "id": "353377f9.20c718",\r
1146         "type": "not-found",\r
1147         "name": "not-found",\r
1148         "xml": "<outcome value='not-found'>\n",\r
1149         "comments": "",\r
1150         "outputs": 1,\r
1151         "x": 5143.883331298828,\r
1152         "y": 1826,\r
1153         "z": "3f6a2e0f.b66c8a",\r
1154         "wires": [\r
1155             [\r
1156                 "c19bb319.e0e2b8"\r
1157             ]\r
1158         ]\r
1159     },\r
1160     {\r
1161         "id": "f8f22501.0020d8",\r
1162         "type": "other",\r
1163         "name": "other",\r
1164         "xml": "<outcome value='Other'>\n",\r
1165         "comments": "",\r
1166         "outputs": 1,\r
1167         "x": 5148.883331298828,\r
1168         "y": 1883,\r
1169         "z": "3f6a2e0f.b66c8a",\r
1170         "wires": [\r
1171             [\r
1172                 "d551b07b.11f68"\r
1173             ]\r
1174         ]\r
1175     },\r
1176     {\r
1177         "id": "c7d66e95.fb47e",\r
1178         "type": "switchNode",\r
1179         "name": "switch vpn-binding has dst-access-ltp",\r
1180         "xml": "<switch test='`$tmp.aai.vpn-binding.dst-access-ltp-id`'>\n",\r
1181         "comments": "",\r
1182         "outputs": 1,\r
1183         "x": 3182.883331298828,\r
1184         "y": 729,\r
1185         "z": "3f6a2e0f.b66c8a",\r
1186         "wires": [\r
1187             [\r
1188                 "4d8bbec2.c0db6",\r
1189                 "507d82bd.8807cc"\r
1190             ]\r
1191         ]\r
1192     },\r
1193     {\r
1194         "id": "4d8bbec2.c0db6",\r
1195         "type": "outcome",\r
1196         "name": "Null",\r
1197         "xml": "<outcome value=''>\n",\r
1198         "comments": "",\r
1199         "outputs": 1,\r
1200         "x": 3396.883331298828,\r
1201         "y": 766,\r
1202         "z": "3f6a2e0f.b66c8a",\r
1203         "wires": [\r
1204             [\r
1205                 "6524452d.4a2f94"\r
1206             ]\r
1207         ]\r
1208     },\r
1209     {\r
1210         "id": "507d82bd.8807cc",\r
1211         "type": "other",\r
1212         "name": "other",\r
1213         "xml": "<outcome value='Other'>\n",\r
1214         "comments": "",\r
1215         "outputs": 1,\r
1216         "x": 3398.883331298828,\r
1217         "y": 704,\r
1218         "z": "3f6a2e0f.b66c8a",\r
1219         "wires": [\r
1220             [\r
1221                 "4b590d33.c81684"\r
1222             ]\r
1223         ]\r
1224     },\r
1225     {\r
1226         "id": "6524452d.4a2f94",\r
1227         "type": "switchNode",\r
1228         "name": "switch vpn-binding has src-access-ltp",\r
1229         "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",\r
1230         "comments": "",\r
1231         "outputs": 1,\r
1232         "x": 2976.883331298828,\r
1233         "y": 2009,\r
1234         "z": "3f6a2e0f.b66c8a",\r
1235         "wires": [\r
1236             [\r
1237                 "75800cfe.e64b04",\r
1238                 "28895848.af5c18"\r
1239             ]\r
1240         ]\r
1241     },\r
1242     {\r
1243         "id": "75800cfe.e64b04",\r
1244         "type": "outcome",\r
1245         "name": "Null",\r
1246         "xml": "<outcome value=''>\n",\r
1247         "comments": "",\r
1248         "outputs": 1,\r
1249         "x": 3229.883331298828,\r
1250         "y": 2043,\r
1251         "z": "3f6a2e0f.b66c8a",\r
1252         "wires": [\r
1253             [\r
1254                 "34389e65.7f3f0a"\r
1255             ]\r
1256         ]\r
1257     },\r
1258     {\r
1259         "id": "28895848.af5c18",\r
1260         "type": "other",\r
1261         "name": "other",\r
1262         "xml": "<outcome value='Other'>\n",\r
1263         "comments": "",\r
1264         "outputs": 1,\r
1265         "x": 3229.883331298828,\r
1266         "y": 1987,\r
1267         "z": "3f6a2e0f.b66c8a",\r
1268         "wires": [\r
1269             [\r
1270                 "4c94a377.c6d4e4"\r
1271             ]\r
1272         ]\r
1273     },\r
1274     {\r
1275         "id": "34389e65.7f3f0a",\r
1276         "type": "returnFailure",\r
1277         "name": "return failure",\r
1278         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1279         "comments": "",\r
1280         "x": 3380.883331298828,\r
1281         "y": 2043,\r
1282         "z": "3f6a2e0f.b66c8a",\r
1283         "wires": []\r
1284     },\r
1285     {\r
1286         "id": "ff717106.1f6f7",\r
1287         "type": "set",\r
1288         "name": "set vpn-bindingA and connectivityA",\r
1289         "xml": "<set>\n<parameter name='tmp.aai.vpn-bindingA.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityA.' value=\"`$tmp.aai.connectivity.`\" />\n",\r
1290         "comments": "",\r
1291         "x": 4256.883331298828,\r
1292         "y": 141,\r
1293         "z": "3f6a2e0f.b66c8a",\r
1294         "wires": []\r
1295     },\r
1296     {\r
1297         "id": "98bc8f5e.55646",\r
1298         "type": "set",\r
1299         "name": "set vpn-bindingB and connectivityB",\r
1300         "xml": "<set>\n<parameter name='tmp.aai.vpn-bindingB.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityB.' value=\"`$tmp.aai.connectivity.`\" />\n\n",\r
1301         "comments": "",\r
1302         "x": 3664.883331298828,\r
1303         "y": 1600,\r
1304         "z": "3f6a2e0f.b66c8a",\r
1305         "wires": []\r
1306     },\r
1307     {\r
1308         "id": "1901ad68.6869bb",\r
1309         "type": "block",\r
1310         "name": "block : atomic",\r
1311         "xml": "<block atomic=\"true\">",\r
1312         "atomic": "true",\r
1313         "comments": "",\r
1314         "outputs": 1,\r
1315         "x": 3947.883331298828,\r
1316         "y": 398,\r
1317         "z": "3f6a2e0f.b66c8a",\r
1318         "wires": [\r
1319             [\r
1320                 "ff717106.1f6f7",\r
1321                 "f11c1dac.45c748",\r
1322                 "dc51dde.504a12",\r
1323                 "25f0cbb9.ff400c",\r
1324                 "c95c33ef.381fa8",\r
1325                 "7a0ef184.deb28",\r
1326                 "dd4c3392.e1b02",\r
1327                 "2a6ffb7c.8797f4"\r
1328             ]\r
1329         ]\r
1330     },\r
1331     {\r
1332         "id": "4c94a377.c6d4e4",\r
1333         "type": "block",\r
1334         "name": "block : atomic",\r
1335         "xml": "<block atomic=\"true\">",\r
1336         "atomic": "true",\r
1337         "outputs": 1,\r
1338         "x": 3380.883331298828,\r
1339         "y": 1986,\r
1340         "z": "3f6a2e0f.b66c8a",\r
1341         "wires": [\r
1342             [\r
1343                 "98bc8f5e.55646",\r
1344                 "aa2473a.12d4d9",\r
1345                 "dfee532c.a1419",\r
1346                 "e52702af.314718",\r
1347                 "28a663c6.7433b4",\r
1348                 "c984548c.2e537",\r
1349                 "88e8f378.a2b808",\r
1350                 "1fda4b4a.2131e5"\r
1351             ]\r
1352         ]\r
1353     },\r
1354     {\r
1355         "id": "d79079df.baf578",\r
1356         "type": "set",\r
1357         "name": "set sotn_value",\r
1358         "xml": "<set>\n<!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.connectivity-id`' />-->\n<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.etht-svc-name`' />\n<parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='provider-id' value='`$tmp.aai.connectivityB.access-provider-id`' />\n<parameter name='client-id' value='`$tmp.aai.connectivityB.access-client-id`' />\n<parameter name='topology-id' value='`$tmp.aai.connectivityB.access-topology-id`' />\n<parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n<parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityB.connectivity-id`' />\n<parameter name='index-number' value='0' />\n<parameter name='eth-node-id' value='`$tmp.aai.connectivityB.access-node-id`' />\n<parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityB.access-ltp-id`' />\n<parameter name='CIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />\n<parameter name='EIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />\n<parameter name='cvlan' value='`$tmp.aai.connectivityB.cvlan`' />\n\n",\r
1359         "comments": "",\r
1360         "x": 3618.883331298828,\r
1361         "y": 2285,\r
1362         "z": "3f6a2e0f.b66c8a",\r
1363         "wires": []\r
1364     },\r
1365     {\r
1366         "id": "45ccc628.f5551",\r
1367         "type": "execute",\r
1368         "name": "execute RestApiCallNode Create ethernet Service without token",\r
1369         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-ethernet-service.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n",\r
1370         "comments": "",\r
1371         "outputs": 1,\r
1372         "x": 3772.883331298828,\r
1373         "y": 2333,\r
1374         "z": "3f6a2e0f.b66c8a",\r
1375         "wires": [\r
1376             [\r
1377                 "6173b4db.203ce4",\r
1378                 "7f21396.e7ee248"\r
1379             ]\r
1380         ]\r
1381     },\r
1382     {\r
1383         "id": "6173b4db.203ce4",\r
1384         "type": "failure",\r
1385         "name": "failure",\r
1386         "xml": "<outcome value='failure'>\n",\r
1387         "comments": "",\r
1388         "outputs": 1,\r
1389         "x": 4118.383331298828,\r
1390         "y": 2314,\r
1391         "z": "3f6a2e0f.b66c8a",\r
1392         "wires": [\r
1393             [\r
1394                 "2b5ddf83.e8a168"\r
1395             ]\r
1396         ]\r
1397     },\r
1398     {\r
1399         "id": "7f21396.e7ee248",\r
1400         "type": "success",\r
1401         "name": "success",\r
1402         "xml": "<outcome value='success'>\n",\r
1403         "comments": "",\r
1404         "outputs": 1,\r
1405         "x": 4122.383331298828,\r
1406         "y": 2354,\r
1407         "z": "3f6a2e0f.b66c8a",\r
1408         "wires": [\r
1409             [\r
1410                 "9fc151.f9cc46b"\r
1411             ]\r
1412         ]\r
1413     },\r
1414     {\r
1415         "id": "2b5ddf83.e8a168",\r
1416         "type": "returnFailure",\r
1417         "name": "return failure",\r
1418         "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=\"Error executing Create ethernet service rest api\" />\n",\r
1419         "comments": "",\r
1420         "x": 4276.383331298828,\r
1421         "y": 2314,\r
1422         "z": "3f6a2e0f.b66c8a",\r
1423         "wires": []\r
1424     },\r
1425     {\r
1426         "id": "9fc151.f9cc46b",\r
1427         "type": "block",\r
1428         "name": "block : atomic",\r
1429         "xml": "<block atomic=\"true\">",\r
1430         "atomic": "true",\r
1431         "comments": "",\r
1432         "outputs": 1,\r
1433         "x": 4279.883331298828,\r
1434         "y": 2354,\r
1435         "z": "3f6a2e0f.b66c8a",\r
1436         "wires": [\r
1437             [\r
1438                 "ec406c4.a093b1",\r
1439                 "ba32c60f.0ec53"\r
1440             ]\r
1441         ]\r
1442     },\r
1443     {\r
1444         "id": "ec406c4.a093b1",\r
1445         "type": "save",\r
1446         "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",\r
1447         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.vpn-bindingB.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-bindingB.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",\r
1448         "comments": "",\r
1449         "outputs": 1,\r
1450         "x": 4619.883331298828,\r
1451         "y": 2353,\r
1452         "z": "3f6a2e0f.b66c8a",\r
1453         "wires": [\r
1454             []\r
1455         ]\r
1456     },\r
1457     {\r
1458         "id": "650aeaf3.da502c",\r
1459         "type": "comment",\r
1460         "name": "TODO: FIXME",\r
1461         "info": "use proper vpn-binding id and connectivity\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",\r
1462         "comments": "",\r
1463         "x": 4477.883331298828,\r
1464         "y": 2311,\r
1465         "z": "3f6a2e0f.b66c8a",\r
1466         "wires": []\r
1467     },\r
1468     {\r
1469         "id": "ba32c60f.0ec53",\r
1470         "type": "save",\r
1471         "name": "update connectivity resource in AAI",\r
1472         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.aai.connectivityB.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivityB.connectivity-id`' />\n<parameter name='operational-status' value='Activated' />\n",\r
1473         "comments": "",\r
1474         "outputs": 1,\r
1475         "x": 4548.883331298828,\r
1476         "y": 2402,\r
1477         "z": "3f6a2e0f.b66c8a",\r
1478         "wires": [\r
1479             []\r
1480         ]\r
1481     },\r
1482     {\r
1483         "id": "c8295377.ff6158",\r
1484         "type": "set",\r
1485         "name": "set attachment_param (gfp-n) for OTN",\r
1486         "xml": "<set>\n<parameter name='gfp-n' value='`$tmp.aai.vpn-binding.route-distinguisher`' />\n",\r
1487         "comments": "",\r
1488         "x": 3173.883331298828,\r
1489         "y": 669,\r
1490         "z": "3f6a2e0f.b66c8a",\r
1491         "wires": []\r
1492     },\r
1493     {\r
1494         "id": "17d3b71c.0a74f9",\r
1495         "type": "comment",\r
1496         "name": "only dst ttp exists. No src",\r
1497         "info": "",\r
1498         "comments": "",\r
1499         "x": 3768.883331298828,\r
1500         "y": 355,\r
1501         "z": "3f6a2e0f.b66c8a",\r
1502         "wires": []\r
1503     },\r
1504     {\r
1505         "id": "12dd212a.e5931f",\r
1506         "type": "comment",\r
1507         "name": "only src ttp exists. No dst",\r
1508         "info": "",\r
1509         "comments": "",\r
1510         "x": 3325.883331298828,\r
1511         "y": 1933,\r
1512         "z": "3f6a2e0f.b66c8a",\r
1513         "wires": []\r
1514     },\r
1515     {\r
1516         "id": "4b590d33.c81684",\r
1517         "type": "switchNode",\r
1518         "name": "switch vpn-binding has src-access-ltp",\r
1519         "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",\r
1520         "comments": "",\r
1521         "outputs": 1,\r
1522         "x": 3504.883331298828,\r
1523         "y": 517,\r
1524         "z": "3f6a2e0f.b66c8a",\r
1525         "wires": [\r
1526             [\r
1527                 "e68f7957.57ea98",\r
1528                 "90c8120e.55a8c8"\r
1529             ]\r
1530         ]\r
1531     },\r
1532     {\r
1533         "id": "90c8120e.55a8c8",\r
1534         "type": "other",\r
1535         "name": "other",\r
1536         "xml": "<outcome value='Other'>\n",\r
1537         "comments": "",\r
1538         "outputs": 1,\r
1539         "x": 3746.883331298828,\r
1540         "y": 1106,\r
1541         "z": "3f6a2e0f.b66c8a",\r
1542         "wires": [\r
1543             [\r
1544                 "5f92c041.e2a22"\r
1545             ]\r
1546         ]\r
1547     },\r
1548     {\r
1549         "id": "e68f7957.57ea98",\r
1550         "type": "outcome",\r
1551         "name": "Null",\r
1552         "xml": "<outcome value=''>\n",\r
1553         "comments": "",\r
1554         "outputs": 1,\r
1555         "x": 3740.883331298828,\r
1556         "y": 397,\r
1557         "z": "3f6a2e0f.b66c8a",\r
1558         "wires": [\r
1559             [\r
1560                 "1901ad68.6869bb"\r
1561             ]\r
1562         ]\r
1563     },\r
1564     {\r
1565         "id": "5f92c041.e2a22",\r
1566         "type": "block",\r
1567         "name": "block : atomic",\r
1568         "xml": "<block atomic=\"true\">",\r
1569         "atomic": "true",\r
1570         "outputs": 1,\r
1571         "x": 3904.883331298828,\r
1572         "y": 1105,\r
1573         "z": "3f6a2e0f.b66c8a",\r
1574         "wires": [\r
1575             [\r
1576                 "eb5cd95b.b46698",\r
1577                 "bcb9498.a9205b8",\r
1578                 "24e13fd8.afe2d8",\r
1579                 "57e5431f.63be4c",\r
1580                 "8b688219.8ed198",\r
1581                 "9c0b0957.1e6c48"\r
1582             ]\r
1583         ]\r
1584     },\r
1585     {\r
1586         "id": "bcb9498.a9205b8",\r
1587         "type": "set",\r
1588         "name": "set attachment_param for OTN G",\r
1589         "xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingG.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingG.dst-access-node-id`' />\n<!--<parameter name='dst-tpn-id' value='1' />-->\n<parameter name='src-tpn-id' value='`$tmp.aai.vpn-bindingG.customer-vpn-id`' />\n<parameter name='dst-tpn-id' value='`$tmp.aai.vpn-bindingG.customer-vpn-id`' />\n<parameter name='src-ttp-id' value='`$tmp.aai.vpn-bindingG.src-access-ltp-id`' />\n<parameter name='dst-ttp-id' value='`$tmp.aai.vpn-bindingG.dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-domainG' value='`$tmp.aai.vpn-bindingG.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingG.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingG.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingG.access-topology-id`' />\n",\r
1590         "comments": "",\r
1591         "x": 4168.883331298828,\r
1592         "y": 988,\r
1593         "z": "3f6a2e0f.b66c8a",\r
1594         "wires": []\r
1595     },\r
1596     {\r
1597         "id": "8b688219.8ed198",\r
1598         "type": "execute",\r
1599         "name": "execute RestApiCallNode Create OTN tunnel with token",\r
1600         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cll-otn-domainG-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
1601         "comments": "",\r
1602         "outputs": 1,\r
1603         "x": 4249.883331298828,\r
1604         "y": 1303,\r
1605         "z": "3f6a2e0f.b66c8a",\r
1606         "wires": [\r
1607             [\r
1608                 "4ea88210.ceec44",\r
1609                 "cd5b1128.4dbb9"\r
1610             ]\r
1611         ]\r
1612     },\r
1613     {\r
1614         "id": "4ea88210.ceec44",\r
1615         "type": "failure",\r
1616         "name": "failure",\r
1617         "xml": "<outcome value='failure'>\n",\r
1618         "comments": "",\r
1619         "outputs": 1,\r
1620         "x": 4559.383331298828,\r
1621         "y": 1272,\r
1622         "z": "3f6a2e0f.b66c8a",\r
1623         "wires": [\r
1624             [\r
1625                 "9646de5b.fe3c7"\r
1626             ]\r
1627         ]\r
1628     },\r
1629     {\r
1630         "id": "cd5b1128.4dbb9",\r
1631         "type": "success",\r
1632         "name": "success",\r
1633         "xml": "<outcome value='success'>\n",\r
1634         "comments": "",\r
1635         "outputs": 1,\r
1636         "x": 4564.383331298828,\r
1637         "y": 1337,\r
1638         "z": "3f6a2e0f.b66c8a",\r
1639         "wires": [\r
1640             [\r
1641                 "55735b11.27f424"\r
1642             ]\r
1643         ]\r
1644     },\r
1645     {\r
1646         "id": "9646de5b.fe3c7",\r
1647         "type": "returnFailure",\r
1648         "name": "return failure",\r
1649         "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=\"Error executing Create OTN tunnel rest api\" />\n",\r
1650         "comments": "",\r
1651         "x": 4735.383331298828,\r
1652         "y": 1272,\r
1653         "z": "3f6a2e0f.b66c8a",\r
1654         "wires": []\r
1655     },\r
1656     {\r
1657         "id": "55735b11.27f424",\r
1658         "type": "block",\r
1659         "name": "block : atomic",\r
1660         "xml": "<block atomic=\"true\">",\r
1661         "atomic": "true",\r
1662         "comments": "",\r
1663         "outputs": 1,\r
1664         "x": 4730.883331298828,\r
1665         "y": 1337,\r
1666         "z": "3f6a2e0f.b66c8a",\r
1667         "wires": [\r
1668             []\r
1669         ]\r
1670     },\r
1671     {\r
1672         "id": "24e13fd8.afe2d8",\r
1673         "type": "set",\r
1674         "name": "set pnf-name",\r
1675         "xml": "<set>\n<parameter name='tmp.domainG.pnf-name' value=\"`'networkId-providerId-' +\n                                                   $tmp.aai.vpn-bindingG.access-provider-id + '-clientId-' +\n                                                   $tmp.aai.vpn-bindingG.access-client-id + '-topologyId-' +\n                                                   $tmp.aai.vpn-bindingG.access-topology-id + '-nodeId-' +\n                                                   $tmp.aai.vpn-bindingG.src-access-node-id`\" />\n",\r
1676         "comments": "",\r
1677         "x": 4106.883331298828,\r
1678         "y": 1036,\r
1679         "z": "3f6a2e0f.b66c8a",\r
1680         "wires": []\r
1681     },\r
1682     {\r
1683         "id": "57e5431f.63be4c",\r
1684         "type": "get-resource",\r
1685         "name": "get-resource src pnf",\r
1686         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.domainG.pnf-name\"\n        pfx='tmp.aai.domainG-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
1687         "comments": "",\r
1688         "outputs": 1,\r
1689         "x": 4132.883331298828,\r
1690         "y": 1153,\r
1691         "z": "3f6a2e0f.b66c8a",\r
1692         "wires": [\r
1693             [\r
1694                 "1d187a80.e65b15",\r
1695                 "370c15e3.9b5fca",\r
1696                 "703dc49a.960884"\r
1697             ]\r
1698         ]\r
1699     },\r
1700     {\r
1701         "id": "1d187a80.e65b15",\r
1702         "type": "success",\r
1703         "name": "success",\r
1704         "xml": "<outcome value='success'>\n",\r
1705         "comments": "",\r
1706         "outputs": 1,\r
1707         "x": 4328.383453369141,\r
1708         "y": 1105,\r
1709         "z": "3f6a2e0f.b66c8a",\r
1710         "wires": [\r
1711             [\r
1712                 "5c6509dd.e3a81"\r
1713             ]\r
1714         ]\r
1715     },\r
1716     {\r
1717         "id": "370c15e3.9b5fca",\r
1718         "type": "not-found",\r
1719         "name": "not-found",\r
1720         "xml": "<outcome value='not-found'>\n",\r
1721         "comments": "",\r
1722         "outputs": 1,\r
1723         "x": 4320.383453369141,\r
1724         "y": 1160,\r
1725         "z": "3f6a2e0f.b66c8a",\r
1726         "wires": [\r
1727             [\r
1728                 "ccfe239.f2e7de"\r
1729             ]\r
1730         ]\r
1731     },\r
1732     {\r
1733         "id": "5c6509dd.e3a81",\r
1734         "type": "block",\r
1735         "name": "block",\r
1736         "xml": "<block>\n",\r
1737         "atomic": "false",\r
1738         "comments": "",\r
1739         "outputs": 1,\r
1740         "x": 4472.765777587891,\r
1741         "y": 1104.6556701660156,\r
1742         "z": "3f6a2e0f.b66c8a",\r
1743         "wires": [\r
1744             [\r
1745                 "35d4ca24.cf236e"\r
1746             ]\r
1747         ]\r
1748     },\r
1749     {\r
1750         "id": "35d4ca24.cf236e",\r
1751         "type": "for",\r
1752         "name": "for each relationship",\r
1753         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.domainG-pnf.relationship-list.relationship_length`' >\n",\r
1754         "comments": "",\r
1755         "outputs": 1,\r
1756         "x": 4656.883331298828,\r
1757         "y": 1103,\r
1758         "z": "3f6a2e0f.b66c8a",\r
1759         "wires": [\r
1760             [\r
1761                 "c8705d75.001f7"\r
1762             ]\r
1763         ]\r
1764     },\r
1765     {\r
1766         "id": "c8705d75.001f7",\r
1767         "type": "switchNode",\r
1768         "name": "switch related-to",\r
1769         "xml": "<switch test='`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
1770         "comments": "",\r
1771         "outputs": 1,\r
1772         "x": 4851.883331298828,\r
1773         "y": 1103,\r
1774         "z": "3f6a2e0f.b66c8a",\r
1775         "wires": [\r
1776             [\r
1777                 "b9376422.2a71"\r
1778             ]\r
1779         ]\r
1780     },\r
1781     {\r
1782         "id": "703dc49a.960884",\r
1783         "type": "other",\r
1784         "name": "other",\r
1785         "xml": "<outcome value='Other'>\n",\r
1786         "comments": "",\r
1787         "outputs": 1,\r
1788         "x": 4325.383453369141,\r
1789         "y": 1217,\r
1790         "z": "3f6a2e0f.b66c8a",\r
1791         "wires": [\r
1792             [\r
1793                 "ece92d94.dd0ac"\r
1794             ]\r
1795         ]\r
1796     },\r
1797     {\r
1798         "id": "ece92d94.dd0ac",\r
1799         "type": "returnFailure",\r
1800         "name": "return failure",\r
1801         "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
1802         "comments": "",\r
1803         "x": 4477.383453369141,\r
1804         "y": 1218,\r
1805         "z": "3f6a2e0f.b66c8a",\r
1806         "wires": []\r
1807     },\r
1808     {\r
1809         "id": "ccfe239.f2e7de",\r
1810         "type": "returnFailure",\r
1811         "name": "return failure",\r
1812         "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
1813         "comments": "",\r
1814         "x": 4488.383453369141,\r
1815         "y": 1161,\r
1816         "z": "3f6a2e0f.b66c8a",\r
1817         "wires": []\r
1818     },\r
1819     {\r
1820         "id": "eb5cd95b.b46698",\r
1821         "type": "set",\r
1822         "name": "set vpn-bindingG and connectivityG",\r
1823         "xml": "<set>\n<parameter name='tmp.aai.vpn-bindingG.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityG.' value=\"`$tmp.aai.connectivity.`\" />\n",\r
1824         "comments": "",\r
1825         "x": 4163.883331298828,\r
1826         "y": 928,\r
1827         "z": "3f6a2e0f.b66c8a",\r
1828         "wires": []\r
1829     },\r
1830     {\r
1831         "id": "b9376422.2a71",\r
1832         "type": "outcome",\r
1833         "name": "esr-thirdparty-sdnc",\r
1834         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
1835         "comments": "",\r
1836         "outputs": 1,\r
1837         "x": 5054.883331298828,\r
1838         "y": 1107,\r
1839         "z": "3f6a2e0f.b66c8a",\r
1840         "wires": [\r
1841             [\r
1842                 "d2480516.2fc378"\r
1843             ]\r
1844         ]\r
1845     },\r
1846     {\r
1847         "id": "9cb817ae.cef538",\r
1848         "type": "execute",\r
1849         "name": "get esr-thirdparty-sdnc",\r
1850         "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 = $tmp.domainG.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >",\r
1851         "comments": "",\r
1852         "outputs": 1,\r
1853         "x": 5439.883331298828,\r
1854         "y": 1120,\r
1855         "z": "3f6a2e0f.b66c8a",\r
1856         "wires": [\r
1857             [\r
1858                 "a79825bb.dff1f8",\r
1859                 "1395d5f.298062a",\r
1860                 "7903ca2c.aa5cc4"\r
1861             ]\r
1862         ]\r
1863     },\r
1864     {\r
1865         "id": "d2480516.2fc378",\r
1866         "type": "block",\r
1867         "name": "block : atomic",\r
1868         "xml": "<block atomic=\"true\">",\r
1869         "atomic": "true",\r
1870         "outputs": 1,\r
1871         "x": 5233.883331298828,\r
1872         "y": 1107,\r
1873         "z": "3f6a2e0f.b66c8a",\r
1874         "wires": [\r
1875             [\r
1876                 "fbf9e6b6.15b5c",\r
1877                 "9cb817ae.cef538"\r
1878             ]\r
1879         ]\r
1880     },\r
1881     {\r
1882         "id": "fbf9e6b6.15b5c",\r
1883         "type": "set",\r
1884         "name": "set esr-thirdparty-sdnc domainG id",\r
1885         "xml": "<set>\n<parameter name='tmp.domainG.esr-thirdparty-id' value=\"`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
1886         "comments": "",\r
1887         "x": 5469.883331298828,\r
1888         "y": 1068,\r
1889         "z": "3f6a2e0f.b66c8a",\r
1890         "wires": []\r
1891     },\r
1892     {\r
1893         "id": "a79825bb.dff1f8",\r
1894         "type": "success",\r
1895         "name": "success",\r
1896         "xml": "<outcome value='success'>\n",\r
1897         "comments": "",\r
1898         "outputs": 1,\r
1899         "x": 5649.883331298828,\r
1900         "y": 1111,\r
1901         "z": "3f6a2e0f.b66c8a",\r
1902         "wires": [\r
1903             [\r
1904                 "c7dce557.6dded"\r
1905             ]\r
1906         ]\r
1907     },\r
1908     {\r
1909         "id": "1395d5f.298062a",\r
1910         "type": "not-found",\r
1911         "name": "not-found",\r
1912         "xml": "<outcome value='not-found'>\n",\r
1913         "comments": "",\r
1914         "outputs": 1,\r
1915         "x": 5641.883331298828,\r
1916         "y": 1166,\r
1917         "z": "3f6a2e0f.b66c8a",\r
1918         "wires": [\r
1919             [\r
1920                 "598e647b.5837b4"\r
1921             ]\r
1922         ]\r
1923     },\r
1924     {\r
1925         "id": "7903ca2c.aa5cc4",\r
1926         "type": "other",\r
1927         "name": "other",\r
1928         "xml": "<outcome value='Other'>\n",\r
1929         "comments": "",\r
1930         "outputs": 1,\r
1931         "x": 5646.883331298828,\r
1932         "y": 1223,\r
1933         "z": "3f6a2e0f.b66c8a",\r
1934         "wires": [\r
1935             [\r
1936                 "e6c7a6e7.b2f038"\r
1937             ]\r
1938         ]\r
1939     },\r
1940     {\r
1941         "id": "e6c7a6e7.b2f038",\r
1942         "type": "returnFailure",\r
1943         "name": "return failure",\r
1944         "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
1945         "comments": "",\r
1946         "x": 5798.883331298828,\r
1947         "y": 1224,\r
1948         "z": "3f6a2e0f.b66c8a",\r
1949         "wires": []\r
1950     },\r
1951     {\r
1952         "id": "598e647b.5837b4",\r
1953         "type": "returnFailure",\r
1954         "name": "return failure",\r
1955         "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
1956         "comments": "",\r
1957         "x": 5809.883331298828,\r
1958         "y": 1169,\r
1959         "z": "3f6a2e0f.b66c8a",\r
1960         "wires": []\r
1961     },\r
1962     {\r
1963         "id": "c7dce557.6dded",\r
1964         "type": "block",\r
1965         "name": "block",\r
1966         "xml": "<block>\n",\r
1967         "atomic": "false",\r
1968         "comments": "",\r
1969         "outputs": 1,\r
1970         "x": 5794.265655517578,\r
1971         "y": 1108.6556701660156,\r
1972         "z": "3f6a2e0f.b66c8a",\r
1973         "wires": [\r
1974             [\r
1975                 "2cfbc0b6.6ae748"\r
1976             ]\r
1977         ]\r
1978     },\r
1979     {\r
1980         "id": "2cfbc0b6.6ae748",\r
1981         "type": "set",\r
1982         "name": "set controller domainG data",\r
1983         "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
1984         "comments": "",\r
1985         "x": 6008.883331298828,\r
1986         "y": 1105,\r
1987         "z": "3f6a2e0f.b66c8a",\r
1988         "wires": []\r
1989     },\r
1990     {\r
1991         "id": "fca9cd7.3028eb",\r
1992         "type": "comment",\r
1993         "name": "both src and dst exist",\r
1994         "info": "",\r
1995         "comments": "",\r
1996         "x": 3782.883331298828,\r
1997         "y": 1046,\r
1998         "z": "3f6a2e0f.b66c8a",\r
1999         "wires": []\r
2000     },\r
2001     {\r
2002         "id": "2c3b3231.83c2be",\r
2003         "type": "switchNode",\r
2004         "name": "switch vpn-binding is not already Activated (i.e. is either Created or Modified)",\r
2005         "xml": "<switch test=\"`$tmp.aai.vpn-binding.operational-status != 'Activated' `\">\n",\r
2006         "comments": "",\r
2007         "outputs": 1,\r
2008         "x": 2344.883331298828,\r
2009         "y": 773,\r
2010         "z": "3f6a2e0f.b66c8a",\r
2011         "wires": [\r
2012             [\r
2013                 "81a947d8.a13a68",\r
2014                 "b480f4ae.d59fb8"\r
2015             ]\r
2016         ]\r
2017     },\r
2018     {\r
2019         "id": "b480f4ae.d59fb8",\r
2020         "type": "outcomeFalse",\r
2021         "name": "false",\r
2022         "xml": "<outcome value='false'>\n",\r
2023         "comments": "",\r
2024         "outputs": 1,\r
2025         "x": 2751.883331298828,\r
2026         "y": 791,\r
2027         "z": "3f6a2e0f.b66c8a",\r
2028         "wires": [\r
2029             [\r
2030                 "23d2aee5.d5b2fa"\r
2031             ]\r
2032         ]\r
2033     },\r
2034     {\r
2035         "id": "81a947d8.a13a68",\r
2036         "type": "outcomeTrue",\r
2037         "name": "true",\r
2038         "xml": "<outcome value='true'>\n",\r
2039         "comments": "",\r
2040         "outputs": 1,\r
2041         "x": 2751.883331298828,\r
2042         "y": 736,\r
2043         "z": "3f6a2e0f.b66c8a",\r
2044         "wires": [\r
2045             [\r
2046                 "773948cf.a686e8"\r
2047             ]\r
2048         ]\r
2049     },\r
2050     {\r
2051         "id": "773948cf.a686e8",\r
2052         "type": "block",\r
2053         "name": "block : atomic",\r
2054         "xml": "<block atomic=\"true\">",\r
2055         "atomic": "true",\r
2056         "outputs": 1,\r
2057         "x": 2907.883331298828,\r
2058         "y": 734,\r
2059         "z": "3f6a2e0f.b66c8a",\r
2060         "wires": [\r
2061             [\r
2062                 "c8295377.ff6158",\r
2063                 "c7d66e95.fb47e"\r
2064             ]\r
2065         ]\r
2066     },\r
2067     {\r
2068         "id": "23d2aee5.d5b2fa",\r
2069         "type": "block",\r
2070         "name": "block",\r
2071         "xml": "<block>",\r
2072         "atomic": "false",\r
2073         "comments": "",\r
2074         "outputs": 1,\r
2075         "x": 2884.883331298828,\r
2076         "y": 792,\r
2077         "z": "3f6a2e0f.b66c8a",\r
2078         "wires": [\r
2079             []\r
2080         ]\r
2081     },\r
2082     {\r
2083         "id": "7714415.bcb45c",\r
2084         "type": "set",\r
2085         "name": "unset tmp.aai.all-vpn-bindings",\r
2086         "xml": "<set>\n<parameter name='tmp.aai.all-vpn-bindings.' value=\"\" />\n",\r
2087         "comments": "",\r
2088         "x": 1061.8833312988281,\r
2089         "y": 208,\r
2090         "z": "3f6a2e0f.b66c8a",\r
2091         "wires": []\r
2092     },\r
2093     {\r
2094         "id": "79981366.647454",\r
2095         "type": "comment",\r
2096         "name": "CLL new",\r
2097         "info": "construct two array structures like these:\n\n${otn-tunnels-name-list[${1}].otn-tunnel-name}\n\n----------------\n${ethernet-srv-end-points-list[${1}].ethernet-end-point-name}\n${ethernet-srv-end-points-list[${1}].index-number},\n${ethernet-srv-end-points-list[${1}].eth-node-id},\n${ethernet-srv-end-points-list[${1}].eth-node-tp-id},\n${ethernet-srv-end-points-list[${1}].leafOrRootAccess}\n${ethernet-srv-end-points-list[${1}].cvlan}\n${ethernet-srv-end-points-list[${1}].CIR}\n${ethernet-srv-end-points-list[${1}].EIR}",\r
2098         "comments": "",\r
2099         "x": 4178.883331298828,\r
2100         "y": 626,\r
2101         "z": "3f6a2e0f.b66c8a",\r
2102         "wires": []\r
2103     },\r
2104     {\r
2105         "id": "7a0ef184.deb28",\r
2106         "type": "set",\r
2107         "name": "set leaf-otn-tunnels-list array",\r
2108         "xml": "<set>\n<parameter name='`leaf-tunnels-list[$leaftunsidx].tunnel-name`' value='`$tmp.aai.vpn-binding.vpn-name`' />\n<parameter name='`leaf-tunnels-list[$leaftunsidx].vpn-id`' value='`$tmp.aai.vpn-binding.vpn-id`' />\n<parameter name='`leaf-tunnels-list_length`' value='`$leaftunsidx + 1`' />\n",\r
2109         "comments": "",\r
2110         "x": 4238.883331298828,\r
2111         "y": 665,\r
2112         "z": "3f6a2e0f.b66c8a",\r
2113         "wires": []\r
2114     },\r
2115     {\r
2116         "id": "2cf2ff05.5ecb98",\r
2117         "type": "set",\r
2118         "name": "unset leaf-otn-tunnels-list array",\r
2119         "xml": "<set>\n<parameter name='`leaf-tunnels-list.`' value='' />\n<parameter name='`leaf-tunnels-list_length`' value='0' />\n<parameter name='`leaftunsidx`' value='0' />\n",\r
2120         "comments": "",\r
2121         "x": 1054.8833312988281,\r
2122         "y": 116,\r
2123         "z": "3f6a2e0f.b66c8a",\r
2124         "wires": []\r
2125     },\r
2126     {\r
2127         "id": "7871357e.92d2f4",\r
2128         "type": "comment",\r
2129         "name": "CLL new",\r
2130         "info": "construct two array structures like these:\n\n${otn-tunnels-name-list[${1}].otn-tunnel-name}\n\n----------------\n${ethernet-srv-end-points-list[${1}].ethernet-end-point-name}\n${ethernet-srv-end-points-list[${1}].index-number},\n${ethernet-srv-end-points-list[${1}].eth-node-id},\n${ethernet-srv-end-points-list[${1}].eth-node-tp-id},\n${ethernet-srv-end-points-list[${1}].leafOrRootAccess}\n${ethernet-srv-end-points-list[${1}].cvlan}\n${ethernet-srv-end-points-list[${1}].CIR}\n${ethernet-srv-end-points-list[${1}].EIR}",\r
2131         "comments": "",\r
2132         "x": 3590.883331298828,\r
2133         "y": 2142,\r
2134         "z": "3f6a2e0f.b66c8a",\r
2135         "wires": []\r
2136     },\r
2137     {\r
2138         "id": "c984548c.2e537",\r
2139         "type": "set",\r
2140         "name": "set root-otn-tunnels-list array",\r
2141         "xml": "<set>\n<parameter name='`root-tunnels-list[$roottunsidx].tunnel-name`' value='`$tmp.aai.vpn-binding.vpn-name`' />\n<parameter name='`root-tunnels-list[$roottunsidx].vpn-id`' value='`$tmp.aai.vpn-binding.vpn-id`' />\n<parameter name='`root-tunnels-list_length`' value='`$roottunsidx + 1`' />\n",\r
2142         "comments": "",\r
2143         "x": 3646.883331298828,\r
2144         "y": 2191,\r
2145         "z": "3f6a2e0f.b66c8a",\r
2146         "wires": []\r
2147     },\r
2148     {\r
2149         "id": "efee660.b5b7f18",\r
2150         "type": "set",\r
2151         "name": "unset root-otn-tunnels-list array",\r
2152         "xml": "<set>\n<parameter name='`root-tunnels-list.`' value='' />\n<parameter name='`root-tunnels-list_length`' value='0' />\n<parameter name='`roottunsidx`' value='0' />\n",\r
2153         "comments": "",\r
2154         "x": 1054.8833312988281,\r
2155         "y": 155,\r
2156         "z": "3f6a2e0f.b66c8a",\r
2157         "wires": []\r
2158     },\r
2159     {\r
2160         "id": "ff64d6f0.1d24e",\r
2161         "type": "execute",\r
2162         "name": "execute properties",\r
2163         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />",\r
2164         "comments": "",\r
2165         "outputs": 1,\r
2166         "x": 1085.8833312988281,\r
2167         "y": 256,\r
2168         "z": "3f6a2e0f.b66c8a",\r
2169         "wires": [\r
2170             []\r
2171         ]\r
2172     },\r
2173     {\r
2174         "id": "c19ef147.be92d8",\r
2175         "type": "save",\r
2176         "name": "get service-instance from aai",\r
2177         "xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.service-instance\">\n\n\n<!--$vnf-topology-operation-input.service-information.service-instance-id-->",\r
2178         "comments": "",\r
2179         "outputs": 1,\r
2180         "x": 295.8833312988281,\r
2181         "y": 731,\r
2182         "z": "3f6a2e0f.b66c8a",\r
2183         "wires": [\r
2184             [\r
2185                 "4acbe821.0c1ff8",\r
2186                 "63a107d4.a006c8",\r
2187                 "4bb92513.9b1ebc"\r
2188             ]\r
2189         ]\r
2190     },\r
2191     {\r
2192         "id": "4acbe821.0c1ff8",\r
2193         "type": "success",\r
2194         "name": "success",\r
2195         "xml": "<outcome value='success'>\n",\r
2196         "comments": "",\r
2197         "outputs": 1,\r
2198         "x": 514.8833312988281,\r
2199         "y": 669,\r
2200         "z": "3f6a2e0f.b66c8a",\r
2201         "wires": [\r
2202             [\r
2203                 "d6a121aa.ecf888"\r
2204             ]\r
2205         ]\r
2206     },\r
2207     {\r
2208         "id": "63a107d4.a006c8",\r
2209         "type": "not-found",\r
2210         "name": "not-found",\r
2211         "xml": "<outcome value='not-found'>\n",\r
2212         "comments": "",\r
2213         "outputs": 1,\r
2214         "x": 524.3742980957031,\r
2215         "y": 711.5740356445312,\r
2216         "z": "3f6a2e0f.b66c8a",\r
2217         "wires": [\r
2218             []\r
2219         ]\r
2220     },\r
2221     {\r
2222         "id": "4bb92513.9b1ebc",\r
2223         "type": "failure",\r
2224         "name": "failure",\r
2225         "xml": "<outcome value='failure'>\n",\r
2226         "comments": "",\r
2227         "outputs": 1,\r
2228         "x": 512.8833312988281,\r
2229         "y": 758,\r
2230         "z": "3f6a2e0f.b66c8a",\r
2231         "wires": [\r
2232             [\r
2233                 "f58f94a6.d7fb9"\r
2234             ]\r
2235         ]\r
2236     },\r
2237     {\r
2238         "id": "d6a121aa.ecf888",\r
2239         "type": "for",\r
2240         "name": "for each relationship",\r
2241         "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",\r
2242         "comments": "",\r
2243         "outputs": 1,\r
2244         "x": 711.8833312988281,\r
2245         "y": 665,\r
2246         "z": "3f6a2e0f.b66c8a",\r
2247         "wires": [\r
2248             [\r
2249                 "46606d75.f5af5c"\r
2250             ]\r
2251         ]\r
2252     },\r
2253     {\r
2254         "id": "f58f94a6.d7fb9",\r
2255         "type": "returnFailure",\r
2256         "name": "return failure",\r
2257         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
2258         "comments": "",\r
2259         "x": 681.8833312988281,\r
2260         "y": 759,\r
2261         "z": "3f6a2e0f.b66c8a",\r
2262         "wires": []\r
2263     },\r
2264     {\r
2265         "id": "46606d75.f5af5c",\r
2266         "type": "switchNode",\r
2267         "name": "switch related-to",\r
2268         "xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",\r
2269         "comments": "",\r
2270         "outputs": 1,\r
2271         "x": 935.2168273925781,\r
2272         "y": 664.9999389648438,\r
2273         "z": "3f6a2e0f.b66c8a",\r
2274         "wires": [\r
2275             [\r
2276                 "1dffeedd.2e39d1"\r
2277             ]\r
2278         ]\r
2279     },\r
2280     {\r
2281         "id": "1dffeedd.2e39d1",\r
2282         "type": "outcome",\r
2283         "name": "connectivity",\r
2284         "xml": "<outcome value='connectivity'>\n",\r
2285         "comments": "",\r
2286         "outputs": 1,\r
2287         "x": 1135.8834648132324,\r
2288         "y": 666.000020980835,\r
2289         "z": "3f6a2e0f.b66c8a",\r
2290         "wires": [\r
2291             [\r
2292                 "5eeac4ab.784bec"\r
2293             ]\r
2294         ]\r
2295     },\r
2296     {\r
2297         "id": "5eeac4ab.784bec",\r
2298         "type": "save",\r
2299         "name": "get connectivity from aai",\r
2300         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t    key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivity\" >\n",\r
2301         "comments": "",\r
2302         "outputs": 1,\r
2303         "x": 265.8833312988281,\r
2304         "y": 928,\r
2305         "z": "3f6a2e0f.b66c8a",\r
2306         "wires": [\r
2307             [\r
2308                 "93ffca07.c36c6",\r
2309                 "a6155e5c.4a2e4",\r
2310                 "edf3ae2.0898ad"\r
2311             ]\r
2312         ]\r
2313     },\r
2314     {\r
2315         "id": "93ffca07.c36c6",\r
2316         "type": "success",\r
2317         "name": "success",\r
2318         "xml": "<outcome value='success'>\n",\r
2319         "comments": "",\r
2320         "outputs": 1,\r
2321         "x": 473.8833312988281,\r
2322         "y": 892,\r
2323         "z": "3f6a2e0f.b66c8a",\r
2324         "wires": [\r
2325             [\r
2326                 "41f16b19.4ea28c"\r
2327             ]\r
2328         ]\r
2329     },\r
2330     {\r
2331         "id": "a6155e5c.4a2e4",\r
2332         "type": "not-found",\r
2333         "name": "not-found",\r
2334         "xml": "<outcome value='not-found'>\n",\r
2335         "comments": "",\r
2336         "outputs": 1,\r
2337         "x": 474.3742980957031,\r
2338         "y": 937.5740356445312,\r
2339         "z": "3f6a2e0f.b66c8a",\r
2340         "wires": [\r
2341             []\r
2342         ]\r
2343     },\r
2344     {\r
2345         "id": "edf3ae2.0898ad",\r
2346         "type": "failure",\r
2347         "name": "failure",\r
2348         "xml": "<outcome value='failure'>\n",\r
2349         "comments": "",\r
2350         "outputs": 1,\r
2351         "x": 471.8833312988281,\r
2352         "y": 981,\r
2353         "z": "3f6a2e0f.b66c8a",\r
2354         "wires": [\r
2355             [\r
2356                 "77488207.b4a2f4"\r
2357             ]\r
2358         ]\r
2359     },\r
2360     {\r
2361         "id": "77488207.b4a2f4",\r
2362         "type": "returnFailure",\r
2363         "name": "return failure",\r
2364         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
2365         "comments": "",\r
2366         "x": 640.8833312988281,\r
2367         "y": 982,\r
2368         "z": "3f6a2e0f.b66c8a",\r
2369         "wires": []\r
2370     },\r
2371     {\r
2372         "id": "1853bc71.11bc54",\r
2373         "type": "for",\r
2374         "name": "for each relationship",\r
2375         "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",\r
2376         "comments": "",\r
2377         "outputs": 1,\r
2378         "x": 612.8833312988281,\r
2379         "y": 1476,\r
2380         "z": "3f6a2e0f.b66c8a",\r
2381         "wires": [\r
2382             [\r
2383                 "aa99b60e.a0ae8"\r
2384             ]\r
2385         ]\r
2386     },\r
2387     {\r
2388         "id": "aa99b60e.a0ae8",\r
2389         "type": "switchNode",\r
2390         "name": "switch related-to",\r
2391         "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",\r
2392         "comments": "",\r
2393         "outputs": 1,\r
2394         "x": 815.8833312988281,\r
2395         "y": 1488,\r
2396         "z": "3f6a2e0f.b66c8a",\r
2397         "wires": [\r
2398             [\r
2399                 "6b5b67d6.d9cff8"\r
2400             ]\r
2401         ]\r
2402     },\r
2403     {\r
2404         "id": "6b5b67d6.d9cff8",\r
2405         "type": "outcome",\r
2406         "name": "UNI",\r
2407         "xml": "<outcome value='uni'>\n",\r
2408         "comments": "",\r
2409         "outputs": 1,\r
2410         "x": 981.8833312988281,\r
2411         "y": 1485,\r
2412         "z": "3f6a2e0f.b66c8a",\r
2413         "wires": [\r
2414             [\r
2415                 "c9be5883.2f43"\r
2416             ]\r
2417         ]\r
2418     },\r
2419     {\r
2420         "id": "c9be5883.2f43",\r
2421         "type": "block",\r
2422         "name": "block : atomic",\r
2423         "xml": "<block atomic=\"true\">",\r
2424         "atomic": "true",\r
2425         "outputs": 1,\r
2426         "x": 1142.8833312988281,\r
2427         "y": 1482,\r
2428         "z": "3f6a2e0f.b66c8a",\r
2429         "wires": [\r
2430             [\r
2431                 "8328946b.83ccf",\r
2432                 "70436354.fbd2a4",\r
2433                 "71db6bb7.f92dd4",\r
2434                 "a3af61e2.8efbd8",\r
2435                 "1dbcecbe.b5c9a3"\r
2436             ]\r
2437         ]\r
2438     },\r
2439     {\r
2440         "id": "70436354.fbd2a4",\r
2441         "type": "set",\r
2442         "name": "unset tmp.aai.uni",\r
2443         "xml": "<set>\n<parameter name='tmp.aai.uni.' value='' />\n",\r
2444         "comments": "",\r
2445         "x": 1346.8833312988281,\r
2446         "y": 1440,\r
2447         "z": "3f6a2e0f.b66c8a",\r
2448         "wires": []\r
2449     },\r
2450     {\r
2451         "id": "8328946b.83ccf",\r
2452         "type": "save",\r
2453         "name": "get uni from aai",\r
2454         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"uni\"\n\t    key=\"uni.id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.uni\" >\n",\r
2455         "comments": "",\r
2456         "outputs": 1,\r
2457         "x": 1343.8833312988281,\r
2458         "y": 1485,\r
2459         "z": "3f6a2e0f.b66c8a",\r
2460         "wires": [\r
2461             [\r
2462                 "95cc35e2.dbd57",\r
2463                 "6243e8b2.6e7d68",\r
2464                 "ea238384.cd0de8"\r
2465             ]\r
2466         ]\r
2467     },\r
2468     {\r
2469         "id": "6243e8b2.6e7d68",\r
2470         "type": "not-found",\r
2471         "name": "not-found",\r
2472         "xml": "<outcome value='not-found'>\n",\r
2473         "comments": "",\r
2474         "outputs": 1,\r
2475         "x": 1539.3742980957031,\r
2476         "y": 1458.573974609375,\r
2477         "z": "3f6a2e0f.b66c8a",\r
2478         "wires": [\r
2479             [\r
2480                 "60cc7ad4.175214"\r
2481             ]\r
2482         ]\r
2483     },\r
2484     {\r
2485         "id": "ea238384.cd0de8",\r
2486         "type": "failure",\r
2487         "name": "failure",\r
2488         "xml": "<outcome value='failure'>\n",\r
2489         "comments": "",\r
2490         "outputs": 1,\r
2491         "x": 1534.8833312988281,\r
2492         "y": 1502.9999389648438,\r
2493         "z": "3f6a2e0f.b66c8a",\r
2494         "wires": [\r
2495             [\r
2496                 "33a586e8.574ea2"\r
2497             ]\r
2498         ]\r
2499     },\r
2500     {\r
2501         "id": "60cc7ad4.175214",\r
2502         "type": "returnFailure",\r
2503         "name": "return failure",\r
2504         "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 pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
2505         "comments": "",\r
2506         "x": 1701.9458312988281,\r
2507         "y": 1457.8596801757812,\r
2508         "z": "3f6a2e0f.b66c8a",\r
2509         "wires": []\r
2510     },\r
2511     {\r
2512         "id": "33a586e8.574ea2",\r
2513         "type": "returnFailure",\r
2514         "name": "return failure",\r
2515         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
2516         "comments": "",\r
2517         "x": 1702.8833312988281,\r
2518         "y": 1502.9999389648438,\r
2519         "z": "3f6a2e0f.b66c8a",\r
2520         "wires": []\r
2521     },\r
2522     {\r
2523         "id": "3ed2826e.143bbe",\r
2524         "type": "block",\r
2525         "name": "block : atomic",\r
2526         "xml": "<block atomic=\"true\">",\r
2527         "atomic": "true",\r
2528         "outputs": 1,\r
2529         "x": 1704.8833312988281,\r
2530         "y": 1549.9999389648438,\r
2531         "z": "3f6a2e0f.b66c8a",\r
2532         "wires": [\r
2533             []\r
2534         ]\r
2535     },\r
2536     {\r
2537         "id": "95cc35e2.dbd57",\r
2538         "type": "success",\r
2539         "name": "success",\r
2540         "xml": "<outcome value='success'>\n",\r
2541         "comments": "",\r
2542         "outputs": 1,\r
2543         "x": 1535.8833312988281,\r
2544         "y": 1549.9999389648438,\r
2545         "z": "3f6a2e0f.b66c8a",\r
2546         "wires": [\r
2547             [\r
2548                 "3ed2826e.143bbe"\r
2549             ]\r
2550         ]\r
2551     },\r
2552     {\r
2553         "id": "a3b35ff6.7d4a88",\r
2554         "type": "switchNode",\r
2555         "name": "switch conn type",\r
2556         "xml": "<switch test=\"`$tmp.aai.connectivity.vpn-type`\">\n\n",\r
2557         "comments": "",\r
2558         "outputs": 1,\r
2559         "x": 225.38333129882812,\r
2560         "y": 1147,\r
2561         "z": "3f6a2e0f.b66c8a",\r
2562         "wires": [\r
2563             [\r
2564                 "53e42336.cf6874",\r
2565                 "64e5ac9.b8c59d4",\r
2566                 "29d673d9.3ef8bc"\r
2567             ]\r
2568         ]\r
2569     },\r
2570     {\r
2571         "id": "fdb5b362.28d2e8",\r
2572         "type": "block",\r
2573         "name": "block",\r
2574         "xml": "<block>",\r
2575         "atomic": "false",\r
2576         "comments": "",\r
2577         "outputs": 1,\r
2578         "x": 336.3833312988281,\r
2579         "y": 1503,\r
2580         "z": "3f6a2e0f.b66c8a",\r
2581         "wires": [\r
2582             []\r
2583         ]\r
2584     },\r
2585     {\r
2586         "id": "53e42336.cf6874",\r
2587         "type": "outcome",\r
2588         "name": "leaf",\r
2589         "xml": "<outcome value='leaf'>\n",\r
2590         "comments": "",\r
2591         "outputs": 1,\r
2592         "x": 211.38333129882812,\r
2593         "y": 1393,\r
2594         "z": "3f6a2e0f.b66c8a",\r
2595         "wires": [\r
2596             [\r
2597                 "2d911faf.b625f"\r
2598             ]\r
2599         ]\r
2600     },\r
2601     {\r
2602         "id": "64e5ac9.b8c59d4",\r
2603         "type": "outcome",\r
2604         "name": "root",\r
2605         "xml": "<outcome value='root'>\n",\r
2606         "comments": "",\r
2607         "outputs": 1,\r
2608         "x": 212.38333129882812,\r
2609         "y": 1451,\r
2610         "z": "3f6a2e0f.b66c8a",\r
2611         "wires": [\r
2612             [\r
2613                 "c8a49fba.48732"\r
2614             ]\r
2615         ]\r
2616     },\r
2617     {\r
2618         "id": "29d673d9.3ef8bc",\r
2619         "type": "other",\r
2620         "name": "other",\r
2621         "xml": "<outcome value='Other'>\n",\r
2622         "comments": "",\r
2623         "outputs": 1,\r
2624         "x": 214.38333129882812,\r
2625         "y": 1505,\r
2626         "z": "3f6a2e0f.b66c8a",\r
2627         "wires": [\r
2628             [\r
2629                 "fdb5b362.28d2e8"\r
2630             ]\r
2631         ]\r
2632     },\r
2633     {\r
2634         "id": "893647bf.8d35f8",\r
2635         "type": "comment",\r
2636         "name": "CLL new",\r
2637         "info": "construct two array structures like these:\n\n${otn-tunnels-name-list[${1}].otn-tunnel-name}\n\n----------------\n${ethernet-srv-end-points-list[${1}].ethernet-end-point-name}\n${ethernet-srv-end-points-list[${1}].index-number},\n${ethernet-srv-end-points-list[${1}].eth-node-id},\n${ethernet-srv-end-points-list[${1}].eth-node-tp-id},\n${ethernet-srv-end-points-list[${1}].leafOrRootAccess}\n${ethernet-srv-end-points-list[${1}].cvlan}\n${ethernet-srv-end-points-list[${1}].CIR}\n${ethernet-srv-end-points-list[${1}].EIR}",\r
2638         "comments": "",\r
2639         "x": 1319.8833312988281,\r
2640         "y": 1713,\r
2641         "z": "3f6a2e0f.b66c8a",\r
2642         "wires": []\r
2643     },\r
2644     {\r
2645         "id": "71db6bb7.f92dd4",\r
2646         "type": "set",\r
2647         "name": "set ethernet-srv-end-points-list array",\r
2648         "xml": "<set>\n<!--<parameter name='`ethernet-srv-end-points-list[$epidx].ethernet-end-point-name`' value='`$tmp.aai.connectivity.connectivity-id`' />-->\n<parameter name='`ethernet-srv-end-points-list[$epidx].ethernet-end-point-name`' value='`$tmp.aai.uni.id`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].index-number`' value='0' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].eth-node-id`' value='`$tmp.uni-node-id-short`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].eth-node-tp-id`' value='`$tmp.aai.uni.tp-id`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].leafOrRootAccess`' value='`$leafOrRootAccess`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].cvlan`' value='`$tmp.aai.connectivity.cvlan`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].CIR`' value='`$tmp.aai.uni.data-source * 1000000`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].EIR`' value='`$tmp.aai.uni.data-source * 1000000`' />\n\n<parameter name='`ethernet-srv-end-points-list_length`' value='`$epidx + 1`' />\n",\r
2649         "comments": "",\r
2650         "x": 1410.8833312988281,\r
2651         "y": 1767,\r
2652         "z": "3f6a2e0f.b66c8a",\r
2653         "wires": []\r
2654     },\r
2655     {\r
2656         "id": "c8a49fba.48732",\r
2657         "type": "block",\r
2658         "name": "block",\r
2659         "xml": "<block>",\r
2660         "atomic": "false",\r
2661         "comments": "",\r
2662         "outputs": 1,\r
2663         "x": 328.3833312988281,\r
2664         "y": 1447,\r
2665         "z": "3f6a2e0f.b66c8a",\r
2666         "wires": [\r
2667             [\r
2668                 "c9ed31d4.2a59a",\r
2669                 "1853bc71.11bc54",\r
2670                 "e2c4a442.f42cf",\r
2671                 "7b94a56a.0cc0c4",\r
2672                 "14d69ea3.c37079",\r
2673                 "e39ba7bd.aed5d8",\r
2674                 "9e9fd2d9.fce4a8",\r
2675                 "3e44ba6b.3875e6",\r
2676                 "de368aef.16cb",\r
2677                 "61a182f0.95ec2c",\r
2678                 "fae7aeca.a940b8",\r
2679                 "f92bafd0.7c69c8"\r
2680             ]\r
2681         ]\r
2682     },\r
2683     {\r
2684         "id": "2d911faf.b625f",\r
2685         "type": "block",\r
2686         "name": "block",\r
2687         "xml": "<block>",\r
2688         "atomic": "false",\r
2689         "comments": "",\r
2690         "outputs": 1,\r
2691         "x": 341.3833312988281,\r
2692         "y": 1389,\r
2693         "z": "3f6a2e0f.b66c8a",\r
2694         "wires": [\r
2695             [\r
2696                 "1853bc71.11bc54",\r
2697                 "30a75a3e.13e116",\r
2698                 "878444f9.a47b7",\r
2699                 "7b94a56a.0cc0c4",\r
2700                 "14d69ea3.c37079",\r
2701                 "e39ba7bd.aed5d8",\r
2702                 "9e9fd2d9.fce4a8",\r
2703                 "3e44ba6b.3875e6",\r
2704                 "de368aef.16cb",\r
2705                 "61a182f0.95ec2c",\r
2706                 "fae7aeca.a940b8",\r
2707                 "f92bafd0.7c69c8"\r
2708             ]\r
2709         ]\r
2710     },\r
2711     {\r
2712         "id": "30a75a3e.13e116",\r
2713         "type": "set",\r
2714         "name": "unset ethernet-srv-end-points-list",\r
2715         "xml": "<set>\n<parameter name='`ethernet-srv-end-points-list.`' value='' />\n<parameter name='`ethernet-srv-end-points-list_length`' value='0' />\n<parameter name='`epidx`' value='0' />",\r
2716         "comments": "",\r
2717         "x": 632.3833312988281,\r
2718         "y": 1269,\r
2719         "z": "3f6a2e0f.b66c8a",\r
2720         "wires": []\r
2721     },\r
2722     {\r
2723         "id": "c9ed31d4.2a59a",\r
2724         "type": "set",\r
2725         "name": "unset ethernet-srv-end-points-list",\r
2726         "xml": "<set>\n<parameter name='`ethernet-srv-end-points-list.`' value='' />\n<parameter name='`ethernet-srv-end-points-list_length`' value='0' />\n<parameter name='`epidx`' value='0' />",\r
2727         "comments": "",\r
2728         "x": 649.3833312988281,\r
2729         "y": 1363,\r
2730         "z": "3f6a2e0f.b66c8a",\r
2731         "wires": []\r
2732     },\r
2733     {\r
2734         "id": "7b94a56a.0cc0c4",\r
2735         "type": "for",\r
2736         "name": "for each relationship",\r
2737         "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",\r
2738         "comments": "",\r
2739         "outputs": 1,\r
2740         "x": 575.8833312988281,\r
2741         "y": 1732,\r
2742         "z": "3f6a2e0f.b66c8a",\r
2743         "wires": [\r
2744             [\r
2745                 "bd67d795.2e839"\r
2746             ]\r
2747         ]\r
2748     },\r
2749     {\r
2750         "id": "bd67d795.2e839",\r
2751         "type": "switchNode",\r
2752         "name": "switch related-to",\r
2753         "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",\r
2754         "comments": "",\r
2755         "outputs": 1,\r
2756         "x": 807.8833312988281,\r
2757         "y": 1731,\r
2758         "z": "3f6a2e0f.b66c8a",\r
2759         "wires": [\r
2760             [\r
2761                 "148b77ab.48b7a"\r
2762             ]\r
2763         ]\r
2764     },\r
2765     {\r
2766         "id": "148b77ab.48b7a",\r
2767         "type": "outcome",\r
2768         "name": "vpn-binding",\r
2769         "xml": "<outcome value='vpn-binding'>\n",\r
2770         "comments": "",\r
2771         "outputs": 1,\r
2772         "x": 1019.8833312988281,\r
2773         "y": 1732,\r
2774         "z": "3f6a2e0f.b66c8a",\r
2775         "wires": [\r
2776             [\r
2777                 "90ccd6ae.a26198"\r
2778             ]\r
2779         ]\r
2780     },\r
2781     {\r
2782         "id": "90ccd6ae.a26198",\r
2783         "type": "block",\r
2784         "name": "block : atomic",\r
2785         "xml": "<block atomic=\"true\">",\r
2786         "atomic": "true",\r
2787         "outputs": 1,\r
2788         "x": 275.8833312988281,\r
2789         "y": 1888,\r
2790         "z": "3f6a2e0f.b66c8a",\r
2791         "wires": [\r
2792             [\r
2793                 "8f4c1c14.35a72",\r
2794                 "c6a7aee9.6724"\r
2795             ]\r
2796         ]\r
2797     },\r
2798     {\r
2799         "id": "c6a7aee9.6724",\r
2800         "type": "set",\r
2801         "name": "unset tmp.aai.vpn-binding",\r
2802         "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",\r
2803         "comments": "",\r
2804         "x": 510.8833312988281,\r
2805         "y": 1875,\r
2806         "z": "3f6a2e0f.b66c8a",\r
2807         "wires": []\r
2808     },\r
2809     {\r
2810         "id": "8f4c1c14.35a72",\r
2811         "type": "save",\r
2812         "name": "get vpn-binding from aai",\r
2813         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\"\n\t    key=\"vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-binding\" >\n",\r
2814         "comments": "",\r
2815         "outputs": 1,\r
2816         "x": 500.8833312988281,\r
2817         "y": 1936,\r
2818         "z": "3f6a2e0f.b66c8a",\r
2819         "wires": [\r
2820             [\r
2821                 "2e648939.1db066",\r
2822                 "6fc34533.3f02e4",\r
2823                 "f4ca0a98.2172d"\r
2824             ]\r
2825         ]\r
2826     },\r
2827     {\r
2828         "id": "6fc34533.3f02e4",\r
2829         "type": "not-found",\r
2830         "name": "not-found",\r
2831         "xml": "<outcome value='not-found'>\n",\r
2832         "comments": "",\r
2833         "outputs": 1,\r
2834         "x": 714.3742980957031,\r
2835         "y": 1920.5740356445312,\r
2836         "z": "3f6a2e0f.b66c8a",\r
2837         "wires": [\r
2838             [\r
2839                 "24a8c225.12e4ae"\r
2840             ]\r
2841         ]\r
2842     },\r
2843     {\r
2844         "id": "f4ca0a98.2172d",\r
2845         "type": "failure",\r
2846         "name": "failure",\r
2847         "xml": "<outcome value='failure'>\n",\r
2848         "comments": "",\r
2849         "outputs": 1,\r
2850         "x": 709.8833312988281,\r
2851         "y": 1965,\r
2852         "z": "3f6a2e0f.b66c8a",\r
2853         "wires": [\r
2854             [\r
2855                 "a2a9b29c.7bdb18"\r
2856             ]\r
2857         ]\r
2858     },\r
2859     {\r
2860         "id": "2e648939.1db066",\r
2861         "type": "success",\r
2862         "name": "success",\r
2863         "xml": "<outcome value='success'>\n",\r
2864         "comments": "",\r
2865         "outputs": 1,\r
2866         "x": 711.8833312988281,\r
2867         "y": 2025,\r
2868         "z": "3f6a2e0f.b66c8a",\r
2869         "wires": [\r
2870             [\r
2871                 "6e035263.0ab9c4"\r
2872             ]\r
2873         ]\r
2874     },\r
2875     {\r
2876         "id": "24a8c225.12e4ae",\r
2877         "type": "returnFailure",\r
2878         "name": "return failure",\r
2879         "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 pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
2880         "comments": "",\r
2881         "x": 876.9458312988281,\r
2882         "y": 1919.8597412109375,\r
2883         "z": "3f6a2e0f.b66c8a",\r
2884         "wires": []\r
2885     },\r
2886     {\r
2887         "id": "a2a9b29c.7bdb18",\r
2888         "type": "returnFailure",\r
2889         "name": "return failure",\r
2890         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
2891         "comments": "",\r
2892         "x": 877.8833312988281,\r
2893         "y": 1965,\r
2894         "z": "3f6a2e0f.b66c8a",\r
2895         "wires": []\r
2896     },\r
2897     {\r
2898         "id": "6e035263.0ab9c4",\r
2899         "type": "block",\r
2900         "name": "block : atomic",\r
2901         "xml": "<block atomic=\"true\">",\r
2902         "atomic": "true",\r
2903         "outputs": 1,\r
2904         "x": 880.8833312988281,\r
2905         "y": 2024,\r
2906         "z": "3f6a2e0f.b66c8a",\r
2907         "wires": [\r
2908             [\r
2909                 "fc704734.f5a92",\r
2910                 "534cefd0.094168"\r
2911             ]\r
2912         ]\r
2913     },\r
2914     {\r
2915         "id": "9e9fd2d9.fce4a8",\r
2916         "type": "set",\r
2917         "name": "set sotn_value",\r
2918         "xml": "<set>\n<!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.connectivity-id`' />-->\n<parameter name='eth-service-name' value='`$tmp.aai.connectivity.etht-svc-name`' />\n<parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='provider-id' value='`$tmp.aai.connectivity.access-provider-id`' />\n<parameter name='client-id' value='`$tmp.aai.connectivity.access-client-id`' />\n<parameter name='topology-id' value='`$tmp.aai.connectivity.access-topology-id`' />\n<!--<parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />-->\n<!--<parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityA.connectivity-id`' />-->\n<!--<parameter name='index-number' value='0' />-->\n<!--<parameter name='eth-node-id' value='`$tmp.aai.connectivityA.access-node-id`' />-->\n<!--<parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityA.access-ltp-id`' />-->\n<!--<parameter name='CIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />-->\n<!--<parameter name='EIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.connectivityA.cvlan`' />-->\n",\r
2919         "comments": "",\r
2920         "x": 279.8833312988281,\r
2921         "y": 2523,\r
2922         "z": "3f6a2e0f.b66c8a",\r
2923         "wires": []\r
2924     },\r
2925     {\r
2926         "id": "3e44ba6b.3875e6",\r
2927         "type": "execute",\r
2928         "name": "execute RestApiCallNode Create ethernet Service without token",\r
2929         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cll-ethernet-service-loop.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n",\r
2930         "comments": "",\r
2931         "outputs": 1,\r
2932         "x": 422.8833312988281,\r
2933         "y": 2583,\r
2934         "z": "3f6a2e0f.b66c8a",\r
2935         "wires": [\r
2936             [\r
2937                 "b4c4bd8d.d5bdc",\r
2938                 "c813638c.89d0f"\r
2939             ]\r
2940         ]\r
2941     },\r
2942     {\r
2943         "id": "b4c4bd8d.d5bdc",\r
2944         "type": "failure",\r
2945         "name": "failure",\r
2946         "xml": "<outcome value='failure'>\n",\r
2947         "comments": "",\r
2948         "outputs": 1,\r
2949         "x": 735.3833312988281,\r
2950         "y": 2560,\r
2951         "z": "3f6a2e0f.b66c8a",\r
2952         "wires": [\r
2953             []\r
2954         ]\r
2955     },\r
2956     {\r
2957         "id": "c813638c.89d0f",\r
2958         "type": "success",\r
2959         "name": "success",\r
2960         "xml": "<outcome value='success'>\n",\r
2961         "comments": "",\r
2962         "outputs": 1,\r
2963         "x": 739.3833312988281,\r
2964         "y": 2600,\r
2965         "z": "3f6a2e0f.b66c8a",\r
2966         "wires": [\r
2967             [\r
2968                 "3e668730.81c5e8"\r
2969             ]\r
2970         ]\r
2971     },\r
2972     {\r
2973         "id": "1c6aee6c.a3a53a",\r
2974         "type": "returnFailure",\r
2975         "name": "return failure",\r
2976         "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=\"Error executing Create ethernet service rest api\" />\n",\r
2977         "comments": "",\r
2978         "x": 915.3833312988281,\r
2979         "y": 2564,\r
2980         "z": "3f6a2e0f.b66c8a",\r
2981         "wires": []\r
2982     },\r
2983     {\r
2984         "id": "3e668730.81c5e8",\r
2985         "type": "block",\r
2986         "name": "block : atomic",\r
2987         "xml": "<block atomic=\"true\">",\r
2988         "atomic": "true",\r
2989         "comments": "",\r
2990         "outputs": 1,\r
2991         "x": 930.8833312988281,\r
2992         "y": 2618,\r
2993         "z": "3f6a2e0f.b66c8a",\r
2994         "wires": [\r
2995             [\r
2996                 "e6168d7c.f871d"\r
2997             ]\r
2998         ]\r
2999     },\r
3000     {\r
3001         "id": "59cef6d7.b8a21",\r
3002         "type": "save",\r
3003         "name": "update vpn-binding resource (aka. OTN ) in AAI",\r
3004         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-binding.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-binding.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",\r
3005         "comments": "",\r
3006         "outputs": 1,\r
3007         "x": 1226.3833312988281,\r
3008         "y": 2587,\r
3009         "z": "3f6a2e0f.b66c8a",\r
3010         "wires": [\r
3011             []\r
3012         ]\r
3013     },\r
3014     {\r
3015         "id": "b5303ab1.d78928",\r
3016         "type": "comment",\r
3017         "name": "TODO: FIXME",\r
3018         "info": "use proper vpn-binding id and connectivity id\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",\r
3019         "comments": "",\r
3020         "x": 2693.383331298828,\r
3021         "y": 1938,\r
3022         "z": "3f6a2e0f.b66c8a",\r
3023         "wires": []\r
3024     },\r
3025     {\r
3026         "id": "e6168d7c.f871d",\r
3027         "type": "save",\r
3028         "name": "update connectivity resource in AAI",\r
3029         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.aai.connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivity.connectivity-id`' />\n<parameter name='operational-status' value='Activated' />\n",\r
3030         "comments": "",\r
3031         "outputs": 1,\r
3032         "x": 1188.3833312988281,\r
3033         "y": 2629,\r
3034         "z": "3f6a2e0f.b66c8a",\r
3035         "wires": [\r
3036             []\r
3037         ]\r
3038     },\r
3039     {\r
3040         "id": "878444f9.a47b7",\r
3041         "type": "set",\r
3042         "name": "set leafOrRootAccess",\r
3043         "xml": "<set>\n<parameter name='`leafOrRootAccess`' value='ietf-eth-tran-types:leaf-access' />\n",\r
3044         "comments": "",\r
3045         "x": 598.3833312988281,\r
3046         "y": 1307,\r
3047         "z": "3f6a2e0f.b66c8a",\r
3048         "wires": []\r
3049     },\r
3050     {\r
3051         "id": "e2c4a442.f42cf",\r
3052         "type": "set",\r
3053         "name": "set leafOrRootAccess",\r
3054         "xml": "<set>\n<parameter name='`leafOrRootAccess`' value='ietf-eth-tran-types:root-primary' />\n",\r
3055         "comments": "",\r
3056         "x": 611.3833312988281,\r
3057         "y": 1403,\r
3058         "z": "3f6a2e0f.b66c8a",\r
3059         "wires": []\r
3060     },\r
3061     {\r
3062         "id": "dd4c3392.e1b02",\r
3063         "type": "save",\r
3064         "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",\r
3065         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.vpn-bindingA.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-bindingA.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",\r
3066         "comments": "",\r
3067         "outputs": 1,\r
3068         "x": 4347.883331298828,\r
3069         "y": 579,\r
3070         "z": "3f6a2e0f.b66c8a",\r
3071         "wires": [\r
3072             []\r
3073         ]\r
3074     },\r
3075     {\r
3076         "id": "9c0b0957.1e6c48",\r
3077         "type": "save",\r
3078         "name": "update vpn-binding G resource (aka. OTN domainA) in AAI",\r
3079         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.vpn-bindingG.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-bindingG.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-bindingG.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",\r
3080         "comments": "",\r
3081         "outputs": 1,\r
3082         "x": 4250.883331298828,\r
3083         "y": 1398,\r
3084         "z": "3f6a2e0f.b66c8a",\r
3085         "wires": [\r
3086             []\r
3087         ]\r
3088     },\r
3089     {\r
3090         "id": "88e8f378.a2b808",\r
3091         "type": "save",\r
3092         "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",\r
3093         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.vpn-bindingB.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-bindingB.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",\r
3094         "comments": "",\r
3095         "outputs": 1,\r
3096         "x": 3744.883331298828,\r
3097         "y": 2070,\r
3098         "z": "3f6a2e0f.b66c8a",\r
3099         "wires": [\r
3100             []\r
3101         ]\r
3102     },\r
3103     {\r
3104         "id": "41f16b19.4ea28c",\r
3105         "type": "switchNode",\r
3106         "name": "switch connectivity is not already Activated (i.e. is either Created or Modified)",\r
3107         "xml": "<switch test=\"`$tmp.aai.connectivity.operational-status != 'Activated' `\">\n",\r
3108         "comments": "",\r
3109         "outputs": 1,\r
3110         "x": 845.8833312988281,\r
3111         "y": 878,\r
3112         "z": "3f6a2e0f.b66c8a",\r
3113         "wires": [\r
3114             [\r
3115                 "7bf4aa70.c75d74",\r
3116                 "a798281b.2c68d8"\r
3117             ]\r
3118         ]\r
3119     },\r
3120     {\r
3121         "id": "7bf4aa70.c75d74",\r
3122         "type": "outcomeTrue",\r
3123         "name": "true",\r
3124         "xml": "<outcome value='true'>\n",\r
3125         "comments": "",\r
3126         "outputs": 1,\r
3127         "x": 1208.8833312988281,\r
3128         "y": 901,\r
3129         "z": "3f6a2e0f.b66c8a",\r
3130         "wires": [\r
3131             [\r
3132                 "e5a55559.f1ecf"\r
3133             ]\r
3134         ]\r
3135     },\r
3136     {\r
3137         "id": "a798281b.2c68d8",\r
3138         "type": "outcomeFalse",\r
3139         "name": "false",\r
3140         "xml": "<outcome value='false'>\n",\r
3141         "comments": "",\r
3142         "outputs": 1,\r
3143         "x": 1208.8833312988281,\r
3144         "y": 850,\r
3145         "z": "3f6a2e0f.b66c8a",\r
3146         "wires": [\r
3147             [\r
3148                 "486913c4.08fb54"\r
3149             ]\r
3150         ]\r
3151     },\r
3152     {\r
3153         "id": "e5a55559.f1ecf",\r
3154         "type": "block",\r
3155         "name": "block : atomic",\r
3156         "xml": "<block atomic=\"true\">",\r
3157         "atomic": "true",\r
3158         "outputs": 1,\r
3159         "x": 1364.8833312988281,\r
3160         "y": 899,\r
3161         "z": "3f6a2e0f.b66c8a",\r
3162         "wires": [\r
3163             [\r
3164                 "a3b35ff6.7d4a88"\r
3165             ]\r
3166         ]\r
3167     },\r
3168     {\r
3169         "id": "486913c4.08fb54",\r
3170         "type": "block",\r
3171         "name": "block",\r
3172         "xml": "<block>",\r
3173         "atomic": "false",\r
3174         "comments": "",\r
3175         "outputs": 1,\r
3176         "x": 1341.8833312988281,\r
3177         "y": 851,\r
3178         "z": "3f6a2e0f.b66c8a",\r
3179         "wires": [\r
3180             []\r
3181         ]\r
3182     },\r
3183     {\r
3184         "id": "4660bf61.473a18",\r
3185         "type": "set",\r
3186         "name": "unset tmp.aai.vpn-binding",\r
3187         "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value=\"\" />\n",\r
3188         "comments": "",\r
3189         "x": 2101.883331298828,\r
3190         "y": 249,\r
3191         "z": "3f6a2e0f.b66c8a",\r
3192         "wires": []\r
3193     },\r
3194     {\r
3195         "id": "1fda4b4a.2131e5",\r
3196         "type": "set",\r
3197         "name": "set root-otn-tunnels-list array",\r
3198         "xml": "<set>\n<parameter name='`roottunsidx`' value='`$roottunsidx + 1`' />\n",\r
3199         "comments": "",\r
3200         "x": 3643.883331298828,\r
3201         "y": 2230,\r
3202         "z": "3f6a2e0f.b66c8a",\r
3203         "wires": []\r
3204     },\r
3205     {\r
3206         "id": "2a6ffb7c.8797f4",\r
3207         "type": "set",\r
3208         "name": "set leaf-otn-tunnels-list array",\r
3209         "xml": "<set>\n<parameter name='`leaftunsidx`' value='`$leaftunsidx + 1`' />\n",\r
3210         "comments": "",\r
3211         "x": 4233.883331298828,\r
3212         "y": 703,\r
3213         "z": "3f6a2e0f.b66c8a",\r
3214         "wires": []\r
3215     },\r
3216     {\r
3217         "id": "a3af61e2.8efbd8",\r
3218         "type": "set",\r
3219         "name": "set ethernet-srv-end-points-list array",\r
3220         "xml": "<set>\n<parameter name='`epidx`' value='`$epidx + 1`' />\n",\r
3221         "comments": "",\r
3222         "x": 1407.8833312988281,\r
3223         "y": 1809,\r
3224         "z": "3f6a2e0f.b66c8a",\r
3225         "wires": []\r
3226     },\r
3227     {\r
3228         "id": "14d69ea3.c37079",\r
3229         "type": "set",\r
3230         "name": "set filename",\r
3231         "xml": "<set>\n<parameter name='filenameclleths' value=\"`$leafOrRootAccess + $tmp.aai.connectivity.access-node-id`\" />",\r
3232         "comments": "",\r
3233         "x": 586.8833312988281,\r
3234         "y": 1543,\r
3235         "z": "3f6a2e0f.b66c8a",\r
3236         "wires": []\r
3237     },\r
3238     {\r
3239         "id": "e39ba7bd.aed5d8",\r
3240         "type": "execute",\r
3241         "name": "execute printContext",\r
3242         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n    <parameter name=\"filename\" value=\"`$filenameclleths`\" />\n",\r
3243         "comments": "",\r
3244         "outputs": 1,\r
3245         "x": 617.8833312988281,\r
3246         "y": 1583,\r
3247         "z": "3f6a2e0f.b66c8a",\r
3248         "wires": [\r
3249             []\r
3250         ]\r
3251     },\r
3252     {\r
3253         "id": "fc704734.f5a92",\r
3254         "type": "set",\r
3255         "name": "set otn-tunnels-name-list array",\r
3256         "xml": "<set>\n<parameter name='`otn-tunnels-name-list[$otntunsidx].otn-tunnel-name`' value='`$tmp.aai.vpn-binding.vpn-name`' />\n<parameter name='`otn-tunnels-name-list[$otntunsidx].vpn-id`' value='`$tmp.aai.vpn-binding.vpn-id`' />\n<parameter name='`otn-tunnels-name-list_length`' value='`$otntunsidx + 1`' />\n",\r
3257         "comments": "",\r
3258         "x": 1165.8833312988281,\r
3259         "y": 1991,\r
3260         "z": "3f6a2e0f.b66c8a",\r
3261         "wires": []\r
3262     },\r
3263     {\r
3264         "id": "534cefd0.094168",\r
3265         "type": "set",\r
3266         "name": "set otn-tunnels-name-list array",\r
3267         "xml": "<set>\n<parameter name='`otntunsidx`' value='`$otntunsidx + 1`' />\n",\r
3268         "comments": "",\r
3269         "x": 1168.8833312988281,\r
3270         "y": 2033,\r
3271         "z": "3f6a2e0f.b66c8a",\r
3272         "wires": []\r
3273     },\r
3274     {\r
3275         "id": "de368aef.16cb",\r
3276         "type": "set",\r
3277         "name": "unset otn-tunnels-name-list array",\r
3278         "xml": "<set>\n<parameter name='`otn-tunnels-name-list.`' value='' />\n<parameter name='`otn-tunnels-name-list_length`' value='0' />\n<parameter name='`otntunsidx`' value='0' />\n",\r
3279         "comments": "",\r
3280         "x": 611.8833312988281,\r
3281         "y": 1673,\r
3282         "z": "3f6a2e0f.b66c8a",\r
3283         "wires": []\r
3284     },\r
3285     {\r
3286         "id": "61a182f0.95ec2c",\r
3287         "type": "set",\r
3288         "name": "set filename",\r
3289         "xml": "<set>\n<parameter name='filenamecllotns' value=\"`leafrootOTNtunnelnames`\" />",\r
3290         "comments": "",\r
3291         "x": 366.8833312988281,\r
3292         "y": 2052,\r
3293         "z": "3f6a2e0f.b66c8a",\r
3294         "wires": []\r
3295     },\r
3296     {\r
3297         "id": "fae7aeca.a940b8",\r
3298         "type": "execute",\r
3299         "name": "execute printContext",\r
3300         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n    <parameter name=\"filename\" value=\"`$filenamecllotns`\" />\n",\r
3301         "comments": "",\r
3302         "outputs": 1,\r
3303         "x": 374.8833312988281,\r
3304         "y": 2109,\r
3305         "z": "3f6a2e0f.b66c8a",\r
3306         "wires": [\r
3307             []\r
3308         ]\r
3309     },\r
3310     {\r
3311         "id": "1dbcecbe.b5c9a3",\r
3312         "type": "execute",\r
3313         "name": "execute split tp-id to get pnf-name",\r
3314         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.uni.id`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-uni\"/>\n\n",\r
3315         "comments": "",\r
3316         "outputs": 1,\r
3317         "x": 1385.8833312988281,\r
3318         "y": 1658,\r
3319         "z": "3f6a2e0f.b66c8a",\r
3320         "wires": [\r
3321             [\r
3322                 "2facd73.aebb428",\r
3323                 "7c34f1f3.22e088"\r
3324             ]\r
3325         ]\r
3326     },\r
3327     {\r
3328         "id": "7c34f1f3.22e088",\r
3329         "type": "failure",\r
3330         "name": "success",\r
3331         "xml": "<outcome value='success'>\n",\r
3332         "comments": "",\r
3333         "outputs": 1,\r
3334         "x": 1608.8833312988281,\r
3335         "y": 1613,\r
3336         "z": "3f6a2e0f.b66c8a",\r
3337         "wires": [\r
3338             [\r
3339                 "7e28ac3f.b53f7c"\r
3340             ]\r
3341         ]\r
3342     },\r
3343     {\r
3344         "id": "2facd73.aebb428",\r
3345         "type": "failure",\r
3346         "name": "failure",\r
3347         "xml": "<outcome value='failure'>\n",\r
3348         "comments": "",\r
3349         "outputs": 1,\r
3350         "x": 1610.8833312988281,\r
3351         "y": 1677,\r
3352         "z": "3f6a2e0f.b66c8a",\r
3353         "wires": [\r
3354             [\r
3355                 "c1661a7d.0e642"\r
3356             ]\r
3357         ]\r
3358     },\r
3359     {\r
3360         "id": "7e28ac3f.b53f7c",\r
3361         "type": "block",\r
3362         "name": "block : atomic",\r
3363         "xml": "<block atomic=\"true\">",\r
3364         "atomic": "true",\r
3365         "outputs": 1,\r
3366         "x": 1773.8833312988281,\r
3367         "y": 1610,\r
3368         "z": "3f6a2e0f.b66c8a",\r
3369         "wires": [\r
3370             [\r
3371                 "a55c6cbe.f3cef"\r
3372             ]\r
3373         ]\r
3374     },\r
3375     {\r
3376         "id": "c1661a7d.0e642",\r
3377         "type": "returnFailure",\r
3378         "name": "return failure",\r
3379         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",\r
3380         "comments": "",\r
3381         "x": 1772.8833312988281,\r
3382         "y": 1673,\r
3383         "z": "3f6a2e0f.b66c8a",\r
3384         "wires": []\r
3385     },\r
3386     {\r
3387         "id": "a55c6cbe.f3cef",\r
3388         "type": "set",\r
3389         "name": "set tmp.uni-node-id-short",\r
3390         "xml": "<set>\n<parameter name='tmp.uni-node-id-short' value='`$param-prefix-uni[$param-prefix-uni_length -3]`' />\n",\r
3391         "comments": "",\r
3392         "x": 1993.8833312988281,\r
3393         "y": 1624,\r
3394         "z": "3f6a2e0f.b66c8a",\r
3395         "wires": []\r
3396     },\r
3397     {\r
3398         "id": "a3eb9377.85c18",\r
3399         "type": "outcome",\r
3400         "name": "esr-thirdparty-sdnc",\r
3401         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
3402         "comments": "",\r
3403         "outputs": 1,\r
3404         "x": 1538.8833312988281,\r
3405         "y": 2349,\r
3406         "z": "3f6a2e0f.b66c8a",\r
3407         "wires": [\r
3408             [\r
3409                 "fcb0361d.62eb48"\r
3410             ]\r
3411         ]\r
3412     },\r
3413     {\r
3414         "id": "dcd8db20.d12b7",\r
3415         "type": "execute",\r
3416         "name": "get esr-thirdparty-sdnc",\r
3417         "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 = $tmp.domainConn.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainConn.esr-thirdparty-sdnc' local-only='false' >",\r
3418         "comments": "",\r
3419         "outputs": 1,\r
3420         "x": 1923.8833312988281,\r
3421         "y": 2362,\r
3422         "z": "3f6a2e0f.b66c8a",\r
3423         "wires": [\r
3424             [\r
3425                 "62f93408.d79154",\r
3426                 "c38cc9d8.7f1bc",\r
3427                 "576ffe09.c4abd8"\r
3428             ]\r
3429         ]\r
3430     },\r
3431     {\r
3432         "id": "fcb0361d.62eb48",\r
3433         "type": "block",\r
3434         "name": "block : atomic",\r
3435         "xml": "<block atomic=\"true\">",\r
3436         "atomic": "true",\r
3437         "outputs": 1,\r
3438         "x": 1717.8833312988281,\r
3439         "y": 2349,\r
3440         "z": "3f6a2e0f.b66c8a",\r
3441         "wires": [\r
3442             [\r
3443                 "90857791.e16908",\r
3444                 "dcd8db20.d12b7"\r
3445             ]\r
3446         ]\r
3447     },\r
3448     {\r
3449         "id": "90857791.e16908",\r
3450         "type": "set",\r
3451         "name": "set esr-thirdparty-sdnc domainConn id",\r
3452         "xml": "<set>\n<parameter name='tmp.domainConn.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
3453         "comments": "",\r
3454         "x": 1953.8833312988281,\r
3455         "y": 2310,\r
3456         "z": "3f6a2e0f.b66c8a",\r
3457         "wires": []\r
3458     },\r
3459     {\r
3460         "id": "62f93408.d79154",\r
3461         "type": "success",\r
3462         "name": "success",\r
3463         "xml": "<outcome value='success'>\n",\r
3464         "comments": "",\r
3465         "outputs": 1,\r
3466         "x": 2133.883331298828,\r
3467         "y": 2353,\r
3468         "z": "3f6a2e0f.b66c8a",\r
3469         "wires": [\r
3470             [\r
3471                 "2c548a06.655d4e"\r
3472             ]\r
3473         ]\r
3474     },\r
3475     {\r
3476         "id": "c38cc9d8.7f1bc",\r
3477         "type": "not-found",\r
3478         "name": "not-found",\r
3479         "xml": "<outcome value='not-found'>\n",\r
3480         "comments": "",\r
3481         "outputs": 1,\r
3482         "x": 2125.883331298828,\r
3483         "y": 2408,\r
3484         "z": "3f6a2e0f.b66c8a",\r
3485         "wires": [\r
3486             [\r
3487                 "99196e80.99674"\r
3488             ]\r
3489         ]\r
3490     },\r
3491     {\r
3492         "id": "576ffe09.c4abd8",\r
3493         "type": "other",\r
3494         "name": "other",\r
3495         "xml": "<outcome value='Other'>\n",\r
3496         "comments": "",\r
3497         "outputs": 1,\r
3498         "x": 2130.883331298828,\r
3499         "y": 2465,\r
3500         "z": "3f6a2e0f.b66c8a",\r
3501         "wires": [\r
3502             [\r
3503                 "ea704904.f61c3"\r
3504             ]\r
3505         ]\r
3506     },\r
3507     {\r
3508         "id": "ea704904.f61c3",\r
3509         "type": "returnFailure",\r
3510         "name": "return failure",\r
3511         "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
3512         "comments": "",\r
3513         "x": 2282.883331298828,\r
3514         "y": 2466,\r
3515         "z": "3f6a2e0f.b66c8a",\r
3516         "wires": []\r
3517     },\r
3518     {\r
3519         "id": "99196e80.99674",\r
3520         "type": "returnFailure",\r
3521         "name": "return failure",\r
3522         "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
3523         "comments": "",\r
3524         "x": 2293.883331298828,\r
3525         "y": 2411,\r
3526         "z": "3f6a2e0f.b66c8a",\r
3527         "wires": []\r
3528     },\r
3529     {\r
3530         "id": "2c548a06.655d4e",\r
3531         "type": "block",\r
3532         "name": "block",\r
3533         "xml": "<block>\n",\r
3534         "atomic": "false",\r
3535         "comments": "",\r
3536         "outputs": 1,\r
3537         "x": 2278.265655517578,\r
3538         "y": 2350.6556701660156,\r
3539         "z": "3f6a2e0f.b66c8a",\r
3540         "wires": [\r
3541             [\r
3542                 "55de506e.ab2138"\r
3543             ]\r
3544         ]\r
3545     },\r
3546     {\r
3547         "id": "55de506e.ab2138",\r
3548         "type": "set",\r
3549         "name": "set controller domainConn data",\r
3550         "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainConn.url' value=\"`$tmp.aai.domainConn.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainConn.user' value=\"`$tmp.aai.domainConn.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainConn.password' value=\"`$tmp.aai.domainConn.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
3551         "comments": "",\r
3552         "x": 2492.883331298828,\r
3553         "y": 2347,\r
3554         "z": "3f6a2e0f.b66c8a",\r
3555         "wires": []\r
3556     },\r
3557     {\r
3558         "id": "2eeb0084.f61b88",\r
3559         "type": "get-resource",\r
3560         "name": "get-resource src pnf",\r
3561         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.pnf-name-forUrl\"\n        pfx='tmp.aai.source-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
3562         "comments": "",\r
3563         "outputs": 1,\r
3564         "x": 616.8833312988281,\r
3565         "y": 2395,\r
3566         "z": "3f6a2e0f.b66c8a",\r
3567         "wires": [\r
3568             [\r
3569                 "21d8f2c9.3cd2be",\r
3570                 "32ff82a0.3bb24e",\r
3571                 "21eb3441.66cbb4"\r
3572             ]\r
3573         ]\r
3574     },\r
3575     {\r
3576         "id": "21d8f2c9.3cd2be",\r
3577         "type": "success",\r
3578         "name": "success",\r
3579         "xml": "<outcome value='success'>\n",\r
3580         "comments": "",\r
3581         "outputs": 1,\r
3582         "x": 812.3834533691406,\r
3583         "y": 2347,\r
3584         "z": "3f6a2e0f.b66c8a",\r
3585         "wires": [\r
3586             [\r
3587                 "2571d7b1.c4fb5"\r
3588             ]\r
3589         ]\r
3590     },\r
3591     {\r
3592         "id": "32ff82a0.3bb24e",\r
3593         "type": "not-found",\r
3594         "name": "not-found",\r
3595         "xml": "<outcome value='not-found'>\n",\r
3596         "comments": "",\r
3597         "outputs": 1,\r
3598         "x": 804.3834533691406,\r
3599         "y": 2402,\r
3600         "z": "3f6a2e0f.b66c8a",\r
3601         "wires": [\r
3602             [\r
3603                 "b0a2917a.ecde4"\r
3604             ]\r
3605         ]\r
3606     },\r
3607     {\r
3608         "id": "2571d7b1.c4fb5",\r
3609         "type": "block",\r
3610         "name": "block",\r
3611         "xml": "<block>\n",\r
3612         "atomic": "false",\r
3613         "comments": "",\r
3614         "outputs": 1,\r
3615         "x": 956.7657775878906,\r
3616         "y": 2346.6556701660156,\r
3617         "z": "3f6a2e0f.b66c8a",\r
3618         "wires": [\r
3619             [\r
3620                 "a50320.52c78ce"\r
3621             ]\r
3622         ]\r
3623     },\r
3624     {\r
3625         "id": "a50320.52c78ce",\r
3626         "type": "for",\r
3627         "name": "for each relationship",\r
3628         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
3629         "comments": "",\r
3630         "outputs": 1,\r
3631         "x": 1140.8833312988281,\r
3632         "y": 2345,\r
3633         "z": "3f6a2e0f.b66c8a",\r
3634         "wires": [\r
3635             [\r
3636                 "b3deb273.cebb88"\r
3637             ]\r
3638         ]\r
3639     },\r
3640     {\r
3641         "id": "b3deb273.cebb88",\r
3642         "type": "switchNode",\r
3643         "name": "switch related-to",\r
3644         "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
3645         "comments": "",\r
3646         "outputs": 1,\r
3647         "x": 1335.8833312988281,\r
3648         "y": 2345,\r
3649         "z": "3f6a2e0f.b66c8a",\r
3650         "wires": [\r
3651             [\r
3652                 "a3eb9377.85c18"\r
3653             ]\r
3654         ]\r
3655     },\r
3656     {\r
3657         "id": "21eb3441.66cbb4",\r
3658         "type": "other",\r
3659         "name": "other",\r
3660         "xml": "<outcome value='Other'>\n",\r
3661         "comments": "",\r
3662         "outputs": 1,\r
3663         "x": 809.3834533691406,\r
3664         "y": 2459,\r
3665         "z": "3f6a2e0f.b66c8a",\r
3666         "wires": [\r
3667             [\r
3668                 "f2a9e7b0.6a4ff8"\r
3669             ]\r
3670         ]\r
3671     },\r
3672     {\r
3673         "id": "f2a9e7b0.6a4ff8",\r
3674         "type": "returnFailure",\r
3675         "name": "return failure",\r
3676         "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
3677         "comments": "",\r
3678         "x": 961.3834533691406,\r
3679         "y": 2460,\r
3680         "z": "3f6a2e0f.b66c8a",\r
3681         "wires": []\r
3682     },\r
3683     {\r
3684         "id": "b0a2917a.ecde4",\r
3685         "type": "returnFailure",\r
3686         "name": "return failure",\r
3687         "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
3688         "comments": "",\r
3689         "x": 972.3834533691406,\r
3690         "y": 2403,\r
3691         "z": "3f6a2e0f.b66c8a",\r
3692         "wires": []\r
3693     },\r
3694     {\r
3695         "id": "e821cf32.5b22f",\r
3696         "type": "set",\r
3697         "name": "set tmp.pnf-name-forUrl",\r
3698         "xml": "<set>\n\n<parameter name='tmp.pnf-name-forUrl' value=\"`'networkId-providerId-' +\n                                                   $tmp.aai.connectivity.access-provider-id + '-clientId-' +\n                                                   $tmp.aai.connectivity.access-client-id + '-topologyId-' +\n                                                   $tmp.aai.connectivity.access-topology-id + '-nodeId-' +\n                                                   $tmp.aai.connectivity.access-node-id`\" />\n",\r
3699         "comments": "",\r
3700         "x": 606.8833312988281,\r
3701         "y": 2307,\r
3702         "z": "3f6a2e0f.b66c8a",\r
3703         "wires": []\r
3704     },\r
3705     {\r
3706         "id": "f92bafd0.7c69c8",\r
3707         "type": "block",\r
3708         "name": "block : atomic",\r
3709         "xml": "<block atomic=\"true\">",\r
3710         "atomic": "true",\r
3711         "comments": "",\r
3712         "outputs": 1,\r
3713         "x": 351.8833312988281,\r
3714         "y": 2438,\r
3715         "z": "3f6a2e0f.b66c8a",\r
3716         "wires": [\r
3717             [\r
3718                 "e821cf32.5b22f",\r
3719                 "2eeb0084.f61b88"\r
3720             ]\r
3721         ]\r
3722     },\r
3723     {\r
3724         "id": "a832f3b6.8874e",\r
3725         "type": "comment",\r
3726         "name": "Temporary skipping this check - to support multiple instances in one slice",\r
3727         "info": "",\r
3728         "comments": "",\r
3729         "x": 1566.8500061035156,\r
3730         "y": 255.88333129882812,\r
3731         "z": "3f6a2e0f.b66c8a",\r
3732         "wires": []\r
3733     },\r
3734     {\r
3735         "id": "f645589d.ed3d98",\r
3736         "type": "returnFailure",\r
3737         "name": "return failure",\r
3738         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
3739         "comments": "",\r
3740         "x": 768.8833312988281,\r
3741         "y": 478,\r
3742         "z": "3f6a2e0f.b66c8a",\r
3743         "wires": []\r
3744     }\r
3745 ]