Chore: Add gerrit maven verify GHA workflow
[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": "9ee6a3c1.bedb",\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": 450.33331298828125,\r
10         "y": 350.00000762939453,\r
11         "z": "d12a8890.0a99a",\r
12         "wires": [\r
13             [\r
14                 "3d418b0.8302bf6",\r
15                 "48d7e3bc.f2883c",\r
16                 "8ec621b1.80ebc8"\r
17             ]\r
18         ]\r
19     },\r
20     {\r
21         "id": "3d418b0.8302bf6",\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": 638.3333129882812,\r
28         "y": 363.00000762939453,\r
29         "z": "d12a8890.0a99a",\r
30         "wires": [\r
31             [\r
32                 "9c98306.e2cffd"\r
33             ]\r
34         ]\r
35     },\r
36     {\r
37         "id": "48d7e3bc.f2883c",\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": 645.8242492675781,\r
44         "y": 405.5740432739258,\r
45         "z": "d12a8890.0a99a",\r
46         "wires": [\r
47             []\r
48         ]\r
49     },\r
50     {\r
51         "id": "8ec621b1.80ebc8",\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": 636.3333129882812,\r
58         "y": 452.00000762939453,\r
59         "z": "d12a8890.0a99a",\r
60         "wires": [\r
61             [\r
62                 "57052eb0.583298"\r
63             ]\r
64         ]\r
65     },\r
66     {\r
67         "id": "9c98306.e2cffd",\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": 811.3333129882812,\r
74         "y": 361.00000762939453,\r
75         "z": "d12a8890.0a99a",\r
76         "wires": [\r
77             [\r
78                 "53767e53.94959"\r
79             ]\r
80         ]\r
81     },\r
82     {\r
83         "id": "53767e53.94959",\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": 1040.3333129882812,\r
90         "y": 362.00000762939453,\r
91         "z": "d12a8890.0a99a",\r
92         "wires": [\r
93             [\r
94                 "c415e278.f5611"\r
95             ]\r
96         ]\r
97     },\r
98     {\r
99         "id": "c415e278.f5611",\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": 1255.3333129882812,\r
107         "y": 363.00000762939453,\r
108         "z": "d12a8890.0a99a",\r
109         "wires": [\r
110             [\r
111                 "c71ad5b.64b44a8"\r
112             ]\r
113         ]\r
114     },\r
115     {\r
116         "id": "3d675d8e.b88daa",\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": 1509.3333129882812,\r
123         "y": 285.00000762939453,\r
124         "z": "d12a8890.0a99a",\r
125         "wires": [\r
126             [\r
127                 "bbedabe9.bd4b",\r
128                 "34793819.776c6"\r
129             ]\r
130         ]\r
131     },\r
132     {\r
133         "id": "bbedabe9.bd4b",\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": 1726.3333129882812,\r
140         "y": 264.00000762939453,\r
141         "z": "d12a8890.0a99a",\r
142         "wires": [\r
143             [\r
144                 "c71ad5b.64b44a8"\r
145             ]\r
146         ]\r
147     },\r
148     {\r
149         "id": "34793819.776c6",\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": 1726.3333129882812,\r
156         "y": 313.00000762939453,\r
157         "z": "d12a8890.0a99a",\r
158         "wires": [\r
159             []\r
160         ]\r
161     },\r
162     {\r
163         "id": "c71ad5b.64b44a8",\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": 1910.3333129882812,\r
171         "y": 350.00000762939453,\r
172         "z": "d12a8890.0a99a",\r
173         "wires": [\r
174             [\r
175                 "3dd08dae.27e4a2",\r
176                 "52a060f7.3567c8",\r
177                 "a8591f2d.71e23"\r
178             ]\r
179         ]\r
180     },\r
181     {\r
182         "id": "e6629469.2dd4b8",\r
183         "type": "dgstart",\r
184         "name": "DGSTART",\r
185         "outputs": 1,\r
186         "x": 269.33331298828125,\r
187         "y": 91.00000762939453,\r
188         "z": "d12a8890.0a99a",\r
189         "wires": [\r
190             [\r
191                 "e4a2a292.f645d8"\r
192             ]\r
193         ]\r
194     },\r
195     {\r
196         "id": "e4a2a292.f645d8",\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": 553.6190032958984,\r
205         "y": 152.23811626434326,\r
206         "z": "d12a8890.0a99a",\r
207         "wires": [\r
208             [\r
209                 "94591033.455c8"\r
210             ]\r
211         ]\r
212     },\r
213     {\r
214         "id": "94591033.455c8",\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": 559.7619171142578,\r
221         "y": 237.00003814697266,\r
222         "z": "d12a8890.0a99a",\r
223         "wires": [\r
224             [\r
225                 "fa712947.37c038"\r
226             ]\r
227         ]\r
228     },\r
229     {\r
230         "id": "fa712947.37c038",\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": 869.5713500976562,\r
237         "y": 228.66669464111328,\r
238         "z": "d12a8890.0a99a",\r
239         "wires": [\r
240             [\r
241                 "9ee6a3c1.bedb",\r
242                 "b5b4ab5e.850cd8",\r
243                 "8297c516.b14308",\r
244                 "e7860d61.a71378",\r
245                 "a8115aec.3c3d6"\r
246             ]\r
247         ]\r
248     },\r
249     {\r
250         "id": "3dd08dae.27e4a2",\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": 2127.3333129882812,\r
256         "y": 288.00000762939453,\r
257         "z": "d12a8890.0a99a",\r
258         "wires": []\r
259     },\r
260     {\r
261         "id": "a8b9f4f8.1eb4e8",\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": 4296.333312988281,\r
267         "y": 174.00000762939453,\r
268         "z": "d12a8890.0a99a",\r
269         "wires": []\r
270     },\r
271     {\r
272         "id": "24ae2ddb.2d91ca",\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": 4377.333312988281,\r
279         "y": 489.00000762939453,\r
280         "z": "d12a8890.0a99a",\r
281         "wires": [\r
282             [\r
283                 "d90569fe.c301e",\r
284                 "9a0fd68f.7364"\r
285             ]\r
286         ]\r
287     },\r
288     {\r
289         "id": "d90569fe.c301e",\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": 4686.833312988281,\r
296         "y": 458.00000762939453,\r
297         "z": "d12a8890.0a99a",\r
298         "wires": [\r
299             [\r
300                 "bfcc154c.9d015"\r
301             ]\r
302         ]\r
303     },\r
304     {\r
305         "id": "9a0fd68f.7364",\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": 4691.833312988281,\r
312         "y": 523.0000076293945,\r
313         "z": "d12a8890.0a99a",\r
314         "wires": [\r
315             [\r
316                 "5fe18426.281bd4"\r
317             ]\r
318         ]\r
319     },\r
320     {\r
321         "id": "bfcc154c.9d015",\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": 4862.833312988281,\r
327         "y": 458.00000762939453,\r
328         "z": "d12a8890.0a99a",\r
329         "wires": []\r
330     },\r
331     {\r
332         "id": "5fe18426.281bd4",\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": 4858.333312988281,\r
340         "y": 523.0000076293945,\r
341         "z": "d12a8890.0a99a",\r
342         "wires": [\r
343             []\r
344         ]\r
345     },\r
346     {\r
347         "id": "3e254ec8.8f602a",\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": 4241.833312988281,\r
353         "y": 743.0000076293945,\r
354         "z": "d12a8890.0a99a",\r
355         "wires": []\r
356     },\r
357     {\r
358         "id": "4a6469cd.4f0b98",\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": 4395.833312988281,\r
365         "y": 791.0000076293945,\r
366         "z": "d12a8890.0a99a",\r
367         "wires": [\r
368             [\r
369                 "826c2f73.5d5e88",\r
370                 "403359b0.843728"\r
371             ]\r
372         ]\r
373     },\r
374     {\r
375         "id": "826c2f73.5d5e88",\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": 4741.333312988281,\r
382         "y": 772.0000076293945,\r
383         "z": "d12a8890.0a99a",\r
384         "wires": [\r
385             [\r
386                 "80c327f3.9b168"\r
387             ]\r
388         ]\r
389     },\r
390     {\r
391         "id": "403359b0.843728",\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": 4745.333312988281,\r
398         "y": 812.0000076293945,\r
399         "z": "d12a8890.0a99a",\r
400         "wires": [\r
401             [\r
402                 "6ab9c98a.fce4d8"\r
403             ]\r
404         ]\r
405     },\r
406     {\r
407         "id": "80c327f3.9b168",\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": 4899.333312988281,\r
413         "y": 772.0000076293945,\r
414         "z": "d12a8890.0a99a",\r
415         "wires": []\r
416     },\r
417     {\r
418         "id": "6ab9c98a.fce4d8",\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": 4902.833312988281,\r
426         "y": 812.0000076293945,\r
427         "z": "d12a8890.0a99a",\r
428         "wires": [\r
429             [\r
430                 "e1c867b8.192bd",\r
431                 "913acec9.956098"\r
432             ]\r
433         ]\r
434     },\r
435     {\r
436         "id": "e1c867b8.192bd",\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": 5233.333312988281,\r
443         "y": 777.0000076293945,\r
444         "z": "d12a8890.0a99a",\r
445         "wires": [\r
446             []\r
447         ]\r
448     },\r
449     {\r
450         "id": "b428e7f5.22dd58",\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": 5097.333312988281,\r
456         "y": 736.0000076293945,\r
457         "z": "d12a8890.0a99a",\r
458         "wires": []\r
459     },\r
460     {\r
461         "id": "913acec9.956098",\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": 5160.333312988281,\r
468         "y": 823.0000076293945,\r
469         "z": "d12a8890.0a99a",\r
470         "wires": [\r
471             []\r
472         ]\r
473     },\r
474     {\r
475         "id": "c0a903ed.d424f",\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": 4234.333312988281,\r
481         "y": 222.00000762939453,\r
482         "z": "d12a8890.0a99a",\r
483         "wires": []\r
484     },\r
485     {\r
486         "id": "c9a2a428.5985e8",\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": 4260.333312988281,\r
493         "y": 339.00000762939453,\r
494         "z": "d12a8890.0a99a",\r
495         "wires": [\r
496             [\r
497                 "fe7b0b4f.4f25b8",\r
498                 "1f23a1db.9239d6",\r
499                 "80067a1b.7e8398"\r
500             ]\r
501         ]\r
502     },\r
503     {\r
504         "id": "fe7b0b4f.4f25b8",\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": 4455.833435058594,\r
511         "y": 291.00000762939453,\r
512         "z": "d12a8890.0a99a",\r
513         "wires": [\r
514             [\r
515                 "b7ec9659.601c4"\r
516             ]\r
517         ]\r
518     },\r
519     {\r
520         "id": "1f23a1db.9239d6",\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": 4447.833435058594,\r
527         "y": 346.00000762939453,\r
528         "z": "d12a8890.0a99a",\r
529         "wires": [\r
530             [\r
531                 "fe1da93b.8b0db8"\r
532             ]\r
533         ]\r
534     },\r
535     {\r
536         "id": "b7ec9659.601c4",\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": 4600.215759277344,\r
544         "y": 290.65567779541016,\r
545         "z": "d12a8890.0a99a",\r
546         "wires": [\r
547             [\r
548                 "5d87f5d0.3bfe2c"\r
549             ]\r
550         ]\r
551     },\r
552     {\r
553         "id": "4b9cdc3a.96a434",\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": 5182.333312988281,\r
560         "y": 293.00000762939453,\r
561         "z": "d12a8890.0a99a",\r
562         "wires": [\r
563             [\r
564                 "c5c0e693.b5a978"\r
565             ]\r
566         ]\r
567     },\r
568     {\r
569         "id": "5d87f5d0.3bfe2c",\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": 4784.333312988281,\r
576         "y": 289.00000762939453,\r
577         "z": "d12a8890.0a99a",\r
578         "wires": [\r
579             [\r
580                 "3668fdab.2d6312"\r
581             ]\r
582         ]\r
583     },\r
584     {\r
585         "id": "3668fdab.2d6312",\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": 4979.333312988281,\r
592         "y": 289.00000762939453,\r
593         "z": "d12a8890.0a99a",\r
594         "wires": [\r
595             [\r
596                 "4b9cdc3a.96a434"\r
597             ]\r
598         ]\r
599     },\r
600     {\r
601         "id": "80067a1b.7e8398",\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": 4452.833435058594,\r
608         "y": 403.00000762939453,\r
609         "z": "d12a8890.0a99a",\r
610         "wires": [\r
611             [\r
612                 "72f714cc.b21364"\r
613             ]\r
614         ]\r
615     },\r
616     {\r
617         "id": "72f714cc.b21364",\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": 4604.833435058594,\r
623         "y": 404.00000762939453,\r
624         "z": "d12a8890.0a99a",\r
625         "wires": []\r
626     },\r
627     {\r
628         "id": "fe1da93b.8b0db8",\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": 4615.833435058594,\r
634         "y": 347.00000762939453,\r
635         "z": "d12a8890.0a99a",\r
636         "wires": []\r
637     },\r
638     {\r
639         "id": "247e40ac.03f008",\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": 5567.333312988281,\r
646         "y": 306.00000762939453,\r
647         "z": "d12a8890.0a99a",\r
648         "wires": [\r
649             [\r
650                 "2769fc5a.203d24",\r
651                 "510b4bec.e64154",\r
652                 "dc91b912.6316b8"\r
653             ]\r
654         ]\r
655     },\r
656     {\r
657         "id": "c5c0e693.b5a978",\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": 5361.333312988281,\r
664         "y": 293.00000762939453,\r
665         "z": "d12a8890.0a99a",\r
666         "wires": [\r
667             [\r
668                 "d3a253e8.52c87",\r
669                 "247e40ac.03f008"\r
670             ]\r
671         ]\r
672     },\r
673     {\r
674         "id": "d3a253e8.52c87",\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": 5597.333312988281,\r
680         "y": 254.00000762939453,\r
681         "z": "d12a8890.0a99a",\r
682         "wires": []\r
683     },\r
684     {\r
685         "id": "2769fc5a.203d24",\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": 5777.333312988281,\r
692         "y": 297.00000762939453,\r
693         "z": "d12a8890.0a99a",\r
694         "wires": [\r
695             [\r
696                 "373ad72a.24ed2"\r
697             ]\r
698         ]\r
699     },\r
700     {\r
701         "id": "510b4bec.e64154",\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": 5769.333312988281,\r
708         "y": 352.00000762939453,\r
709         "z": "d12a8890.0a99a",\r
710         "wires": [\r
711             [\r
712                 "fed052ea.46fa"\r
713             ]\r
714         ]\r
715     },\r
716     {\r
717         "id": "dc91b912.6316b8",\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": 5774.333312988281,\r
724         "y": 409.00000762939453,\r
725         "z": "d12a8890.0a99a",\r
726         "wires": [\r
727             [\r
728                 "62129ad3.e59fd4"\r
729             ]\r
730         ]\r
731     },\r
732     {\r
733         "id": "62129ad3.e59fd4",\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": 5926.333312988281,\r
739         "y": 410.00000762939453,\r
740         "z": "d12a8890.0a99a",\r
741         "wires": []\r
742     },\r
743     {\r
744         "id": "fed052ea.46fa",\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": 5937.333312988281,\r
750         "y": 355.00000762939453,\r
751         "z": "d12a8890.0a99a",\r
752         "wires": []\r
753     },\r
754     {\r
755         "id": "373ad72a.24ed2",\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": 5921.715637207031,\r
763         "y": 294.65567779541016,\r
764         "z": "d12a8890.0a99a",\r
765         "wires": [\r
766             [\r
767                 "53739ad0.387d34"\r
768             ]\r
769         ]\r
770     },\r
771     {\r
772         "id": "53739ad0.387d34",\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": 6136.333312988281,\r
778         "y": 291.00000762939453,\r
779         "z": "d12a8890.0a99a",\r
780         "wires": []\r
781     },\r
782     {\r
783         "id": "a04b7e22.2aeb18",\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": 3703.3333129882812,\r
789         "y": 1631.0000076293945,\r
790         "z": "d12a8890.0a99a",\r
791         "wires": []\r
792     },\r
793     {\r
794         "id": "a747fd61.4d43f8",\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": 3766.3333129882812,\r
801         "y": 1960.0000076293945,\r
802         "z": "d12a8890.0a99a",\r
803         "wires": [\r
804             [\r
805                 "1746de51.5350e2",\r
806                 "3d545b09.cac1fc"\r
807             ]\r
808         ]\r
809     },\r
810     {\r
811         "id": "1746de51.5350e2",\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": 4061.8333129882812,\r
818         "y": 1927.0000076293945,\r
819         "z": "d12a8890.0a99a",\r
820         "wires": [\r
821             [\r
822                 "fee57d61.96dd7"\r
823             ]\r
824         ]\r
825     },\r
826     {\r
827         "id": "3d545b09.cac1fc",\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": 4066.8333129882812,\r
834         "y": 1992.0000076293945,\r
835         "z": "d12a8890.0a99a",\r
836         "wires": [\r
837             [\r
838                 "3e571aef.d1d9c6"\r
839             ]\r
840         ]\r
841     },\r
842     {\r
843         "id": "fee57d61.96dd7",\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": 4229.833312988281,\r
849         "y": 1927.0000076293945,\r
850         "z": "d12a8890.0a99a",\r
851         "wires": []\r
852     },\r
853     {\r
854         "id": "3e571aef.d1d9c6",\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": 4240.333312988281,\r
862         "y": 1992.0000076293945,\r
863         "z": "d12a8890.0a99a",\r
864         "wires": [\r
865             []\r
866         ]\r
867     },\r
868     {\r
869         "id": "c298ee7.360a71",\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": 3642.3333129882812,\r
875         "y": 1688.0000076293945,\r
876         "z": "d12a8890.0a99a",\r
877         "wires": []\r
878     },\r
879     {\r
880         "id": "374df09c.221b4",\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": 3662.3333129882812,\r
887         "y": 1785.0000076293945,\r
888         "z": "d12a8890.0a99a",\r
889         "wires": [\r
890             [\r
891                 "b8613e52.06e248",\r
892                 "b100c849.f8697",\r
893                 "9726d82.0cb02a8"\r
894             ]\r
895         ]\r
896     },\r
897     {\r
898         "id": "b8613e52.06e248",\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": 3864.8334350585938,\r
905         "y": 1738.0000076293945,\r
906         "z": "d12a8890.0a99a",\r
907         "wires": [\r
908             [\r
909                 "fe5dc3f.664f44"\r
910             ]\r
911         ]\r
912     },\r
913     {\r
914         "id": "b100c849.f8697",\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": 3856.8334350585938,\r
921         "y": 1793.0000076293945,\r
922         "z": "d12a8890.0a99a",\r
923         "wires": [\r
924             [\r
925                 "45b746dd.1fc3c8"\r
926             ]\r
927         ]\r
928     },\r
929     {\r
930         "id": "fe5dc3f.664f44",\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": 4009.2157592773438,\r
938         "y": 1735.6556777954102,\r
939         "z": "d12a8890.0a99a",\r
940         "wires": [\r
941             [\r
942                 "38c123a7.87ff54"\r
943             ]\r
944         ]\r
945     },\r
946     {\r
947         "id": "38c123a7.87ff54",\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": 4193.333312988281,\r
954         "y": 1750.0000076293945,\r
955         "z": "d12a8890.0a99a",\r
956         "wires": [\r
957             [\r
958                 "8269be24.8785c8"\r
959             ]\r
960         ]\r
961     },\r
962     {\r
963         "id": "9726d82.0cb02a8",\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": 3861.8334350585938,\r
970         "y": 1850.0000076293945,\r
971         "z": "d12a8890.0a99a",\r
972         "wires": [\r
973             [\r
974                 "920b3194.25369"\r
975             ]\r
976         ]\r
977     },\r
978     {\r
979         "id": "920b3194.25369",\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": 4013.8334350585938,\r
985         "y": 1851.0000076293945,\r
986         "z": "d12a8890.0a99a",\r
987         "wires": []\r
988     },\r
989     {\r
990         "id": "45b746dd.1fc3c8",\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": 4024.8334350585938,\r
996         "y": 1796.0000076293945,\r
997         "z": "d12a8890.0a99a",\r
998         "wires": []\r
999     },\r
1000     {\r
1001         "id": "3be7fe46.7bed5a",\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": 4591.333312988281,\r
1008         "y": 1754.0000076293945,\r
1009         "z": "d12a8890.0a99a",\r
1010         "wires": [\r
1011             [\r
1012                 "9242c93c.f02488"\r
1013             ]\r
1014         ]\r
1015     },\r
1016     {\r
1017         "id": "8269be24.8785c8",\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": 4388.333312988281,\r
1024         "y": 1750.0000076293945,\r
1025         "z": "d12a8890.0a99a",\r
1026         "wires": [\r
1027             [\r
1028                 "3be7fe46.7bed5a"\r
1029             ]\r
1030         ]\r
1031     },\r
1032     {\r
1033         "id": "24d5bcbc.e5fd54",\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": 4976.333312988281,\r
1040         "y": 1753.0000076293945,\r
1041         "z": "d12a8890.0a99a",\r
1042         "wires": [\r
1043             [\r
1044                 "7fafe45b.58f05c",\r
1045                 "c7d3d0e7.e6edb8",\r
1046                 "2bbce26d.997346"\r
1047             ]\r
1048         ]\r
1049     },\r
1050     {\r
1051         "id": "9242c93c.f02488",\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": 4768.333312988281,\r
1058         "y": 1746.0000076293945,\r
1059         "z": "d12a8890.0a99a",\r
1060         "wires": [\r
1061             [\r
1062                 "4aece362.c97204",\r
1063                 "24d5bcbc.e5fd54"\r
1064             ]\r
1065         ]\r
1066     },\r
1067     {\r
1068         "id": "4aece362.c97204",\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": 5006.333312988281,\r
1074         "y": 1701.0000076293945,\r
1075         "z": "d12a8890.0a99a",\r
1076         "wires": []\r
1077     },\r
1078     {\r
1079         "id": "5653f279.fa187c",\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": 5335.333312988281,\r
1085         "y": 1857.0000076293945,\r
1086         "z": "d12a8890.0a99a",\r
1087         "wires": []\r
1088     },\r
1089     {\r
1090         "id": "991ab386.c1ab2",\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": 5346.333312988281,\r
1096         "y": 1802.0000076293945,\r
1097         "z": "d12a8890.0a99a",\r
1098         "wires": []\r
1099     },\r
1100     {\r
1101         "id": "f903abd6.bcb5e",\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": 5330.715637207031,\r
1109         "y": 1741.6556777954102,\r
1110         "z": "d12a8890.0a99a",\r
1111         "wires": [\r
1112             [\r
1113                 "9d78b23c.6c7458"\r
1114             ]\r
1115         ]\r
1116     },\r
1117     {\r
1118         "id": "9d78b23c.6c7458",\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": 5545.333312988281,\r
1124         "y": 1738.0000076293945,\r
1125         "z": "d12a8890.0a99a",\r
1126         "wires": []\r
1127     },\r
1128     {\r
1129         "id": "7fafe45b.58f05c",\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": 5186.333312988281,\r
1136         "y": 1744.0000076293945,\r
1137         "z": "d12a8890.0a99a",\r
1138         "wires": [\r
1139             [\r
1140                 "f903abd6.bcb5e"\r
1141             ]\r
1142         ]\r
1143     },\r
1144     {\r
1145         "id": "c7d3d0e7.e6edb8",\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": 5178.333312988281,\r
1152         "y": 1799.0000076293945,\r
1153         "z": "d12a8890.0a99a",\r
1154         "wires": [\r
1155             [\r
1156                 "991ab386.c1ab2"\r
1157             ]\r
1158         ]\r
1159     },\r
1160     {\r
1161         "id": "2bbce26d.997346",\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": 5183.333312988281,\r
1168         "y": 1856.0000076293945,\r
1169         "z": "d12a8890.0a99a",\r
1170         "wires": [\r
1171             [\r
1172                 "5653f279.fa187c"\r
1173             ]\r
1174         ]\r
1175     },\r
1176     {\r
1177         "id": "d6212bc2.789e7",\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": 3217.3333129882812,\r
1184         "y": 702.0000076293945,\r
1185         "z": "d12a8890.0a99a",\r
1186         "wires": [\r
1187             [\r
1188                 "e3d89802.393a78",\r
1189                 "22a27baf.15e97c"\r
1190             ]\r
1191         ]\r
1192     },\r
1193     {\r
1194         "id": "e3d89802.393a78",\r
1195         "type": "outcome",\r
1196         "name": "Null",\r
1197         "xml": "<outcome value=''>\n",\r
1198         "comments": "",\r
1199         "outputs": 1,\r
1200         "x": 3431.3333129882812,\r
1201         "y": 739.0000076293945,\r
1202         "z": "d12a8890.0a99a",\r
1203         "wires": [\r
1204             [\r
1205                 "793df4ee.f1df74"\r
1206             ]\r
1207         ]\r
1208     },\r
1209     {\r
1210         "id": "22a27baf.15e97c",\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": 3433.3333129882812,\r
1217         "y": 677.0000076293945,\r
1218         "z": "d12a8890.0a99a",\r
1219         "wires": [\r
1220             [\r
1221                 "7ecfd25a.90cdcc"\r
1222             ]\r
1223         ]\r
1224     },\r
1225     {\r
1226         "id": "793df4ee.f1df74",\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": 3011.3333129882812,\r
1233         "y": 1982.0000076293945,\r
1234         "z": "d12a8890.0a99a",\r
1235         "wires": [\r
1236             [\r
1237                 "3123087e.cfd848",\r
1238                 "426b4898.f559d8"\r
1239             ]\r
1240         ]\r
1241     },\r
1242     {\r
1243         "id": "3123087e.cfd848",\r
1244         "type": "outcome",\r
1245         "name": "Null",\r
1246         "xml": "<outcome value=''>\n",\r
1247         "comments": "",\r
1248         "outputs": 1,\r
1249         "x": 3264.3333129882812,\r
1250         "y": 2016.0000076293945,\r
1251         "z": "d12a8890.0a99a",\r
1252         "wires": [\r
1253             [\r
1254                 "534033f3.f59e9c"\r
1255             ]\r
1256         ]\r
1257     },\r
1258     {\r
1259         "id": "426b4898.f559d8",\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": 3264.3333129882812,\r
1266         "y": 1960.0000076293945,\r
1267         "z": "d12a8890.0a99a",\r
1268         "wires": [\r
1269             [\r
1270                 "d5f2676f.c2a88"\r
1271             ]\r
1272         ]\r
1273     },\r
1274     {\r
1275         "id": "534033f3.f59e9c",\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": 3415.3333129882812,\r
1281         "y": 2016.0000076293945,\r
1282         "z": "d12a8890.0a99a",\r
1283         "wires": []\r
1284     },\r
1285     {\r
1286         "id": "c77b264c.fe2528",\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": 4291.333312988281,\r
1292         "y": 114.00000762939453,\r
1293         "z": "d12a8890.0a99a",\r
1294         "wires": []\r
1295     },\r
1296     {\r
1297         "id": "6ed23267.9185fc",\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": 3699.3333129882812,\r
1303         "y": 1573.0000076293945,\r
1304         "z": "d12a8890.0a99a",\r
1305         "wires": []\r
1306     },\r
1307     {\r
1308         "id": "7d0cb107.7824a8",\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": 3982.3333129882812,\r
1316         "y": 371.00000762939453,\r
1317         "z": "d12a8890.0a99a",\r
1318         "wires": [\r
1319             [\r
1320                 "c77b264c.fe2528",\r
1321                 "a8b9f4f8.1eb4e8",\r
1322                 "c0a903ed.d424f",\r
1323                 "c9a2a428.5985e8",\r
1324                 "24ae2ddb.2d91ca",\r
1325                 "1656bf6f.d0ade1",\r
1326                 "d2ff3c56.4372d",\r
1327                 "9499a947.255148"\r
1328             ]\r
1329         ]\r
1330     },\r
1331     {\r
1332         "id": "d5f2676f.c2a88",\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": 3415.3333129882812,\r
1339         "y": 1959.0000076293945,\r
1340         "z": "d12a8890.0a99a",\r
1341         "wires": [\r
1342             [\r
1343                 "6ed23267.9185fc",\r
1344                 "a04b7e22.2aeb18",\r
1345                 "c298ee7.360a71",\r
1346                 "374df09c.221b4",\r
1347                 "a747fd61.4d43f8",\r
1348                 "ad599918.3fac7",\r
1349                 "cedd744c.d4173",\r
1350                 "c2c48b41.449c5"\r
1351             ]\r
1352         ]\r
1353     },\r
1354     {\r
1355         "id": "dd92322c.d6fdb",\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": 3653.3333129882812,\r
1361         "y": 2258.0000076293945,\r
1362         "z": "d12a8890.0a99a",\r
1363         "wires": []\r
1364     },\r
1365     {\r
1366         "id": "4e1fc9cd.44e65",\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": 3807.3333129882812,\r
1373         "y": 2306.0000076293945,\r
1374         "z": "d12a8890.0a99a",\r
1375         "wires": [\r
1376             [\r
1377                 "3bc05be0.577364",\r
1378                 "9453988b.761fc"\r
1379             ]\r
1380         ]\r
1381     },\r
1382     {\r
1383         "id": "3bc05be0.577364",\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": 4152.833312988281,\r
1390         "y": 2287.0000076293945,\r
1391         "z": "d12a8890.0a99a",\r
1392         "wires": [\r
1393             [\r
1394                 "48b1874d.6dc6a"\r
1395             ]\r
1396         ]\r
1397     },\r
1398     {\r
1399         "id": "9453988b.761fc",\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": 4156.833312988281,\r
1406         "y": 2327.0000076293945,\r
1407         "z": "d12a8890.0a99a",\r
1408         "wires": [\r
1409             [\r
1410                 "e2a44822.8eb888"\r
1411             ]\r
1412         ]\r
1413     },\r
1414     {\r
1415         "id": "48b1874d.6dc6a",\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": 4310.833312988281,\r
1421         "y": 2287.0000076293945,\r
1422         "z": "d12a8890.0a99a",\r
1423         "wires": []\r
1424     },\r
1425     {\r
1426         "id": "e2a44822.8eb888",\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": 4314.333312988281,\r
1434         "y": 2327.0000076293945,\r
1435         "z": "d12a8890.0a99a",\r
1436         "wires": [\r
1437             [\r
1438                 "3369ff99.af45f",\r
1439                 "6ce9279e.5956d"\r
1440             ]\r
1441         ]\r
1442     },\r
1443     {\r
1444         "id": "3369ff99.af45f",\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": 4654.333312988281,\r
1451         "y": 2326.0000076293945,\r
1452         "z": "d12a8890.0a99a",\r
1453         "wires": [\r
1454             []\r
1455         ]\r
1456     },\r
1457     {\r
1458         "id": "64323d0d.a53eec",\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": 4512.333312988281,\r
1464         "y": 2284.0000076293945,\r
1465         "z": "d12a8890.0a99a",\r
1466         "wires": []\r
1467     },\r
1468     {\r
1469         "id": "6ce9279e.5956d",\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": 4583.333312988281,\r
1476         "y": 2375.0000076293945,\r
1477         "z": "d12a8890.0a99a",\r
1478         "wires": [\r
1479             []\r
1480         ]\r
1481     },\r
1482     {\r
1483         "id": "8b193137.7290b",\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": 3208.3333129882812,\r
1489         "y": 642.0000076293945,\r
1490         "z": "d12a8890.0a99a",\r
1491         "wires": []\r
1492     },\r
1493     {\r
1494         "id": "6b6c5120.d697b",\r
1495         "type": "comment",\r
1496         "name": "only dst ttp exists. No src",\r
1497         "info": "",\r
1498         "comments": "",\r
1499         "x": 3803.3333129882812,\r
1500         "y": 328.00000762939453,\r
1501         "z": "d12a8890.0a99a",\r
1502         "wires": []\r
1503     },\r
1504     {\r
1505         "id": "7a49b0ec.1116e8",\r
1506         "type": "comment",\r
1507         "name": "only src ttp exists. No dst",\r
1508         "info": "",\r
1509         "comments": "",\r
1510         "x": 3360.3333129882812,\r
1511         "y": 1906.0000076293945,\r
1512         "z": "d12a8890.0a99a",\r
1513         "wires": []\r
1514     },\r
1515     {\r
1516         "id": "7ecfd25a.90cdcc",\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": 3539.3333129882812,\r
1523         "y": 490.00000762939453,\r
1524         "z": "d12a8890.0a99a",\r
1525         "wires": [\r
1526             [\r
1527                 "c5975b58.7cfb78",\r
1528                 "8fa5c52a.f6d0f"\r
1529             ]\r
1530         ]\r
1531     },\r
1532     {\r
1533         "id": "8fa5c52a.f6d0f",\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": 3781.3333129882812,\r
1540         "y": 1079.0000076293945,\r
1541         "z": "d12a8890.0a99a",\r
1542         "wires": [\r
1543             [\r
1544                 "1a8ceecd.14cfa1"\r
1545             ]\r
1546         ]\r
1547     },\r
1548     {\r
1549         "id": "c5975b58.7cfb78",\r
1550         "type": "outcome",\r
1551         "name": "Null",\r
1552         "xml": "<outcome value=''>\n",\r
1553         "comments": "",\r
1554         "outputs": 1,\r
1555         "x": 3775.3333129882812,\r
1556         "y": 370.00000762939453,\r
1557         "z": "d12a8890.0a99a",\r
1558         "wires": [\r
1559             [\r
1560                 "7d0cb107.7824a8"\r
1561             ]\r
1562         ]\r
1563     },\r
1564     {\r
1565         "id": "1a8ceecd.14cfa1",\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": 3939.3333129882812,\r
1572         "y": 1078.0000076293945,\r
1573         "z": "d12a8890.0a99a",\r
1574         "wires": [\r
1575             [\r
1576                 "cfc45fbc.625408",\r
1577                 "87ccca6a.f8f9b8",\r
1578                 "e86d624f.d5f408",\r
1579                 "3e480e6a.3eb6c2",\r
1580                 "178f13fb.65189c",\r
1581                 "8c5d7664.9247c8"\r
1582             ]\r
1583         ]\r
1584     },\r
1585     {\r
1586         "id": "87ccca6a.f8f9b8",\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": 4203.333312988281,\r
1592         "y": 961.0000076293945,\r
1593         "z": "d12a8890.0a99a",\r
1594         "wires": []\r
1595     },\r
1596     {\r
1597         "id": "178f13fb.65189c",\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": 4284.333312988281,\r
1604         "y": 1276.0000076293945,\r
1605         "z": "d12a8890.0a99a",\r
1606         "wires": [\r
1607             [\r
1608                 "47471e7d.1bf5e",\r
1609                 "2f64742a.d54c2c"\r
1610             ]\r
1611         ]\r
1612     },\r
1613     {\r
1614         "id": "47471e7d.1bf5e",\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": 4593.833312988281,\r
1621         "y": 1245.0000076293945,\r
1622         "z": "d12a8890.0a99a",\r
1623         "wires": [\r
1624             [\r
1625                 "27252576.feabca"\r
1626             ]\r
1627         ]\r
1628     },\r
1629     {\r
1630         "id": "2f64742a.d54c2c",\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": 4598.833312988281,\r
1637         "y": 1310.0000076293945,\r
1638         "z": "d12a8890.0a99a",\r
1639         "wires": [\r
1640             [\r
1641                 "d2def383.359ac8"\r
1642             ]\r
1643         ]\r
1644     },\r
1645     {\r
1646         "id": "27252576.feabca",\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": 4769.833312988281,\r
1652         "y": 1245.0000076293945,\r
1653         "z": "d12a8890.0a99a",\r
1654         "wires": []\r
1655     },\r
1656     {\r
1657         "id": "d2def383.359ac8",\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": 4765.333312988281,\r
1665         "y": 1310.0000076293945,\r
1666         "z": "d12a8890.0a99a",\r
1667         "wires": [\r
1668             []\r
1669         ]\r
1670     },\r
1671     {\r
1672         "id": "e86d624f.d5f408",\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": 4141.333312988281,\r
1678         "y": 1009.0000076293945,\r
1679         "z": "d12a8890.0a99a",\r
1680         "wires": []\r
1681     },\r
1682     {\r
1683         "id": "3e480e6a.3eb6c2",\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": 4167.333312988281,\r
1690         "y": 1126.0000076293945,\r
1691         "z": "d12a8890.0a99a",\r
1692         "wires": [\r
1693             [\r
1694                 "2fe7a70f.325738",\r
1695                 "de56dd13.56cbc",\r
1696                 "da128a7e.2de4c8"\r
1697             ]\r
1698         ]\r
1699     },\r
1700     {\r
1701         "id": "2fe7a70f.325738",\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": 4362.833435058594,\r
1708         "y": 1078.0000076293945,\r
1709         "z": "d12a8890.0a99a",\r
1710         "wires": [\r
1711             [\r
1712                 "236585d1.bff802"\r
1713             ]\r
1714         ]\r
1715     },\r
1716     {\r
1717         "id": "de56dd13.56cbc",\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": 4354.833435058594,\r
1724         "y": 1133.0000076293945,\r
1725         "z": "d12a8890.0a99a",\r
1726         "wires": [\r
1727             [\r
1728                 "7ab4252e.e507d4"\r
1729             ]\r
1730         ]\r
1731     },\r
1732     {\r
1733         "id": "236585d1.bff802",\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": 4507.215759277344,\r
1741         "y": 1077.6556777954102,\r
1742         "z": "d12a8890.0a99a",\r
1743         "wires": [\r
1744             [\r
1745                 "d1f5d3f1.d937a8"\r
1746             ]\r
1747         ]\r
1748     },\r
1749     {\r
1750         "id": "d1f5d3f1.d937a8",\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": 4691.333312988281,\r
1757         "y": 1076.0000076293945,\r
1758         "z": "d12a8890.0a99a",\r
1759         "wires": [\r
1760             [\r
1761                 "b6dba6f2.6f5a68"\r
1762             ]\r
1763         ]\r
1764     },\r
1765     {\r
1766         "id": "b6dba6f2.6f5a68",\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": 4886.333312988281,\r
1773         "y": 1076.0000076293945,\r
1774         "z": "d12a8890.0a99a",\r
1775         "wires": [\r
1776             [\r
1777                 "decb3043.cd12c"\r
1778             ]\r
1779         ]\r
1780     },\r
1781     {\r
1782         "id": "da128a7e.2de4c8",\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": 4359.833435058594,\r
1789         "y": 1190.0000076293945,\r
1790         "z": "d12a8890.0a99a",\r
1791         "wires": [\r
1792             [\r
1793                 "98ee3a25.1ab9e"\r
1794             ]\r
1795         ]\r
1796     },\r
1797     {\r
1798         "id": "98ee3a25.1ab9e",\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": 4511.833435058594,\r
1804         "y": 1191.0000076293945,\r
1805         "z": "d12a8890.0a99a",\r
1806         "wires": []\r
1807     },\r
1808     {\r
1809         "id": "7ab4252e.e507d4",\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": 4522.833435058594,\r
1815         "y": 1134.0000076293945,\r
1816         "z": "d12a8890.0a99a",\r
1817         "wires": []\r
1818     },\r
1819     {\r
1820         "id": "cfc45fbc.625408",\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": 4198.333312988281,\r
1826         "y": 901.0000076293945,\r
1827         "z": "d12a8890.0a99a",\r
1828         "wires": []\r
1829     },\r
1830     {\r
1831         "id": "decb3043.cd12c",\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": 5089.333312988281,\r
1838         "y": 1080.0000076293945,\r
1839         "z": "d12a8890.0a99a",\r
1840         "wires": [\r
1841             [\r
1842                 "b6ba573a.60741"\r
1843             ]\r
1844         ]\r
1845     },\r
1846     {\r
1847         "id": "f4847f5f.1d887",\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": 5474.333312988281,\r
1854         "y": 1093.0000076293945,\r
1855         "z": "d12a8890.0a99a",\r
1856         "wires": [\r
1857             [\r
1858                 "e228c69c.360f98",\r
1859                 "9bce816d.2db348",\r
1860                 "41d83525.ce00b4"\r
1861             ]\r
1862         ]\r
1863     },\r
1864     {\r
1865         "id": "b6ba573a.60741",\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": 5268.333312988281,\r
1872         "y": 1080.0000076293945,\r
1873         "z": "d12a8890.0a99a",\r
1874         "wires": [\r
1875             [\r
1876                 "5b50b3ea.1f8ef4",\r
1877                 "f4847f5f.1d887"\r
1878             ]\r
1879         ]\r
1880     },\r
1881     {\r
1882         "id": "5b50b3ea.1f8ef4",\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": 5504.333312988281,\r
1888         "y": 1041.0000076293945,\r
1889         "z": "d12a8890.0a99a",\r
1890         "wires": []\r
1891     },\r
1892     {\r
1893         "id": "e228c69c.360f98",\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": 5684.333312988281,\r
1900         "y": 1084.0000076293945,\r
1901         "z": "d12a8890.0a99a",\r
1902         "wires": [\r
1903             [\r
1904                 "189e198c.62579e"\r
1905             ]\r
1906         ]\r
1907     },\r
1908     {\r
1909         "id": "9bce816d.2db348",\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": 5676.333312988281,\r
1916         "y": 1139.0000076293945,\r
1917         "z": "d12a8890.0a99a",\r
1918         "wires": [\r
1919             [\r
1920                 "a893456b.716548"\r
1921             ]\r
1922         ]\r
1923     },\r
1924     {\r
1925         "id": "41d83525.ce00b4",\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": 5681.333312988281,\r
1932         "y": 1196.0000076293945,\r
1933         "z": "d12a8890.0a99a",\r
1934         "wires": [\r
1935             [\r
1936                 "7bd5c1c9.c0b778"\r
1937             ]\r
1938         ]\r
1939     },\r
1940     {\r
1941         "id": "7bd5c1c9.c0b778",\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": 5833.333312988281,\r
1947         "y": 1197.0000076293945,\r
1948         "z": "d12a8890.0a99a",\r
1949         "wires": []\r
1950     },\r
1951     {\r
1952         "id": "a893456b.716548",\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": 5844.333312988281,\r
1958         "y": 1142.0000076293945,\r
1959         "z": "d12a8890.0a99a",\r
1960         "wires": []\r
1961     },\r
1962     {\r
1963         "id": "189e198c.62579e",\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": 5828.715637207031,\r
1971         "y": 1081.6556777954102,\r
1972         "z": "d12a8890.0a99a",\r
1973         "wires": [\r
1974             [\r
1975                 "ae6db88e.b087a"\r
1976             ]\r
1977         ]\r
1978     },\r
1979     {\r
1980         "id": "ae6db88e.b087a",\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": 6043.333312988281,\r
1986         "y": 1078.0000076293945,\r
1987         "z": "d12a8890.0a99a",\r
1988         "wires": []\r
1989     },\r
1990     {\r
1991         "id": "56d817b5.d38a48",\r
1992         "type": "comment",\r
1993         "name": "both src and dst exist",\r
1994         "info": "",\r
1995         "comments": "",\r
1996         "x": 3817.3333129882812,\r
1997         "y": 1019.0000076293945,\r
1998         "z": "d12a8890.0a99a",\r
1999         "wires": []\r
2000     },\r
2001     {\r
2002         "id": "52a060f7.3567c8",\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": 2379.3333129882812,\r
2009         "y": 746.0000076293945,\r
2010         "z": "d12a8890.0a99a",\r
2011         "wires": [\r
2012             [\r
2013                 "f7d2b361.6e54e",\r
2014                 "d75a20a3.76dfd"\r
2015             ]\r
2016         ]\r
2017     },\r
2018     {\r
2019         "id": "d75a20a3.76dfd",\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": 2786.3333129882812,\r
2026         "y": 764.0000076293945,\r
2027         "z": "d12a8890.0a99a",\r
2028         "wires": [\r
2029             [\r
2030                 "87632a9d.0edf7"\r
2031             ]\r
2032         ]\r
2033     },\r
2034     {\r
2035         "id": "f7d2b361.6e54e",\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": 2786.3333129882812,\r
2042         "y": 709.0000076293945,\r
2043         "z": "d12a8890.0a99a",\r
2044         "wires": [\r
2045             [\r
2046                 "d139f1fa.1d1b08"\r
2047             ]\r
2048         ]\r
2049     },\r
2050     {\r
2051         "id": "d139f1fa.1d1b08",\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": 2942.3333129882812,\r
2058         "y": 707.0000076293945,\r
2059         "z": "d12a8890.0a99a",\r
2060         "wires": [\r
2061             [\r
2062                 "8b193137.7290b",\r
2063                 "d6212bc2.789e7"\r
2064             ]\r
2065         ]\r
2066     },\r
2067     {\r
2068         "id": "87632a9d.0edf7",\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": 2919.3333129882812,\r
2076         "y": 765.0000076293945,\r
2077         "z": "d12a8890.0a99a",\r
2078         "wires": [\r
2079             []\r
2080         ]\r
2081     },\r
2082     {\r
2083         "id": "b5b4ab5e.850cd8",\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": 1096.3333129882812,\r
2089         "y": 181.00000762939453,\r
2090         "z": "d12a8890.0a99a",\r
2091         "wires": []\r
2092     },\r
2093     {\r
2094         "id": "7e254bc9.6368cc",\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": 4213.333312988281,\r
2100         "y": 599.0000076293945,\r
2101         "z": "d12a8890.0a99a",\r
2102         "wires": []\r
2103     },\r
2104     {\r
2105         "id": "1656bf6f.d0ade1",\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": 4273.333312988281,\r
2111         "y": 638.0000076293945,\r
2112         "z": "d12a8890.0a99a",\r
2113         "wires": []\r
2114     },\r
2115     {\r
2116         "id": "8297c516.b14308",\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": 1089.3333129882812,\r
2122         "y": 89.00000762939453,\r
2123         "z": "d12a8890.0a99a",\r
2124         "wires": []\r
2125     },\r
2126     {\r
2127         "id": "b5552ed0.c09148",\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": 3625.3333129882812,\r
2133         "y": 2115.0000076293945,\r
2134         "z": "d12a8890.0a99a",\r
2135         "wires": []\r
2136     },\r
2137     {\r
2138         "id": "ad599918.3fac7",\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": 3681.3333129882812,\r
2144         "y": 2164.0000076293945,\r
2145         "z": "d12a8890.0a99a",\r
2146         "wires": []\r
2147     },\r
2148     {\r
2149         "id": "1fbc8dc6.5c716a",\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": 1089.3333129882812,\r
2155         "y": 128.00000762939453,\r
2156         "z": "d12a8890.0a99a",\r
2157         "wires": []\r
2158     },\r
2159     {\r
2160         "id": "e7860d61.a71378",\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": 1120.3333129882812,\r
2167         "y": 229.00000762939453,\r
2168         "z": "d12a8890.0a99a",\r
2169         "wires": [\r
2170             []\r
2171         ]\r
2172     },\r
2173     {\r
2174         "id": "a8115aec.3c3d6",\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": 330.33331298828125,\r
2181         "y": 704.0000076293945,\r
2182         "z": "d12a8890.0a99a",\r
2183         "wires": [\r
2184             [\r
2185                 "9234c3d4.71d2d8",\r
2186                 "71dab0f1.557458",\r
2187                 "d5b7dbc9.87e818"\r
2188             ]\r
2189         ]\r
2190     },\r
2191     {\r
2192         "id": "9234c3d4.71d2d8",\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": 549.3333129882812,\r
2199         "y": 642.0000076293945,\r
2200         "z": "d12a8890.0a99a",\r
2201         "wires": [\r
2202             [\r
2203                 "deed2b95.51b008"\r
2204             ]\r
2205         ]\r
2206     },\r
2207     {\r
2208         "id": "71dab0f1.557458",\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": 558.8242797851562,\r
2215         "y": 684.5740432739258,\r
2216         "z": "d12a8890.0a99a",\r
2217         "wires": [\r
2218             []\r
2219         ]\r
2220     },\r
2221     {\r
2222         "id": "d5b7dbc9.87e818",\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": 547.3333129882812,\r
2229         "y": 731.0000076293945,\r
2230         "z": "d12a8890.0a99a",\r
2231         "wires": [\r
2232             [\r
2233                 "1f43e158.ba10c7"\r
2234             ]\r
2235         ]\r
2236     },\r
2237     {\r
2238         "id": "deed2b95.51b008",\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": 746.3333129882812,\r
2245         "y": 638.0000076293945,\r
2246         "z": "d12a8890.0a99a",\r
2247         "wires": [\r
2248             [\r
2249                 "2dc9974e.fd8eb"\r
2250             ]\r
2251         ]\r
2252     },\r
2253     {\r
2254         "id": "1f43e158.ba10c7",\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": 716.3333129882812,\r
2260         "y": 732.0000076293945,\r
2261         "z": "d12a8890.0a99a",\r
2262         "wires": []\r
2263     },\r
2264     {\r
2265         "id": "2dc9974e.fd8eb",\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": 969.6668090820312,\r
2272         "y": 637.9999465942383,\r
2273         "z": "d12a8890.0a99a",\r
2274         "wires": [\r
2275             [\r
2276                 "ba6829c9.a61c58"\r
2277             ]\r
2278         ]\r
2279     },\r
2280     {\r
2281         "id": "ba6829c9.a61c58",\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": 1170.3334465026855,\r
2288         "y": 639.0000286102295,\r
2289         "z": "d12a8890.0a99a",\r
2290         "wires": [\r
2291             [\r
2292                 "64a3ee9a.60466"\r
2293             ]\r
2294         ]\r
2295     },\r
2296     {\r
2297         "id": "64a3ee9a.60466",\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": 300.33331298828125,\r
2304         "y": 901.0000076293945,\r
2305         "z": "d12a8890.0a99a",\r
2306         "wires": [\r
2307             [\r
2308                 "b06f4672.19b5b",\r
2309                 "1bbc50b7.a546f7",\r
2310                 "46ec206d.bba02"\r
2311             ]\r
2312         ]\r
2313     },\r
2314     {\r
2315         "id": "b06f4672.19b5b",\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": 508.33331298828125,\r
2322         "y": 865.0000076293945,\r
2323         "z": "d12a8890.0a99a",\r
2324         "wires": [\r
2325             [\r
2326                 "71154b9b.41ff14"\r
2327             ]\r
2328         ]\r
2329     },\r
2330     {\r
2331         "id": "1bbc50b7.a546f7",\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": 508.82427978515625,\r
2338         "y": 910.5740432739258,\r
2339         "z": "d12a8890.0a99a",\r
2340         "wires": [\r
2341             []\r
2342         ]\r
2343     },\r
2344     {\r
2345         "id": "46ec206d.bba02",\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": 506.33331298828125,\r
2352         "y": 954.0000076293945,\r
2353         "z": "d12a8890.0a99a",\r
2354         "wires": [\r
2355             [\r
2356                 "d5a43e3e.bfb46"\r
2357             ]\r
2358         ]\r
2359     },\r
2360     {\r
2361         "id": "d5a43e3e.bfb46",\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": 675.3333129882812,\r
2367         "y": 955.0000076293945,\r
2368         "z": "d12a8890.0a99a",\r
2369         "wires": []\r
2370     },\r
2371     {\r
2372         "id": "c36699ae.d9b4d8",\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": 647.3333129882812,\r
2379         "y": 1449.0000076293945,\r
2380         "z": "d12a8890.0a99a",\r
2381         "wires": [\r
2382             [\r
2383                 "cf4994da.4e15f8"\r
2384             ]\r
2385         ]\r
2386     },\r
2387     {\r
2388         "id": "cf4994da.4e15f8",\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": 850.3333129882812,\r
2395         "y": 1461.0000076293945,\r
2396         "z": "d12a8890.0a99a",\r
2397         "wires": [\r
2398             [\r
2399                 "5493f71f.74de8"\r
2400             ]\r
2401         ]\r
2402     },\r
2403     {\r
2404         "id": "5493f71f.74de8",\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": 1016.3333129882812,\r
2411         "y": 1458.0000076293945,\r
2412         "z": "d12a8890.0a99a",\r
2413         "wires": [\r
2414             [\r
2415                 "ee9f0ecc.141c08"\r
2416             ]\r
2417         ]\r
2418     },\r
2419     {\r
2420         "id": "ee9f0ecc.141c08",\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": 1177.3333129882812,\r
2427         "y": 1455.0000076293945,\r
2428         "z": "d12a8890.0a99a",\r
2429         "wires": [\r
2430             [\r
2431                 "4557d328.03c724",\r
2432                 "aa5d4b55.ae996",\r
2433                 "977d1c3.25b4f6",\r
2434                 "f4df7601.a8481",\r
2435                 "e57dfa3b.7a1478",\r
2436                 "7a26c91d.a51bf"\r
2437             ]\r
2438         ]\r
2439     },\r
2440     {\r
2441         "id": "aa5d4b55.ae996",\r
2442         "type": "set",\r
2443         "name": "unset tmp.aai.uni",\r
2444         "xml": "<set>\n<parameter name='tmp.aai.uni.' value='' />\n",\r
2445         "comments": "",\r
2446         "x": 1383.3333129882812,\r
2447         "y": 1054.9999465942383,\r
2448         "z": "d12a8890.0a99a",\r
2449         "wires": []\r
2450     },\r
2451     {\r
2452         "id": "4557d328.03c724",\r
2453         "type": "save",\r
2454         "name": "get uni from aai",\r
2455         "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
2456         "comments": "",\r
2457         "outputs": 1,\r
2458         "x": 1380.3333129882812,\r
2459         "y": 1099.9999465942383,\r
2460         "z": "d12a8890.0a99a",\r
2461         "wires": [\r
2462             [\r
2463                 "93fcd434.d90c9",\r
2464                 "74ecef95.a69828",\r
2465                 "c24f7a8a.a1ade"\r
2466             ]\r
2467         ]\r
2468     },\r
2469     {\r
2470         "id": "74ecef95.a69828",\r
2471         "type": "not-found",\r
2472         "name": "not-found",\r
2473         "xml": "<outcome value='not-found'>\n",\r
2474         "comments": "",\r
2475         "outputs": 1,\r
2476         "x": 1575.8242797851562,\r
2477         "y": 1073.5739212036133,\r
2478         "z": "d12a8890.0a99a",\r
2479         "wires": [\r
2480             [\r
2481                 "ae28b8c.fba5c48"\r
2482             ]\r
2483         ]\r
2484     },\r
2485     {\r
2486         "id": "c24f7a8a.a1ade",\r
2487         "type": "failure",\r
2488         "name": "failure",\r
2489         "xml": "<outcome value='failure'>\n",\r
2490         "comments": "",\r
2491         "outputs": 1,\r
2492         "x": 1571.3333129882812,\r
2493         "y": 1117.999885559082,\r
2494         "z": "d12a8890.0a99a",\r
2495         "wires": [\r
2496             [\r
2497                 "90024c2d.8db9e"\r
2498             ]\r
2499         ]\r
2500     },\r
2501     {\r
2502         "id": "ae28b8c.fba5c48",\r
2503         "type": "returnFailure",\r
2504         "name": "return failure",\r
2505         "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
2506         "comments": "",\r
2507         "x": 1738.3958129882812,\r
2508         "y": 1072.8596267700195,\r
2509         "z": "d12a8890.0a99a",\r
2510         "wires": []\r
2511     },\r
2512     {\r
2513         "id": "90024c2d.8db9e",\r
2514         "type": "returnFailure",\r
2515         "name": "return failure",\r
2516         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
2517         "comments": "",\r
2518         "x": 1739.3333129882812,\r
2519         "y": 1117.999885559082,\r
2520         "z": "d12a8890.0a99a",\r
2521         "wires": []\r
2522     },\r
2523     {\r
2524         "id": "3a69019e.e0465e",\r
2525         "type": "block",\r
2526         "name": "block : atomic",\r
2527         "xml": "<block atomic=\"true\">",\r
2528         "atomic": "true",\r
2529         "outputs": 1,\r
2530         "x": 1741.3333129882812,\r
2531         "y": 1164.999885559082,\r
2532         "z": "d12a8890.0a99a",\r
2533         "wires": [\r
2534             []\r
2535         ]\r
2536     },\r
2537     {\r
2538         "id": "93fcd434.d90c9",\r
2539         "type": "success",\r
2540         "name": "success",\r
2541         "xml": "<outcome value='success'>\n",\r
2542         "comments": "",\r
2543         "outputs": 1,\r
2544         "x": 1572.3333129882812,\r
2545         "y": 1164.999885559082,\r
2546         "z": "d12a8890.0a99a",\r
2547         "wires": [\r
2548             [\r
2549                 "3a69019e.e0465e"\r
2550             ]\r
2551         ]\r
2552     },\r
2553     {\r
2554         "id": "87587932.9e7dd",\r
2555         "type": "comment",\r
2556         "name": "CLL new",\r
2557         "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
2558         "comments": "",\r
2559         "x": 1354.3333129882812,\r
2560         "y": 1686.0000076293945,\r
2561         "z": "d12a8890.0a99a",\r
2562         "wires": []\r
2563     },\r
2564     {\r
2565         "id": "977d1c3.25b4f6",\r
2566         "type": "set",\r
2567         "name": "set ethernet-srv-end-points-list array",\r
2568         "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<!--<parameter name='`ethernet-srv-end-points-list[$epidx].service-instance-id-or-cll-id`' value='`$tmp.aai.service-instance.service-instance-id`' />-->\n<parameter name='`ethernet-srv-end-points-list[$epidx].service-instance-id-or-cll-id`' value='`$tmp.aai.uni.data-owner`' />\n\n<parameter name='`ethernet-srv-end-points-list_length`' value='`$epidx + 1`' />\n",\r
2569         "comments": "",\r
2570         "x": 1445.3333129882812,\r
2571         "y": 1740.0000076293945,\r
2572         "z": "d12a8890.0a99a",\r
2573         "wires": []\r
2574     },\r
2575     {\r
2576         "id": "1a612904.ca3407",\r
2577         "type": "set",\r
2578         "name": "unset ethernet-srv-end-points-list",\r
2579         "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
2580         "comments": "",\r
2581         "x": 2121.8333129882812,\r
2582         "y": 1153.0000076293945,\r
2583         "z": "d12a8890.0a99a",\r
2584         "wires": []\r
2585     },\r
2586     {\r
2587         "id": "70124697.bdc348",\r
2588         "type": "set",\r
2589         "name": "unset ethernet-srv-end-points-list",\r
2590         "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
2591         "comments": "",\r
2592         "x": 2126.8333129882812,\r
2593         "y": 1255.0000076293945,\r
2594         "z": "d12a8890.0a99a",\r
2595         "wires": []\r
2596     },\r
2597     {\r
2598         "id": "d56221fe.c2bbf",\r
2599         "type": "for",\r
2600         "name": "for each relationship",\r
2601         "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",\r
2602         "comments": "",\r
2603         "outputs": 1,\r
2604         "x": 610.3333129882812,\r
2605         "y": 1705.0000076293945,\r
2606         "z": "d12a8890.0a99a",\r
2607         "wires": [\r
2608             [\r
2609                 "aeacc57e.1c70e"\r
2610             ]\r
2611         ]\r
2612     },\r
2613     {\r
2614         "id": "aeacc57e.1c70e",\r
2615         "type": "switchNode",\r
2616         "name": "switch related-to",\r
2617         "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",\r
2618         "comments": "",\r
2619         "outputs": 1,\r
2620         "x": 842.3333129882812,\r
2621         "y": 1704.0000076293945,\r
2622         "z": "d12a8890.0a99a",\r
2623         "wires": [\r
2624             [\r
2625                 "dab1af90.85d2c"\r
2626             ]\r
2627         ]\r
2628     },\r
2629     {\r
2630         "id": "dab1af90.85d2c",\r
2631         "type": "outcome",\r
2632         "name": "vpn-binding",\r
2633         "xml": "<outcome value='vpn-binding'>\n",\r
2634         "comments": "",\r
2635         "outputs": 1,\r
2636         "x": 1054.3333129882812,\r
2637         "y": 1705.0000076293945,\r
2638         "z": "d12a8890.0a99a",\r
2639         "wires": [\r
2640             [\r
2641                 "6cc09a7e.3eecf4"\r
2642             ]\r
2643         ]\r
2644     },\r
2645     {\r
2646         "id": "6cc09a7e.3eecf4",\r
2647         "type": "block",\r
2648         "name": "block : atomic",\r
2649         "xml": "<block atomic=\"true\">",\r
2650         "atomic": "true",\r
2651         "outputs": 1,\r
2652         "x": 310.33331298828125,\r
2653         "y": 1861.0000076293945,\r
2654         "z": "d12a8890.0a99a",\r
2655         "wires": [\r
2656             [\r
2657                 "acf145f8.65836",\r
2658                 "d6c02212.5df71"\r
2659             ]\r
2660         ]\r
2661     },\r
2662     {\r
2663         "id": "d6c02212.5df71",\r
2664         "type": "set",\r
2665         "name": "unset tmp.aai.vpn-binding",\r
2666         "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",\r
2667         "comments": "",\r
2668         "x": 545.3333129882812,\r
2669         "y": 1848.0000076293945,\r
2670         "z": "d12a8890.0a99a",\r
2671         "wires": []\r
2672     },\r
2673     {\r
2674         "id": "acf145f8.65836",\r
2675         "type": "save",\r
2676         "name": "get vpn-binding from aai",\r
2677         "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
2678         "comments": "",\r
2679         "outputs": 1,\r
2680         "x": 535.3333129882812,\r
2681         "y": 1909.0000076293945,\r
2682         "z": "d12a8890.0a99a",\r
2683         "wires": [\r
2684             [\r
2685                 "87fb6e74.97fee8",\r
2686                 "cc7c3629.07cd7",\r
2687                 "419399de.ad60b8"\r
2688             ]\r
2689         ]\r
2690     },\r
2691     {\r
2692         "id": "cc7c3629.07cd7",\r
2693         "type": "not-found",\r
2694         "name": "not-found",\r
2695         "xml": "<outcome value='not-found'>\n",\r
2696         "comments": "",\r
2697         "outputs": 1,\r
2698         "x": 748.8242797851562,\r
2699         "y": 1893.5740432739258,\r
2700         "z": "d12a8890.0a99a",\r
2701         "wires": [\r
2702             [\r
2703                 "739447c7.2df608"\r
2704             ]\r
2705         ]\r
2706     },\r
2707     {\r
2708         "id": "419399de.ad60b8",\r
2709         "type": "failure",\r
2710         "name": "failure",\r
2711         "xml": "<outcome value='failure'>\n",\r
2712         "comments": "",\r
2713         "outputs": 1,\r
2714         "x": 744.3333129882812,\r
2715         "y": 1938.0000076293945,\r
2716         "z": "d12a8890.0a99a",\r
2717         "wires": [\r
2718             [\r
2719                 "a817deb7.6d09d"\r
2720             ]\r
2721         ]\r
2722     },\r
2723     {\r
2724         "id": "87fb6e74.97fee8",\r
2725         "type": "success",\r
2726         "name": "success",\r
2727         "xml": "<outcome value='success'>\n",\r
2728         "comments": "",\r
2729         "outputs": 1,\r
2730         "x": 746.3333129882812,\r
2731         "y": 1998.0000076293945,\r
2732         "z": "d12a8890.0a99a",\r
2733         "wires": [\r
2734             [\r
2735                 "40dff6fa.ed3558"\r
2736             ]\r
2737         ]\r
2738     },\r
2739     {\r
2740         "id": "739447c7.2df608",\r
2741         "type": "returnFailure",\r
2742         "name": "return failure",\r
2743         "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
2744         "comments": "",\r
2745         "x": 911.3958129882812,\r
2746         "y": 1892.859748840332,\r
2747         "z": "d12a8890.0a99a",\r
2748         "wires": []\r
2749     },\r
2750     {\r
2751         "id": "a817deb7.6d09d",\r
2752         "type": "returnFailure",\r
2753         "name": "return failure",\r
2754         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
2755         "comments": "",\r
2756         "x": 912.3333129882812,\r
2757         "y": 1938.0000076293945,\r
2758         "z": "d12a8890.0a99a",\r
2759         "wires": []\r
2760     },\r
2761     {\r
2762         "id": "40dff6fa.ed3558",\r
2763         "type": "block",\r
2764         "name": "block : atomic",\r
2765         "xml": "<block atomic=\"true\">",\r
2766         "atomic": "true",\r
2767         "outputs": 1,\r
2768         "x": 915.3333129882812,\r
2769         "y": 1997.0000076293945,\r
2770         "z": "d12a8890.0a99a",\r
2771         "wires": [\r
2772             [\r
2773                 "e2deabd9.c69c8",\r
2774                 "574db0eb.1dd5f"\r
2775             ]\r
2776         ]\r
2777     },\r
2778     {\r
2779         "id": "bcc45625.ebbc48",\r
2780         "type": "set",\r
2781         "name": "set sotn_value",\r
2782         "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='service-instance-id-or-cll-id' value='`$tmp.aai.service-instance.service-instance-id`' />-->\n\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
2783         "comments": "",\r
2784         "x": 335.33331298828125,\r
2785         "y": 2499.0000076293945,\r
2786         "z": "d12a8890.0a99a",\r
2787         "wires": []\r
2788     },\r
2789     {\r
2790         "id": "fa8a8b3f.f0a5f8",\r
2791         "type": "execute",\r
2792         "name": "execute RestApiCallNode Create ethernet Service without token",\r
2793         "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
2794         "comments": "",\r
2795         "outputs": 1,\r
2796         "x": 457.33331298828125,\r
2797         "y": 2556.0000076293945,\r
2798         "z": "d12a8890.0a99a",\r
2799         "wires": [\r
2800             [\r
2801                 "2e9bd62d.c02afa",\r
2802                 "55c19c27.0b4a64"\r
2803             ]\r
2804         ]\r
2805     },\r
2806     {\r
2807         "id": "2e9bd62d.c02afa",\r
2808         "type": "failure",\r
2809         "name": "failure",\r
2810         "xml": "<outcome value='failure'>\n",\r
2811         "comments": "",\r
2812         "outputs": 1,\r
2813         "x": 769.8333129882812,\r
2814         "y": 2533.0000076293945,\r
2815         "z": "d12a8890.0a99a",\r
2816         "wires": [\r
2817             []\r
2818         ]\r
2819     },\r
2820     {\r
2821         "id": "55c19c27.0b4a64",\r
2822         "type": "success",\r
2823         "name": "success",\r
2824         "xml": "<outcome value='success'>\n",\r
2825         "comments": "",\r
2826         "outputs": 1,\r
2827         "x": 773.8333129882812,\r
2828         "y": 2573.0000076293945,\r
2829         "z": "d12a8890.0a99a",\r
2830         "wires": [\r
2831             [\r
2832                 "19a8d296.6252e5"\r
2833             ]\r
2834         ]\r
2835     },\r
2836     {\r
2837         "id": "81214b8b.cb073",\r
2838         "type": "returnFailure",\r
2839         "name": "return failure",\r
2840         "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
2841         "comments": "",\r
2842         "x": 949.8333129882812,\r
2843         "y": 2537.0000076293945,\r
2844         "z": "d12a8890.0a99a",\r
2845         "wires": []\r
2846     },\r
2847     {\r
2848         "id": "19a8d296.6252e5",\r
2849         "type": "block",\r
2850         "name": "block : atomic",\r
2851         "xml": "<block atomic=\"true\">",\r
2852         "atomic": "true",\r
2853         "comments": "",\r
2854         "outputs": 1,\r
2855         "x": 965.3333129882812,\r
2856         "y": 2591.0000076293945,\r
2857         "z": "d12a8890.0a99a",\r
2858         "wires": [\r
2859             [\r
2860                 "89591cea.6097a8",\r
2861                 "e0a0a9f7.c3b968",\r
2862                 "39281a09.347b8e",\r
2863                 "8394d0d1.93103"\r
2864             ]\r
2865         ]\r
2866     },\r
2867     {\r
2868         "id": "d3d37efd.5c6f1",\r
2869         "type": "save",\r
2870         "name": "update vpn-binding resource (aka. OTN ) in AAI",\r
2871         "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
2872         "comments": "",\r
2873         "outputs": 1,\r
2874         "x": 1260.8333129882812,\r
2875         "y": 2560.0000076293945,\r
2876         "z": "d12a8890.0a99a",\r
2877         "wires": [\r
2878             []\r
2879         ]\r
2880     },\r
2881     {\r
2882         "id": "e1720f9a.264c28",\r
2883         "type": "comment",\r
2884         "name": "TODO: FIXME",\r
2885         "info": "use proper vpn-binding id and connectivity id\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",\r
2886         "comments": "",\r
2887         "x": 2727.8333129882812,\r
2888         "y": 1911.0000076293945,\r
2889         "z": "d12a8890.0a99a",\r
2890         "wires": []\r
2891     },\r
2892     {\r
2893         "id": "89591cea.6097a8",\r
2894         "type": "save",\r
2895         "name": "update connectivity resource in AAI",\r
2896         "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
2897         "comments": "",\r
2898         "outputs": 1,\r
2899         "x": 1222.8333129882812,\r
2900         "y": 2602.0000076293945,\r
2901         "z": "d12a8890.0a99a",\r
2902         "wires": [\r
2903             []\r
2904         ]\r
2905     },\r
2906     {\r
2907         "id": "7128141a.22afcc",\r
2908         "type": "set",\r
2909         "name": "set leafOrRootAccess",\r
2910         "xml": "<set>\n<parameter name='`leafOrRootAccess`' value='ietf-eth-tran-types:leaf-access' />\n",\r
2911         "comments": "",\r
2912         "x": 2087.8333129882812,\r
2913         "y": 1191.0000076293945,\r
2914         "z": "d12a8890.0a99a",\r
2915         "wires": []\r
2916     },\r
2917     {\r
2918         "id": "59bf9e6a.8c5448",\r
2919         "type": "set",\r
2920         "name": "set leafOrRootAccess",\r
2921         "xml": "<set>\n<parameter name='`leafOrRootAccess`' value='ietf-eth-tran-types:root-primary' />\n",\r
2922         "comments": "",\r
2923         "x": 2088.8333129882812,\r
2924         "y": 1295.0000076293945,\r
2925         "z": "d12a8890.0a99a",\r
2926         "wires": []\r
2927     },\r
2928     {\r
2929         "id": "d2ff3c56.4372d",\r
2930         "type": "save",\r
2931         "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",\r
2932         "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
2933         "comments": "",\r
2934         "outputs": 1,\r
2935         "x": 4382.333312988281,\r
2936         "y": 552.0000076293945,\r
2937         "z": "d12a8890.0a99a",\r
2938         "wires": [\r
2939             []\r
2940         ]\r
2941     },\r
2942     {\r
2943         "id": "8c5d7664.9247c8",\r
2944         "type": "save",\r
2945         "name": "update vpn-binding G resource (aka. OTN domainA) in AAI",\r
2946         "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
2947         "comments": "",\r
2948         "outputs": 1,\r
2949         "x": 4285.333312988281,\r
2950         "y": 1371.0000076293945,\r
2951         "z": "d12a8890.0a99a",\r
2952         "wires": [\r
2953             []\r
2954         ]\r
2955     },\r
2956     {\r
2957         "id": "cedd744c.d4173",\r
2958         "type": "save",\r
2959         "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",\r
2960         "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
2961         "comments": "",\r
2962         "outputs": 1,\r
2963         "x": 3779.3333129882812,\r
2964         "y": 2043.0000076293945,\r
2965         "z": "d12a8890.0a99a",\r
2966         "wires": [\r
2967             []\r
2968         ]\r
2969     },\r
2970     {\r
2971         "id": "71154b9b.41ff14",\r
2972         "type": "switchNode",\r
2973         "name": "switch connectivity is not already Activated (i.e. is either Created or Modified)",\r
2974         "xml": "<switch test=\"`$tmp.aai.connectivity.operational-status != 'Activated' `\">\n",\r
2975         "comments": "",\r
2976         "outputs": 1,\r
2977         "x": 880.3333129882812,\r
2978         "y": 851.0000076293945,\r
2979         "z": "d12a8890.0a99a",\r
2980         "wires": [\r
2981             [\r
2982                 "549c1dfb.8f3224",\r
2983                 "34cb7bd3.43733c"\r
2984             ]\r
2985         ]\r
2986     },\r
2987     {\r
2988         "id": "549c1dfb.8f3224",\r
2989         "type": "outcomeTrue",\r
2990         "name": "true",\r
2991         "xml": "<outcome value='true'>\n",\r
2992         "comments": "",\r
2993         "outputs": 1,\r
2994         "x": 1243.3333129882812,\r
2995         "y": 874.0000076293945,\r
2996         "z": "d12a8890.0a99a",\r
2997         "wires": [\r
2998             [\r
2999                 "e217a5f3.43edf8"\r
3000             ]\r
3001         ]\r
3002     },\r
3003     {\r
3004         "id": "34cb7bd3.43733c",\r
3005         "type": "outcomeFalse",\r
3006         "name": "false",\r
3007         "xml": "<outcome value='false'>\n",\r
3008         "comments": "",\r
3009         "outputs": 1,\r
3010         "x": 1243.3333129882812,\r
3011         "y": 823.0000076293945,\r
3012         "z": "d12a8890.0a99a",\r
3013         "wires": [\r
3014             [\r
3015                 "845a9945.5ecef8"\r
3016             ]\r
3017         ]\r
3018     },\r
3019     {\r
3020         "id": "e217a5f3.43edf8",\r
3021         "type": "block",\r
3022         "name": "block : atomic",\r
3023         "xml": "<block atomic=\"true\">",\r
3024         "atomic": "true",\r
3025         "outputs": 1,\r
3026         "x": 1399.3333129882812,\r
3027         "y": 872.0000076293945,\r
3028         "z": "d12a8890.0a99a",\r
3029         "wires": [\r
3030             [\r
3031                 "462f3353.3aa76c"\r
3032             ]\r
3033         ]\r
3034     },\r
3035     {\r
3036         "id": "845a9945.5ecef8",\r
3037         "type": "block",\r
3038         "name": "block",\r
3039         "xml": "<block>",\r
3040         "atomic": "false",\r
3041         "comments": "",\r
3042         "outputs": 1,\r
3043         "x": 1376.3333129882812,\r
3044         "y": 824.0000076293945,\r
3045         "z": "d12a8890.0a99a",\r
3046         "wires": [\r
3047             []\r
3048         ]\r
3049     },\r
3050     {\r
3051         "id": "a8591f2d.71e23",\r
3052         "type": "set",\r
3053         "name": "unset tmp.aai.vpn-binding",\r
3054         "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value=\"\" />\n",\r
3055         "comments": "",\r
3056         "x": 2136.3333129882812,\r
3057         "y": 222.00000762939453,\r
3058         "z": "d12a8890.0a99a",\r
3059         "wires": []\r
3060     },\r
3061     {\r
3062         "id": "c2c48b41.449c5",\r
3063         "type": "set",\r
3064         "name": "set root-otn-tunnels-list array",\r
3065         "xml": "<set>\n<parameter name='`roottunsidx`' value='`$roottunsidx + 1`' />\n",\r
3066         "comments": "",\r
3067         "x": 3678.3333129882812,\r
3068         "y": 2203.0000076293945,\r
3069         "z": "d12a8890.0a99a",\r
3070         "wires": []\r
3071     },\r
3072     {\r
3073         "id": "9499a947.255148",\r
3074         "type": "set",\r
3075         "name": "set leaf-otn-tunnels-list array",\r
3076         "xml": "<set>\n<parameter name='`leaftunsidx`' value='`$leaftunsidx + 1`' />\n",\r
3077         "comments": "",\r
3078         "x": 4268.333312988281,\r
3079         "y": 676.0000076293945,\r
3080         "z": "d12a8890.0a99a",\r
3081         "wires": []\r
3082     },\r
3083     {\r
3084         "id": "f4df7601.a8481",\r
3085         "type": "set",\r
3086         "name": "set ethernet-srv-end-points-list array",\r
3087         "xml": "<set>\n<parameter name='`epidx`' value='`$epidx + 1`' />\n",\r
3088         "comments": "",\r
3089         "x": 1442.3333129882812,\r
3090         "y": 1782.0000076293945,\r
3091         "z": "d12a8890.0a99a",\r
3092         "wires": []\r
3093     },\r
3094     {\r
3095         "id": "c236e813.0b75c",\r
3096         "type": "set",\r
3097         "name": "set filename",\r
3098         "xml": "<set>\n<parameter name='filenameclleths' value=\"`$leafOrRootAccess + $tmp.aai.connectivity.access-node-id`\" />",\r
3099         "comments": "",\r
3100         "x": 621.3333129882812,\r
3101         "y": 1516.0000076293945,\r
3102         "z": "d12a8890.0a99a",\r
3103         "wires": []\r
3104     },\r
3105     {\r
3106         "id": "ccf5136c.426918",\r
3107         "type": "execute",\r
3108         "name": "execute printContext",\r
3109         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n    <parameter name=\"filename\" value=\"`$filenameclleths`\" />\n",\r
3110         "comments": "",\r
3111         "outputs": 1,\r
3112         "x": 652.3333129882812,\r
3113         "y": 1556.0000076293945,\r
3114         "z": "d12a8890.0a99a",\r
3115         "wires": [\r
3116             []\r
3117         ]\r
3118     },\r
3119     {\r
3120         "id": "e2deabd9.c69c8",\r
3121         "type": "set",\r
3122         "name": "set otn-tunnels-name-list array",\r
3123         "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
3124         "comments": "",\r
3125         "x": 1200.3333129882812,\r
3126         "y": 1964.0000076293945,\r
3127         "z": "d12a8890.0a99a",\r
3128         "wires": []\r
3129     },\r
3130     {\r
3131         "id": "574db0eb.1dd5f",\r
3132         "type": "set",\r
3133         "name": "set otn-tunnels-name-list array",\r
3134         "xml": "<set>\n<parameter name='`otntunsidx`' value='`$otntunsidx + 1`' />\n",\r
3135         "comments": "",\r
3136         "x": 1203.3333129882812,\r
3137         "y": 2006.0000076293945,\r
3138         "z": "d12a8890.0a99a",\r
3139         "wires": []\r
3140     },\r
3141     {\r
3142         "id": "67d19d91.7e0464",\r
3143         "type": "set",\r
3144         "name": "unset otn-tunnels-name-list array",\r
3145         "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
3146         "comments": "",\r
3147         "x": 646.3333129882812,\r
3148         "y": 1646.0000076293945,\r
3149         "z": "d12a8890.0a99a",\r
3150         "wires": []\r
3151     },\r
3152     {\r
3153         "id": "6dec5e05.6defc8",\r
3154         "type": "set",\r
3155         "name": "set filename",\r
3156         "xml": "<set>\n<parameter name='filenamecllotns' value=\"`leafrootOTNtunnelnames`\" />",\r
3157         "comments": "",\r
3158         "x": 401.33331298828125,\r
3159         "y": 2025.0000076293945,\r
3160         "z": "d12a8890.0a99a",\r
3161         "wires": []\r
3162     },\r
3163     {\r
3164         "id": "4d2f3635.de76f",\r
3165         "type": "execute",\r
3166         "name": "execute printContext",\r
3167         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n    <parameter name=\"filename\" value=\"`$filenamecllotns`\" />\n",\r
3168         "comments": "",\r
3169         "outputs": 1,\r
3170         "x": 409.33331298828125,\r
3171         "y": 2082.0000076293945,\r
3172         "z": "d12a8890.0a99a",\r
3173         "wires": [\r
3174             []\r
3175         ]\r
3176     },\r
3177     {\r
3178         "id": "e57dfa3b.7a1478",\r
3179         "type": "execute",\r
3180         "name": "execute split tp-id to get pnf-name",\r
3181         "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
3182         "comments": "",\r
3183         "outputs": 1,\r
3184         "x": 1420.3333129882812,\r
3185         "y": 1631.0000076293945,\r
3186         "z": "d12a8890.0a99a",\r
3187         "wires": [\r
3188             [\r
3189                 "42d55673.4b259",\r
3190                 "c68b8996.7afed8"\r
3191             ]\r
3192         ]\r
3193     },\r
3194     {\r
3195         "id": "c68b8996.7afed8",\r
3196         "type": "failure",\r
3197         "name": "success",\r
3198         "xml": "<outcome value='success'>\n",\r
3199         "comments": "",\r
3200         "outputs": 1,\r
3201         "x": 1643.3333129882812,\r
3202         "y": 1586.0000076293945,\r
3203         "z": "d12a8890.0a99a",\r
3204         "wires": [\r
3205             [\r
3206                 "30a6d609.f0af22"\r
3207             ]\r
3208         ]\r
3209     },\r
3210     {\r
3211         "id": "42d55673.4b259",\r
3212         "type": "failure",\r
3213         "name": "failure",\r
3214         "xml": "<outcome value='failure'>\n",\r
3215         "comments": "",\r
3216         "outputs": 1,\r
3217         "x": 1645.3333129882812,\r
3218         "y": 1650.0000076293945,\r
3219         "z": "d12a8890.0a99a",\r
3220         "wires": [\r
3221             [\r
3222                 "36f16c60.30df3c"\r
3223             ]\r
3224         ]\r
3225     },\r
3226     {\r
3227         "id": "30a6d609.f0af22",\r
3228         "type": "block",\r
3229         "name": "block : atomic",\r
3230         "xml": "<block atomic=\"true\">",\r
3231         "atomic": "true",\r
3232         "outputs": 1,\r
3233         "x": 1808.3333129882812,\r
3234         "y": 1583.0000076293945,\r
3235         "z": "d12a8890.0a99a",\r
3236         "wires": [\r
3237             [\r
3238                 "33a6db5.6665724"\r
3239             ]\r
3240         ]\r
3241     },\r
3242     {\r
3243         "id": "36f16c60.30df3c",\r
3244         "type": "returnFailure",\r
3245         "name": "return failure",\r
3246         "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
3247         "comments": "",\r
3248         "x": 1807.3333129882812,\r
3249         "y": 1646.0000076293945,\r
3250         "z": "d12a8890.0a99a",\r
3251         "wires": []\r
3252     },\r
3253     {\r
3254         "id": "33a6db5.6665724",\r
3255         "type": "set",\r
3256         "name": "set tmp.uni-node-id-short",\r
3257         "xml": "<set>\n<parameter name='tmp.uni-node-id-short' value='`$param-prefix-uni[$param-prefix-uni_length -4]`' />\n",\r
3258         "comments": "",\r
3259         "x": 2028.3333129882812,\r
3260         "y": 1597.0000076293945,\r
3261         "z": "d12a8890.0a99a",\r
3262         "wires": []\r
3263     },\r
3264     {\r
3265         "id": "9a45a6ac.6bb008",\r
3266         "type": "outcome",\r
3267         "name": "esr-thirdparty-sdnc",\r
3268         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
3269         "comments": "",\r
3270         "outputs": 1,\r
3271         "x": 1573.3333129882812,\r
3272         "y": 2322.0000076293945,\r
3273         "z": "d12a8890.0a99a",\r
3274         "wires": [\r
3275             [\r
3276                 "90552bad.c118e"\r
3277             ]\r
3278         ]\r
3279     },\r
3280     {\r
3281         "id": "746f3218.6a2f4c",\r
3282         "type": "execute",\r
3283         "name": "get esr-thirdparty-sdnc",\r
3284         "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
3285         "comments": "",\r
3286         "outputs": 1,\r
3287         "x": 1958.3333129882812,\r
3288         "y": 2335.0000076293945,\r
3289         "z": "d12a8890.0a99a",\r
3290         "wires": [\r
3291             [\r
3292                 "cc717bee.327628",\r
3293                 "4215d2eb.6b41b4",\r
3294                 "6de2353d.61ff6c"\r
3295             ]\r
3296         ]\r
3297     },\r
3298     {\r
3299         "id": "90552bad.c118e",\r
3300         "type": "block",\r
3301         "name": "block : atomic",\r
3302         "xml": "<block atomic=\"true\">",\r
3303         "atomic": "true",\r
3304         "outputs": 1,\r
3305         "x": 1752.3333129882812,\r
3306         "y": 2322.0000076293945,\r
3307         "z": "d12a8890.0a99a",\r
3308         "wires": [\r
3309             [\r
3310                 "f2b28f1.371b57",\r
3311                 "746f3218.6a2f4c"\r
3312             ]\r
3313         ]\r
3314     },\r
3315     {\r
3316         "id": "f2b28f1.371b57",\r
3317         "type": "set",\r
3318         "name": "set esr-thirdparty-sdnc domainConn id",\r
3319         "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
3320         "comments": "",\r
3321         "x": 1988.3333129882812,\r
3322         "y": 2283.0000076293945,\r
3323         "z": "d12a8890.0a99a",\r
3324         "wires": []\r
3325     },\r
3326     {\r
3327         "id": "cc717bee.327628",\r
3328         "type": "success",\r
3329         "name": "success",\r
3330         "xml": "<outcome value='success'>\n",\r
3331         "comments": "",\r
3332         "outputs": 1,\r
3333         "x": 2168.3333129882812,\r
3334         "y": 2326.0000076293945,\r
3335         "z": "d12a8890.0a99a",\r
3336         "wires": [\r
3337             [\r
3338                 "864e3f3b.37515"\r
3339             ]\r
3340         ]\r
3341     },\r
3342     {\r
3343         "id": "4215d2eb.6b41b4",\r
3344         "type": "not-found",\r
3345         "name": "not-found",\r
3346         "xml": "<outcome value='not-found'>\n",\r
3347         "comments": "",\r
3348         "outputs": 1,\r
3349         "x": 2160.3333129882812,\r
3350         "y": 2381.0000076293945,\r
3351         "z": "d12a8890.0a99a",\r
3352         "wires": [\r
3353             [\r
3354                 "dbafb74f.d2c48"\r
3355             ]\r
3356         ]\r
3357     },\r
3358     {\r
3359         "id": "6de2353d.61ff6c",\r
3360         "type": "other",\r
3361         "name": "other",\r
3362         "xml": "<outcome value='Other'>\n",\r
3363         "comments": "",\r
3364         "outputs": 1,\r
3365         "x": 2165.3333129882812,\r
3366         "y": 2438.0000076293945,\r
3367         "z": "d12a8890.0a99a",\r
3368         "wires": [\r
3369             [\r
3370                 "d9191b0b.ddee58"\r
3371             ]\r
3372         ]\r
3373     },\r
3374     {\r
3375         "id": "d9191b0b.ddee58",\r
3376         "type": "returnFailure",\r
3377         "name": "return failure",\r
3378         "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
3379         "comments": "",\r
3380         "x": 2317.3333129882812,\r
3381         "y": 2439.0000076293945,\r
3382         "z": "d12a8890.0a99a",\r
3383         "wires": []\r
3384     },\r
3385     {\r
3386         "id": "dbafb74f.d2c48",\r
3387         "type": "returnFailure",\r
3388         "name": "return failure",\r
3389         "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
3390         "comments": "",\r
3391         "x": 2328.3333129882812,\r
3392         "y": 2384.0000076293945,\r
3393         "z": "d12a8890.0a99a",\r
3394         "wires": []\r
3395     },\r
3396     {\r
3397         "id": "864e3f3b.37515",\r
3398         "type": "block",\r
3399         "name": "block",\r
3400         "xml": "<block>\n",\r
3401         "atomic": "false",\r
3402         "comments": "",\r
3403         "outputs": 1,\r
3404         "x": 2312.7156372070312,\r
3405         "y": 2323.65567779541,\r
3406         "z": "d12a8890.0a99a",\r
3407         "wires": [\r
3408             [\r
3409                 "f35ba5bd.48a6c8"\r
3410             ]\r
3411         ]\r
3412     },\r
3413     {\r
3414         "id": "f35ba5bd.48a6c8",\r
3415         "type": "set",\r
3416         "name": "set controller domainConn data",\r
3417         "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
3418         "comments": "",\r
3419         "x": 2527.3333129882812,\r
3420         "y": 2320.0000076293945,\r
3421         "z": "d12a8890.0a99a",\r
3422         "wires": []\r
3423     },\r
3424     {\r
3425         "id": "8481025.43fb9",\r
3426         "type": "get-resource",\r
3427         "name": "get-resource src pnf",\r
3428         "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
3429         "comments": "",\r
3430         "outputs": 1,\r
3431         "x": 651.3333129882812,\r
3432         "y": 2368.0000076293945,\r
3433         "z": "d12a8890.0a99a",\r
3434         "wires": [\r
3435             [\r
3436                 "372d54fa.9f96f4",\r
3437                 "9dc1c4cc.c7a94",\r
3438                 "2d38b1b0.a69f26"\r
3439             ]\r
3440         ]\r
3441     },\r
3442     {\r
3443         "id": "372d54fa.9f96f4",\r
3444         "type": "success",\r
3445         "name": "success",\r
3446         "xml": "<outcome value='success'>\n",\r
3447         "comments": "",\r
3448         "outputs": 1,\r
3449         "x": 846.8334350585938,\r
3450         "y": 2320.0000076293945,\r
3451         "z": "d12a8890.0a99a",\r
3452         "wires": [\r
3453             [\r
3454                 "eb66892d.1f2808"\r
3455             ]\r
3456         ]\r
3457     },\r
3458     {\r
3459         "id": "9dc1c4cc.c7a94",\r
3460         "type": "not-found",\r
3461         "name": "not-found",\r
3462         "xml": "<outcome value='not-found'>\n",\r
3463         "comments": "",\r
3464         "outputs": 1,\r
3465         "x": 838.8334350585938,\r
3466         "y": 2375.0000076293945,\r
3467         "z": "d12a8890.0a99a",\r
3468         "wires": [\r
3469             [\r
3470                 "79e4473c.6cea88"\r
3471             ]\r
3472         ]\r
3473     },\r
3474     {\r
3475         "id": "eb66892d.1f2808",\r
3476         "type": "block",\r
3477         "name": "block",\r
3478         "xml": "<block>\n",\r
3479         "atomic": "false",\r
3480         "comments": "",\r
3481         "outputs": 1,\r
3482         "x": 991.2157592773438,\r
3483         "y": 2319.65567779541,\r
3484         "z": "d12a8890.0a99a",\r
3485         "wires": [\r
3486             [\r
3487                 "a488eeff.b05b28"\r
3488             ]\r
3489         ]\r
3490     },\r
3491     {\r
3492         "id": "a488eeff.b05b28",\r
3493         "type": "for",\r
3494         "name": "for each relationship",\r
3495         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
3496         "comments": "",\r
3497         "outputs": 1,\r
3498         "x": 1175.3333129882812,\r
3499         "y": 2318.0000076293945,\r
3500         "z": "d12a8890.0a99a",\r
3501         "wires": [\r
3502             [\r
3503                 "52486109.89e3d"\r
3504             ]\r
3505         ]\r
3506     },\r
3507     {\r
3508         "id": "52486109.89e3d",\r
3509         "type": "switchNode",\r
3510         "name": "switch related-to",\r
3511         "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
3512         "comments": "",\r
3513         "outputs": 1,\r
3514         "x": 1370.3333129882812,\r
3515         "y": 2318.0000076293945,\r
3516         "z": "d12a8890.0a99a",\r
3517         "wires": [\r
3518             [\r
3519                 "9a45a6ac.6bb008"\r
3520             ]\r
3521         ]\r
3522     },\r
3523     {\r
3524         "id": "2d38b1b0.a69f26",\r
3525         "type": "other",\r
3526         "name": "other",\r
3527         "xml": "<outcome value='Other'>\n",\r
3528         "comments": "",\r
3529         "outputs": 1,\r
3530         "x": 843.8334350585938,\r
3531         "y": 2432.0000076293945,\r
3532         "z": "d12a8890.0a99a",\r
3533         "wires": [\r
3534             [\r
3535                 "7ec62576.a9581c"\r
3536             ]\r
3537         ]\r
3538     },\r
3539     {\r
3540         "id": "7ec62576.a9581c",\r
3541         "type": "returnFailure",\r
3542         "name": "return failure",\r
3543         "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
3544         "comments": "",\r
3545         "x": 995.8334350585938,\r
3546         "y": 2433.0000076293945,\r
3547         "z": "d12a8890.0a99a",\r
3548         "wires": []\r
3549     },\r
3550     {\r
3551         "id": "79e4473c.6cea88",\r
3552         "type": "returnFailure",\r
3553         "name": "return failure",\r
3554         "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
3555         "comments": "",\r
3556         "x": 1006.8334350585938,\r
3557         "y": 2376.0000076293945,\r
3558         "z": "d12a8890.0a99a",\r
3559         "wires": []\r
3560     },\r
3561     {\r
3562         "id": "46b10267.ea0e94",\r
3563         "type": "set",\r
3564         "name": "set tmp.pnf-name-forUrl",\r
3565         "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
3566         "comments": "",\r
3567         "x": 641.3333129882812,\r
3568         "y": 2280.0000076293945,\r
3569         "z": "d12a8890.0a99a",\r
3570         "wires": []\r
3571     },\r
3572     {\r
3573         "id": "9e415421.d3d5",\r
3574         "type": "block",\r
3575         "name": "block : atomic",\r
3576         "xml": "<block atomic=\"true\">",\r
3577         "atomic": "true",\r
3578         "comments": "",\r
3579         "outputs": 1,\r
3580         "x": 386.33331298828125,\r
3581         "y": 2411.0000076293945,\r
3582         "z": "d12a8890.0a99a",\r
3583         "wires": [\r
3584             [\r
3585                 "46b10267.ea0e94",\r
3586                 "8481025.43fb9"\r
3587             ]\r
3588         ]\r
3589     },\r
3590     {\r
3591         "id": "e5923dd1.06f5c",\r
3592         "type": "comment",\r
3593         "name": "Temporary skipping this check - to support multiple instances in one slice",\r
3594         "info": "",\r
3595         "comments": "",\r
3596         "x": 1601.2999877929688,\r
3597         "y": 228.88333892822266,\r
3598         "z": "d12a8890.0a99a",\r
3599         "wires": []\r
3600     },\r
3601     {\r
3602         "id": "57052eb0.583298",\r
3603         "type": "returnFailure",\r
3604         "name": "return failure",\r
3605         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
3606         "comments": "",\r
3607         "x": 803.3333129882812,\r
3608         "y": 451.00000762939453,\r
3609         "z": "d12a8890.0a99a",\r
3610         "wires": []\r
3611     },\r
3612     {\r
3613         "id": "b87c2610.4dcfe8",\r
3614         "type": "block",\r
3615         "name": "block",\r
3616         "xml": "<block>",\r
3617         "atomic": "false",\r
3618         "comments": "",\r
3619         "outputs": 1,\r
3620         "x": 362.83331298828125,\r
3621         "y": 1420.0000076293945,\r
3622         "z": "d12a8890.0a99a",\r
3623         "wires": [\r
3624             [\r
3625                 "c36699ae.d9b4d8",\r
3626                 "d56221fe.c2bbf",\r
3627                 "c236e813.0b75c",\r
3628                 "ccf5136c.426918",\r
3629                 "bcc45625.ebbc48",\r
3630                 "fa8a8b3f.f0a5f8",\r
3631                 "67d19d91.7e0464",\r
3632                 "6dec5e05.6defc8",\r
3633                 "4d2f3635.de76f",\r
3634                 "9e415421.d3d5",\r
3635                 "4fcc44c7.7479d4"\r
3636             ]\r
3637         ]\r
3638     },\r
3639     {\r
3640         "id": "7a26c91d.a51bf",\r
3641         "type": "switchNode",\r
3642         "name": "switch uni type",\r
3643         "xml": "<switch test=\"`$tmp.aai.uni.type`\">\n\n",\r
3644         "comments": "",\r
3645         "outputs": 1,\r
3646         "x": 1393.3333129882812,\r
3647         "y": 1258.0000076293945,\r
3648         "z": "d12a8890.0a99a",\r
3649         "wires": [\r
3650             [\r
3651                 "a9279133.62197",\r
3652                 "c4ef1cec.86081",\r
3653                 "5303ba0b.725dcc",\r
3654                 "84ee69ca.e736d8"\r
3655             ]\r
3656         ]\r
3657     },\r
3658     {\r
3659         "id": "a9279133.62197",\r
3660         "type": "outcome",\r
3661         "name": "leaf",\r
3662         "xml": "<outcome value='leaf'>\n",\r
3663         "comments": "",\r
3664         "outputs": 1,\r
3665         "x": 1558.3333129882812,\r
3666         "y": 1240.0000076293945,\r
3667         "z": "d12a8890.0a99a",\r
3668         "wires": [\r
3669             [\r
3670                 "df04fed1.2e9e3"\r
3671             ]\r
3672         ]\r
3673     },\r
3674     {\r
3675         "id": "c4ef1cec.86081",\r
3676         "type": "outcome",\r
3677         "name": "root",\r
3678         "xml": "<outcome value='root'>\n",\r
3679         "comments": "",\r
3680         "outputs": 1,\r
3681         "x": 1561.3333129882812,\r
3682         "y": 1279.0000076293945,\r
3683         "z": "d12a8890.0a99a",\r
3684         "wires": [\r
3685             [\r
3686                 "1437703.dec509"\r
3687             ]\r
3688         ]\r
3689     },\r
3690     {\r
3691         "id": "84ee69ca.e736d8",\r
3692         "type": "other",\r
3693         "name": "other",\r
3694         "xml": "<outcome value='Other'>\n",\r
3695         "comments": "",\r
3696         "outputs": 1,\r
3697         "x": 1555.3333129882812,\r
3698         "y": 1357.0000076293945,\r
3699         "z": "d12a8890.0a99a",\r
3700         "wires": [\r
3701             [\r
3702                 "c52f2275.ca0538"\r
3703             ]\r
3704         ]\r
3705     },\r
3706     {\r
3707         "id": "5303ba0b.725dcc",\r
3708         "type": "outcome",\r
3709         "name": "root-secondary",\r
3710         "xml": "<outcome value='root-secondary'>\n",\r
3711         "comments": "",\r
3712         "outputs": 1,\r
3713         "x": 1578.3333129882812,\r
3714         "y": 1320.0000076293945,\r
3715         "z": "d12a8890.0a99a",\r
3716         "wires": [\r
3717             [\r
3718                 "bb188e14.1d1858"\r
3719             ]\r
3720         ]\r
3721     },\r
3722     {\r
3723         "id": "f4fe23e8.e2bba",\r
3724         "type": "set",\r
3725         "name": "unset ethernet-srv-end-points-list",\r
3726         "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
3727         "comments": "",\r
3728         "x": 2124.3333129882812,\r
3729         "y": 1353.0000076293945,\r
3730         "z": "d12a8890.0a99a",\r
3731         "wires": []\r
3732     },\r
3733     {\r
3734         "id": "a68d577a.75b008",\r
3735         "type": "set",\r
3736         "name": "set leafOrRootAccess",\r
3737         "xml": "<set>\n<parameter name='`leafOrRootAccess`' value='ietf-eth-tran-types:root-secondary' />\n",\r
3738         "comments": "",\r
3739         "x": 2086.3333129882812,\r
3740         "y": 1393.0000076293945,\r
3741         "z": "d12a8890.0a99a",\r
3742         "wires": []\r
3743     },\r
3744     {\r
3745         "id": "c52f2275.ca0538",\r
3746         "type": "block",\r
3747         "name": "block",\r
3748         "xml": "<block>",\r
3749         "atomic": "false",\r
3750         "comments": "",\r
3751         "outputs": 1,\r
3752         "x": 1707.3333129882812,\r
3753         "y": 1378.0000076293945,\r
3754         "z": "d12a8890.0a99a",\r
3755         "wires": [\r
3756             []\r
3757         ]\r
3758     },\r
3759     {\r
3760         "id": "e0a0a9f7.c3b968",\r
3761         "type": "execute",\r
3762         "name": "execute RestApiCallNode Create Performance Monitoring Data",\r
3763         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cll-create-pm-data.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/data/ietf-service-pm:performance-monitoring'`\" />\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
3764         "comments": "",\r
3765         "outputs": 1,\r
3766         "x": 1296.9166870117188,\r
3767         "y": 2677.333625793457,\r
3768         "z": "d12a8890.0a99a",\r
3769         "wires": [\r
3770             []\r
3771         ]\r
3772     },\r
3773     {\r
3774         "id": "df04fed1.2e9e3",\r
3775         "type": "block",\r
3776         "name": "block",\r
3777         "xml": "<block>",\r
3778         "atomic": "false",\r
3779         "comments": "",\r
3780         "outputs": 1,\r
3781         "x": 1693.2499389648438,\r
3782         "y": 1236.3332595825195,\r
3783         "z": "d12a8890.0a99a",\r
3784         "wires": [\r
3785             [\r
3786                 "7128141a.22afcc"\r
3787             ]\r
3788         ]\r
3789     },\r
3790     {\r
3791         "id": "1437703.dec509",\r
3792         "type": "block",\r
3793         "name": "block",\r
3794         "xml": "<block>",\r
3795         "atomic": "false",\r
3796         "comments": "",\r
3797         "outputs": 1,\r
3798         "x": 1695.2499389648438,\r
3799         "y": 1274.3332595825195,\r
3800         "z": "d12a8890.0a99a",\r
3801         "wires": [\r
3802             [\r
3803                 "59bf9e6a.8c5448"\r
3804             ]\r
3805         ]\r
3806     },\r
3807     {\r
3808         "id": "bb188e14.1d1858",\r
3809         "type": "block",\r
3810         "name": "block",\r
3811         "xml": "<block>",\r
3812         "atomic": "false",\r
3813         "comments": "",\r
3814         "outputs": 1,\r
3815         "x": 1738.2499389648438,\r
3816         "y": 1321.3332595825195,\r
3817         "z": "d12a8890.0a99a",\r
3818         "wires": [\r
3819             [\r
3820                 "a68d577a.75b008"\r
3821             ]\r
3822         ]\r
3823     },\r
3824     {\r
3825         "id": "39281a09.347b8e",\r
3826         "type": "execute",\r
3827         "name": "execute RestconfDiscoveryNode establishSubscription",\r
3828         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfdiscovery.RestconfDiscoveryNode' method='establishSubscriptionOnly' >\n<parameter name=\"subscriberId\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url`\" />\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cll-subscribe-notification.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/operations/ietf-subscribed-notifications:establish-subscription'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.password`\" />\n<parameter name=\"dirPath\" value=\"/opt/sdnc/restconfapi/yang/notification\" />\n<!--<parameter name=\"deviceIp\" value=\"192.168.198.6\" />-->\n<!--<parameter name=\"devicePort\" value=\"18181\" />-->\n<parameter name=\"sseConnectURL\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/streams/yang-push-json'`\" />\n<parameter name=\"format\" value=\"json\" />\n<parameter name=\"httpMethod\" value=\"post\" />\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=x-ik2ps4ikvzupbx0486ft1ebzs7rt85futh9ho6eofy3wjsap7wqktemlqm4bbsmnar3vrtbyrzukbv5itd6m1cftldpjarnyle3sdcqq9hftc4lebz464b5ffxmlbvg9\" />\n<parameter name=\"module\" value=\"GENERIC-RESOURCE-API\" />\n<parameter name=\"rpc\" value=\"cll-vnf-topology-operation-cll-callbackdg-notification\" />\n<parameter name=\"version\" value=\"777\" />\n<parameter name=\"mode\" value=\"sync\" />\n<!--<parameter name=\"version\" value=\"sync\" />-->\n<!--<parameter name=\"mode\" value=\"777\" />-->\n<parameter name=\"responsePrefix\" value=\"restapi-result\"/>\n",\r
3829         "comments": "",\r
3830         "outputs": 1,\r
3831         "x": 1264.9166870117188,\r
3832         "y": 2749.3335037231445,\r
3833         "z": "d12a8890.0a99a",\r
3834         "wires": [\r
3835             []\r
3836         ]\r
3837     },\r
3838     {\r
3839         "id": "8394d0d1.93103",\r
3840         "type": "execute",\r
3841         "name": "execute RestconfDiscoveryNode establishPersistentConnection",\r
3842         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfdiscovery.RestconfDiscoveryNode' method='establishPersistentSseConnection' >\n<parameter name=\"subscriberId\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url`\" />\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cll-subscribe-notification.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/operations/ietf-subscribed-notifications:establish-subscription'`\" />\n<parameter name=\"sseConnectURL\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/streams/yang-push-json'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.password`\" />\n<parameter name=\"dirPath\" value=\"/opt/sdnc/restconfapi/yang/notification\" />\n<parameter name=\"format\" value=\"json\" />\n<parameter name=\"httpMethod\" value=\"get\" />\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=x-ik2ps4ikvzupbx0486ft1ebzs7rt85futh9ho6eofy3wjsap7wqktemlqm4bbsmnar3vrtbyrzukbv5itd6m1cftldpjarnyle3sdcqq9hftc4lebz464b5ffxmlbvg9\" />\n<parameter name=\"module\" value=\"GENERIC-RESOURCE-API\" />\n<parameter name=\"rpc\" value=\"cll-vnf-topology-operation-cll-callbackdg-notification\" />\n<parameter name=\"version\" value=\"777\" />\n<parameter name=\"mode\" value=\"sync\" />\n<!--<parameter name=\"version\" value=\"sync\" />-->\n<!--<parameter name=\"mode\" value=\"777\" />-->\n<parameter name=\"responsePrefix\" value=\"notification-get-result\"/>\n",\r
3843         "comments": "",\r
3844         "outputs": 1,\r
3845         "x": 1294.9166870117188,\r
3846         "y": 2811.3335037231445,\r
3847         "z": "d12a8890.0a99a",\r
3848         "wires": [\r
3849             []\r
3850         ]\r
3851     },\r
3852     {\r
3853         "id": "4fcc44c7.7479d4",\r
3854         "type": "set",\r
3855         "name": "unset ethernet-srv-end-points-list",\r
3856         "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
3857         "comments": "",\r
3858         "x": 688.3333129882812,\r
3859         "y": 1358.1667556762695,\r
3860         "z": "d12a8890.0a99a",\r
3861         "wires": []\r
3862     },\r
3863     {\r
3864         "id": "462f3353.3aa76c",\r
3865         "type": "switchNode",\r
3866         "name": "switch conn type",\r
3867         "xml": "<switch test=\"`$tmp.aai.connectivity.vpn-type`\">\n\n",\r
3868         "comments": "",\r
3869         "outputs": 1,\r
3870         "x": 229.3333282470703,\r
3871         "y": 1069.166633605957,\r
3872         "z": "d12a8890.0a99a",\r
3873         "wires": [\r
3874             [\r
3875                 "66788e31.cd8e5",\r
3876                 "15c226b1.2f2f21"\r
3877             ]\r
3878         ]\r
3879     },\r
3880     {\r
3881         "id": "15c226b1.2f2f21",\r
3882         "type": "outcome",\r
3883         "name": "root",\r
3884         "xml": "<outcome value='root'>\n",\r
3885         "comments": "",\r
3886         "outputs": 1,\r
3887         "x": 414.33331298828125,\r
3888         "y": 1243.166633605957,\r
3889         "z": "d12a8890.0a99a",\r
3890         "wires": [\r
3891             [\r
3892                 "b87c2610.4dcfe8"\r
3893             ]\r
3894         ]\r
3895     },\r
3896     {\r
3897         "id": "66788e31.cd8e5",\r
3898         "type": "outcome",\r
3899         "name": "leaf",\r
3900         "xml": "<outcome value='leaf'>\n",\r
3901         "comments": "",\r
3902         "outputs": 1,\r
3903         "x": 417.33331298828125,\r
3904         "y": 1198.166633605957,\r
3905         "z": "d12a8890.0a99a",\r
3906         "wires": [\r
3907             [\r
3908                 "b87c2610.4dcfe8"\r
3909             ]\r
3910         ]\r
3911     }\r
3912 ]