795a74160d84f89bbdcea89890cab46e08252c8a
[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": "2395bbe0.4b8ec4",\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": 361,\r
10         "y": 348,\r
11         "z": "ed7c1675.7a56b",\r
12         "wires": [\r
13             [\r
14                 "7a4b4c32.339f0c",\r
15                 "476b558f.0cf4e4",\r
16                 "c5f863d4.faa76"\r
17             ]\r
18         ]\r
19     },\r
20     {\r
21         "id": "7a4b4c32.339f0c",\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": 549,\r
28         "y": 361,\r
29         "z": "ed7c1675.7a56b",\r
30         "wires": [\r
31             [\r
32                 "477b4d49.40f0ec"\r
33             ]\r
34         ]\r
35     },\r
36     {\r
37         "id": "476b558f.0cf4e4",\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": 549.490966796875,\r
44         "y": 406.57403564453125,\r
45         "z": "ed7c1675.7a56b",\r
46         "wires": [\r
47             [\r
48                 "9391f816.87a258"\r
49             ]\r
50         ]\r
51     },\r
52     {\r
53         "id": "c5f863d4.faa76",\r
54         "type": "failure",\r
55         "name": "failure",\r
56         "xml": "<outcome value='failure'>\n",\r
57         "comments": "",\r
58         "outputs": 1,\r
59         "x": 547,\r
60         "y": 450,\r
61         "z": "ed7c1675.7a56b",\r
62         "wires": [\r
63             [\r
64                 "7e716c79.c4ee54"\r
65             ]\r
66         ]\r
67     },\r
68     {\r
69         "id": "477b4d49.40f0ec",\r
70         "type": "block",\r
71         "name": "block : atomic",\r
72         "xml": "<block atomic=\"true\">",\r
73         "atomic": "true",\r
74         "outputs": 1,\r
75         "x": 722,\r
76         "y": 359,\r
77         "z": "ed7c1675.7a56b",\r
78         "wires": [\r
79             [\r
80                 "de48ad25.e4a568"\r
81             ]\r
82         ]\r
83     },\r
84     {\r
85         "id": "9391f816.87a258",\r
86         "type": "returnFailure",\r
87         "name": "return failure",\r
88         "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
89         "comments": "",\r
90         "x": 712.0623779296875,\r
91         "y": 406.8597717285156,\r
92         "z": "ed7c1675.7a56b",\r
93         "wires": []\r
94     },\r
95     {\r
96         "id": "7e716c79.c4ee54",\r
97         "type": "returnFailure",\r
98         "name": "return failure",\r
99         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
100         "comments": "",\r
101         "x": 714,\r
102         "y": 449,\r
103         "z": "ed7c1675.7a56b",\r
104         "wires": []\r
105     },\r
106     {\r
107         "id": "de48ad25.e4a568",\r
108         "type": "for",\r
109         "name": "for vpnidx in all-vpn-bindings",\r
110         "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",\r
111         "comments": "",\r
112         "outputs": 1,\r
113         "x": 951,\r
114         "y": 360,\r
115         "z": "ed7c1675.7a56b",\r
116         "wires": [\r
117             [\r
118                 "1fd8993c.e83297"\r
119             ]\r
120         ]\r
121     },\r
122     {\r
123         "id": "1fd8993c.e83297",\r
124         "type": "block",\r
125         "name": "block : atomic",\r
126         "xml": "<block atomic='true'>",\r
127         "atomic": "true",\r
128         "comments": "",\r
129         "outputs": 1,\r
130         "x": 1166,\r
131         "y": 361,\r
132         "z": "ed7c1675.7a56b",\r
133         "wires": [\r
134             [\r
135                 "33755ee2.127952"\r
136             ]\r
137         ]\r
138     },\r
139     {\r
140         "id": "edb565df.2fd588",\r
141         "type": "switchNode",\r
142         "name": "switch vpnuuid is for this slice",\r
143         "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
144         "comments": "",\r
145         "outputs": 1,\r
146         "x": 1420,\r
147         "y": 283,\r
148         "z": "ed7c1675.7a56b",\r
149         "wires": [\r
150             [\r
151                 "d9f77b89.2576a8",\r
152                 "d1a41641.7e8658"\r
153             ]\r
154         ]\r
155     },\r
156     {\r
157         "id": "d9f77b89.2576a8",\r
158         "type": "outcomeTrue",\r
159         "name": "true",\r
160         "xml": "<outcome value='true'>\n",\r
161         "comments": "",\r
162         "outputs": 1,\r
163         "x": 1637,\r
164         "y": 262,\r
165         "z": "ed7c1675.7a56b",\r
166         "wires": [\r
167             [\r
168                 "33755ee2.127952"\r
169             ]\r
170         ]\r
171     },\r
172     {\r
173         "id": "d1a41641.7e8658",\r
174         "type": "outcomeFalse",\r
175         "name": "false",\r
176         "xml": "<outcome value='false'>\n",\r
177         "comments": "",\r
178         "outputs": 1,\r
179         "x": 1637,\r
180         "y": 311,\r
181         "z": "ed7c1675.7a56b",\r
182         "wires": [\r
183             []\r
184         ]\r
185     },\r
186     {\r
187         "id": "33755ee2.127952",\r
188         "type": "block",\r
189         "name": "block : atomic",\r
190         "xml": "<block atomic='true'>",\r
191         "atomic": "true",\r
192         "comments": "",\r
193         "outputs": 1,\r
194         "x": 1821,\r
195         "y": 348,\r
196         "z": "ed7c1675.7a56b",\r
197         "wires": [\r
198             [\r
199                 "9647ef19.c8c25",\r
200                 "b3842f71.731b38",\r
201                 "ca01ca51.23bb98"\r
202             ]\r
203         ]\r
204     },\r
205     {\r
206         "id": "48081245.456c3c",\r
207         "type": "dgstart",\r
208         "name": "DGSTART",\r
209         "outputs": 1,\r
210         "x": 180,\r
211         "y": 89,\r
212         "z": "ed7c1675.7a56b",\r
213         "wires": [\r
214             [\r
215                 "226f6982.562f5e"\r
216             ]\r
217         ]\r
218     },\r
219     {\r
220         "id": "226f6982.562f5e",\r
221         "type": "service-logic",\r
222         "name": "GENERIC-RESOURCE-API ${project.version}",\r
223         "module": "GENERIC-RESOURCE-API",\r
224         "version": "${project.version}",\r
225         "comments": "",\r
226         "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
227         "outputs": 1,\r
228         "x": 464.2856903076172,\r
229         "y": 150.23810863494873,\r
230         "z": "ed7c1675.7a56b",\r
231         "wires": [\r
232             [\r
233                 "f533e2ec.f849f"\r
234             ]\r
235         ]\r
236     },\r
237     {\r
238         "id": "f533e2ec.f849f",\r
239         "type": "method",\r
240         "name": "method cll-vnf-topology-operation-cll-F1-Activate",\r
241         "xml": "<method rpc='cll-vnf-topology-operation-cll-F1-Activate' mode='sync'>\n",\r
242         "comments": "",\r
243         "outputs": 1,\r
244         "x": 470.42860412597656,\r
245         "y": 235.00003051757812,\r
246         "z": "ed7c1675.7a56b",\r
247         "wires": [\r
248             [\r
249                 "15848be5.af4ba4"\r
250             ]\r
251         ]\r
252     },\r
253     {\r
254         "id": "15848be5.af4ba4",\r
255         "type": "block",\r
256         "name": "block : atomic",\r
257         "xml": "<block atomic=\"true\">",\r
258         "atomic": "true",\r
259         "outputs": 1,\r
260         "x": 780.238037109375,\r
261         "y": 226.66668701171875,\r
262         "z": "ed7c1675.7a56b",\r
263         "wires": [\r
264             [\r
265                 "2395bbe0.4b8ec4",\r
266                 "5c62cbf5.952894",\r
267                 "4957906b.cb3908",\r
268                 "25a3d5e5.55ea62",\r
269                 "624a734b.81957c"\r
270             ]\r
271         ]\r
272     },\r
273     {\r
274         "id": "9647ef19.c8c25",\r
275         "type": "set",\r
276         "name": "set tmp.aai.vpn-binding",\r
277         "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].`\" />\n",\r
278         "comments": "",\r
279         "x": 2038,\r
280         "y": 286,\r
281         "z": "ed7c1675.7a56b",\r
282         "wires": []\r
283     },\r
284     {\r
285         "id": "927e2807.47e1",\r
286         "type": "set",\r
287         "name": "set attachment_param for OTN A",\r
288         "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
289         "comments": "",\r
290         "x": 4207,\r
291         "y": 172,\r
292         "z": "ed7c1675.7a56b",\r
293         "wires": []\r
294     },\r
295     {\r
296         "id": "71f8cbde.7b70ec",\r
297         "type": "execute",\r
298         "name": "execute RestApiCallNode Create OTN tunnel with token",\r
299         "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
300         "comments": "",\r
301         "outputs": 1,\r
302         "x": 4288,\r
303         "y": 487,\r
304         "z": "ed7c1675.7a56b",\r
305         "wires": [\r
306             [\r
307                 "dca0592f.f2f0f8",\r
308                 "7abf945b.d3630c"\r
309             ]\r
310         ]\r
311     },\r
312     {\r
313         "id": "dca0592f.f2f0f8",\r
314         "type": "failure",\r
315         "name": "failure",\r
316         "xml": "<outcome value='failure'>\n",\r
317         "comments": "",\r
318         "outputs": 1,\r
319         "x": 4597.5,\r
320         "y": 456,\r
321         "z": "ed7c1675.7a56b",\r
322         "wires": [\r
323             [\r
324                 "4d6d008.1dd328"\r
325             ]\r
326         ]\r
327     },\r
328     {\r
329         "id": "7abf945b.d3630c",\r
330         "type": "success",\r
331         "name": "success",\r
332         "xml": "<outcome value='success'>\n",\r
333         "comments": "",\r
334         "outputs": 1,\r
335         "x": 4602.5,\r
336         "y": 521,\r
337         "z": "ed7c1675.7a56b",\r
338         "wires": [\r
339             [\r
340                 "6ddc3bc2.826894"\r
341             ]\r
342         ]\r
343     },\r
344     {\r
345         "id": "4d6d008.1dd328",\r
346         "type": "returnFailure",\r
347         "name": "return failure",\r
348         "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
349         "comments": "",\r
350         "x": 4773.5,\r
351         "y": 456,\r
352         "z": "ed7c1675.7a56b",\r
353         "wires": []\r
354     },\r
355     {\r
356         "id": "6ddc3bc2.826894",\r
357         "type": "block",\r
358         "name": "block : atomic",\r
359         "xml": "<block atomic=\"true\">",\r
360         "atomic": "true",\r
361         "comments": "",\r
362         "outputs": 1,\r
363         "x": 4769,\r
364         "y": 521,\r
365         "z": "ed7c1675.7a56b",\r
366         "wires": [\r
367             []\r
368         ]\r
369     },\r
370     {\r
371         "id": "639d74a6.1d8f04",\r
372         "type": "set",\r
373         "name": "set sotn_value",\r
374         "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
375         "comments": "",\r
376         "x": 4152.5,\r
377         "y": 741,\r
378         "z": "ed7c1675.7a56b",\r
379         "wires": []\r
380     },\r
381     {\r
382         "id": "d9456183.6b2d68",\r
383         "type": "execute",\r
384         "name": "execute RestApiCallNode Create ethernet Service without token",\r
385         "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
386         "comments": "",\r
387         "outputs": 1,\r
388         "x": 4306.5,\r
389         "y": 789,\r
390         "z": "ed7c1675.7a56b",\r
391         "wires": [\r
392             [\r
393                 "3efbdf9b.54682",\r
394                 "243cc169.72316e"\r
395             ]\r
396         ]\r
397     },\r
398     {\r
399         "id": "3efbdf9b.54682",\r
400         "type": "failure",\r
401         "name": "failure",\r
402         "xml": "<outcome value='failure'>\n",\r
403         "comments": "",\r
404         "outputs": 1,\r
405         "x": 4652,\r
406         "y": 770,\r
407         "z": "ed7c1675.7a56b",\r
408         "wires": [\r
409             [\r
410                 "ba970949.4ab53"\r
411             ]\r
412         ]\r
413     },\r
414     {\r
415         "id": "243cc169.72316e",\r
416         "type": "success",\r
417         "name": "success",\r
418         "xml": "<outcome value='success'>\n",\r
419         "comments": "",\r
420         "outputs": 1,\r
421         "x": 4656,\r
422         "y": 810,\r
423         "z": "ed7c1675.7a56b",\r
424         "wires": [\r
425             [\r
426                 "4891a43f.02e58c"\r
427             ]\r
428         ]\r
429     },\r
430     {\r
431         "id": "ba970949.4ab53",\r
432         "type": "returnFailure",\r
433         "name": "return failure",\r
434         "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
435         "comments": "",\r
436         "x": 4810,\r
437         "y": 770,\r
438         "z": "ed7c1675.7a56b",\r
439         "wires": []\r
440     },\r
441     {\r
442         "id": "4891a43f.02e58c",\r
443         "type": "block",\r
444         "name": "block : atomic",\r
445         "xml": "<block atomic=\"true\">",\r
446         "atomic": "true",\r
447         "comments": "",\r
448         "outputs": 1,\r
449         "x": 4813.5,\r
450         "y": 810,\r
451         "z": "ed7c1675.7a56b",\r
452         "wires": [\r
453             [\r
454                 "388beb56.7c7234",\r
455                 "eb334e0f.b54c3"\r
456             ]\r
457         ]\r
458     },\r
459     {\r
460         "id": "388beb56.7c7234",\r
461         "type": "save",\r
462         "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",\r
463         "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
464         "comments": "",\r
465         "outputs": 1,\r
466         "x": 5144,\r
467         "y": 775,\r
468         "z": "ed7c1675.7a56b",\r
469         "wires": [\r
470             []\r
471         ]\r
472     },\r
473     {\r
474         "id": "d196af8c.f36ae8",\r
475         "type": "comment",\r
476         "name": "TODO: FIXME",\r
477         "info": "use proper vpn-binding id and connectivity id\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",\r
478         "comments": "",\r
479         "x": 5008,\r
480         "y": 734,\r
481         "z": "ed7c1675.7a56b",\r
482         "wires": []\r
483     },\r
484     {\r
485         "id": "eb334e0f.b54c3",\r
486         "type": "save",\r
487         "name": "update connectivity resource in AAI",\r
488         "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
489         "comments": "",\r
490         "outputs": 1,\r
491         "x": 5071,\r
492         "y": 821,\r
493         "z": "ed7c1675.7a56b",\r
494         "wires": [\r
495             []\r
496         ]\r
497     },\r
498     {\r
499         "id": "51361643.15e97",\r
500         "type": "set",\r
501         "name": "set pnf-name",\r
502         "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
503         "comments": "",\r
504         "x": 4145,\r
505         "y": 220,\r
506         "z": "ed7c1675.7a56b",\r
507         "wires": []\r
508     },\r
509     {\r
510         "id": "7074e291.428a74",\r
511         "type": "get-resource",\r
512         "name": "get-resource src pnf",\r
513         "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
514         "comments": "",\r
515         "outputs": 1,\r
516         "x": 4171,\r
517         "y": 337,\r
518         "z": "ed7c1675.7a56b",\r
519         "wires": [\r
520             [\r
521                 "fd9f25cd.b6ab9",\r
522                 "13f82e43.b47822",\r
523                 "a1ba843c.92fa78"\r
524             ]\r
525         ]\r
526     },\r
527     {\r
528         "id": "fd9f25cd.b6ab9",\r
529         "type": "success",\r
530         "name": "success",\r
531         "xml": "<outcome value='success'>\n",\r
532         "comments": "",\r
533         "outputs": 1,\r
534         "x": 4366.5001220703125,\r
535         "y": 289,\r
536         "z": "ed7c1675.7a56b",\r
537         "wires": [\r
538             [\r
539                 "10d11922.59185f"\r
540             ]\r
541         ]\r
542     },\r
543     {\r
544         "id": "13f82e43.b47822",\r
545         "type": "not-found",\r
546         "name": "not-found",\r
547         "xml": "<outcome value='not-found'>\n",\r
548         "comments": "",\r
549         "outputs": 1,\r
550         "x": 4358.5001220703125,\r
551         "y": 344,\r
552         "z": "ed7c1675.7a56b",\r
553         "wires": [\r
554             [\r
555                 "19650434.8dad4c"\r
556             ]\r
557         ]\r
558     },\r
559     {\r
560         "id": "10d11922.59185f",\r
561         "type": "block",\r
562         "name": "block",\r
563         "xml": "<block>\n",\r
564         "atomic": "false",\r
565         "comments": "",\r
566         "outputs": 1,\r
567         "x": 4510.8824462890625,\r
568         "y": 288.6556701660156,\r
569         "z": "ed7c1675.7a56b",\r
570         "wires": [\r
571             [\r
572                 "777ae9c7.6a278"\r
573             ]\r
574         ]\r
575     },\r
576     {\r
577         "id": "391ce87d.ba3df8",\r
578         "type": "outcome",\r
579         "name": "esr-thirdparty-sdnc",\r
580         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
581         "comments": "",\r
582         "outputs": 1,\r
583         "x": 5093,\r
584         "y": 291,\r
585         "z": "ed7c1675.7a56b",\r
586         "wires": [\r
587             [\r
588                 "65b820ac.17e0d"\r
589             ]\r
590         ]\r
591     },\r
592     {\r
593         "id": "777ae9c7.6a278",\r
594         "type": "for",\r
595         "name": "for each relationship",\r
596         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
597         "comments": "",\r
598         "outputs": 1,\r
599         "x": 4695,\r
600         "y": 287,\r
601         "z": "ed7c1675.7a56b",\r
602         "wires": [\r
603             [\r
604                 "f4f1a808.b22bc"\r
605             ]\r
606         ]\r
607     },\r
608     {\r
609         "id": "f4f1a808.b22bc",\r
610         "type": "switchNode",\r
611         "name": "switch related-to",\r
612         "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
613         "comments": "",\r
614         "outputs": 1,\r
615         "x": 4890,\r
616         "y": 287,\r
617         "z": "ed7c1675.7a56b",\r
618         "wires": [\r
619             [\r
620                 "391ce87d.ba3df8"\r
621             ]\r
622         ]\r
623     },\r
624     {\r
625         "id": "a1ba843c.92fa78",\r
626         "type": "other",\r
627         "name": "other",\r
628         "xml": "<outcome value='Other'>\n",\r
629         "comments": "",\r
630         "outputs": 1,\r
631         "x": 4363.5001220703125,\r
632         "y": 401,\r
633         "z": "ed7c1675.7a56b",\r
634         "wires": [\r
635             [\r
636                 "a6d9e4b5.ea0fd8"\r
637             ]\r
638         ]\r
639     },\r
640     {\r
641         "id": "a6d9e4b5.ea0fd8",\r
642         "type": "returnFailure",\r
643         "name": "return failure",\r
644         "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
645         "comments": "",\r
646         "x": 4515.5001220703125,\r
647         "y": 402,\r
648         "z": "ed7c1675.7a56b",\r
649         "wires": []\r
650     },\r
651     {\r
652         "id": "19650434.8dad4c",\r
653         "type": "returnFailure",\r
654         "name": "return failure",\r
655         "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
656         "comments": "",\r
657         "x": 4526.5001220703125,\r
658         "y": 345,\r
659         "z": "ed7c1675.7a56b",\r
660         "wires": []\r
661     },\r
662     {\r
663         "id": "5d042a1f.c8fb44",\r
664         "type": "execute",\r
665         "name": "get esr-thirdparty-sdnc",\r
666         "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
667         "comments": "",\r
668         "outputs": 1,\r
669         "x": 5478,\r
670         "y": 304,\r
671         "z": "ed7c1675.7a56b",\r
672         "wires": [\r
673             [\r
674                 "8c0f87c1.0cfa88",\r
675                 "96b96977.b4fed8",\r
676                 "6ce026da.737ea"\r
677             ]\r
678         ]\r
679     },\r
680     {\r
681         "id": "65b820ac.17e0d",\r
682         "type": "block",\r
683         "name": "block : atomic",\r
684         "xml": "<block atomic=\"true\">",\r
685         "atomic": "true",\r
686         "outputs": 1,\r
687         "x": 5272,\r
688         "y": 291,\r
689         "z": "ed7c1675.7a56b",\r
690         "wires": [\r
691             [\r
692                 "1918c44c.117ae4",\r
693                 "5d042a1f.c8fb44"\r
694             ]\r
695         ]\r
696     },\r
697     {\r
698         "id": "1918c44c.117ae4",\r
699         "type": "set",\r
700         "name": "set esr-thirdparty-sdnc domainA id",\r
701         "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
702         "comments": "",\r
703         "x": 5508,\r
704         "y": 252,\r
705         "z": "ed7c1675.7a56b",\r
706         "wires": []\r
707     },\r
708     {\r
709         "id": "8c0f87c1.0cfa88",\r
710         "type": "success",\r
711         "name": "success",\r
712         "xml": "<outcome value='success'>\n",\r
713         "comments": "",\r
714         "outputs": 1,\r
715         "x": 5688,\r
716         "y": 295,\r
717         "z": "ed7c1675.7a56b",\r
718         "wires": [\r
719             [\r
720                 "e1aae278.d9aab"\r
721             ]\r
722         ]\r
723     },\r
724     {\r
725         "id": "96b96977.b4fed8",\r
726         "type": "not-found",\r
727         "name": "not-found",\r
728         "xml": "<outcome value='not-found'>\n",\r
729         "comments": "",\r
730         "outputs": 1,\r
731         "x": 5680,\r
732         "y": 350,\r
733         "z": "ed7c1675.7a56b",\r
734         "wires": [\r
735             [\r
736                 "a74826f7.daef6"\r
737             ]\r
738         ]\r
739     },\r
740     {\r
741         "id": "6ce026da.737ea",\r
742         "type": "other",\r
743         "name": "other",\r
744         "xml": "<outcome value='Other'>\n",\r
745         "comments": "",\r
746         "outputs": 1,\r
747         "x": 5685,\r
748         "y": 407,\r
749         "z": "ed7c1675.7a56b",\r
750         "wires": [\r
751             [\r
752                 "80c7718d.f0881"\r
753             ]\r
754         ]\r
755     },\r
756     {\r
757         "id": "80c7718d.f0881",\r
758         "type": "returnFailure",\r
759         "name": "return failure",\r
760         "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
761         "comments": "",\r
762         "x": 5837,\r
763         "y": 408,\r
764         "z": "ed7c1675.7a56b",\r
765         "wires": []\r
766     },\r
767     {\r
768         "id": "a74826f7.daef6",\r
769         "type": "returnFailure",\r
770         "name": "return failure",\r
771         "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
772         "comments": "",\r
773         "x": 5848,\r
774         "y": 353,\r
775         "z": "ed7c1675.7a56b",\r
776         "wires": []\r
777     },\r
778     {\r
779         "id": "e1aae278.d9aab",\r
780         "type": "block",\r
781         "name": "block",\r
782         "xml": "<block>\n",\r
783         "atomic": "false",\r
784         "comments": "",\r
785         "outputs": 1,\r
786         "x": 5832.38232421875,\r
787         "y": 292.6556701660156,\r
788         "z": "ed7c1675.7a56b",\r
789         "wires": [\r
790             [\r
791                 "b6fb5857.56d2c"\r
792             ]\r
793         ]\r
794     },\r
795     {\r
796         "id": "b6fb5857.56d2c",\r
797         "type": "set",\r
798         "name": "set controller domainA data",\r
799         "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
800         "comments": "",\r
801         "x": 6047,\r
802         "y": 289,\r
803         "z": "ed7c1675.7a56b",\r
804         "wires": []\r
805     },\r
806     {\r
807         "id": "881ac3d.2b73cc",\r
808         "type": "set",\r
809         "name": "set attachment_param for OTN B",\r
810         "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
811         "comments": "",\r
812         "x": 3614,\r
813         "y": 1629,\r
814         "z": "ed7c1675.7a56b",\r
815         "wires": []\r
816     },\r
817     {\r
818         "id": "f942fe34.857118",\r
819         "type": "execute",\r
820         "name": "execute RestApiCallNode Create OTN tunnel with token",\r
821         "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
822         "comments": "",\r
823         "outputs": 1,\r
824         "x": 3677,\r
825         "y": 1958,\r
826         "z": "ed7c1675.7a56b",\r
827         "wires": [\r
828             [\r
829                 "d6aba815.0c0b98",\r
830                 "fb15fc4f.27732"\r
831             ]\r
832         ]\r
833     },\r
834     {\r
835         "id": "d6aba815.0c0b98",\r
836         "type": "failure",\r
837         "name": "failure",\r
838         "xml": "<outcome value='failure'>\n",\r
839         "comments": "",\r
840         "outputs": 1,\r
841         "x": 3972.5,\r
842         "y": 1925,\r
843         "z": "ed7c1675.7a56b",\r
844         "wires": [\r
845             [\r
846                 "f7e9b7f6.cb6cf8"\r
847             ]\r
848         ]\r
849     },\r
850     {\r
851         "id": "fb15fc4f.27732",\r
852         "type": "success",\r
853         "name": "success",\r
854         "xml": "<outcome value='success'>\n",\r
855         "comments": "",\r
856         "outputs": 1,\r
857         "x": 3977.5,\r
858         "y": 1990,\r
859         "z": "ed7c1675.7a56b",\r
860         "wires": [\r
861             [\r
862                 "e7e93f9f.05e6f8"\r
863             ]\r
864         ]\r
865     },\r
866     {\r
867         "id": "f7e9b7f6.cb6cf8",\r
868         "type": "returnFailure",\r
869         "name": "return failure",\r
870         "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
871         "comments": "",\r
872         "x": 4140.5,\r
873         "y": 1925,\r
874         "z": "ed7c1675.7a56b",\r
875         "wires": []\r
876     },\r
877     {\r
878         "id": "e7e93f9f.05e6f8",\r
879         "type": "block",\r
880         "name": "block : atomic",\r
881         "xml": "<block atomic=\"true\">",\r
882         "atomic": "true",\r
883         "comments": "",\r
884         "outputs": 1,\r
885         "x": 4151,\r
886         "y": 1990,\r
887         "z": "ed7c1675.7a56b",\r
888         "wires": [\r
889             []\r
890         ]\r
891     },\r
892     {\r
893         "id": "c6f7c9bc.a78ea8",\r
894         "type": "set",\r
895         "name": "set pnf-name",\r
896         "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
897         "comments": "",\r
898         "x": 3553,\r
899         "y": 1686,\r
900         "z": "ed7c1675.7a56b",\r
901         "wires": []\r
902     },\r
903     {\r
904         "id": "8f243ad6.97dd38",\r
905         "type": "get-resource",\r
906         "name": "get-resource dst pnf",\r
907         "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
908         "comments": "",\r
909         "outputs": 1,\r
910         "x": 3573,\r
911         "y": 1783,\r
912         "z": "ed7c1675.7a56b",\r
913         "wires": [\r
914             [\r
915                 "a8e6c84d.0f237",\r
916                 "3ee8ddc2.b7378a",\r
917                 "311698c.6883b68"\r
918             ]\r
919         ]\r
920     },\r
921     {\r
922         "id": "a8e6c84d.0f237",\r
923         "type": "success",\r
924         "name": "success",\r
925         "xml": "<outcome value='success'>\n",\r
926         "comments": "",\r
927         "outputs": 1,\r
928         "x": 3775.5001220703125,\r
929         "y": 1736,\r
930         "z": "ed7c1675.7a56b",\r
931         "wires": [\r
932             [\r
933                 "6ef9124f.c91bc4"\r
934             ]\r
935         ]\r
936     },\r
937     {\r
938         "id": "3ee8ddc2.b7378a",\r
939         "type": "not-found",\r
940         "name": "not-found",\r
941         "xml": "<outcome value='not-found'>\n",\r
942         "comments": "",\r
943         "outputs": 1,\r
944         "x": 3767.5001220703125,\r
945         "y": 1791,\r
946         "z": "ed7c1675.7a56b",\r
947         "wires": [\r
948             [\r
949                 "9b01e4a.2bf7598"\r
950             ]\r
951         ]\r
952     },\r
953     {\r
954         "id": "6ef9124f.c91bc4",\r
955         "type": "block",\r
956         "name": "block",\r
957         "xml": "<block>\n",\r
958         "atomic": "false",\r
959         "comments": "",\r
960         "outputs": 1,\r
961         "x": 3919.8824462890625,\r
962         "y": 1733.6556701660156,\r
963         "z": "ed7c1675.7a56b",\r
964         "wires": [\r
965             [\r
966                 "8bd570a1.9b5908"\r
967             ]\r
968         ]\r
969     },\r
970     {\r
971         "id": "8bd570a1.9b5908",\r
972         "type": "for",\r
973         "name": "for each relationship",\r
974         "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",\r
975         "comments": "",\r
976         "outputs": 1,\r
977         "x": 4104,\r
978         "y": 1748,\r
979         "z": "ed7c1675.7a56b",\r
980         "wires": [\r
981             [\r
982                 "5951fb7a.778dbc"\r
983             ]\r
984         ]\r
985     },\r
986     {\r
987         "id": "311698c.6883b68",\r
988         "type": "other",\r
989         "name": "other",\r
990         "xml": "<outcome value='Other'>\n",\r
991         "comments": "",\r
992         "outputs": 1,\r
993         "x": 3772.5001220703125,\r
994         "y": 1848,\r
995         "z": "ed7c1675.7a56b",\r
996         "wires": [\r
997             [\r
998                 "25fe1469.5e13bc"\r
999             ]\r
1000         ]\r
1001     },\r
1002     {\r
1003         "id": "25fe1469.5e13bc",\r
1004         "type": "returnFailure",\r
1005         "name": "return failure",\r
1006         "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
1007         "comments": "",\r
1008         "x": 3924.5001220703125,\r
1009         "y": 1849,\r
1010         "z": "ed7c1675.7a56b",\r
1011         "wires": []\r
1012     },\r
1013     {\r
1014         "id": "9b01e4a.2bf7598",\r
1015         "type": "returnFailure",\r
1016         "name": "return failure",\r
1017         "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
1018         "comments": "",\r
1019         "x": 3935.5001220703125,\r
1020         "y": 1794,\r
1021         "z": "ed7c1675.7a56b",\r
1022         "wires": []\r
1023     },\r
1024     {\r
1025         "id": "a9a3100d.7e9a38",\r
1026         "type": "outcome",\r
1027         "name": "esr-thirdparty-sdnc",\r
1028         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
1029         "comments": "",\r
1030         "outputs": 1,\r
1031         "x": 4502,\r
1032         "y": 1752,\r
1033         "z": "ed7c1675.7a56b",\r
1034         "wires": [\r
1035             [\r
1036                 "15a6f6cf.b80121"\r
1037             ]\r
1038         ]\r
1039     },\r
1040     {\r
1041         "id": "5951fb7a.778dbc",\r
1042         "type": "switchNode",\r
1043         "name": "switch related-to",\r
1044         "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",\r
1045         "comments": "",\r
1046         "outputs": 1,\r
1047         "x": 4299,\r
1048         "y": 1748,\r
1049         "z": "ed7c1675.7a56b",\r
1050         "wires": [\r
1051             [\r
1052                 "a9a3100d.7e9a38"\r
1053             ]\r
1054         ]\r
1055     },\r
1056     {\r
1057         "id": "b462757e.f97cf",\r
1058         "type": "execute",\r
1059         "name": "get esr-thirdparty-sdnc",\r
1060         "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
1061         "comments": "",\r
1062         "outputs": 1,\r
1063         "x": 4887,\r
1064         "y": 1751,\r
1065         "z": "ed7c1675.7a56b",\r
1066         "wires": [\r
1067             [\r
1068                 "f548cd5f.cf97e8",\r
1069                 "7bf2c309.936484",\r
1070                 "37200156.6e45ae"\r
1071             ]\r
1072         ]\r
1073     },\r
1074     {\r
1075         "id": "15a6f6cf.b80121",\r
1076         "type": "block",\r
1077         "name": "block : atomic",\r
1078         "xml": "<block atomic=\"true\">",\r
1079         "atomic": "true",\r
1080         "outputs": 1,\r
1081         "x": 4679,\r
1082         "y": 1744,\r
1083         "z": "ed7c1675.7a56b",\r
1084         "wires": [\r
1085             [\r
1086                 "24625031.3ccbb",\r
1087                 "b462757e.f97cf"\r
1088             ]\r
1089         ]\r
1090     },\r
1091     {\r
1092         "id": "24625031.3ccbb",\r
1093         "type": "set",\r
1094         "name": "set esr-thirdparty-sdnc domainB id",\r
1095         "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
1096         "comments": "",\r
1097         "x": 4917,\r
1098         "y": 1699,\r
1099         "z": "ed7c1675.7a56b",\r
1100         "wires": []\r
1101     },\r
1102     {\r
1103         "id": "3717e4c0.7e91fc",\r
1104         "type": "returnFailure",\r
1105         "name": "return failure",\r
1106         "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
1107         "comments": "",\r
1108         "x": 5246,\r
1109         "y": 1855,\r
1110         "z": "ed7c1675.7a56b",\r
1111         "wires": []\r
1112     },\r
1113     {\r
1114         "id": "ebaf4cad.7f7ac",\r
1115         "type": "returnFailure",\r
1116         "name": "return failure",\r
1117         "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
1118         "comments": "",\r
1119         "x": 5257,\r
1120         "y": 1800,\r
1121         "z": "ed7c1675.7a56b",\r
1122         "wires": []\r
1123     },\r
1124     {\r
1125         "id": "95133e26.a5c4",\r
1126         "type": "block",\r
1127         "name": "block",\r
1128         "xml": "<block>\n",\r
1129         "atomic": "false",\r
1130         "comments": "",\r
1131         "outputs": 1,\r
1132         "x": 5241.38232421875,\r
1133         "y": 1739.6556701660156,\r
1134         "z": "ed7c1675.7a56b",\r
1135         "wires": [\r
1136             [\r
1137                 "74fa69d9.12322"\r
1138             ]\r
1139         ]\r
1140     },\r
1141     {\r
1142         "id": "74fa69d9.12322",\r
1143         "type": "set",\r
1144         "name": "set controller domainB data",\r
1145         "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
1146         "comments": "",\r
1147         "x": 5456,\r
1148         "y": 1736,\r
1149         "z": "ed7c1675.7a56b",\r
1150         "wires": []\r
1151     },\r
1152     {\r
1153         "id": "f548cd5f.cf97e8",\r
1154         "type": "success",\r
1155         "name": "success",\r
1156         "xml": "<outcome value='success'>\n",\r
1157         "comments": "",\r
1158         "outputs": 1,\r
1159         "x": 5097,\r
1160         "y": 1742,\r
1161         "z": "ed7c1675.7a56b",\r
1162         "wires": [\r
1163             [\r
1164                 "95133e26.a5c4"\r
1165             ]\r
1166         ]\r
1167     },\r
1168     {\r
1169         "id": "7bf2c309.936484",\r
1170         "type": "not-found",\r
1171         "name": "not-found",\r
1172         "xml": "<outcome value='not-found'>\n",\r
1173         "comments": "",\r
1174         "outputs": 1,\r
1175         "x": 5089,\r
1176         "y": 1797,\r
1177         "z": "ed7c1675.7a56b",\r
1178         "wires": [\r
1179             [\r
1180                 "ebaf4cad.7f7ac"\r
1181             ]\r
1182         ]\r
1183     },\r
1184     {\r
1185         "id": "37200156.6e45ae",\r
1186         "type": "other",\r
1187         "name": "other",\r
1188         "xml": "<outcome value='Other'>\n",\r
1189         "comments": "",\r
1190         "outputs": 1,\r
1191         "x": 5094,\r
1192         "y": 1854,\r
1193         "z": "ed7c1675.7a56b",\r
1194         "wires": [\r
1195             [\r
1196                 "3717e4c0.7e91fc"\r
1197             ]\r
1198         ]\r
1199     },\r
1200     {\r
1201         "id": "4573661e.19551",\r
1202         "type": "switchNode",\r
1203         "name": "switch vpn-binding has dst-access-ltp",\r
1204         "xml": "<switch test='`$tmp.aai.vpn-binding.dst-access-ltp-id`'>\n",\r
1205         "comments": "",\r
1206         "outputs": 1,\r
1207         "x": 3128,\r
1208         "y": 700,\r
1209         "z": "ed7c1675.7a56b",\r
1210         "wires": [\r
1211             [\r
1212                 "e3a931ba.d41978",\r
1213                 "cce98769.66d2f"\r
1214             ]\r
1215         ]\r
1216     },\r
1217     {\r
1218         "id": "e3a931ba.d41978",\r
1219         "type": "outcome",\r
1220         "name": "Null",\r
1221         "xml": "<outcome value=''>\n",\r
1222         "comments": "",\r
1223         "outputs": 1,\r
1224         "x": 3342,\r
1225         "y": 737,\r
1226         "z": "ed7c1675.7a56b",\r
1227         "wires": [\r
1228             [\r
1229                 "83f7a2a0.47e4a"\r
1230             ]\r
1231         ]\r
1232     },\r
1233     {\r
1234         "id": "cce98769.66d2f",\r
1235         "type": "other",\r
1236         "name": "other",\r
1237         "xml": "<outcome value='Other'>\n",\r
1238         "comments": "",\r
1239         "outputs": 1,\r
1240         "x": 3344,\r
1241         "y": 675,\r
1242         "z": "ed7c1675.7a56b",\r
1243         "wires": [\r
1244             [\r
1245                 "a3a1c771.fa4dc8"\r
1246             ]\r
1247         ]\r
1248     },\r
1249     {\r
1250         "id": "83f7a2a0.47e4a",\r
1251         "type": "switchNode",\r
1252         "name": "switch vpn-binding has src-access-ltp",\r
1253         "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",\r
1254         "comments": "",\r
1255         "outputs": 1,\r
1256         "x": 2922,\r
1257         "y": 1980,\r
1258         "z": "ed7c1675.7a56b",\r
1259         "wires": [\r
1260             [\r
1261                 "b17cf12.c5b4e9",\r
1262                 "375f750c.523c3a"\r
1263             ]\r
1264         ]\r
1265     },\r
1266     {\r
1267         "id": "b17cf12.c5b4e9",\r
1268         "type": "outcome",\r
1269         "name": "Null",\r
1270         "xml": "<outcome value=''>\n",\r
1271         "comments": "",\r
1272         "outputs": 1,\r
1273         "x": 3175,\r
1274         "y": 2014,\r
1275         "z": "ed7c1675.7a56b",\r
1276         "wires": [\r
1277             [\r
1278                 "b574ded7.ea26d"\r
1279             ]\r
1280         ]\r
1281     },\r
1282     {\r
1283         "id": "375f750c.523c3a",\r
1284         "type": "other",\r
1285         "name": "other",\r
1286         "xml": "<outcome value='Other'>\n",\r
1287         "comments": "",\r
1288         "outputs": 1,\r
1289         "x": 3175,\r
1290         "y": 1958,\r
1291         "z": "ed7c1675.7a56b",\r
1292         "wires": [\r
1293             [\r
1294                 "3eeb971b.8e101"\r
1295             ]\r
1296         ]\r
1297     },\r
1298     {\r
1299         "id": "b574ded7.ea26d",\r
1300         "type": "returnFailure",\r
1301         "name": "return failure",\r
1302         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1303         "comments": "",\r
1304         "x": 3326,\r
1305         "y": 2014,\r
1306         "z": "ed7c1675.7a56b",\r
1307         "wires": []\r
1308     },\r
1309     {\r
1310         "id": "27c7cf1.51adcb",\r
1311         "type": "set",\r
1312         "name": "set vpn-bindingA and connectivityA",\r
1313         "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
1314         "comments": "",\r
1315         "x": 4202,\r
1316         "y": 112,\r
1317         "z": "ed7c1675.7a56b",\r
1318         "wires": []\r
1319     },\r
1320     {\r
1321         "id": "e24e0a9e.a7db8",\r
1322         "type": "set",\r
1323         "name": "set vpn-bindingB and connectivityB",\r
1324         "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
1325         "comments": "",\r
1326         "x": 3610,\r
1327         "y": 1571,\r
1328         "z": "ed7c1675.7a56b",\r
1329         "wires": []\r
1330     },\r
1331     {\r
1332         "id": "6b14e6ca.05c05",\r
1333         "type": "block",\r
1334         "name": "block : atomic",\r
1335         "xml": "<block atomic=\"true\">",\r
1336         "atomic": "true",\r
1337         "comments": "",\r
1338         "outputs": 1,\r
1339         "x": 3893,\r
1340         "y": 369,\r
1341         "z": "ed7c1675.7a56b",\r
1342         "wires": [\r
1343             [\r
1344                 "27c7cf1.51adcb",\r
1345                 "927e2807.47e1",\r
1346                 "51361643.15e97",\r
1347                 "7074e291.428a74",\r
1348                 "71f8cbde.7b70ec",\r
1349                 "41c50446.37f104",\r
1350                 "e5881b35.2a2bf8",\r
1351                 "ceaa1f2c.697ad"\r
1352             ]\r
1353         ]\r
1354     },\r
1355     {\r
1356         "id": "3eeb971b.8e101",\r
1357         "type": "block",\r
1358         "name": "block : atomic",\r
1359         "xml": "<block atomic=\"true\">",\r
1360         "atomic": "true",\r
1361         "outputs": 1,\r
1362         "x": 3326,\r
1363         "y": 1957,\r
1364         "z": "ed7c1675.7a56b",\r
1365         "wires": [\r
1366             [\r
1367                 "e24e0a9e.a7db8",\r
1368                 "881ac3d.2b73cc",\r
1369                 "c6f7c9bc.a78ea8",\r
1370                 "8f243ad6.97dd38",\r
1371                 "f942fe34.857118",\r
1372                 "51d22e16.357968",\r
1373                 "8caebf31.dc028",\r
1374                 "6ccc1a6d.d89cd4"\r
1375             ]\r
1376         ]\r
1377     },\r
1378     {\r
1379         "id": "f87bcfd0.50c8c",\r
1380         "type": "set",\r
1381         "name": "set sotn_value",\r
1382         "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
1383         "comments": "",\r
1384         "x": 3564,\r
1385         "y": 2256,\r
1386         "z": "ed7c1675.7a56b",\r
1387         "wires": []\r
1388     },\r
1389     {\r
1390         "id": "ab6e58b.3c55528",\r
1391         "type": "execute",\r
1392         "name": "execute RestApiCallNode Create ethernet Service without token",\r
1393         "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
1394         "comments": "",\r
1395         "outputs": 1,\r
1396         "x": 3718,\r
1397         "y": 2304,\r
1398         "z": "ed7c1675.7a56b",\r
1399         "wires": [\r
1400             [\r
1401                 "eff9a19.776a7e",\r
1402                 "ddb717fb.d9a6d8"\r
1403             ]\r
1404         ]\r
1405     },\r
1406     {\r
1407         "id": "eff9a19.776a7e",\r
1408         "type": "failure",\r
1409         "name": "failure",\r
1410         "xml": "<outcome value='failure'>\n",\r
1411         "comments": "",\r
1412         "outputs": 1,\r
1413         "x": 4063.5,\r
1414         "y": 2285,\r
1415         "z": "ed7c1675.7a56b",\r
1416         "wires": [\r
1417             [\r
1418                 "59a2ea1f.0d3f14"\r
1419             ]\r
1420         ]\r
1421     },\r
1422     {\r
1423         "id": "ddb717fb.d9a6d8",\r
1424         "type": "success",\r
1425         "name": "success",\r
1426         "xml": "<outcome value='success'>\n",\r
1427         "comments": "",\r
1428         "outputs": 1,\r
1429         "x": 4067.5,\r
1430         "y": 2325,\r
1431         "z": "ed7c1675.7a56b",\r
1432         "wires": [\r
1433             [\r
1434                 "81b55fda.fb8e98"\r
1435             ]\r
1436         ]\r
1437     },\r
1438     {\r
1439         "id": "59a2ea1f.0d3f14",\r
1440         "type": "returnFailure",\r
1441         "name": "return failure",\r
1442         "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
1443         "comments": "",\r
1444         "x": 4221.5,\r
1445         "y": 2285,\r
1446         "z": "ed7c1675.7a56b",\r
1447         "wires": []\r
1448     },\r
1449     {\r
1450         "id": "81b55fda.fb8e98",\r
1451         "type": "block",\r
1452         "name": "block : atomic",\r
1453         "xml": "<block atomic=\"true\">",\r
1454         "atomic": "true",\r
1455         "comments": "",\r
1456         "outputs": 1,\r
1457         "x": 4225,\r
1458         "y": 2325,\r
1459         "z": "ed7c1675.7a56b",\r
1460         "wires": [\r
1461             [\r
1462                 "1bcc30a0.546397",\r
1463                 "1eaaa262.028326"\r
1464             ]\r
1465         ]\r
1466     },\r
1467     {\r
1468         "id": "1bcc30a0.546397",\r
1469         "type": "save",\r
1470         "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",\r
1471         "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
1472         "comments": "",\r
1473         "outputs": 1,\r
1474         "x": 4565,\r
1475         "y": 2324,\r
1476         "z": "ed7c1675.7a56b",\r
1477         "wires": [\r
1478             []\r
1479         ]\r
1480     },\r
1481     {\r
1482         "id": "68a7db89.5a89fc",\r
1483         "type": "comment",\r
1484         "name": "TODO: FIXME",\r
1485         "info": "use proper vpn-binding id and connectivity\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",\r
1486         "comments": "",\r
1487         "x": 4423,\r
1488         "y": 2282,\r
1489         "z": "ed7c1675.7a56b",\r
1490         "wires": []\r
1491     },\r
1492     {\r
1493         "id": "1eaaa262.028326",\r
1494         "type": "save",\r
1495         "name": "update connectivity resource in AAI",\r
1496         "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
1497         "comments": "",\r
1498         "outputs": 1,\r
1499         "x": 4494,\r
1500         "y": 2373,\r
1501         "z": "ed7c1675.7a56b",\r
1502         "wires": [\r
1503             []\r
1504         ]\r
1505     },\r
1506     {\r
1507         "id": "71f36947.989c9",\r
1508         "type": "set",\r
1509         "name": "set attachment_param (gfp-n) for OTN",\r
1510         "xml": "<set>\n<parameter name='gfp-n' value='`$tmp.aai.vpn-binding.route-distinguisher`' />\n",\r
1511         "comments": "",\r
1512         "x": 3119,\r
1513         "y": 640,\r
1514         "z": "ed7c1675.7a56b",\r
1515         "wires": []\r
1516     },\r
1517     {\r
1518         "id": "24508e5.8723172",\r
1519         "type": "comment",\r
1520         "name": "only dst ttp exists. No src",\r
1521         "info": "",\r
1522         "comments": "",\r
1523         "x": 3714,\r
1524         "y": 326,\r
1525         "z": "ed7c1675.7a56b",\r
1526         "wires": []\r
1527     },\r
1528     {\r
1529         "id": "f3eaab4d.9a827",\r
1530         "type": "comment",\r
1531         "name": "only src ttp exists. No dst",\r
1532         "info": "",\r
1533         "comments": "",\r
1534         "x": 3271,\r
1535         "y": 1904,\r
1536         "z": "ed7c1675.7a56b",\r
1537         "wires": []\r
1538     },\r
1539     {\r
1540         "id": "a3a1c771.fa4dc8",\r
1541         "type": "switchNode",\r
1542         "name": "switch vpn-binding has src-access-ltp",\r
1543         "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",\r
1544         "comments": "",\r
1545         "outputs": 1,\r
1546         "x": 3450,\r
1547         "y": 488,\r
1548         "z": "ed7c1675.7a56b",\r
1549         "wires": [\r
1550             [\r
1551                 "6921df6d.0bad7",\r
1552                 "5859006e.3869c8"\r
1553             ]\r
1554         ]\r
1555     },\r
1556     {\r
1557         "id": "5859006e.3869c8",\r
1558         "type": "other",\r
1559         "name": "other",\r
1560         "xml": "<outcome value='Other'>\n",\r
1561         "comments": "",\r
1562         "outputs": 1,\r
1563         "x": 3692,\r
1564         "y": 1077,\r
1565         "z": "ed7c1675.7a56b",\r
1566         "wires": [\r
1567             [\r
1568                 "6a1db5bd.d7e224"\r
1569             ]\r
1570         ]\r
1571     },\r
1572     {\r
1573         "id": "6921df6d.0bad7",\r
1574         "type": "outcome",\r
1575         "name": "Null",\r
1576         "xml": "<outcome value=''>\n",\r
1577         "comments": "",\r
1578         "outputs": 1,\r
1579         "x": 3686,\r
1580         "y": 368,\r
1581         "z": "ed7c1675.7a56b",\r
1582         "wires": [\r
1583             [\r
1584                 "6b14e6ca.05c05"\r
1585             ]\r
1586         ]\r
1587     },\r
1588     {\r
1589         "id": "6a1db5bd.d7e224",\r
1590         "type": "block",\r
1591         "name": "block : atomic",\r
1592         "xml": "<block atomic=\"true\">",\r
1593         "atomic": "true",\r
1594         "outputs": 1,\r
1595         "x": 3850,\r
1596         "y": 1076,\r
1597         "z": "ed7c1675.7a56b",\r
1598         "wires": [\r
1599             [\r
1600                 "e8ac2c73.115cc",\r
1601                 "de077050.d3ab3",\r
1602                 "d36a1b80.8692c8",\r
1603                 "73f78d36.ab931c",\r
1604                 "8ec0e69e.0bdfb8",\r
1605                 "4004366.ff0b5c8"\r
1606             ]\r
1607         ]\r
1608     },\r
1609     {\r
1610         "id": "de077050.d3ab3",\r
1611         "type": "set",\r
1612         "name": "set attachment_param for OTN G",\r
1613         "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
1614         "comments": "",\r
1615         "x": 4114,\r
1616         "y": 959,\r
1617         "z": "ed7c1675.7a56b",\r
1618         "wires": []\r
1619     },\r
1620     {\r
1621         "id": "8ec0e69e.0bdfb8",\r
1622         "type": "execute",\r
1623         "name": "execute RestApiCallNode Create OTN tunnel with token",\r
1624         "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
1625         "comments": "",\r
1626         "outputs": 1,\r
1627         "x": 4195,\r
1628         "y": 1274,\r
1629         "z": "ed7c1675.7a56b",\r
1630         "wires": [\r
1631             [\r
1632                 "a8d20b89.8deb88",\r
1633                 "ebe8f709.819288"\r
1634             ]\r
1635         ]\r
1636     },\r
1637     {\r
1638         "id": "a8d20b89.8deb88",\r
1639         "type": "failure",\r
1640         "name": "failure",\r
1641         "xml": "<outcome value='failure'>\n",\r
1642         "comments": "",\r
1643         "outputs": 1,\r
1644         "x": 4504.5,\r
1645         "y": 1243,\r
1646         "z": "ed7c1675.7a56b",\r
1647         "wires": [\r
1648             [\r
1649                 "f56a0e73.901ac"\r
1650             ]\r
1651         ]\r
1652     },\r
1653     {\r
1654         "id": "ebe8f709.819288",\r
1655         "type": "success",\r
1656         "name": "success",\r
1657         "xml": "<outcome value='success'>\n",\r
1658         "comments": "",\r
1659         "outputs": 1,\r
1660         "x": 4509.5,\r
1661         "y": 1308,\r
1662         "z": "ed7c1675.7a56b",\r
1663         "wires": [\r
1664             [\r
1665                 "8bcbb353.d66038"\r
1666             ]\r
1667         ]\r
1668     },\r
1669     {\r
1670         "id": "f56a0e73.901ac",\r
1671         "type": "returnFailure",\r
1672         "name": "return failure",\r
1673         "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
1674         "comments": "",\r
1675         "x": 4680.5,\r
1676         "y": 1243,\r
1677         "z": "ed7c1675.7a56b",\r
1678         "wires": []\r
1679     },\r
1680     {\r
1681         "id": "8bcbb353.d66038",\r
1682         "type": "block",\r
1683         "name": "block : atomic",\r
1684         "xml": "<block atomic=\"true\">",\r
1685         "atomic": "true",\r
1686         "comments": "",\r
1687         "outputs": 1,\r
1688         "x": 4676,\r
1689         "y": 1308,\r
1690         "z": "ed7c1675.7a56b",\r
1691         "wires": [\r
1692             []\r
1693         ]\r
1694     },\r
1695     {\r
1696         "id": "d36a1b80.8692c8",\r
1697         "type": "set",\r
1698         "name": "set pnf-name",\r
1699         "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
1700         "comments": "",\r
1701         "x": 4052,\r
1702         "y": 1007,\r
1703         "z": "ed7c1675.7a56b",\r
1704         "wires": []\r
1705     },\r
1706     {\r
1707         "id": "73f78d36.ab931c",\r
1708         "type": "get-resource",\r
1709         "name": "get-resource src pnf",\r
1710         "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
1711         "comments": "",\r
1712         "outputs": 1,\r
1713         "x": 4078,\r
1714         "y": 1124,\r
1715         "z": "ed7c1675.7a56b",\r
1716         "wires": [\r
1717             [\r
1718                 "e0243648.484bc",\r
1719                 "e14aa09.d5d416",\r
1720                 "5447b1d0.03a8b"\r
1721             ]\r
1722         ]\r
1723     },\r
1724     {\r
1725         "id": "e0243648.484bc",\r
1726         "type": "success",\r
1727         "name": "success",\r
1728         "xml": "<outcome value='success'>\n",\r
1729         "comments": "",\r
1730         "outputs": 1,\r
1731         "x": 4273.5001220703125,\r
1732         "y": 1076,\r
1733         "z": "ed7c1675.7a56b",\r
1734         "wires": [\r
1735             [\r
1736                 "94135ed.07ea02"\r
1737             ]\r
1738         ]\r
1739     },\r
1740     {\r
1741         "id": "e14aa09.d5d416",\r
1742         "type": "not-found",\r
1743         "name": "not-found",\r
1744         "xml": "<outcome value='not-found'>\n",\r
1745         "comments": "",\r
1746         "outputs": 1,\r
1747         "x": 4265.5001220703125,\r
1748         "y": 1131,\r
1749         "z": "ed7c1675.7a56b",\r
1750         "wires": [\r
1751             [\r
1752                 "1628394b.83cd8f"\r
1753             ]\r
1754         ]\r
1755     },\r
1756     {\r
1757         "id": "94135ed.07ea02",\r
1758         "type": "block",\r
1759         "name": "block",\r
1760         "xml": "<block>\n",\r
1761         "atomic": "false",\r
1762         "comments": "",\r
1763         "outputs": 1,\r
1764         "x": 4417.8824462890625,\r
1765         "y": 1075.6556701660156,\r
1766         "z": "ed7c1675.7a56b",\r
1767         "wires": [\r
1768             [\r
1769                 "fdedf72e.2dd36"\r
1770             ]\r
1771         ]\r
1772     },\r
1773     {\r
1774         "id": "fdedf72e.2dd36",\r
1775         "type": "for",\r
1776         "name": "for each relationship",\r
1777         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.domainG-pnf.relationship-list.relationship_length`' >\n",\r
1778         "comments": "",\r
1779         "outputs": 1,\r
1780         "x": 4602,\r
1781         "y": 1074,\r
1782         "z": "ed7c1675.7a56b",\r
1783         "wires": [\r
1784             [\r
1785                 "f99d2e19.85b668"\r
1786             ]\r
1787         ]\r
1788     },\r
1789     {\r
1790         "id": "f99d2e19.85b668",\r
1791         "type": "switchNode",\r
1792         "name": "switch related-to",\r
1793         "xml": "<switch test='`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
1794         "comments": "",\r
1795         "outputs": 1,\r
1796         "x": 4797,\r
1797         "y": 1074,\r
1798         "z": "ed7c1675.7a56b",\r
1799         "wires": [\r
1800             [\r
1801                 "ff4cc7a8.15eb18"\r
1802             ]\r
1803         ]\r
1804     },\r
1805     {\r
1806         "id": "5447b1d0.03a8b",\r
1807         "type": "other",\r
1808         "name": "other",\r
1809         "xml": "<outcome value='Other'>\n",\r
1810         "comments": "",\r
1811         "outputs": 1,\r
1812         "x": 4270.5001220703125,\r
1813         "y": 1188,\r
1814         "z": "ed7c1675.7a56b",\r
1815         "wires": [\r
1816             [\r
1817                 "74603a77.be9d34"\r
1818             ]\r
1819         ]\r
1820     },\r
1821     {\r
1822         "id": "74603a77.be9d34",\r
1823         "type": "returnFailure",\r
1824         "name": "return failure",\r
1825         "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
1826         "comments": "",\r
1827         "x": 4422.5001220703125,\r
1828         "y": 1189,\r
1829         "z": "ed7c1675.7a56b",\r
1830         "wires": []\r
1831     },\r
1832     {\r
1833         "id": "1628394b.83cd8f",\r
1834         "type": "returnFailure",\r
1835         "name": "return failure",\r
1836         "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
1837         "comments": "",\r
1838         "x": 4433.5001220703125,\r
1839         "y": 1132,\r
1840         "z": "ed7c1675.7a56b",\r
1841         "wires": []\r
1842     },\r
1843     {\r
1844         "id": "e8ac2c73.115cc",\r
1845         "type": "set",\r
1846         "name": "set vpn-bindingG and connectivityG",\r
1847         "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
1848         "comments": "",\r
1849         "x": 4109,\r
1850         "y": 899,\r
1851         "z": "ed7c1675.7a56b",\r
1852         "wires": []\r
1853     },\r
1854     {\r
1855         "id": "ff4cc7a8.15eb18",\r
1856         "type": "outcome",\r
1857         "name": "esr-thirdparty-sdnc",\r
1858         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
1859         "comments": "",\r
1860         "outputs": 1,\r
1861         "x": 5000,\r
1862         "y": 1078,\r
1863         "z": "ed7c1675.7a56b",\r
1864         "wires": [\r
1865             [\r
1866                 "8469558b.e4d748"\r
1867             ]\r
1868         ]\r
1869     },\r
1870     {\r
1871         "id": "cf8a4c78.37fe58",\r
1872         "type": "execute",\r
1873         "name": "get esr-thirdparty-sdnc",\r
1874         "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
1875         "comments": "",\r
1876         "outputs": 1,\r
1877         "x": 5385,\r
1878         "y": 1091,\r
1879         "z": "ed7c1675.7a56b",\r
1880         "wires": [\r
1881             [\r
1882                 "44cef850.3e64a",\r
1883                 "9337c3a8.6f7408",\r
1884                 "6a44b1b.7cb45d"\r
1885             ]\r
1886         ]\r
1887     },\r
1888     {\r
1889         "id": "8469558b.e4d748",\r
1890         "type": "block",\r
1891         "name": "block : atomic",\r
1892         "xml": "<block atomic=\"true\">",\r
1893         "atomic": "true",\r
1894         "outputs": 1,\r
1895         "x": 5179,\r
1896         "y": 1078,\r
1897         "z": "ed7c1675.7a56b",\r
1898         "wires": [\r
1899             [\r
1900                 "82428162.54c128",\r
1901                 "cf8a4c78.37fe58"\r
1902             ]\r
1903         ]\r
1904     },\r
1905     {\r
1906         "id": "82428162.54c128",\r
1907         "type": "set",\r
1908         "name": "set esr-thirdparty-sdnc domainG id",\r
1909         "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
1910         "comments": "",\r
1911         "x": 5415,\r
1912         "y": 1039,\r
1913         "z": "ed7c1675.7a56b",\r
1914         "wires": []\r
1915     },\r
1916     {\r
1917         "id": "44cef850.3e64a",\r
1918         "type": "success",\r
1919         "name": "success",\r
1920         "xml": "<outcome value='success'>\n",\r
1921         "comments": "",\r
1922         "outputs": 1,\r
1923         "x": 5595,\r
1924         "y": 1082,\r
1925         "z": "ed7c1675.7a56b",\r
1926         "wires": [\r
1927             [\r
1928                 "ffb7eeb1.dda348"\r
1929             ]\r
1930         ]\r
1931     },\r
1932     {\r
1933         "id": "9337c3a8.6f7408",\r
1934         "type": "not-found",\r
1935         "name": "not-found",\r
1936         "xml": "<outcome value='not-found'>\n",\r
1937         "comments": "",\r
1938         "outputs": 1,\r
1939         "x": 5587,\r
1940         "y": 1137,\r
1941         "z": "ed7c1675.7a56b",\r
1942         "wires": [\r
1943             [\r
1944                 "28235dd8.9620aa"\r
1945             ]\r
1946         ]\r
1947     },\r
1948     {\r
1949         "id": "6a44b1b.7cb45d",\r
1950         "type": "other",\r
1951         "name": "other",\r
1952         "xml": "<outcome value='Other'>\n",\r
1953         "comments": "",\r
1954         "outputs": 1,\r
1955         "x": 5592,\r
1956         "y": 1194,\r
1957         "z": "ed7c1675.7a56b",\r
1958         "wires": [\r
1959             [\r
1960                 "a95b4d04.8ebfb"\r
1961             ]\r
1962         ]\r
1963     },\r
1964     {\r
1965         "id": "a95b4d04.8ebfb",\r
1966         "type": "returnFailure",\r
1967         "name": "return failure",\r
1968         "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
1969         "comments": "",\r
1970         "x": 5744,\r
1971         "y": 1195,\r
1972         "z": "ed7c1675.7a56b",\r
1973         "wires": []\r
1974     },\r
1975     {\r
1976         "id": "28235dd8.9620aa",\r
1977         "type": "returnFailure",\r
1978         "name": "return failure",\r
1979         "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
1980         "comments": "",\r
1981         "x": 5755,\r
1982         "y": 1140,\r
1983         "z": "ed7c1675.7a56b",\r
1984         "wires": []\r
1985     },\r
1986     {\r
1987         "id": "ffb7eeb1.dda348",\r
1988         "type": "block",\r
1989         "name": "block",\r
1990         "xml": "<block>\n",\r
1991         "atomic": "false",\r
1992         "comments": "",\r
1993         "outputs": 1,\r
1994         "x": 5739.38232421875,\r
1995         "y": 1079.6556701660156,\r
1996         "z": "ed7c1675.7a56b",\r
1997         "wires": [\r
1998             [\r
1999                 "eb1ea22e.dc12c"\r
2000             ]\r
2001         ]\r
2002     },\r
2003     {\r
2004         "id": "eb1ea22e.dc12c",\r
2005         "type": "set",\r
2006         "name": "set controller domainG data",\r
2007         "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
2008         "comments": "",\r
2009         "x": 5954,\r
2010         "y": 1076,\r
2011         "z": "ed7c1675.7a56b",\r
2012         "wires": []\r
2013     },\r
2014     {\r
2015         "id": "47e1e7c7.6cadf",\r
2016         "type": "comment",\r
2017         "name": "both src and dst exist",\r
2018         "info": "",\r
2019         "comments": "",\r
2020         "x": 3728,\r
2021         "y": 1017,\r
2022         "z": "ed7c1675.7a56b",\r
2023         "wires": []\r
2024     },\r
2025     {\r
2026         "id": "b3842f71.731b38",\r
2027         "type": "switchNode",\r
2028         "name": "switch vpn-binding is not already Activated (i.e. is either Created or Modified)",\r
2029         "xml": "<switch test=\"`$tmp.aai.vpn-binding.operational-status != 'Activated' `\">\n",\r
2030         "comments": "",\r
2031         "outputs": 1,\r
2032         "x": 2290,\r
2033         "y": 744,\r
2034         "z": "ed7c1675.7a56b",\r
2035         "wires": [\r
2036             [\r
2037                 "fe4cd4cf.21da1",\r
2038                 "8d3265c3.ddab38"\r
2039             ]\r
2040         ]\r
2041     },\r
2042     {\r
2043         "id": "8d3265c3.ddab38",\r
2044         "type": "outcomeFalse",\r
2045         "name": "false",\r
2046         "xml": "<outcome value='false'>\n",\r
2047         "comments": "",\r
2048         "outputs": 1,\r
2049         "x": 2697,\r
2050         "y": 762,\r
2051         "z": "ed7c1675.7a56b",\r
2052         "wires": [\r
2053             [\r
2054                 "418df61.fe2be08"\r
2055             ]\r
2056         ]\r
2057     },\r
2058     {\r
2059         "id": "fe4cd4cf.21da1",\r
2060         "type": "outcomeTrue",\r
2061         "name": "true",\r
2062         "xml": "<outcome value='true'>\n",\r
2063         "comments": "",\r
2064         "outputs": 1,\r
2065         "x": 2697,\r
2066         "y": 707,\r
2067         "z": "ed7c1675.7a56b",\r
2068         "wires": [\r
2069             [\r
2070                 "8b0dea0b.e78e98"\r
2071             ]\r
2072         ]\r
2073     },\r
2074     {\r
2075         "id": "8b0dea0b.e78e98",\r
2076         "type": "block",\r
2077         "name": "block : atomic",\r
2078         "xml": "<block atomic=\"true\">",\r
2079         "atomic": "true",\r
2080         "outputs": 1,\r
2081         "x": 2853,\r
2082         "y": 705,\r
2083         "z": "ed7c1675.7a56b",\r
2084         "wires": [\r
2085             [\r
2086                 "71f36947.989c9",\r
2087                 "4573661e.19551"\r
2088             ]\r
2089         ]\r
2090     },\r
2091     {\r
2092         "id": "418df61.fe2be08",\r
2093         "type": "block",\r
2094         "name": "block",\r
2095         "xml": "<block>",\r
2096         "atomic": "false",\r
2097         "comments": "",\r
2098         "outputs": 1,\r
2099         "x": 2830,\r
2100         "y": 763,\r
2101         "z": "ed7c1675.7a56b",\r
2102         "wires": [\r
2103             []\r
2104         ]\r
2105     },\r
2106     {\r
2107         "id": "5c62cbf5.952894",\r
2108         "type": "set",\r
2109         "name": "unset tmp.aai.all-vpn-bindings",\r
2110         "xml": "<set>\n<parameter name='tmp.aai.all-vpn-bindings.' value=\"\" />\n",\r
2111         "comments": "",\r
2112         "x": 1007,\r
2113         "y": 179,\r
2114         "z": "ed7c1675.7a56b",\r
2115         "wires": []\r
2116     },\r
2117     {\r
2118         "id": "a7fd19a0.011a5",\r
2119         "type": "comment",\r
2120         "name": "CLL new",\r
2121         "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
2122         "comments": "",\r
2123         "x": 4124,\r
2124         "y": 597,\r
2125         "z": "ed7c1675.7a56b",\r
2126         "wires": []\r
2127     },\r
2128     {\r
2129         "id": "41c50446.37f104",\r
2130         "type": "set",\r
2131         "name": "set leaf-otn-tunnels-list array",\r
2132         "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
2133         "comments": "",\r
2134         "x": 4184,\r
2135         "y": 636,\r
2136         "z": "ed7c1675.7a56b",\r
2137         "wires": []\r
2138     },\r
2139     {\r
2140         "id": "4957906b.cb3908",\r
2141         "type": "set",\r
2142         "name": "unset leaf-otn-tunnels-list array",\r
2143         "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
2144         "comments": "",\r
2145         "x": 1000,\r
2146         "y": 87,\r
2147         "z": "ed7c1675.7a56b",\r
2148         "wires": []\r
2149     },\r
2150     {\r
2151         "id": "5277b309.13aef4",\r
2152         "type": "comment",\r
2153         "name": "CLL new",\r
2154         "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
2155         "comments": "",\r
2156         "x": 3536,\r
2157         "y": 2113,\r
2158         "z": "ed7c1675.7a56b",\r
2159         "wires": []\r
2160     },\r
2161     {\r
2162         "id": "51d22e16.357968",\r
2163         "type": "set",\r
2164         "name": "set root-otn-tunnels-list array",\r
2165         "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
2166         "comments": "",\r
2167         "x": 3592,\r
2168         "y": 2162,\r
2169         "z": "ed7c1675.7a56b",\r
2170         "wires": []\r
2171     },\r
2172     {\r
2173         "id": "8191f581.e3e888",\r
2174         "type": "set",\r
2175         "name": "unset root-otn-tunnels-list array",\r
2176         "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
2177         "comments": "",\r
2178         "x": 1000,\r
2179         "y": 126,\r
2180         "z": "ed7c1675.7a56b",\r
2181         "wires": []\r
2182     },\r
2183     {\r
2184         "id": "25a3d5e5.55ea62",\r
2185         "type": "execute",\r
2186         "name": "execute properties",\r
2187         "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
2188         "comments": "",\r
2189         "outputs": 1,\r
2190         "x": 1031,\r
2191         "y": 227,\r
2192         "z": "ed7c1675.7a56b",\r
2193         "wires": [\r
2194             []\r
2195         ]\r
2196     },\r
2197     {\r
2198         "id": "624a734b.81957c",\r
2199         "type": "save",\r
2200         "name": "get service-instance from aai",\r
2201         "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
2202         "comments": "",\r
2203         "outputs": 1,\r
2204         "x": 241,\r
2205         "y": 702,\r
2206         "z": "ed7c1675.7a56b",\r
2207         "wires": [\r
2208             [\r
2209                 "2ff4bd45.763852",\r
2210                 "237ce68a.9b5a2a",\r
2211                 "86bae4d8.c51f3"\r
2212             ]\r
2213         ]\r
2214     },\r
2215     {\r
2216         "id": "2ff4bd45.763852",\r
2217         "type": "success",\r
2218         "name": "success",\r
2219         "xml": "<outcome value='success'>\n",\r
2220         "comments": "",\r
2221         "outputs": 1,\r
2222         "x": 460,\r
2223         "y": 640,\r
2224         "z": "ed7c1675.7a56b",\r
2225         "wires": [\r
2226             [\r
2227                 "2f347c57.a92144"\r
2228             ]\r
2229         ]\r
2230     },\r
2231     {\r
2232         "id": "237ce68a.9b5a2a",\r
2233         "type": "not-found",\r
2234         "name": "not-found",\r
2235         "xml": "<outcome value='not-found'>\n",\r
2236         "comments": "",\r
2237         "outputs": 1,\r
2238         "x": 469.490966796875,\r
2239         "y": 682.5740356445312,\r
2240         "z": "ed7c1675.7a56b",\r
2241         "wires": [\r
2242             [\r
2243                 "196b18f9.87f4a7"\r
2244             ]\r
2245         ]\r
2246     },\r
2247     {\r
2248         "id": "86bae4d8.c51f3",\r
2249         "type": "failure",\r
2250         "name": "failure",\r
2251         "xml": "<outcome value='failure'>\n",\r
2252         "comments": "",\r
2253         "outputs": 1,\r
2254         "x": 458,\r
2255         "y": 729,\r
2256         "z": "ed7c1675.7a56b",\r
2257         "wires": [\r
2258             [\r
2259                 "d6f02bd7.9f988"\r
2260             ]\r
2261         ]\r
2262     },\r
2263     {\r
2264         "id": "2f347c57.a92144",\r
2265         "type": "for",\r
2266         "name": "for each relationship",\r
2267         "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",\r
2268         "comments": "",\r
2269         "outputs": 1,\r
2270         "x": 657,\r
2271         "y": 636,\r
2272         "z": "ed7c1675.7a56b",\r
2273         "wires": [\r
2274             [\r
2275                 "408bfafb.b2f244"\r
2276             ]\r
2277         ]\r
2278     },\r
2279     {\r
2280         "id": "196b18f9.87f4a7",\r
2281         "type": "returnFailure",\r
2282         "name": "return failure",\r
2283         "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
2284         "comments": "",\r
2285         "x": 623.0623779296875,\r
2286         "y": 685.8597717285156,\r
2287         "z": "ed7c1675.7a56b",\r
2288         "wires": []\r
2289     },\r
2290     {\r
2291         "id": "d6f02bd7.9f988",\r
2292         "type": "returnFailure",\r
2293         "name": "return failure",\r
2294         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
2295         "comments": "",\r
2296         "x": 627,\r
2297         "y": 730,\r
2298         "z": "ed7c1675.7a56b",\r
2299         "wires": []\r
2300     },\r
2301     {\r
2302         "id": "408bfafb.b2f244",\r
2303         "type": "switchNode",\r
2304         "name": "switch related-to",\r
2305         "xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",\r
2306         "comments": "",\r
2307         "outputs": 1,\r
2308         "x": 880.33349609375,\r
2309         "y": 635.9999389648438,\r
2310         "z": "ed7c1675.7a56b",\r
2311         "wires": [\r
2312             [\r
2313                 "7d8f8b2e.4aa30c"\r
2314             ]\r
2315         ]\r
2316     },\r
2317     {\r
2318         "id": "7d8f8b2e.4aa30c",\r
2319         "type": "outcome",\r
2320         "name": "connectivity",\r
2321         "xml": "<outcome value='connectivity'>\n",\r
2322         "comments": "",\r
2323         "outputs": 1,\r
2324         "x": 1081.0001335144043,\r
2325         "y": 637.000020980835,\r
2326         "z": "ed7c1675.7a56b",\r
2327         "wires": [\r
2328             [\r
2329                 "bd2be559.7e491"\r
2330             ]\r
2331         ]\r
2332     },\r
2333     {\r
2334         "id": "bd2be559.7e491",\r
2335         "type": "save",\r
2336         "name": "get connectivity from aai",\r
2337         "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
2338         "comments": "",\r
2339         "outputs": 1,\r
2340         "x": 211,\r
2341         "y": 899,\r
2342         "z": "ed7c1675.7a56b",\r
2343         "wires": [\r
2344             [\r
2345                 "97323d62.80248",\r
2346                 "afdba634.5389a8",\r
2347                 "c784d901.2500c8"\r
2348             ]\r
2349         ]\r
2350     },\r
2351     {\r
2352         "id": "97323d62.80248",\r
2353         "type": "success",\r
2354         "name": "success",\r
2355         "xml": "<outcome value='success'>\n",\r
2356         "comments": "",\r
2357         "outputs": 1,\r
2358         "x": 419,\r
2359         "y": 863,\r
2360         "z": "ed7c1675.7a56b",\r
2361         "wires": [\r
2362             [\r
2363                 "dc950dad.bba8c8"\r
2364             ]\r
2365         ]\r
2366     },\r
2367     {\r
2368         "id": "afdba634.5389a8",\r
2369         "type": "not-found",\r
2370         "name": "not-found",\r
2371         "xml": "<outcome value='not-found'>\n",\r
2372         "comments": "",\r
2373         "outputs": 1,\r
2374         "x": 419.490966796875,\r
2375         "y": 908.5740356445312,\r
2376         "z": "ed7c1675.7a56b",\r
2377         "wires": [\r
2378             [\r
2379                 "f09199a5.a037f"\r
2380             ]\r
2381         ]\r
2382     },\r
2383     {\r
2384         "id": "c784d901.2500c8",\r
2385         "type": "failure",\r
2386         "name": "failure",\r
2387         "xml": "<outcome value='failure'>\n",\r
2388         "comments": "",\r
2389         "outputs": 1,\r
2390         "x": 417,\r
2391         "y": 952,\r
2392         "z": "ed7c1675.7a56b",\r
2393         "wires": [\r
2394             [\r
2395                 "a903bba8.c7f45"\r
2396             ]\r
2397         ]\r
2398     },\r
2399     {\r
2400         "id": "f09199a5.a037f",\r
2401         "type": "returnFailure",\r
2402         "name": "return failure",\r
2403         "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
2404         "comments": "",\r
2405         "x": 582.0623779296875,\r
2406         "y": 908.8597717285156,\r
2407         "z": "ed7c1675.7a56b",\r
2408         "wires": []\r
2409     },\r
2410     {\r
2411         "id": "a903bba8.c7f45",\r
2412         "type": "returnFailure",\r
2413         "name": "return failure",\r
2414         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
2415         "comments": "",\r
2416         "x": 586,\r
2417         "y": 953,\r
2418         "z": "ed7c1675.7a56b",\r
2419         "wires": []\r
2420     },\r
2421     {\r
2422         "id": "c4e5acdc.5eea4",\r
2423         "type": "for",\r
2424         "name": "for each relationship",\r
2425         "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",\r
2426         "comments": "",\r
2427         "outputs": 1,\r
2428         "x": 558,\r
2429         "y": 1447,\r
2430         "z": "ed7c1675.7a56b",\r
2431         "wires": [\r
2432             [\r
2433                 "f2e2cc22.a529f"\r
2434             ]\r
2435         ]\r
2436     },\r
2437     {\r
2438         "id": "f2e2cc22.a529f",\r
2439         "type": "switchNode",\r
2440         "name": "switch related-to",\r
2441         "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",\r
2442         "comments": "",\r
2443         "outputs": 1,\r
2444         "x": 761,\r
2445         "y": 1459,\r
2446         "z": "ed7c1675.7a56b",\r
2447         "wires": [\r
2448             [\r
2449                 "c09b72f6.aeae98"\r
2450             ]\r
2451         ]\r
2452     },\r
2453     {\r
2454         "id": "c09b72f6.aeae98",\r
2455         "type": "outcome",\r
2456         "name": "UNI",\r
2457         "xml": "<outcome value='uni'>\n",\r
2458         "comments": "",\r
2459         "outputs": 1,\r
2460         "x": 927,\r
2461         "y": 1456,\r
2462         "z": "ed7c1675.7a56b",\r
2463         "wires": [\r
2464             [\r
2465                 "bfe2cfaf.5416a"\r
2466             ]\r
2467         ]\r
2468     },\r
2469     {\r
2470         "id": "bfe2cfaf.5416a",\r
2471         "type": "block",\r
2472         "name": "block : atomic",\r
2473         "xml": "<block atomic=\"true\">",\r
2474         "atomic": "true",\r
2475         "outputs": 1,\r
2476         "x": 1088,\r
2477         "y": 1453,\r
2478         "z": "ed7c1675.7a56b",\r
2479         "wires": [\r
2480             [\r
2481                 "ed44bd0b.bb6278",\r
2482                 "85af841c.633c5",\r
2483                 "785dd3f1.f249ac",\r
2484                 "b8d52cff.f0dcb",\r
2485                 "4915b2e4.5fd2dc"\r
2486             ]\r
2487         ]\r
2488     },\r
2489     {\r
2490         "id": "85af841c.633c5",\r
2491         "type": "set",\r
2492         "name": "unset tmp.aai.uni",\r
2493         "xml": "<set>\n<parameter name='tmp.aai.uni.' value='' />\n",\r
2494         "comments": "",\r
2495         "x": 1292,\r
2496         "y": 1411,\r
2497         "z": "ed7c1675.7a56b",\r
2498         "wires": []\r
2499     },\r
2500     {\r
2501         "id": "ed44bd0b.bb6278",\r
2502         "type": "save",\r
2503         "name": "get uni from aai",\r
2504         "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
2505         "comments": "",\r
2506         "outputs": 1,\r
2507         "x": 1289,\r
2508         "y": 1456,\r
2509         "z": "ed7c1675.7a56b",\r
2510         "wires": [\r
2511             [\r
2512                 "6b32d7eb.72211",\r
2513                 "7343128c.f923b4",\r
2514                 "b9b05d3.e5ae12"\r
2515             ]\r
2516         ]\r
2517     },\r
2518     {\r
2519         "id": "7343128c.f923b4",\r
2520         "type": "not-found",\r
2521         "name": "not-found",\r
2522         "xml": "<outcome value='not-found'>\n",\r
2523         "comments": "",\r
2524         "outputs": 1,\r
2525         "x": 1484.490966796875,\r
2526         "y": 1429.573974609375,\r
2527         "z": "ed7c1675.7a56b",\r
2528         "wires": [\r
2529             [\r
2530                 "5dcee0f6.9162a8"\r
2531             ]\r
2532         ]\r
2533     },\r
2534     {\r
2535         "id": "b9b05d3.e5ae12",\r
2536         "type": "failure",\r
2537         "name": "failure",\r
2538         "xml": "<outcome value='failure'>\n",\r
2539         "comments": "",\r
2540         "outputs": 1,\r
2541         "x": 1480,\r
2542         "y": 1473.9999389648438,\r
2543         "z": "ed7c1675.7a56b",\r
2544         "wires": [\r
2545             [\r
2546                 "b7ed6a74.25237"\r
2547             ]\r
2548         ]\r
2549     },\r
2550     {\r
2551         "id": "5dcee0f6.9162a8",\r
2552         "type": "returnFailure",\r
2553         "name": "return failure",\r
2554         "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
2555         "comments": "",\r
2556         "x": 1647.0625,\r
2557         "y": 1428.8596801757812,\r
2558         "z": "ed7c1675.7a56b",\r
2559         "wires": []\r
2560     },\r
2561     {\r
2562         "id": "b7ed6a74.25237",\r
2563         "type": "returnFailure",\r
2564         "name": "return failure",\r
2565         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
2566         "comments": "",\r
2567         "x": 1648,\r
2568         "y": 1473.9999389648438,\r
2569         "z": "ed7c1675.7a56b",\r
2570         "wires": []\r
2571     },\r
2572     {\r
2573         "id": "dfdfa822.c47e1",\r
2574         "type": "block",\r
2575         "name": "block : atomic",\r
2576         "xml": "<block atomic=\"true\">",\r
2577         "atomic": "true",\r
2578         "outputs": 1,\r
2579         "x": 1650,\r
2580         "y": 1520.9999389648438,\r
2581         "z": "ed7c1675.7a56b",\r
2582         "wires": [\r
2583             []\r
2584         ]\r
2585     },\r
2586     {\r
2587         "id": "6b32d7eb.72211",\r
2588         "type": "success",\r
2589         "name": "success",\r
2590         "xml": "<outcome value='success'>\n",\r
2591         "comments": "",\r
2592         "outputs": 1,\r
2593         "x": 1481,\r
2594         "y": 1520.9999389648438,\r
2595         "z": "ed7c1675.7a56b",\r
2596         "wires": [\r
2597             [\r
2598                 "dfdfa822.c47e1"\r
2599             ]\r
2600         ]\r
2601     },\r
2602     {\r
2603         "id": "9ed7a6be.5472c",\r
2604         "type": "switchNode",\r
2605         "name": "switch conn type",\r
2606         "xml": "<switch test=\"`$tmp.aai.connectivity.vpn-type`\">\n\n",\r
2607         "comments": "",\r
2608         "outputs": 1,\r
2609         "x": 170.5,\r
2610         "y": 1118,\r
2611         "z": "ed7c1675.7a56b",\r
2612         "wires": [\r
2613             [\r
2614                 "3e9a846b.aac024",\r
2615                 "fd2eac9f.aa3be8",\r
2616                 "81d85b97.ec18c"\r
2617             ]\r
2618         ]\r
2619     },\r
2620     {\r
2621         "id": "3d4d11fc.e19976",\r
2622         "type": "block",\r
2623         "name": "block",\r
2624         "xml": "<block>",\r
2625         "atomic": "false",\r
2626         "comments": "",\r
2627         "outputs": 1,\r
2628         "x": 281.5,\r
2629         "y": 1474,\r
2630         "z": "ed7c1675.7a56b",\r
2631         "wires": [\r
2632             []\r
2633         ]\r
2634     },\r
2635     {\r
2636         "id": "3e9a846b.aac024",\r
2637         "type": "outcome",\r
2638         "name": "leaf",\r
2639         "xml": "<outcome value='leaf'>\n",\r
2640         "comments": "",\r
2641         "outputs": 1,\r
2642         "x": 156.5,\r
2643         "y": 1364,\r
2644         "z": "ed7c1675.7a56b",\r
2645         "wires": [\r
2646             [\r
2647                 "186f4361.0093b5"\r
2648             ]\r
2649         ]\r
2650     },\r
2651     {\r
2652         "id": "fd2eac9f.aa3be8",\r
2653         "type": "outcome",\r
2654         "name": "root",\r
2655         "xml": "<outcome value='root'>\n",\r
2656         "comments": "",\r
2657         "outputs": 1,\r
2658         "x": 157.5,\r
2659         "y": 1422,\r
2660         "z": "ed7c1675.7a56b",\r
2661         "wires": [\r
2662             [\r
2663                 "a8f57470.dafb1"\r
2664             ]\r
2665         ]\r
2666     },\r
2667     {\r
2668         "id": "81d85b97.ec18c",\r
2669         "type": "other",\r
2670         "name": "other",\r
2671         "xml": "<outcome value='Other'>\n",\r
2672         "comments": "",\r
2673         "outputs": 1,\r
2674         "x": 159.5,\r
2675         "y": 1476,\r
2676         "z": "ed7c1675.7a56b",\r
2677         "wires": [\r
2678             [\r
2679                 "3d4d11fc.e19976"\r
2680             ]\r
2681         ]\r
2682     },\r
2683     {\r
2684         "id": "17f45567.72d3f3",\r
2685         "type": "comment",\r
2686         "name": "CLL new",\r
2687         "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
2688         "comments": "",\r
2689         "x": 1265,\r
2690         "y": 1684,\r
2691         "z": "ed7c1675.7a56b",\r
2692         "wires": []\r
2693     },\r
2694     {\r
2695         "id": "785dd3f1.f249ac",\r
2696         "type": "set",\r
2697         "name": "set ethernet-srv-end-points-list array",\r
2698         "xml": "<set>\n<!--<parameter name='`ethernet-srv-end-points-list[$epidx].ethernet-end-point-name`' value='`$tmp.aai.connectivity.connectivity-id`' />-->\n<parameter name='`ethernet-srv-end-points-list[$epidx].ethernet-end-point-name`' value='`$tmp.aai.uni.id`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].index-number`' value='0' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].eth-node-id`' value='`$tmp.uni-node-id-short`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].eth-node-tp-id`' value='`$tmp.aai.uni.tp-id`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].leafOrRootAccess`' value='`$leafOrRootAccess`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].cvlan`' value='`$tmp.aai.connectivity.cvlan`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].CIR`' value='`$tmp.aai.uni.data-source * 1000000`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].EIR`' value='`$tmp.aai.uni.data-source * 1000000`' />\n\n<parameter name='`ethernet-srv-end-points-list_length`' value='`$epidx + 1`' />\n",\r
2699         "comments": "",\r
2700         "x": 1356,\r
2701         "y": 1738,\r
2702         "z": "ed7c1675.7a56b",\r
2703         "wires": []\r
2704     },\r
2705     {\r
2706         "id": "a8f57470.dafb1",\r
2707         "type": "block",\r
2708         "name": "block",\r
2709         "xml": "<block>",\r
2710         "atomic": "false",\r
2711         "comments": "",\r
2712         "outputs": 1,\r
2713         "x": 273.5,\r
2714         "y": 1418,\r
2715         "z": "ed7c1675.7a56b",\r
2716         "wires": [\r
2717             [\r
2718                 "6d0b5941.55c8f8",\r
2719                 "c4e5acdc.5eea4",\r
2720                 "3e47dbd3.f7afc4",\r
2721                 "c378a6a3.2e4c8",\r
2722                 "901c32b.8d67fd",\r
2723                 "d142c0f2.700e98",\r
2724                 "b2e88ff.3380b7",\r
2725                 "3026fc23.0fd5f4",\r
2726                 "f24a5646.1c02c8",\r
2727                 "db09832f.86c758",\r
2728                 "3c14b8ea.b96268",\r
2729                 "c7cb304b.f39168"\r
2730             ]\r
2731         ]\r
2732     },\r
2733     {\r
2734         "id": "186f4361.0093b5",\r
2735         "type": "block",\r
2736         "name": "block",\r
2737         "xml": "<block>",\r
2738         "atomic": "false",\r
2739         "comments": "",\r
2740         "outputs": 1,\r
2741         "x": 286.5,\r
2742         "y": 1360,\r
2743         "z": "ed7c1675.7a56b",\r
2744         "wires": [\r
2745             [\r
2746                 "c4e5acdc.5eea4",\r
2747                 "b5d90017.45ce98",\r
2748                 "913d2a70.ccfd3",\r
2749                 "c378a6a3.2e4c8",\r
2750                 "901c32b.8d67fd",\r
2751                 "d142c0f2.700e98",\r
2752                 "b2e88ff.3380b7",\r
2753                 "3026fc23.0fd5f4",\r
2754                 "f24a5646.1c02c8",\r
2755                 "db09832f.86c758",\r
2756                 "3c14b8ea.b96268",\r
2757                 "c7cb304b.f39168"\r
2758             ]\r
2759         ]\r
2760     },\r
2761     {\r
2762         "id": "b5d90017.45ce98",\r
2763         "type": "set",\r
2764         "name": "unset ethernet-srv-end-points-list",\r
2765         "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
2766         "comments": "",\r
2767         "x": 577.5,\r
2768         "y": 1240,\r
2769         "z": "ed7c1675.7a56b",\r
2770         "wires": []\r
2771     },\r
2772     {\r
2773         "id": "6d0b5941.55c8f8",\r
2774         "type": "set",\r
2775         "name": "unset ethernet-srv-end-points-list",\r
2776         "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
2777         "comments": "",\r
2778         "x": 594.5,\r
2779         "y": 1334,\r
2780         "z": "ed7c1675.7a56b",\r
2781         "wires": []\r
2782     },\r
2783     {\r
2784         "id": "c378a6a3.2e4c8",\r
2785         "type": "for",\r
2786         "name": "for each relationship",\r
2787         "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",\r
2788         "comments": "",\r
2789         "outputs": 1,\r
2790         "x": 521,\r
2791         "y": 1703,\r
2792         "z": "ed7c1675.7a56b",\r
2793         "wires": [\r
2794             [\r
2795                 "3613e1a4.3cd206"\r
2796             ]\r
2797         ]\r
2798     },\r
2799     {\r
2800         "id": "3613e1a4.3cd206",\r
2801         "type": "switchNode",\r
2802         "name": "switch related-to",\r
2803         "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",\r
2804         "comments": "",\r
2805         "outputs": 1,\r
2806         "x": 753,\r
2807         "y": 1702,\r
2808         "z": "ed7c1675.7a56b",\r
2809         "wires": [\r
2810             [\r
2811                 "c46d21fc.7c5088"\r
2812             ]\r
2813         ]\r
2814     },\r
2815     {\r
2816         "id": "c46d21fc.7c5088",\r
2817         "type": "outcome",\r
2818         "name": "vpn-binding",\r
2819         "xml": "<outcome value='vpn-binding'>\n",\r
2820         "comments": "",\r
2821         "outputs": 1,\r
2822         "x": 965,\r
2823         "y": 1703,\r
2824         "z": "ed7c1675.7a56b",\r
2825         "wires": [\r
2826             [\r
2827                 "41d3d62e.c810a8"\r
2828             ]\r
2829         ]\r
2830     },\r
2831     {\r
2832         "id": "41d3d62e.c810a8",\r
2833         "type": "block",\r
2834         "name": "block : atomic",\r
2835         "xml": "<block atomic=\"true\">",\r
2836         "atomic": "true",\r
2837         "outputs": 1,\r
2838         "x": 221,\r
2839         "y": 1859,\r
2840         "z": "ed7c1675.7a56b",\r
2841         "wires": [\r
2842             [\r
2843                 "24bb38a6.cf0a88",\r
2844                 "80203aa0.6c8a6"\r
2845             ]\r
2846         ]\r
2847     },\r
2848     {\r
2849         "id": "80203aa0.6c8a6",\r
2850         "type": "set",\r
2851         "name": "unset tmp.aai.vpn-binding",\r
2852         "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",\r
2853         "comments": "",\r
2854         "x": 456,\r
2855         "y": 1846,\r
2856         "z": "ed7c1675.7a56b",\r
2857         "wires": []\r
2858     },\r
2859     {\r
2860         "id": "24bb38a6.cf0a88",\r
2861         "type": "save",\r
2862         "name": "get vpn-binding from aai",\r
2863         "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
2864         "comments": "",\r
2865         "outputs": 1,\r
2866         "x": 446,\r
2867         "y": 1907,\r
2868         "z": "ed7c1675.7a56b",\r
2869         "wires": [\r
2870             [\r
2871                 "e7df9a86.a02dd8",\r
2872                 "d754cb82.42f37",\r
2873                 "80509f91.59bce8"\r
2874             ]\r
2875         ]\r
2876     },\r
2877     {\r
2878         "id": "d754cb82.42f37",\r
2879         "type": "not-found",\r
2880         "name": "not-found",\r
2881         "xml": "<outcome value='not-found'>\n",\r
2882         "comments": "",\r
2883         "outputs": 1,\r
2884         "x": 659.490966796875,\r
2885         "y": 1891.5740356445312,\r
2886         "z": "ed7c1675.7a56b",\r
2887         "wires": [\r
2888             [\r
2889                 "31b91fbf.39fff8"\r
2890             ]\r
2891         ]\r
2892     },\r
2893     {\r
2894         "id": "80509f91.59bce8",\r
2895         "type": "failure",\r
2896         "name": "failure",\r
2897         "xml": "<outcome value='failure'>\n",\r
2898         "comments": "",\r
2899         "outputs": 1,\r
2900         "x": 655,\r
2901         "y": 1936,\r
2902         "z": "ed7c1675.7a56b",\r
2903         "wires": [\r
2904             [\r
2905                 "312541a.87b29be"\r
2906             ]\r
2907         ]\r
2908     },\r
2909     {\r
2910         "id": "e7df9a86.a02dd8",\r
2911         "type": "success",\r
2912         "name": "success",\r
2913         "xml": "<outcome value='success'>\n",\r
2914         "comments": "",\r
2915         "outputs": 1,\r
2916         "x": 657,\r
2917         "y": 1996,\r
2918         "z": "ed7c1675.7a56b",\r
2919         "wires": [\r
2920             [\r
2921                 "f19203b2.563a88"\r
2922             ]\r
2923         ]\r
2924     },\r
2925     {\r
2926         "id": "31b91fbf.39fff8",\r
2927         "type": "returnFailure",\r
2928         "name": "return failure",\r
2929         "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
2930         "comments": "",\r
2931         "x": 822.0625,\r
2932         "y": 1890.8597412109375,\r
2933         "z": "ed7c1675.7a56b",\r
2934         "wires": []\r
2935     },\r
2936     {\r
2937         "id": "312541a.87b29be",\r
2938         "type": "returnFailure",\r
2939         "name": "return failure",\r
2940         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
2941         "comments": "",\r
2942         "x": 823,\r
2943         "y": 1936,\r
2944         "z": "ed7c1675.7a56b",\r
2945         "wires": []\r
2946     },\r
2947     {\r
2948         "id": "f19203b2.563a88",\r
2949         "type": "block",\r
2950         "name": "block : atomic",\r
2951         "xml": "<block atomic=\"true\">",\r
2952         "atomic": "true",\r
2953         "outputs": 1,\r
2954         "x": 826,\r
2955         "y": 1995,\r
2956         "z": "ed7c1675.7a56b",\r
2957         "wires": [\r
2958             [\r
2959                 "70164d90.2f08c4",\r
2960                 "27824a25.86f05e"\r
2961             ]\r
2962         ]\r
2963     },\r
2964     {\r
2965         "id": "b2e88ff.3380b7",\r
2966         "type": "set",\r
2967         "name": "set sotn_value",\r
2968         "xml": "<set>\n<!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.connectivity-id`' />-->\n<parameter name='eth-service-name' value='`$tmp.aai.connectivity.etht-svc-name`' />\n<parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='provider-id' value='`$tmp.aai.connectivity.access-provider-id`' />\n<parameter name='client-id' value='`$tmp.aai.connectivity.access-client-id`' />\n<parameter name='topology-id' value='`$tmp.aai.connectivity.access-topology-id`' />\n<!--<parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />-->\n<!--<parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityA.connectivity-id`' />-->\n<!--<parameter name='index-number' value='0' />-->\n<!--<parameter name='eth-node-id' value='`$tmp.aai.connectivityA.access-node-id`' />-->\n<!--<parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityA.access-ltp-id`' />-->\n<!--<parameter name='CIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />-->\n<!--<parameter name='EIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.connectivityA.cvlan`' />-->\n",\r
2969         "comments": "",\r
2970         "x": 225,\r
2971         "y": 2494,\r
2972         "z": "ed7c1675.7a56b",\r
2973         "wires": []\r
2974     },\r
2975     {\r
2976         "id": "3026fc23.0fd5f4",\r
2977         "type": "execute",\r
2978         "name": "execute RestApiCallNode Create ethernet Service without token",\r
2979         "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
2980         "comments": "",\r
2981         "outputs": 1,\r
2982         "x": 368,\r
2983         "y": 2554,\r
2984         "z": "ed7c1675.7a56b",\r
2985         "wires": [\r
2986             [\r
2987                 "a9d1707f.7a88c8",\r
2988                 "8ab460b7.633638"\r
2989             ]\r
2990         ]\r
2991     },\r
2992     {\r
2993         "id": "a9d1707f.7a88c8",\r
2994         "type": "failure",\r
2995         "name": "failure",\r
2996         "xml": "<outcome value='failure'>\n",\r
2997         "comments": "",\r
2998         "outputs": 1,\r
2999         "x": 680.5,\r
3000         "y": 2531,\r
3001         "z": "ed7c1675.7a56b",\r
3002         "wires": [\r
3003             []\r
3004         ]\r
3005     },\r
3006     {\r
3007         "id": "8ab460b7.633638",\r
3008         "type": "success",\r
3009         "name": "success",\r
3010         "xml": "<outcome value='success'>\n",\r
3011         "comments": "",\r
3012         "outputs": 1,\r
3013         "x": 684.5,\r
3014         "y": 2571,\r
3015         "z": "ed7c1675.7a56b",\r
3016         "wires": [\r
3017             [\r
3018                 "7ddc0654.bb96f8"\r
3019             ]\r
3020         ]\r
3021     },\r
3022     {\r
3023         "id": "a1d8045c.1b61e8",\r
3024         "type": "returnFailure",\r
3025         "name": "return failure",\r
3026         "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
3027         "comments": "",\r
3028         "x": 860.5,\r
3029         "y": 2535,\r
3030         "z": "ed7c1675.7a56b",\r
3031         "wires": []\r
3032     },\r
3033     {\r
3034         "id": "7ddc0654.bb96f8",\r
3035         "type": "block",\r
3036         "name": "block : atomic",\r
3037         "xml": "<block atomic=\"true\">",\r
3038         "atomic": "true",\r
3039         "comments": "",\r
3040         "outputs": 1,\r
3041         "x": 876,\r
3042         "y": 2589,\r
3043         "z": "ed7c1675.7a56b",\r
3044         "wires": [\r
3045             [\r
3046                 "1eddd66c.da478a"\r
3047             ]\r
3048         ]\r
3049     },\r
3050     {\r
3051         "id": "cee3e55d.189dc",\r
3052         "type": "save",\r
3053         "name": "update vpn-binding resource (aka. OTN ) in AAI",\r
3054         "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
3055         "comments": "",\r
3056         "outputs": 1,\r
3057         "x": 1171.5,\r
3058         "y": 2558,\r
3059         "z": "ed7c1675.7a56b",\r
3060         "wires": [\r
3061             []\r
3062         ]\r
3063     },\r
3064     {\r
3065         "id": "bb915427.f0582",\r
3066         "type": "comment",\r
3067         "name": "TODO: FIXME",\r
3068         "info": "use proper vpn-binding id and connectivity id\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",\r
3069         "comments": "",\r
3070         "x": 2638.5,\r
3071         "y": 1909,\r
3072         "z": "ed7c1675.7a56b",\r
3073         "wires": []\r
3074     },\r
3075     {\r
3076         "id": "1eddd66c.da478a",\r
3077         "type": "save",\r
3078         "name": "update connectivity resource in AAI",\r
3079         "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
3080         "comments": "",\r
3081         "outputs": 1,\r
3082         "x": 1133.5,\r
3083         "y": 2600,\r
3084         "z": "ed7c1675.7a56b",\r
3085         "wires": [\r
3086             []\r
3087         ]\r
3088     },\r
3089     {\r
3090         "id": "913d2a70.ccfd3",\r
3091         "type": "set",\r
3092         "name": "set leafOrRootAccess",\r
3093         "xml": "<set>\n<parameter name='`leafOrRootAccess`' value='ietf-eth-tran-types:leaf-access' />\n",\r
3094         "comments": "",\r
3095         "x": 543.5,\r
3096         "y": 1278,\r
3097         "z": "ed7c1675.7a56b",\r
3098         "wires": []\r
3099     },\r
3100     {\r
3101         "id": "3e47dbd3.f7afc4",\r
3102         "type": "set",\r
3103         "name": "set leafOrRootAccess",\r
3104         "xml": "<set>\n<parameter name='`leafOrRootAccess`' value='ietf-eth-tran-types:root-primary' />\n",\r
3105         "comments": "",\r
3106         "x": 556.5,\r
3107         "y": 1374,\r
3108         "z": "ed7c1675.7a56b",\r
3109         "wires": []\r
3110     },\r
3111     {\r
3112         "id": "e5881b35.2a2bf8",\r
3113         "type": "save",\r
3114         "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",\r
3115         "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
3116         "comments": "",\r
3117         "outputs": 1,\r
3118         "x": 4293,\r
3119         "y": 550,\r
3120         "z": "ed7c1675.7a56b",\r
3121         "wires": [\r
3122             []\r
3123         ]\r
3124     },\r
3125     {\r
3126         "id": "4004366.ff0b5c8",\r
3127         "type": "save",\r
3128         "name": "update vpn-binding G resource (aka. OTN domainA) in AAI",\r
3129         "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
3130         "comments": "",\r
3131         "outputs": 1,\r
3132         "x": 4196,\r
3133         "y": 1369,\r
3134         "z": "ed7c1675.7a56b",\r
3135         "wires": [\r
3136             []\r
3137         ]\r
3138     },\r
3139     {\r
3140         "id": "8caebf31.dc028",\r
3141         "type": "save",\r
3142         "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",\r
3143         "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
3144         "comments": "",\r
3145         "outputs": 1,\r
3146         "x": 3690,\r
3147         "y": 2041,\r
3148         "z": "ed7c1675.7a56b",\r
3149         "wires": [\r
3150             []\r
3151         ]\r
3152     },\r
3153     {\r
3154         "id": "dc950dad.bba8c8",\r
3155         "type": "switchNode",\r
3156         "name": "switch connectivity is not already Activated (i.e. is either Created or Modified)",\r
3157         "xml": "<switch test=\"`$tmp.aai.connectivity.operational-status != 'Activated' `\">\n",\r
3158         "comments": "",\r
3159         "outputs": 1,\r
3160         "x": 791,\r
3161         "y": 849,\r
3162         "z": "ed7c1675.7a56b",\r
3163         "wires": [\r
3164             [\r
3165                 "28d7875f.122df",\r
3166                 "47ffeb93.7b808c"\r
3167             ]\r
3168         ]\r
3169     },\r
3170     {\r
3171         "id": "28d7875f.122df",\r
3172         "type": "outcomeTrue",\r
3173         "name": "true",\r
3174         "xml": "<outcome value='true'>\n",\r
3175         "comments": "",\r
3176         "outputs": 1,\r
3177         "x": 1154,\r
3178         "y": 872,\r
3179         "z": "ed7c1675.7a56b",\r
3180         "wires": [\r
3181             [\r
3182                 "f3fb6a94.133bb"\r
3183             ]\r
3184         ]\r
3185     },\r
3186     {\r
3187         "id": "47ffeb93.7b808c",\r
3188         "type": "outcomeFalse",\r
3189         "name": "false",\r
3190         "xml": "<outcome value='false'>\n",\r
3191         "comments": "",\r
3192         "outputs": 1,\r
3193         "x": 1154,\r
3194         "y": 821,\r
3195         "z": "ed7c1675.7a56b",\r
3196         "wires": [\r
3197             [\r
3198                 "3da0dc2.736e6a4"\r
3199             ]\r
3200         ]\r
3201     },\r
3202     {\r
3203         "id": "f3fb6a94.133bb",\r
3204         "type": "block",\r
3205         "name": "block : atomic",\r
3206         "xml": "<block atomic=\"true\">",\r
3207         "atomic": "true",\r
3208         "outputs": 1,\r
3209         "x": 1310,\r
3210         "y": 870,\r
3211         "z": "ed7c1675.7a56b",\r
3212         "wires": [\r
3213             [\r
3214                 "9ed7a6be.5472c"\r
3215             ]\r
3216         ]\r
3217     },\r
3218     {\r
3219         "id": "3da0dc2.736e6a4",\r
3220         "type": "block",\r
3221         "name": "block",\r
3222         "xml": "<block>",\r
3223         "atomic": "false",\r
3224         "comments": "",\r
3225         "outputs": 1,\r
3226         "x": 1287,\r
3227         "y": 822,\r
3228         "z": "ed7c1675.7a56b",\r
3229         "wires": [\r
3230             []\r
3231         ]\r
3232     },\r
3233     {\r
3234         "id": "ca01ca51.23bb98",\r
3235         "type": "set",\r
3236         "name": "unset tmp.aai.vpn-binding",\r
3237         "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value=\"\" />\n",\r
3238         "comments": "",\r
3239         "x": 2047,\r
3240         "y": 220,\r
3241         "z": "ed7c1675.7a56b",\r
3242         "wires": []\r
3243     },\r
3244     {\r
3245         "id": "6ccc1a6d.d89cd4",\r
3246         "type": "set",\r
3247         "name": "set root-otn-tunnels-list array",\r
3248         "xml": "<set>\n<parameter name='`roottunsidx`' value='`$roottunsidx + 1`' />\n",\r
3249         "comments": "",\r
3250         "x": 3589,\r
3251         "y": 2201,\r
3252         "z": "ed7c1675.7a56b",\r
3253         "wires": []\r
3254     },\r
3255     {\r
3256         "id": "ceaa1f2c.697ad",\r
3257         "type": "set",\r
3258         "name": "set leaf-otn-tunnels-list array",\r
3259         "xml": "<set>\n<parameter name='`leaftunsidx`' value='`$leaftunsidx + 1`' />\n",\r
3260         "comments": "",\r
3261         "x": 4179,\r
3262         "y": 674,\r
3263         "z": "ed7c1675.7a56b",\r
3264         "wires": []\r
3265     },\r
3266     {\r
3267         "id": "b8d52cff.f0dcb",\r
3268         "type": "set",\r
3269         "name": "set ethernet-srv-end-points-list array",\r
3270         "xml": "<set>\n<parameter name='`epidx`' value='`$epidx + 1`' />\n",\r
3271         "comments": "",\r
3272         "x": 1353,\r
3273         "y": 1780,\r
3274         "z": "ed7c1675.7a56b",\r
3275         "wires": []\r
3276     },\r
3277     {\r
3278         "id": "901c32b.8d67fd",\r
3279         "type": "set",\r
3280         "name": "set filename",\r
3281         "xml": "<set>\n<parameter name='filenameclleths' value=\"`$leafOrRootAccess + $tmp.aai.connectivity.access-node-id`\" />",\r
3282         "comments": "",\r
3283         "x": 532,\r
3284         "y": 1514,\r
3285         "z": "ed7c1675.7a56b",\r
3286         "wires": []\r
3287     },\r
3288     {\r
3289         "id": "d142c0f2.700e98",\r
3290         "type": "execute",\r
3291         "name": "execute printContext",\r
3292         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n    <parameter name=\"filename\" value=\"`$filenameclleths`\" />\n",\r
3293         "comments": "",\r
3294         "outputs": 1,\r
3295         "x": 563,\r
3296         "y": 1554,\r
3297         "z": "ed7c1675.7a56b",\r
3298         "wires": [\r
3299             []\r
3300         ]\r
3301     },\r
3302     {\r
3303         "id": "70164d90.2f08c4",\r
3304         "type": "set",\r
3305         "name": "set otn-tunnels-name-list array",\r
3306         "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
3307         "comments": "",\r
3308         "x": 1111,\r
3309         "y": 1962,\r
3310         "z": "ed7c1675.7a56b",\r
3311         "wires": []\r
3312     },\r
3313     {\r
3314         "id": "27824a25.86f05e",\r
3315         "type": "set",\r
3316         "name": "set otn-tunnels-name-list array",\r
3317         "xml": "<set>\n<parameter name='`otntunsidx`' value='`$otntunsidx + 1`' />\n",\r
3318         "comments": "",\r
3319         "x": 1114,\r
3320         "y": 2004,\r
3321         "z": "ed7c1675.7a56b",\r
3322         "wires": []\r
3323     },\r
3324     {\r
3325         "id": "f24a5646.1c02c8",\r
3326         "type": "set",\r
3327         "name": "unset otn-tunnels-name-list array",\r
3328         "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
3329         "comments": "",\r
3330         "x": 557,\r
3331         "y": 1644,\r
3332         "z": "ed7c1675.7a56b",\r
3333         "wires": []\r
3334     },\r
3335     {\r
3336         "id": "db09832f.86c758",\r
3337         "type": "set",\r
3338         "name": "set filename",\r
3339         "xml": "<set>\n<parameter name='filenamecllotns' value=\"`leafrootOTNtunnelnames`\" />",\r
3340         "comments": "",\r
3341         "x": 312,\r
3342         "y": 2023,\r
3343         "z": "ed7c1675.7a56b",\r
3344         "wires": []\r
3345     },\r
3346     {\r
3347         "id": "3c14b8ea.b96268",\r
3348         "type": "execute",\r
3349         "name": "execute printContext",\r
3350         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n    <parameter name=\"filename\" value=\"`$filenamecllotns`\" />\n",\r
3351         "comments": "",\r
3352         "outputs": 1,\r
3353         "x": 320,\r
3354         "y": 2080,\r
3355         "z": "ed7c1675.7a56b",\r
3356         "wires": [\r
3357             []\r
3358         ]\r
3359     },\r
3360     {\r
3361         "id": "4915b2e4.5fd2dc",\r
3362         "type": "execute",\r
3363         "name": "execute split tp-id to get pnf-name",\r
3364         "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
3365         "comments": "",\r
3366         "outputs": 1,\r
3367         "x": 1331,\r
3368         "y": 1629,\r
3369         "z": "ed7c1675.7a56b",\r
3370         "wires": [\r
3371             [\r
3372                 "bfcf3bba.b5daa",\r
3373                 "9b18409e.c203c8"\r
3374             ]\r
3375         ]\r
3376     },\r
3377     {\r
3378         "id": "9b18409e.c203c8",\r
3379         "type": "failure",\r
3380         "name": "success",\r
3381         "xml": "<outcome value='success'>\n",\r
3382         "comments": "",\r
3383         "outputs": 1,\r
3384         "x": 1554,\r
3385         "y": 1584,\r
3386         "z": "ed7c1675.7a56b",\r
3387         "wires": [\r
3388             [\r
3389                 "5afaf397.e20c3c"\r
3390             ]\r
3391         ]\r
3392     },\r
3393     {\r
3394         "id": "bfcf3bba.b5daa",\r
3395         "type": "failure",\r
3396         "name": "failure",\r
3397         "xml": "<outcome value='failure'>\n",\r
3398         "comments": "",\r
3399         "outputs": 1,\r
3400         "x": 1556,\r
3401         "y": 1648,\r
3402         "z": "ed7c1675.7a56b",\r
3403         "wires": [\r
3404             [\r
3405                 "f7de9867.a0fd38"\r
3406             ]\r
3407         ]\r
3408     },\r
3409     {\r
3410         "id": "5afaf397.e20c3c",\r
3411         "type": "block",\r
3412         "name": "block : atomic",\r
3413         "xml": "<block atomic=\"true\">",\r
3414         "atomic": "true",\r
3415         "outputs": 1,\r
3416         "x": 1719,\r
3417         "y": 1581,\r
3418         "z": "ed7c1675.7a56b",\r
3419         "wires": [\r
3420             [\r
3421                 "cdcfe3c8.962368"\r
3422             ]\r
3423         ]\r
3424     },\r
3425     {\r
3426         "id": "f7de9867.a0fd38",\r
3427         "type": "returnFailure",\r
3428         "name": "return failure",\r
3429         "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
3430         "comments": "",\r
3431         "x": 1718,\r
3432         "y": 1644,\r
3433         "z": "ed7c1675.7a56b",\r
3434         "wires": []\r
3435     },\r
3436     {\r
3437         "id": "cdcfe3c8.962368",\r
3438         "type": "set",\r
3439         "name": "set tmp.uni-node-id-short",\r
3440         "xml": "<set>\n<parameter name='tmp.uni-node-id-short' value='`$param-prefix-uni[$param-prefix-uni_length -3]`' />\n",\r
3441         "comments": "",\r
3442         "x": 1939,\r
3443         "y": 1595,\r
3444         "z": "ed7c1675.7a56b",\r
3445         "wires": []\r
3446     },\r
3447     {\r
3448         "id": "6d07bcb7.ffff34",\r
3449         "type": "outcome",\r
3450         "name": "esr-thirdparty-sdnc",\r
3451         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
3452         "comments": "",\r
3453         "outputs": 1,\r
3454         "x": 1484,\r
3455         "y": 2320,\r
3456         "z": "ed7c1675.7a56b",\r
3457         "wires": [\r
3458             [\r
3459                 "9547fb43.8165f"\r
3460             ]\r
3461         ]\r
3462     },\r
3463     {\r
3464         "id": "261f721d.19cda6",\r
3465         "type": "execute",\r
3466         "name": "get esr-thirdparty-sdnc",\r
3467         "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
3468         "comments": "",\r
3469         "outputs": 1,\r
3470         "x": 1869,\r
3471         "y": 2333,\r
3472         "z": "ed7c1675.7a56b",\r
3473         "wires": [\r
3474             [\r
3475                 "a4fad359.d63e7",\r
3476                 "d7202a06.97a2a8",\r
3477                 "d2a1d22e.b2ed6"\r
3478             ]\r
3479         ]\r
3480     },\r
3481     {\r
3482         "id": "9547fb43.8165f",\r
3483         "type": "block",\r
3484         "name": "block : atomic",\r
3485         "xml": "<block atomic=\"true\">",\r
3486         "atomic": "true",\r
3487         "outputs": 1,\r
3488         "x": 1663,\r
3489         "y": 2320,\r
3490         "z": "ed7c1675.7a56b",\r
3491         "wires": [\r
3492             [\r
3493                 "9b0cdae9.5834e8",\r
3494                 "261f721d.19cda6"\r
3495             ]\r
3496         ]\r
3497     },\r
3498     {\r
3499         "id": "9b0cdae9.5834e8",\r
3500         "type": "set",\r
3501         "name": "set esr-thirdparty-sdnc domainConn id",\r
3502         "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
3503         "comments": "",\r
3504         "x": 1899,\r
3505         "y": 2281,\r
3506         "z": "ed7c1675.7a56b",\r
3507         "wires": []\r
3508     },\r
3509     {\r
3510         "id": "a4fad359.d63e7",\r
3511         "type": "success",\r
3512         "name": "success",\r
3513         "xml": "<outcome value='success'>\n",\r
3514         "comments": "",\r
3515         "outputs": 1,\r
3516         "x": 2079,\r
3517         "y": 2324,\r
3518         "z": "ed7c1675.7a56b",\r
3519         "wires": [\r
3520             [\r
3521                 "ce2ed097.248ac"\r
3522             ]\r
3523         ]\r
3524     },\r
3525     {\r
3526         "id": "d7202a06.97a2a8",\r
3527         "type": "not-found",\r
3528         "name": "not-found",\r
3529         "xml": "<outcome value='not-found'>\n",\r
3530         "comments": "",\r
3531         "outputs": 1,\r
3532         "x": 2071,\r
3533         "y": 2379,\r
3534         "z": "ed7c1675.7a56b",\r
3535         "wires": [\r
3536             [\r
3537                 "15f2754c.6e5b2b"\r
3538             ]\r
3539         ]\r
3540     },\r
3541     {\r
3542         "id": "d2a1d22e.b2ed6",\r
3543         "type": "other",\r
3544         "name": "other",\r
3545         "xml": "<outcome value='Other'>\n",\r
3546         "comments": "",\r
3547         "outputs": 1,\r
3548         "x": 2076,\r
3549         "y": 2436,\r
3550         "z": "ed7c1675.7a56b",\r
3551         "wires": [\r
3552             [\r
3553                 "fe7bb44f.f58b7"\r
3554             ]\r
3555         ]\r
3556     },\r
3557     {\r
3558         "id": "fe7bb44f.f58b7",\r
3559         "type": "returnFailure",\r
3560         "name": "return failure",\r
3561         "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
3562         "comments": "",\r
3563         "x": 2228,\r
3564         "y": 2437,\r
3565         "z": "ed7c1675.7a56b",\r
3566         "wires": []\r
3567     },\r
3568     {\r
3569         "id": "15f2754c.6e5b2b",\r
3570         "type": "returnFailure",\r
3571         "name": "return failure",\r
3572         "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
3573         "comments": "",\r
3574         "x": 2239,\r
3575         "y": 2382,\r
3576         "z": "ed7c1675.7a56b",\r
3577         "wires": []\r
3578     },\r
3579     {\r
3580         "id": "ce2ed097.248ac",\r
3581         "type": "block",\r
3582         "name": "block",\r
3583         "xml": "<block>\n",\r
3584         "atomic": "false",\r
3585         "comments": "",\r
3586         "outputs": 1,\r
3587         "x": 2223.38232421875,\r
3588         "y": 2321.6556701660156,\r
3589         "z": "ed7c1675.7a56b",\r
3590         "wires": [\r
3591             [\r
3592                 "1c2a2a5a.6d8256"\r
3593             ]\r
3594         ]\r
3595     },\r
3596     {\r
3597         "id": "1c2a2a5a.6d8256",\r
3598         "type": "set",\r
3599         "name": "set controller domainConn data",\r
3600         "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
3601         "comments": "",\r
3602         "x": 2438,\r
3603         "y": 2318,\r
3604         "z": "ed7c1675.7a56b",\r
3605         "wires": []\r
3606     },\r
3607     {\r
3608         "id": "9710382e.112c58",\r
3609         "type": "get-resource",\r
3610         "name": "get-resource src pnf",\r
3611         "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
3612         "comments": "",\r
3613         "outputs": 1,\r
3614         "x": 562,\r
3615         "y": 2366,\r
3616         "z": "ed7c1675.7a56b",\r
3617         "wires": [\r
3618             [\r
3619                 "afc311a9.64a498",\r
3620                 "1b364ee.7270531",\r
3621                 "aa64b78b.7ab17"\r
3622             ]\r
3623         ]\r
3624     },\r
3625     {\r
3626         "id": "afc311a9.64a498",\r
3627         "type": "success",\r
3628         "name": "success",\r
3629         "xml": "<outcome value='success'>\n",\r
3630         "comments": "",\r
3631         "outputs": 1,\r
3632         "x": 757.5001220703125,\r
3633         "y": 2318,\r
3634         "z": "ed7c1675.7a56b",\r
3635         "wires": [\r
3636             [\r
3637                 "7cd619d5.a4e8c"\r
3638             ]\r
3639         ]\r
3640     },\r
3641     {\r
3642         "id": "1b364ee.7270531",\r
3643         "type": "not-found",\r
3644         "name": "not-found",\r
3645         "xml": "<outcome value='not-found'>\n",\r
3646         "comments": "",\r
3647         "outputs": 1,\r
3648         "x": 749.5001220703125,\r
3649         "y": 2373,\r
3650         "z": "ed7c1675.7a56b",\r
3651         "wires": [\r
3652             [\r
3653                 "7127ee10.2a0b4"\r
3654             ]\r
3655         ]\r
3656     },\r
3657     {\r
3658         "id": "7cd619d5.a4e8c",\r
3659         "type": "block",\r
3660         "name": "block",\r
3661         "xml": "<block>\n",\r
3662         "atomic": "false",\r
3663         "comments": "",\r
3664         "outputs": 1,\r
3665         "x": 901.8824462890625,\r
3666         "y": 2317.6556701660156,\r
3667         "z": "ed7c1675.7a56b",\r
3668         "wires": [\r
3669             [\r
3670                 "fd5a5a0.ad9b128"\r
3671             ]\r
3672         ]\r
3673     },\r
3674     {\r
3675         "id": "fd5a5a0.ad9b128",\r
3676         "type": "for",\r
3677         "name": "for each relationship",\r
3678         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
3679         "comments": "",\r
3680         "outputs": 1,\r
3681         "x": 1086,\r
3682         "y": 2316,\r
3683         "z": "ed7c1675.7a56b",\r
3684         "wires": [\r
3685             [\r
3686                 "8c513405.b809e8"\r
3687             ]\r
3688         ]\r
3689     },\r
3690     {\r
3691         "id": "8c513405.b809e8",\r
3692         "type": "switchNode",\r
3693         "name": "switch related-to",\r
3694         "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
3695         "comments": "",\r
3696         "outputs": 1,\r
3697         "x": 1281,\r
3698         "y": 2316,\r
3699         "z": "ed7c1675.7a56b",\r
3700         "wires": [\r
3701             [\r
3702                 "6d07bcb7.ffff34"\r
3703             ]\r
3704         ]\r
3705     },\r
3706     {\r
3707         "id": "aa64b78b.7ab17",\r
3708         "type": "other",\r
3709         "name": "other",\r
3710         "xml": "<outcome value='Other'>\n",\r
3711         "comments": "",\r
3712         "outputs": 1,\r
3713         "x": 754.5001220703125,\r
3714         "y": 2430,\r
3715         "z": "ed7c1675.7a56b",\r
3716         "wires": [\r
3717             [\r
3718                 "22a641d1.a7babe"\r
3719             ]\r
3720         ]\r
3721     },\r
3722     {\r
3723         "id": "22a641d1.a7babe",\r
3724         "type": "returnFailure",\r
3725         "name": "return failure",\r
3726         "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
3727         "comments": "",\r
3728         "x": 906.5001220703125,\r
3729         "y": 2431,\r
3730         "z": "ed7c1675.7a56b",\r
3731         "wires": []\r
3732     },\r
3733     {\r
3734         "id": "7127ee10.2a0b4",\r
3735         "type": "returnFailure",\r
3736         "name": "return failure",\r
3737         "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
3738         "comments": "",\r
3739         "x": 917.5001220703125,\r
3740         "y": 2374,\r
3741         "z": "ed7c1675.7a56b",\r
3742         "wires": []\r
3743     },\r
3744     {\r
3745         "id": "41c682cf.a83f2c",\r
3746         "type": "set",\r
3747         "name": "set tmp.pnf-name-forUrl",\r
3748         "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
3749         "comments": "",\r
3750         "x": 552,\r
3751         "y": 2278,\r
3752         "z": "ed7c1675.7a56b",\r
3753         "wires": []\r
3754     },\r
3755     {\r
3756         "id": "c7cb304b.f39168",\r
3757         "type": "block",\r
3758         "name": "block : atomic",\r
3759         "xml": "<block atomic=\"true\">",\r
3760         "atomic": "true",\r
3761         "comments": "",\r
3762         "outputs": 1,\r
3763         "x": 297,\r
3764         "y": 2409,\r
3765         "z": "ed7c1675.7a56b",\r
3766         "wires": [\r
3767             [\r
3768                 "41c682cf.a83f2c",\r
3769                 "9710382e.112c58"\r
3770             ]\r
3771         ]\r
3772     },\r
3773     {\r
3774         "id": "d390d070.3dc4c",\r
3775         "type": "comment",\r
3776         "name": "Temporary skipping this check - to support multiple instances in one slice",\r
3777         "info": "",\r
3778         "comments": "",\r
3779         "x": 1511.9666748046875,\r
3780         "y": 226.88333129882812,\r
3781         "z": "ed7c1675.7a56b",\r
3782         "wires": []\r
3783     }\r
3784 ]