Support for 1+1 protection path for a cloud leased-line (CLL) service.
[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": "d35e2da9.70a7e",\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": 372,\r
10         "y": 306,\r
11         "z": "5a4cb919.dfff38",\r
12         "wires": [\r
13             [\r
14                 "88d19ab1.10b18",\r
15                 "8fd12759.af6e18",\r
16                 "50405d21.7eae84"\r
17             ]\r
18         ]\r
19     },\r
20     {\r
21         "id": "88d19ab1.10b18",\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": 560,\r
28         "y": 319,\r
29         "z": "5a4cb919.dfff38",\r
30         "wires": [\r
31             [\r
32                 "d472199a.beff9"\r
33             ]\r
34         ]\r
35     },\r
36     {\r
37         "id": "8fd12759.af6e18",\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": 567.4909362792969,\r
44         "y": 361.57403564453125,\r
45         "z": "5a4cb919.dfff38",\r
46         "wires": [\r
47             []\r
48         ]\r
49     },\r
50     {\r
51         "id": "50405d21.7eae84",\r
52         "type": "failure",\r
53         "name": "failure",\r
54         "xml": "<outcome value='failure'>\n",\r
55         "comments": "",\r
56         "outputs": 1,\r
57         "x": 558,\r
58         "y": 408,\r
59         "z": "5a4cb919.dfff38",\r
60         "wires": [\r
61             [\r
62                 "6b1a691d.f6617"\r
63             ]\r
64         ]\r
65     },\r
66     {\r
67         "id": "d472199a.beff9",\r
68         "type": "block",\r
69         "name": "block : atomic",\r
70         "xml": "<block atomic=\"true\">",\r
71         "atomic": "true",\r
72         "outputs": 1,\r
73         "x": 733,\r
74         "y": 317,\r
75         "z": "5a4cb919.dfff38",\r
76         "wires": [\r
77             [\r
78                 "f306805a.38d6f8"\r
79             ]\r
80         ]\r
81     },\r
82     {\r
83         "id": "f306805a.38d6f8",\r
84         "type": "for",\r
85         "name": "for vpnidx in all-vpn-bindings",\r
86         "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",\r
87         "comments": "",\r
88         "outputs": 1,\r
89         "x": 962,\r
90         "y": 318,\r
91         "z": "5a4cb919.dfff38",\r
92         "wires": [\r
93             [\r
94                 "4a920666.d84d68"\r
95             ]\r
96         ]\r
97     },\r
98     {\r
99         "id": "4a920666.d84d68",\r
100         "type": "block",\r
101         "name": "block : atomic",\r
102         "xml": "<block atomic='true'>",\r
103         "atomic": "true",\r
104         "comments": "",\r
105         "outputs": 1,\r
106         "x": 1177,\r
107         "y": 319,\r
108         "z": "5a4cb919.dfff38",\r
109         "wires": [\r
110             [\r
111                 "fc848cba.fc33d8"\r
112             ]\r
113         ]\r
114     },\r
115     {\r
116         "id": "841ae1dd.49d178",\r
117         "type": "switchNode",\r
118         "name": "switch vpnuuid is for this slice",\r
119         "xml": "<!--<switch test=\"`$tmp.slicevpnuuids[$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id] != '' `\">-->\n\n<!-- Replace vpn-type with slice-id (a new attribbute in the latest AAI) -->\n<switch test=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].slice-id == $tmp.aai.service-instance.service-instance-id `\">\n\n",\r
120         "comments": "",\r
121         "outputs": 1,\r
122         "x": 1431,\r
123         "y": 241,\r
124         "z": "5a4cb919.dfff38",\r
125         "wires": [\r
126             [\r
127                 "98ef6cc.4725e9",\r
128                 "ab42fe03.c49e3"\r
129             ]\r
130         ]\r
131     },\r
132     {\r
133         "id": "98ef6cc.4725e9",\r
134         "type": "outcomeTrue",\r
135         "name": "true",\r
136         "xml": "<outcome value='true'>\n",\r
137         "comments": "",\r
138         "outputs": 1,\r
139         "x": 1648,\r
140         "y": 220,\r
141         "z": "5a4cb919.dfff38",\r
142         "wires": [\r
143             [\r
144                 "fc848cba.fc33d8"\r
145             ]\r
146         ]\r
147     },\r
148     {\r
149         "id": "ab42fe03.c49e3",\r
150         "type": "outcomeFalse",\r
151         "name": "false",\r
152         "xml": "<outcome value='false'>\n",\r
153         "comments": "",\r
154         "outputs": 1,\r
155         "x": 1648,\r
156         "y": 269,\r
157         "z": "5a4cb919.dfff38",\r
158         "wires": [\r
159             []\r
160         ]\r
161     },\r
162     {\r
163         "id": "fc848cba.fc33d8",\r
164         "type": "block",\r
165         "name": "block : atomic",\r
166         "xml": "<block atomic='true'>",\r
167         "atomic": "true",\r
168         "comments": "",\r
169         "outputs": 1,\r
170         "x": 1832,\r
171         "y": 306,\r
172         "z": "5a4cb919.dfff38",\r
173         "wires": [\r
174             [\r
175                 "53692e4a.48cde",\r
176                 "957d0d12.f7d338",\r
177                 "1f9b767f.d670b2"\r
178             ]\r
179         ]\r
180     },\r
181     {\r
182         "id": "524dbe59.8ef8f",\r
183         "type": "dgstart",\r
184         "name": "DGSTART",\r
185         "outputs": 1,\r
186         "x": 191,\r
187         "y": 47,\r
188         "z": "5a4cb919.dfff38",\r
189         "wires": [\r
190             [\r
191                 "320667fa.12a2c"\r
192             ]\r
193         ]\r
194     },\r
195     {\r
196         "id": "320667fa.12a2c",\r
197         "type": "service-logic",\r
198         "name": "GENERIC-RESOURCE-API ${project.version}",\r
199         "module": "GENERIC-RESOURCE-API",\r
200         "version": "${project.version}",\r
201         "comments": "",\r
202         "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
203         "outputs": 1,\r
204         "x": 475.2856903076172,\r
205         "y": 108.23810863494873,\r
206         "z": "5a4cb919.dfff38",\r
207         "wires": [\r
208             [\r
209                 "aa006c98.f12b58"\r
210             ]\r
211         ]\r
212     },\r
213     {\r
214         "id": "aa006c98.f12b58",\r
215         "type": "method",\r
216         "name": "method cll-vnf-topology-operation-cll-F1-Activate",\r
217         "xml": "<method rpc='cll-vnf-topology-operation-cll-F1-Activate' mode='sync'>\n",\r
218         "comments": "",\r
219         "outputs": 1,\r
220         "x": 481.42860412597656,\r
221         "y": 193.00003051757812,\r
222         "z": "5a4cb919.dfff38",\r
223         "wires": [\r
224             [\r
225                 "72fe4a66.39584c"\r
226             ]\r
227         ]\r
228     },\r
229     {\r
230         "id": "72fe4a66.39584c",\r
231         "type": "block",\r
232         "name": "block : atomic",\r
233         "xml": "<block atomic=\"true\">",\r
234         "atomic": "true",\r
235         "outputs": 1,\r
236         "x": 791.238037109375,\r
237         "y": 184.66668701171875,\r
238         "z": "5a4cb919.dfff38",\r
239         "wires": [\r
240             [\r
241                 "d35e2da9.70a7e",\r
242                 "cce8745e.b515b8",\r
243                 "706cb78c.da92b",\r
244                 "88772a4.9b58658",\r
245                 "4ace150.4554dec"\r
246             ]\r
247         ]\r
248     },\r
249     {\r
250         "id": "53692e4a.48cde",\r
251         "type": "set",\r
252         "name": "set tmp.aai.vpn-binding",\r
253         "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].`\" />\n",\r
254         "comments": "",\r
255         "x": 2049,\r
256         "y": 244,\r
257         "z": "5a4cb919.dfff38",\r
258         "wires": []\r
259     },\r
260     {\r
261         "id": "123fcc82.b79ae3",\r
262         "type": "set",\r
263         "name": "set attachment_param for OTN A",\r
264         "xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingA.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />\n<!--<parameter name='dst-tpn-id' value='1' />-->\n<parameter name='dst-tpn-id' value='`$tmp.aai.vpn-bindingA.customer-vpn-id`' />\n<parameter name='dst-ttp-id' value='`$tmp.aai.vpn-bindingA.dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-src-domain' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />\n",\r
265         "comments": "",\r
266         "x": 4218,\r
267         "y": 130,\r
268         "z": "5a4cb919.dfff38",\r
269         "wires": []\r
270     },\r
271     {\r
272         "id": "e308a3a2.af826",\r
273         "type": "execute",\r
274         "name": "execute RestApiCallNode Create OTN tunnel with token",\r
275         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cll-otn-src-domain-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
276         "comments": "",\r
277         "outputs": 1,\r
278         "x": 4299,\r
279         "y": 445,\r
280         "z": "5a4cb919.dfff38",\r
281         "wires": [\r
282             [\r
283                 "fedd6b9.d7f3318",\r
284                 "39581c20.edb614"\r
285             ]\r
286         ]\r
287     },\r
288     {\r
289         "id": "fedd6b9.d7f3318",\r
290         "type": "failure",\r
291         "name": "failure",\r
292         "xml": "<outcome value='failure'>\n",\r
293         "comments": "",\r
294         "outputs": 1,\r
295         "x": 4608.5,\r
296         "y": 414,\r
297         "z": "5a4cb919.dfff38",\r
298         "wires": [\r
299             [\r
300                 "c49081cf.377c78"\r
301             ]\r
302         ]\r
303     },\r
304     {\r
305         "id": "39581c20.edb614",\r
306         "type": "success",\r
307         "name": "success",\r
308         "xml": "<outcome value='success'>\n",\r
309         "comments": "",\r
310         "outputs": 1,\r
311         "x": 4613.5,\r
312         "y": 479,\r
313         "z": "5a4cb919.dfff38",\r
314         "wires": [\r
315             [\r
316                 "9c0572a4.3a997"\r
317             ]\r
318         ]\r
319     },\r
320     {\r
321         "id": "c49081cf.377c78",\r
322         "type": "returnFailure",\r
323         "name": "return failure",\r
324         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create OTN tunnel rest api\" />\n",\r
325         "comments": "",\r
326         "x": 4784.5,\r
327         "y": 414,\r
328         "z": "5a4cb919.dfff38",\r
329         "wires": []\r
330     },\r
331     {\r
332         "id": "9c0572a4.3a997",\r
333         "type": "block",\r
334         "name": "block : atomic",\r
335         "xml": "<block atomic=\"true\">",\r
336         "atomic": "true",\r
337         "comments": "",\r
338         "outputs": 1,\r
339         "x": 4780,\r
340         "y": 479,\r
341         "z": "5a4cb919.dfff38",\r
342         "wires": [\r
343             []\r
344         ]\r
345     },\r
346     {\r
347         "id": "2d297001.689a7",\r
348         "type": "set",\r
349         "name": "set sotn_value",\r
350         "xml": "<set>\n<!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.connectivity-id`' />-->\n<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.etht-svc-name`' />\n<parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='provider-id' value='`$tmp.aai.connectivityA.access-provider-id`' />\n<parameter name='client-id' value='`$tmp.aai.connectivityA.access-client-id`' />\n<parameter name='topology-id' value='`$tmp.aai.connectivityA.access-topology-id`' />\n<parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n<parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityA.connectivity-id`' />\n<parameter name='index-number' value='0' />\n<parameter name='eth-node-id' value='`$tmp.aai.connectivityA.access-node-id`' />\n<parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityA.access-ltp-id`' />\n<parameter name='CIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />\n<parameter name='EIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />\n<parameter name='cvlan' value='`$tmp.aai.connectivityA.cvlan`' />\n",\r
351         "comments": "",\r
352         "x": 4163.5,\r
353         "y": 699,\r
354         "z": "5a4cb919.dfff38",\r
355         "wires": []\r
356     },\r
357     {\r
358         "id": "54d9bbcc.0d0bac",\r
359         "type": "execute",\r
360         "name": "execute RestApiCallNode Create ethernet Service without token",\r
361         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-ethernet-service.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n",\r
362         "comments": "",\r
363         "outputs": 1,\r
364         "x": 4317.5,\r
365         "y": 747,\r
366         "z": "5a4cb919.dfff38",\r
367         "wires": [\r
368             [\r
369                 "2ade786d.c09b28",\r
370                 "f17ad5b3.0ef818"\r
371             ]\r
372         ]\r
373     },\r
374     {\r
375         "id": "2ade786d.c09b28",\r
376         "type": "failure",\r
377         "name": "failure",\r
378         "xml": "<outcome value='failure'>\n",\r
379         "comments": "",\r
380         "outputs": 1,\r
381         "x": 4663,\r
382         "y": 728,\r
383         "z": "5a4cb919.dfff38",\r
384         "wires": [\r
385             [\r
386                 "72718fb4.e15e78"\r
387             ]\r
388         ]\r
389     },\r
390     {\r
391         "id": "f17ad5b3.0ef818",\r
392         "type": "success",\r
393         "name": "success",\r
394         "xml": "<outcome value='success'>\n",\r
395         "comments": "",\r
396         "outputs": 1,\r
397         "x": 4667,\r
398         "y": 768,\r
399         "z": "5a4cb919.dfff38",\r
400         "wires": [\r
401             [\r
402                 "98b1fdb0.a42648"\r
403             ]\r
404         ]\r
405     },\r
406     {\r
407         "id": "72718fb4.e15e78",\r
408         "type": "returnFailure",\r
409         "name": "return failure",\r
410         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create ethernet service rest api\" />\n",\r
411         "comments": "",\r
412         "x": 4821,\r
413         "y": 728,\r
414         "z": "5a4cb919.dfff38",\r
415         "wires": []\r
416     },\r
417     {\r
418         "id": "98b1fdb0.a42648",\r
419         "type": "block",\r
420         "name": "block : atomic",\r
421         "xml": "<block atomic=\"true\">",\r
422         "atomic": "true",\r
423         "comments": "",\r
424         "outputs": 1,\r
425         "x": 4824.5,\r
426         "y": 768,\r
427         "z": "5a4cb919.dfff38",\r
428         "wires": [\r
429             [\r
430                 "fe12ce9.6a53ab",\r
431                 "4eba4c2.fda54b4"\r
432             ]\r
433         ]\r
434     },\r
435     {\r
436         "id": "fe12ce9.6a53ab",\r
437         "type": "save",\r
438         "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",\r
439         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.vpn-bindingA.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-bindingA.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",\r
440         "comments": "",\r
441         "outputs": 1,\r
442         "x": 5155,\r
443         "y": 733,\r
444         "z": "5a4cb919.dfff38",\r
445         "wires": [\r
446             []\r
447         ]\r
448     },\r
449     {\r
450         "id": "9e233ee4.5c90e",\r
451         "type": "comment",\r
452         "name": "TODO: FIXME",\r
453         "info": "use proper vpn-binding id and connectivity id\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",\r
454         "comments": "",\r
455         "x": 5019,\r
456         "y": 692,\r
457         "z": "5a4cb919.dfff38",\r
458         "wires": []\r
459     },\r
460     {\r
461         "id": "4eba4c2.fda54b4",\r
462         "type": "save",\r
463         "name": "update connectivity resource in AAI",\r
464         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.aai.connectivityA.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivityA.connectivity-id`' />\n<parameter name='operational-status' value='Activated' />\n",\r
465         "comments": "",\r
466         "outputs": 1,\r
467         "x": 5082,\r
468         "y": 779,\r
469         "z": "5a4cb919.dfff38",\r
470         "wires": [\r
471             []\r
472         ]\r
473     },\r
474     {\r
475         "id": "fbd17573.b91cd8",\r
476         "type": "set",\r
477         "name": "set pnf-name",\r
478         "xml": "<set>\n<parameter name='tmp.src.domainA.pnf-name' value=\"`'networkId-providerId-' +\n                                                   $tmp.aai.vpn-bindingA.access-provider-id + '-clientId-' +\n                                                   $tmp.aai.vpn-bindingA.access-client-id + '-topologyId-' +\n                                                   $tmp.aai.vpn-bindingA.access-topology-id + '-nodeId-' +\n                                                   $tmp.aai.vpn-bindingA.src-access-node-id`\" />\n",\r
479         "comments": "",\r
480         "x": 4156,\r
481         "y": 178,\r
482         "z": "5a4cb919.dfff38",\r
483         "wires": []\r
484     },\r
485     {\r
486         "id": "985dbb20.1c3b78",\r
487         "type": "get-resource",\r
488         "name": "get-resource src pnf",\r
489         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.src.domainA.pnf-name\"\n        pfx='tmp.aai.source-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
490         "comments": "",\r
491         "outputs": 1,\r
492         "x": 4182,\r
493         "y": 295,\r
494         "z": "5a4cb919.dfff38",\r
495         "wires": [\r
496             [\r
497                 "544c4f89.eba52",\r
498                 "eb873b5e.d10b8",\r
499                 "d8377d86.76164"\r
500             ]\r
501         ]\r
502     },\r
503     {\r
504         "id": "544c4f89.eba52",\r
505         "type": "success",\r
506         "name": "success",\r
507         "xml": "<outcome value='success'>\n",\r
508         "comments": "",\r
509         "outputs": 1,\r
510         "x": 4377.5001220703125,\r
511         "y": 247,\r
512         "z": "5a4cb919.dfff38",\r
513         "wires": [\r
514             [\r
515                 "cd232c91.ed7d5"\r
516             ]\r
517         ]\r
518     },\r
519     {\r
520         "id": "eb873b5e.d10b8",\r
521         "type": "not-found",\r
522         "name": "not-found",\r
523         "xml": "<outcome value='not-found'>\n",\r
524         "comments": "",\r
525         "outputs": 1,\r
526         "x": 4369.5001220703125,\r
527         "y": 302,\r
528         "z": "5a4cb919.dfff38",\r
529         "wires": [\r
530             [\r
531                 "7e7e18a4.ea2a98"\r
532             ]\r
533         ]\r
534     },\r
535     {\r
536         "id": "cd232c91.ed7d5",\r
537         "type": "block",\r
538         "name": "block",\r
539         "xml": "<block>\n",\r
540         "atomic": "false",\r
541         "comments": "",\r
542         "outputs": 1,\r
543         "x": 4521.8824462890625,\r
544         "y": 246.65567016601562,\r
545         "z": "5a4cb919.dfff38",\r
546         "wires": [\r
547             [\r
548                 "d5d46c3b.524dc8"\r
549             ]\r
550         ]\r
551     },\r
552     {\r
553         "id": "4c85ec99.26bac4",\r
554         "type": "outcome",\r
555         "name": "esr-thirdparty-sdnc",\r
556         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
557         "comments": "",\r
558         "outputs": 1,\r
559         "x": 5104,\r
560         "y": 249,\r
561         "z": "5a4cb919.dfff38",\r
562         "wires": [\r
563             [\r
564                 "490c8cc0.c71134"\r
565             ]\r
566         ]\r
567     },\r
568     {\r
569         "id": "d5d46c3b.524dc8",\r
570         "type": "for",\r
571         "name": "for each relationship",\r
572         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
573         "comments": "",\r
574         "outputs": 1,\r
575         "x": 4706,\r
576         "y": 245,\r
577         "z": "5a4cb919.dfff38",\r
578         "wires": [\r
579             [\r
580                 "cc43f2ea.19847"\r
581             ]\r
582         ]\r
583     },\r
584     {\r
585         "id": "cc43f2ea.19847",\r
586         "type": "switchNode",\r
587         "name": "switch related-to",\r
588         "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
589         "comments": "",\r
590         "outputs": 1,\r
591         "x": 4901,\r
592         "y": 245,\r
593         "z": "5a4cb919.dfff38",\r
594         "wires": [\r
595             [\r
596                 "4c85ec99.26bac4"\r
597             ]\r
598         ]\r
599     },\r
600     {\r
601         "id": "d8377d86.76164",\r
602         "type": "other",\r
603         "name": "other",\r
604         "xml": "<outcome value='Other'>\n",\r
605         "comments": "",\r
606         "outputs": 1,\r
607         "x": 4374.5001220703125,\r
608         "y": 359,\r
609         "z": "5a4cb919.dfff38",\r
610         "wires": [\r
611             [\r
612                 "9cf617d3.aee3a8"\r
613             ]\r
614         ]\r
615     },\r
616     {\r
617         "id": "9cf617d3.aee3a8",\r
618         "type": "returnFailure",\r
619         "name": "return failure",\r
620         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
621         "comments": "",\r
622         "x": 4526.5001220703125,\r
623         "y": 360,\r
624         "z": "5a4cb919.dfff38",\r
625         "wires": []\r
626     },\r
627     {\r
628         "id": "7e7e18a4.ea2a98",\r
629         "type": "returnFailure",\r
630         "name": "return failure",\r
631         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
632         "comments": "",\r
633         "x": 4537.5001220703125,\r
634         "y": 303,\r
635         "z": "5a4cb919.dfff38",\r
636         "wires": []\r
637     },\r
638     {\r
639         "id": "f42e9c90.ae58f",\r
640         "type": "execute",\r
641         "name": "get esr-thirdparty-sdnc",\r
642         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainA.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainA.esr-thirdparty-sdnc' local-only='false' >",\r
643         "comments": "",\r
644         "outputs": 1,\r
645         "x": 5489,\r
646         "y": 262,\r
647         "z": "5a4cb919.dfff38",\r
648         "wires": [\r
649             [\r
650                 "f404a9ca.fbce2",\r
651                 "3fd1ebaf.c62a54",\r
652                 "66a3972e.71bfa8"\r
653             ]\r
654         ]\r
655     },\r
656     {\r
657         "id": "490c8cc0.c71134",\r
658         "type": "block",\r
659         "name": "block : atomic",\r
660         "xml": "<block atomic=\"true\">",\r
661         "atomic": "true",\r
662         "outputs": 1,\r
663         "x": 5283,\r
664         "y": 249,\r
665         "z": "5a4cb919.dfff38",\r
666         "wires": [\r
667             [\r
668                 "9ce5b4b0.4bb188",\r
669                 "f42e9c90.ae58f"\r
670             ]\r
671         ]\r
672     },\r
673     {\r
674         "id": "9ce5b4b0.4bb188",\r
675         "type": "set",\r
676         "name": "set esr-thirdparty-sdnc domainA id",\r
677         "xml": "<set>\n<parameter name='tmp.domainA.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
678         "comments": "",\r
679         "x": 5519,\r
680         "y": 210,\r
681         "z": "5a4cb919.dfff38",\r
682         "wires": []\r
683     },\r
684     {\r
685         "id": "f404a9ca.fbce2",\r
686         "type": "success",\r
687         "name": "success",\r
688         "xml": "<outcome value='success'>\n",\r
689         "comments": "",\r
690         "outputs": 1,\r
691         "x": 5699,\r
692         "y": 253,\r
693         "z": "5a4cb919.dfff38",\r
694         "wires": [\r
695             [\r
696                 "3597c274.50637e"\r
697             ]\r
698         ]\r
699     },\r
700     {\r
701         "id": "3fd1ebaf.c62a54",\r
702         "type": "not-found",\r
703         "name": "not-found",\r
704         "xml": "<outcome value='not-found'>\n",\r
705         "comments": "",\r
706         "outputs": 1,\r
707         "x": 5691,\r
708         "y": 308,\r
709         "z": "5a4cb919.dfff38",\r
710         "wires": [\r
711             [\r
712                 "ff90e84e.43d4b8"\r
713             ]\r
714         ]\r
715     },\r
716     {\r
717         "id": "66a3972e.71bfa8",\r
718         "type": "other",\r
719         "name": "other",\r
720         "xml": "<outcome value='Other'>\n",\r
721         "comments": "",\r
722         "outputs": 1,\r
723         "x": 5696,\r
724         "y": 365,\r
725         "z": "5a4cb919.dfff38",\r
726         "wires": [\r
727             [\r
728                 "ff823793.36814"\r
729             ]\r
730         ]\r
731     },\r
732     {\r
733         "id": "ff823793.36814",\r
734         "type": "returnFailure",\r
735         "name": "return failure",\r
736         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
737         "comments": "",\r
738         "x": 5848,\r
739         "y": 366,\r
740         "z": "5a4cb919.dfff38",\r
741         "wires": []\r
742     },\r
743     {\r
744         "id": "ff90e84e.43d4b8",\r
745         "type": "returnFailure",\r
746         "name": "return failure",\r
747         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
748         "comments": "",\r
749         "x": 5859,\r
750         "y": 311,\r
751         "z": "5a4cb919.dfff38",\r
752         "wires": []\r
753     },\r
754     {\r
755         "id": "3597c274.50637e",\r
756         "type": "block",\r
757         "name": "block",\r
758         "xml": "<block>\n",\r
759         "atomic": "false",\r
760         "comments": "",\r
761         "outputs": 1,\r
762         "x": 5843.38232421875,\r
763         "y": 250.65567016601562,\r
764         "z": "5a4cb919.dfff38",\r
765         "wires": [\r
766             [\r
767                 "d39e28b5.1aec5"\r
768             ]\r
769         ]\r
770     },\r
771     {\r
772         "id": "d39e28b5.1aec5",\r
773         "type": "set",\r
774         "name": "set controller domainA data",\r
775         "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.url' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.user' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.password' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
776         "comments": "",\r
777         "x": 6058,\r
778         "y": 247,\r
779         "z": "5a4cb919.dfff38",\r
780         "wires": []\r
781     },\r
782     {\r
783         "id": "139f2f1e.8fa159",\r
784         "type": "set",\r
785         "name": "set attachment_param for OTN B",\r
786         "xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingB.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />\n<!--<parameter name='src-tpn-id' value='1' />-->\n<parameter name='src-tpn-id' value='`$tmp.aai.vpn-bindingB.customer-vpn-id`' />\n<parameter name='src-ttp-id' value='`$tmp.aai.vpn-bindingB.src-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-dst-domain' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />\n",\r
787         "comments": "",\r
788         "x": 3625,\r
789         "y": 1587,\r
790         "z": "5a4cb919.dfff38",\r
791         "wires": []\r
792     },\r
793     {\r
794         "id": "18d2c2bc.05fd85",\r
795         "type": "execute",\r
796         "name": "execute RestApiCallNode Create OTN tunnel with token",\r
797         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cll-otn-dst-domain-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
798         "comments": "",\r
799         "outputs": 1,\r
800         "x": 3688,\r
801         "y": 1916,\r
802         "z": "5a4cb919.dfff38",\r
803         "wires": [\r
804             [\r
805                 "8895fa29.bf8e3",\r
806                 "23c7c635.fd4722"\r
807             ]\r
808         ]\r
809     },\r
810     {\r
811         "id": "8895fa29.bf8e3",\r
812         "type": "failure",\r
813         "name": "failure",\r
814         "xml": "<outcome value='failure'>\n",\r
815         "comments": "",\r
816         "outputs": 1,\r
817         "x": 3983.5,\r
818         "y": 1883,\r
819         "z": "5a4cb919.dfff38",\r
820         "wires": [\r
821             [\r
822                 "500b5538.e88684"\r
823             ]\r
824         ]\r
825     },\r
826     {\r
827         "id": "23c7c635.fd4722",\r
828         "type": "success",\r
829         "name": "success",\r
830         "xml": "<outcome value='success'>\n",\r
831         "comments": "",\r
832         "outputs": 1,\r
833         "x": 3988.5,\r
834         "y": 1948,\r
835         "z": "5a4cb919.dfff38",\r
836         "wires": [\r
837             [\r
838                 "909dfd67.2300d8"\r
839             ]\r
840         ]\r
841     },\r
842     {\r
843         "id": "500b5538.e88684",\r
844         "type": "returnFailure",\r
845         "name": "return failure",\r
846         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create OTN tunnel rest api\" />\n",\r
847         "comments": "",\r
848         "x": 4151.5,\r
849         "y": 1883,\r
850         "z": "5a4cb919.dfff38",\r
851         "wires": []\r
852     },\r
853     {\r
854         "id": "909dfd67.2300d8",\r
855         "type": "block",\r
856         "name": "block : atomic",\r
857         "xml": "<block atomic=\"true\">",\r
858         "atomic": "true",\r
859         "comments": "",\r
860         "outputs": 1,\r
861         "x": 4162,\r
862         "y": 1948,\r
863         "z": "5a4cb919.dfff38",\r
864         "wires": [\r
865             []\r
866         ]\r
867     },\r
868     {\r
869         "id": "a49aeabe.b5ff8",\r
870         "type": "set",\r
871         "name": "set pnf-name",\r
872         "xml": "<set>\n<parameter name='tmp.dst.domainB.pnf-name' value=\"`'networkId-providerId-' +\n                                                   $tmp.aai.vpn-bindingB.access-provider-id + '-clientId-' +\n                                                   $tmp.aai.vpn-bindingB.access-client-id + '-topologyId-' +\n                                                   $tmp.aai.vpn-bindingB.access-topology-id + '-nodeId-' +\n                                                   $tmp.aai.vpn-bindingB.dst-access-node-id`\" />\n",\r
873         "comments": "",\r
874         "x": 3564,\r
875         "y": 1644,\r
876         "z": "5a4cb919.dfff38",\r
877         "wires": []\r
878     },\r
879     {\r
880         "id": "642d00da.b53c68",\r
881         "type": "get-resource",\r
882         "name": "get-resource dst pnf",\r
883         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.dst.domainB.pnf-name\"\n        pfx='tmp.aai.destination-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
884         "comments": "",\r
885         "outputs": 1,\r
886         "x": 3584,\r
887         "y": 1741,\r
888         "z": "5a4cb919.dfff38",\r
889         "wires": [\r
890             [\r
891                 "1e5d6803.78b7d8",\r
892                 "84307ec5.09a8d",\r
893                 "b468d4fc.bc9c8"\r
894             ]\r
895         ]\r
896     },\r
897     {\r
898         "id": "1e5d6803.78b7d8",\r
899         "type": "success",\r
900         "name": "success",\r
901         "xml": "<outcome value='success'>\n",\r
902         "comments": "",\r
903         "outputs": 1,\r
904         "x": 3786.5001220703125,\r
905         "y": 1694,\r
906         "z": "5a4cb919.dfff38",\r
907         "wires": [\r
908             [\r
909                 "683b34d0.c1df64"\r
910             ]\r
911         ]\r
912     },\r
913     {\r
914         "id": "84307ec5.09a8d",\r
915         "type": "not-found",\r
916         "name": "not-found",\r
917         "xml": "<outcome value='not-found'>\n",\r
918         "comments": "",\r
919         "outputs": 1,\r
920         "x": 3778.5001220703125,\r
921         "y": 1749,\r
922         "z": "5a4cb919.dfff38",\r
923         "wires": [\r
924             [\r
925                 "72cad52e.cb1d74"\r
926             ]\r
927         ]\r
928     },\r
929     {\r
930         "id": "683b34d0.c1df64",\r
931         "type": "block",\r
932         "name": "block",\r
933         "xml": "<block>\n",\r
934         "atomic": "false",\r
935         "comments": "",\r
936         "outputs": 1,\r
937         "x": 3930.8824462890625,\r
938         "y": 1691.6556701660156,\r
939         "z": "5a4cb919.dfff38",\r
940         "wires": [\r
941             [\r
942                 "8511cae6.cbf588"\r
943             ]\r
944         ]\r
945     },\r
946     {\r
947         "id": "8511cae6.cbf588",\r
948         "type": "for",\r
949         "name": "for each relationship",\r
950         "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",\r
951         "comments": "",\r
952         "outputs": 1,\r
953         "x": 4115,\r
954         "y": 1706,\r
955         "z": "5a4cb919.dfff38",\r
956         "wires": [\r
957             [\r
958                 "82496ff9.234ee"\r
959             ]\r
960         ]\r
961     },\r
962     {\r
963         "id": "b468d4fc.bc9c8",\r
964         "type": "other",\r
965         "name": "other",\r
966         "xml": "<outcome value='Other'>\n",\r
967         "comments": "",\r
968         "outputs": 1,\r
969         "x": 3783.5001220703125,\r
970         "y": 1806,\r
971         "z": "5a4cb919.dfff38",\r
972         "wires": [\r
973             [\r
974                 "a6137ce1.b3b5c"\r
975             ]\r
976         ]\r
977     },\r
978     {\r
979         "id": "a6137ce1.b3b5c",\r
980         "type": "returnFailure",\r
981         "name": "return failure",\r
982         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
983         "comments": "",\r
984         "x": 3935.5001220703125,\r
985         "y": 1807,\r
986         "z": "5a4cb919.dfff38",\r
987         "wires": []\r
988     },\r
989     {\r
990         "id": "72cad52e.cb1d74",\r
991         "type": "returnFailure",\r
992         "name": "return failure",\r
993         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
994         "comments": "",\r
995         "x": 3946.5001220703125,\r
996         "y": 1752,\r
997         "z": "5a4cb919.dfff38",\r
998         "wires": []\r
999     },\r
1000     {\r
1001         "id": "7b4a137a.364fcc",\r
1002         "type": "outcome",\r
1003         "name": "esr-thirdparty-sdnc",\r
1004         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
1005         "comments": "",\r
1006         "outputs": 1,\r
1007         "x": 4513,\r
1008         "y": 1710,\r
1009         "z": "5a4cb919.dfff38",\r
1010         "wires": [\r
1011             [\r
1012                 "37fe69a9.07064e"\r
1013             ]\r
1014         ]\r
1015     },\r
1016     {\r
1017         "id": "82496ff9.234ee",\r
1018         "type": "switchNode",\r
1019         "name": "switch related-to",\r
1020         "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",\r
1021         "comments": "",\r
1022         "outputs": 1,\r
1023         "x": 4310,\r
1024         "y": 1706,\r
1025         "z": "5a4cb919.dfff38",\r
1026         "wires": [\r
1027             [\r
1028                 "7b4a137a.364fcc"\r
1029             ]\r
1030         ]\r
1031     },\r
1032     {\r
1033         "id": "4bdd9e57.a5e13",\r
1034         "type": "execute",\r
1035         "name": "get esr-thirdparty-sdnc",\r
1036         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainB.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainB.esr-thirdparty-sdnc' local-only='false' >",\r
1037         "comments": "",\r
1038         "outputs": 1,\r
1039         "x": 4898,\r
1040         "y": 1709,\r
1041         "z": "5a4cb919.dfff38",\r
1042         "wires": [\r
1043             [\r
1044                 "8afff046.26af98",\r
1045                 "5118b1e.53f805",\r
1046                 "5a800db8.063d6c"\r
1047             ]\r
1048         ]\r
1049     },\r
1050     {\r
1051         "id": "37fe69a9.07064e",\r
1052         "type": "block",\r
1053         "name": "block : atomic",\r
1054         "xml": "<block atomic=\"true\">",\r
1055         "atomic": "true",\r
1056         "outputs": 1,\r
1057         "x": 4690,\r
1058         "y": 1702,\r
1059         "z": "5a4cb919.dfff38",\r
1060         "wires": [\r
1061             [\r
1062                 "d299743b.8f6b68",\r
1063                 "4bdd9e57.a5e13"\r
1064             ]\r
1065         ]\r
1066     },\r
1067     {\r
1068         "id": "d299743b.8f6b68",\r
1069         "type": "set",\r
1070         "name": "set esr-thirdparty-sdnc domainB id",\r
1071         "xml": "<set>\n<parameter name='tmp.domainB.esr-thirdparty-id' value=\"`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",\r
1072         "comments": "",\r
1073         "x": 4928,\r
1074         "y": 1657,\r
1075         "z": "5a4cb919.dfff38",\r
1076         "wires": []\r
1077     },\r
1078     {\r
1079         "id": "2523ddf0.8e1c8a",\r
1080         "type": "returnFailure",\r
1081         "name": "return failure",\r
1082         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
1083         "comments": "",\r
1084         "x": 5257,\r
1085         "y": 1813,\r
1086         "z": "5a4cb919.dfff38",\r
1087         "wires": []\r
1088     },\r
1089     {\r
1090         "id": "6f850c0f.e212ac",\r
1091         "type": "returnFailure",\r
1092         "name": "return failure",\r
1093         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
1094         "comments": "",\r
1095         "x": 5268,\r
1096         "y": 1758,\r
1097         "z": "5a4cb919.dfff38",\r
1098         "wires": []\r
1099     },\r
1100     {\r
1101         "id": "546ca846.269108",\r
1102         "type": "block",\r
1103         "name": "block",\r
1104         "xml": "<block>\n",\r
1105         "atomic": "false",\r
1106         "comments": "",\r
1107         "outputs": 1,\r
1108         "x": 5252.38232421875,\r
1109         "y": 1697.6556701660156,\r
1110         "z": "5a4cb919.dfff38",\r
1111         "wires": [\r
1112             [\r
1113                 "fac7ab27.77dda8"\r
1114             ]\r
1115         ]\r
1116     },\r
1117     {\r
1118         "id": "fac7ab27.77dda8",\r
1119         "type": "set",\r
1120         "name": "set controller domainB data",\r
1121         "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.url' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.user' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.password' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
1122         "comments": "",\r
1123         "x": 5467,\r
1124         "y": 1694,\r
1125         "z": "5a4cb919.dfff38",\r
1126         "wires": []\r
1127     },\r
1128     {\r
1129         "id": "8afff046.26af98",\r
1130         "type": "success",\r
1131         "name": "success",\r
1132         "xml": "<outcome value='success'>\n",\r
1133         "comments": "",\r
1134         "outputs": 1,\r
1135         "x": 5108,\r
1136         "y": 1700,\r
1137         "z": "5a4cb919.dfff38",\r
1138         "wires": [\r
1139             [\r
1140                 "546ca846.269108"\r
1141             ]\r
1142         ]\r
1143     },\r
1144     {\r
1145         "id": "5118b1e.53f805",\r
1146         "type": "not-found",\r
1147         "name": "not-found",\r
1148         "xml": "<outcome value='not-found'>\n",\r
1149         "comments": "",\r
1150         "outputs": 1,\r
1151         "x": 5100,\r
1152         "y": 1755,\r
1153         "z": "5a4cb919.dfff38",\r
1154         "wires": [\r
1155             [\r
1156                 "6f850c0f.e212ac"\r
1157             ]\r
1158         ]\r
1159     },\r
1160     {\r
1161         "id": "5a800db8.063d6c",\r
1162         "type": "other",\r
1163         "name": "other",\r
1164         "xml": "<outcome value='Other'>\n",\r
1165         "comments": "",\r
1166         "outputs": 1,\r
1167         "x": 5105,\r
1168         "y": 1812,\r
1169         "z": "5a4cb919.dfff38",\r
1170         "wires": [\r
1171             [\r
1172                 "2523ddf0.8e1c8a"\r
1173             ]\r
1174         ]\r
1175     },\r
1176     {\r
1177         "id": "a1edca3.1a62bb8",\r
1178         "type": "switchNode",\r
1179         "name": "switch vpn-binding has dst-access-ltp",\r
1180         "xml": "<switch test='`$tmp.aai.vpn-binding.dst-access-ltp-id`'>\n",\r
1181         "comments": "",\r
1182         "outputs": 1,\r
1183         "x": 3139,\r
1184         "y": 658,\r
1185         "z": "5a4cb919.dfff38",\r
1186         "wires": [\r
1187             [\r
1188                 "d4bdeded.3ef248",\r
1189                 "eead64c.0115918"\r
1190             ]\r
1191         ]\r
1192     },\r
1193     {\r
1194         "id": "d4bdeded.3ef248",\r
1195         "type": "outcome",\r
1196         "name": "Null",\r
1197         "xml": "<outcome value=''>\n",\r
1198         "comments": "",\r
1199         "outputs": 1,\r
1200         "x": 3353,\r
1201         "y": 695,\r
1202         "z": "5a4cb919.dfff38",\r
1203         "wires": [\r
1204             [\r
1205                 "614a0644.b0e3e"\r
1206             ]\r
1207         ]\r
1208     },\r
1209     {\r
1210         "id": "eead64c.0115918",\r
1211         "type": "other",\r
1212         "name": "other",\r
1213         "xml": "<outcome value='Other'>\n",\r
1214         "comments": "",\r
1215         "outputs": 1,\r
1216         "x": 3355,\r
1217         "y": 633,\r
1218         "z": "5a4cb919.dfff38",\r
1219         "wires": [\r
1220             [\r
1221                 "295e16ce.878c6a"\r
1222             ]\r
1223         ]\r
1224     },\r
1225     {\r
1226         "id": "614a0644.b0e3e",\r
1227         "type": "switchNode",\r
1228         "name": "switch vpn-binding has src-access-ltp",\r
1229         "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",\r
1230         "comments": "",\r
1231         "outputs": 1,\r
1232         "x": 2933,\r
1233         "y": 1938,\r
1234         "z": "5a4cb919.dfff38",\r
1235         "wires": [\r
1236             [\r
1237                 "75bfd38b.356f64",\r
1238                 "f4c4b096.a3ce2"\r
1239             ]\r
1240         ]\r
1241     },\r
1242     {\r
1243         "id": "75bfd38b.356f64",\r
1244         "type": "outcome",\r
1245         "name": "Null",\r
1246         "xml": "<outcome value=''>\n",\r
1247         "comments": "",\r
1248         "outputs": 1,\r
1249         "x": 3186,\r
1250         "y": 1972,\r
1251         "z": "5a4cb919.dfff38",\r
1252         "wires": [\r
1253             [\r
1254                 "b0597a28.514d3"\r
1255             ]\r
1256         ]\r
1257     },\r
1258     {\r
1259         "id": "f4c4b096.a3ce2",\r
1260         "type": "other",\r
1261         "name": "other",\r
1262         "xml": "<outcome value='Other'>\n",\r
1263         "comments": "",\r
1264         "outputs": 1,\r
1265         "x": 3186,\r
1266         "y": 1916,\r
1267         "z": "5a4cb919.dfff38",\r
1268         "wires": [\r
1269             [\r
1270                 "64045150.224658"\r
1271             ]\r
1272         ]\r
1273     },\r
1274     {\r
1275         "id": "b0597a28.514d3",\r
1276         "type": "returnFailure",\r
1277         "name": "return failure",\r
1278         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1279         "comments": "",\r
1280         "x": 3337,\r
1281         "y": 1972,\r
1282         "z": "5a4cb919.dfff38",\r
1283         "wires": []\r
1284     },\r
1285     {\r
1286         "id": "cf5b963d.2b5a08",\r
1287         "type": "set",\r
1288         "name": "set vpn-bindingA and connectivityA",\r
1289         "xml": "<set>\n<parameter name='tmp.aai.vpn-bindingA.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityA.' value=\"`$tmp.aai.connectivity.`\" />\n",\r
1290         "comments": "",\r
1291         "x": 4213,\r
1292         "y": 70,\r
1293         "z": "5a4cb919.dfff38",\r
1294         "wires": []\r
1295     },\r
1296     {\r
1297         "id": "4badfb31.b82c1c",\r
1298         "type": "set",\r
1299         "name": "set vpn-bindingB and connectivityB",\r
1300         "xml": "<set>\n<parameter name='tmp.aai.vpn-bindingB.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityB.' value=\"`$tmp.aai.connectivity.`\" />\n\n",\r
1301         "comments": "",\r
1302         "x": 3621,\r
1303         "y": 1529,\r
1304         "z": "5a4cb919.dfff38",\r
1305         "wires": []\r
1306     },\r
1307     {\r
1308         "id": "552020c2.f01db",\r
1309         "type": "block",\r
1310         "name": "block : atomic",\r
1311         "xml": "<block atomic=\"true\">",\r
1312         "atomic": "true",\r
1313         "comments": "",\r
1314         "outputs": 1,\r
1315         "x": 3904,\r
1316         "y": 327,\r
1317         "z": "5a4cb919.dfff38",\r
1318         "wires": [\r
1319             [\r
1320                 "cf5b963d.2b5a08",\r
1321                 "123fcc82.b79ae3",\r
1322                 "fbd17573.b91cd8",\r
1323                 "985dbb20.1c3b78",\r
1324                 "e308a3a2.af826",\r
1325                 "ec3b4a19.7f5ee",\r
1326                 "881b2d7a.c4e888",\r
1327                 "1a392cd7.238923"\r
1328             ]\r
1329         ]\r
1330     },\r
1331     {\r
1332         "id": "64045150.224658",\r
1333         "type": "block",\r
1334         "name": "block : atomic",\r
1335         "xml": "<block atomic=\"true\">",\r
1336         "atomic": "true",\r
1337         "outputs": 1,\r
1338         "x": 3337,\r
1339         "y": 1915,\r
1340         "z": "5a4cb919.dfff38",\r
1341         "wires": [\r
1342             [\r
1343                 "4badfb31.b82c1c",\r
1344                 "139f2f1e.8fa159",\r
1345                 "a49aeabe.b5ff8",\r
1346                 "642d00da.b53c68",\r
1347                 "18d2c2bc.05fd85",\r
1348                 "724930a5.f44628",\r
1349                 "98331ea2.d141f",\r
1350                 "f84de17e.e8ea08"\r
1351             ]\r
1352         ]\r
1353     },\r
1354     {\r
1355         "id": "ed40d4d6.135678",\r
1356         "type": "set",\r
1357         "name": "set sotn_value",\r
1358         "xml": "<set>\n<!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.connectivity-id`' />-->\n<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.etht-svc-name`' />\n<parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='provider-id' value='`$tmp.aai.connectivityB.access-provider-id`' />\n<parameter name='client-id' value='`$tmp.aai.connectivityB.access-client-id`' />\n<parameter name='topology-id' value='`$tmp.aai.connectivityB.access-topology-id`' />\n<parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n<parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityB.connectivity-id`' />\n<parameter name='index-number' value='0' />\n<parameter name='eth-node-id' value='`$tmp.aai.connectivityB.access-node-id`' />\n<parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityB.access-ltp-id`' />\n<parameter name='CIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />\n<parameter name='EIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />\n<parameter name='cvlan' value='`$tmp.aai.connectivityB.cvlan`' />\n\n",\r
1359         "comments": "",\r
1360         "x": 3575,\r
1361         "y": 2214,\r
1362         "z": "5a4cb919.dfff38",\r
1363         "wires": []\r
1364     },\r
1365     {\r
1366         "id": "b71c97.3dad8368",\r
1367         "type": "execute",\r
1368         "name": "execute RestApiCallNode Create ethernet Service without token",\r
1369         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-ethernet-service.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n",\r
1370         "comments": "",\r
1371         "outputs": 1,\r
1372         "x": 3729,\r
1373         "y": 2262,\r
1374         "z": "5a4cb919.dfff38",\r
1375         "wires": [\r
1376             [\r
1377                 "aa1d9a65.d56ee",\r
1378                 "ce785491.f82258"\r
1379             ]\r
1380         ]\r
1381     },\r
1382     {\r
1383         "id": "aa1d9a65.d56ee",\r
1384         "type": "failure",\r
1385         "name": "failure",\r
1386         "xml": "<outcome value='failure'>\n",\r
1387         "comments": "",\r
1388         "outputs": 1,\r
1389         "x": 4074.5,\r
1390         "y": 2243,\r
1391         "z": "5a4cb919.dfff38",\r
1392         "wires": [\r
1393             [\r
1394                 "d8df230a.b47018"\r
1395             ]\r
1396         ]\r
1397     },\r
1398     {\r
1399         "id": "ce785491.f82258",\r
1400         "type": "success",\r
1401         "name": "success",\r
1402         "xml": "<outcome value='success'>\n",\r
1403         "comments": "",\r
1404         "outputs": 1,\r
1405         "x": 4078.5,\r
1406         "y": 2283,\r
1407         "z": "5a4cb919.dfff38",\r
1408         "wires": [\r
1409             [\r
1410                 "d2d57048.de12f"\r
1411             ]\r
1412         ]\r
1413     },\r
1414     {\r
1415         "id": "d8df230a.b47018",\r
1416         "type": "returnFailure",\r
1417         "name": "return failure",\r
1418         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create ethernet service rest api\" />\n",\r
1419         "comments": "",\r
1420         "x": 4232.5,\r
1421         "y": 2243,\r
1422         "z": "5a4cb919.dfff38",\r
1423         "wires": []\r
1424     },\r
1425     {\r
1426         "id": "d2d57048.de12f",\r
1427         "type": "block",\r
1428         "name": "block : atomic",\r
1429         "xml": "<block atomic=\"true\">",\r
1430         "atomic": "true",\r
1431         "comments": "",\r
1432         "outputs": 1,\r
1433         "x": 4236,\r
1434         "y": 2283,\r
1435         "z": "5a4cb919.dfff38",\r
1436         "wires": [\r
1437             [\r
1438                 "703675c3.1d187c",\r
1439                 "6a8e2764.0748e8"\r
1440             ]\r
1441         ]\r
1442     },\r
1443     {\r
1444         "id": "703675c3.1d187c",\r
1445         "type": "save",\r
1446         "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",\r
1447         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.vpn-bindingB.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-bindingB.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",\r
1448         "comments": "",\r
1449         "outputs": 1,\r
1450         "x": 4576,\r
1451         "y": 2282,\r
1452         "z": "5a4cb919.dfff38",\r
1453         "wires": [\r
1454             []\r
1455         ]\r
1456     },\r
1457     {\r
1458         "id": "b9adfc7b.f1d908",\r
1459         "type": "comment",\r
1460         "name": "TODO: FIXME",\r
1461         "info": "use proper vpn-binding id and connectivity\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",\r
1462         "comments": "",\r
1463         "x": 4434,\r
1464         "y": 2240,\r
1465         "z": "5a4cb919.dfff38",\r
1466         "wires": []\r
1467     },\r
1468     {\r
1469         "id": "6a8e2764.0748e8",\r
1470         "type": "save",\r
1471         "name": "update connectivity resource in AAI",\r
1472         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.aai.connectivityB.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivityB.connectivity-id`' />\n<parameter name='operational-status' value='Activated' />\n",\r
1473         "comments": "",\r
1474         "outputs": 1,\r
1475         "x": 4505,\r
1476         "y": 2331,\r
1477         "z": "5a4cb919.dfff38",\r
1478         "wires": [\r
1479             []\r
1480         ]\r
1481     },\r
1482     {\r
1483         "id": "641093d5.a73774",\r
1484         "type": "set",\r
1485         "name": "set attachment_param (gfp-n) for OTN",\r
1486         "xml": "<set>\n<parameter name='gfp-n' value='`$tmp.aai.vpn-binding.route-distinguisher`' />\n",\r
1487         "comments": "",\r
1488         "x": 3130,\r
1489         "y": 598,\r
1490         "z": "5a4cb919.dfff38",\r
1491         "wires": []\r
1492     },\r
1493     {\r
1494         "id": "29b91b19.d2edf4",\r
1495         "type": "comment",\r
1496         "name": "only dst ttp exists. No src",\r
1497         "info": "",\r
1498         "comments": "",\r
1499         "x": 3725,\r
1500         "y": 284,\r
1501         "z": "5a4cb919.dfff38",\r
1502         "wires": []\r
1503     },\r
1504     {\r
1505         "id": "df88a98e.3b797",\r
1506         "type": "comment",\r
1507         "name": "only src ttp exists. No dst",\r
1508         "info": "",\r
1509         "comments": "",\r
1510         "x": 3282,\r
1511         "y": 1862,\r
1512         "z": "5a4cb919.dfff38",\r
1513         "wires": []\r
1514     },\r
1515     {\r
1516         "id": "295e16ce.878c6a",\r
1517         "type": "switchNode",\r
1518         "name": "switch vpn-binding has src-access-ltp",\r
1519         "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",\r
1520         "comments": "",\r
1521         "outputs": 1,\r
1522         "x": 3461,\r
1523         "y": 446,\r
1524         "z": "5a4cb919.dfff38",\r
1525         "wires": [\r
1526             [\r
1527                 "fdfbdf68.ace01",\r
1528                 "8f7ef737.3d4208"\r
1529             ]\r
1530         ]\r
1531     },\r
1532     {\r
1533         "id": "8f7ef737.3d4208",\r
1534         "type": "other",\r
1535         "name": "other",\r
1536         "xml": "<outcome value='Other'>\n",\r
1537         "comments": "",\r
1538         "outputs": 1,\r
1539         "x": 3703,\r
1540         "y": 1035,\r
1541         "z": "5a4cb919.dfff38",\r
1542         "wires": [\r
1543             [\r
1544                 "d545d977.39f008"\r
1545             ]\r
1546         ]\r
1547     },\r
1548     {\r
1549         "id": "fdfbdf68.ace01",\r
1550         "type": "outcome",\r
1551         "name": "Null",\r
1552         "xml": "<outcome value=''>\n",\r
1553         "comments": "",\r
1554         "outputs": 1,\r
1555         "x": 3697,\r
1556         "y": 326,\r
1557         "z": "5a4cb919.dfff38",\r
1558         "wires": [\r
1559             [\r
1560                 "552020c2.f01db"\r
1561             ]\r
1562         ]\r
1563     },\r
1564     {\r
1565         "id": "d545d977.39f008",\r
1566         "type": "block",\r
1567         "name": "block : atomic",\r
1568         "xml": "<block atomic=\"true\">",\r
1569         "atomic": "true",\r
1570         "outputs": 1,\r
1571         "x": 3861,\r
1572         "y": 1034,\r
1573         "z": "5a4cb919.dfff38",\r
1574         "wires": [\r
1575             [\r
1576                 "127c7c35.f5600c",\r
1577                 "aa22b9fb.8c00d",\r
1578                 "7a8bb8ff.a3807",\r
1579                 "b6e4b7cd.3aab58",\r
1580                 "9befe6d.bfbfb18",\r
1581                 "61ff745d.2cf8b4"\r
1582             ]\r
1583         ]\r
1584     },\r
1585     {\r
1586         "id": "aa22b9fb.8c00d",\r
1587         "type": "set",\r
1588         "name": "set attachment_param for OTN G",\r
1589         "xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingG.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingG.dst-access-node-id`' />\n<!--<parameter name='dst-tpn-id' value='1' />-->\n<parameter name='src-tpn-id' value='`$tmp.aai.vpn-bindingG.customer-vpn-id`' />\n<parameter name='dst-tpn-id' value='`$tmp.aai.vpn-bindingG.customer-vpn-id`' />\n<parameter name='src-ttp-id' value='`$tmp.aai.vpn-bindingG.src-access-ltp-id`' />\n<parameter name='dst-ttp-id' value='`$tmp.aai.vpn-bindingG.dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-domainG' value='`$tmp.aai.vpn-bindingG.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingG.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingG.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingG.access-topology-id`' />\n",\r
1590         "comments": "",\r
1591         "x": 4125,\r
1592         "y": 917,\r
1593         "z": "5a4cb919.dfff38",\r
1594         "wires": []\r
1595     },\r
1596     {\r
1597         "id": "9befe6d.bfbfb18",\r
1598         "type": "execute",\r
1599         "name": "execute RestApiCallNode Create OTN tunnel with token",\r
1600         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cll-otn-domainG-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
1601         "comments": "",\r
1602         "outputs": 1,\r
1603         "x": 4206,\r
1604         "y": 1232,\r
1605         "z": "5a4cb919.dfff38",\r
1606         "wires": [\r
1607             [\r
1608                 "602f32f4.cac7b4",\r
1609                 "1d093526.32224b"\r
1610             ]\r
1611         ]\r
1612     },\r
1613     {\r
1614         "id": "602f32f4.cac7b4",\r
1615         "type": "failure",\r
1616         "name": "failure",\r
1617         "xml": "<outcome value='failure'>\n",\r
1618         "comments": "",\r
1619         "outputs": 1,\r
1620         "x": 4515.5,\r
1621         "y": 1201,\r
1622         "z": "5a4cb919.dfff38",\r
1623         "wires": [\r
1624             [\r
1625                 "4513cd6b.369634"\r
1626             ]\r
1627         ]\r
1628     },\r
1629     {\r
1630         "id": "1d093526.32224b",\r
1631         "type": "success",\r
1632         "name": "success",\r
1633         "xml": "<outcome value='success'>\n",\r
1634         "comments": "",\r
1635         "outputs": 1,\r
1636         "x": 4520.5,\r
1637         "y": 1266,\r
1638         "z": "5a4cb919.dfff38",\r
1639         "wires": [\r
1640             [\r
1641                 "7640c8ac.188fc8"\r
1642             ]\r
1643         ]\r
1644     },\r
1645     {\r
1646         "id": "4513cd6b.369634",\r
1647         "type": "returnFailure",\r
1648         "name": "return failure",\r
1649         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create OTN tunnel rest api\" />\n",\r
1650         "comments": "",\r
1651         "x": 4691.5,\r
1652         "y": 1201,\r
1653         "z": "5a4cb919.dfff38",\r
1654         "wires": []\r
1655     },\r
1656     {\r
1657         "id": "7640c8ac.188fc8",\r
1658         "type": "block",\r
1659         "name": "block : atomic",\r
1660         "xml": "<block atomic=\"true\">",\r
1661         "atomic": "true",\r
1662         "comments": "",\r
1663         "outputs": 1,\r
1664         "x": 4687,\r
1665         "y": 1266,\r
1666         "z": "5a4cb919.dfff38",\r
1667         "wires": [\r
1668             []\r
1669         ]\r
1670     },\r
1671     {\r
1672         "id": "7a8bb8ff.a3807",\r
1673         "type": "set",\r
1674         "name": "set pnf-name",\r
1675         "xml": "<set>\n<parameter name='tmp.domainG.pnf-name' value=\"`'networkId-providerId-' +\n                                                   $tmp.aai.vpn-bindingG.access-provider-id + '-clientId-' +\n                                                   $tmp.aai.vpn-bindingG.access-client-id + '-topologyId-' +\n                                                   $tmp.aai.vpn-bindingG.access-topology-id + '-nodeId-' +\n                                                   $tmp.aai.vpn-bindingG.src-access-node-id`\" />\n",\r
1676         "comments": "",\r
1677         "x": 4063,\r
1678         "y": 965,\r
1679         "z": "5a4cb919.dfff38",\r
1680         "wires": []\r
1681     },\r
1682     {\r
1683         "id": "b6e4b7cd.3aab58",\r
1684         "type": "get-resource",\r
1685         "name": "get-resource src pnf",\r
1686         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.domainG.pnf-name\"\n        pfx='tmp.aai.domainG-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
1687         "comments": "",\r
1688         "outputs": 1,\r
1689         "x": 4089,\r
1690         "y": 1082,\r
1691         "z": "5a4cb919.dfff38",\r
1692         "wires": [\r
1693             [\r
1694                 "bc604696.f19bf",\r
1695                 "6b2ab2eb.e94cac",\r
1696                 "158e3d74.81687b"\r
1697             ]\r
1698         ]\r
1699     },\r
1700     {\r
1701         "id": "bc604696.f19bf",\r
1702         "type": "success",\r
1703         "name": "success",\r
1704         "xml": "<outcome value='success'>\n",\r
1705         "comments": "",\r
1706         "outputs": 1,\r
1707         "x": 4284.5001220703125,\r
1708         "y": 1034,\r
1709         "z": "5a4cb919.dfff38",\r
1710         "wires": [\r
1711             [\r
1712                 "fbbae41a.6bb8"\r
1713             ]\r
1714         ]\r
1715     },\r
1716     {\r
1717         "id": "6b2ab2eb.e94cac",\r
1718         "type": "not-found",\r
1719         "name": "not-found",\r
1720         "xml": "<outcome value='not-found'>\n",\r
1721         "comments": "",\r
1722         "outputs": 1,\r
1723         "x": 4276.5001220703125,\r
1724         "y": 1089,\r
1725         "z": "5a4cb919.dfff38",\r
1726         "wires": [\r
1727             [\r
1728                 "5e10560f.7f2a6"\r
1729             ]\r
1730         ]\r
1731     },\r
1732     {\r
1733         "id": "fbbae41a.6bb8",\r
1734         "type": "block",\r
1735         "name": "block",\r
1736         "xml": "<block>\n",\r
1737         "atomic": "false",\r
1738         "comments": "",\r
1739         "outputs": 1,\r
1740         "x": 4428.8824462890625,\r
1741         "y": 1033.6556701660156,\r
1742         "z": "5a4cb919.dfff38",\r
1743         "wires": [\r
1744             [\r
1745                 "4ab90ec7.0f8a1"\r
1746             ]\r
1747         ]\r
1748     },\r
1749     {\r
1750         "id": "4ab90ec7.0f8a1",\r
1751         "type": "for",\r
1752         "name": "for each relationship",\r
1753         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.domainG-pnf.relationship-list.relationship_length`' >\n",\r
1754         "comments": "",\r
1755         "outputs": 1,\r
1756         "x": 4613,\r
1757         "y": 1032,\r
1758         "z": "5a4cb919.dfff38",\r
1759         "wires": [\r
1760             [\r
1761                 "3bb025b6.92298a"\r
1762             ]\r
1763         ]\r
1764     },\r
1765     {\r
1766         "id": "3bb025b6.92298a",\r
1767         "type": "switchNode",\r
1768         "name": "switch related-to",\r
1769         "xml": "<switch test='`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
1770         "comments": "",\r
1771         "outputs": 1,\r
1772         "x": 4808,\r
1773         "y": 1032,\r
1774         "z": "5a4cb919.dfff38",\r
1775         "wires": [\r
1776             [\r
1777                 "ce204654.d589e8"\r
1778             ]\r
1779         ]\r
1780     },\r
1781     {\r
1782         "id": "158e3d74.81687b",\r
1783         "type": "other",\r
1784         "name": "other",\r
1785         "xml": "<outcome value='Other'>\n",\r
1786         "comments": "",\r
1787         "outputs": 1,\r
1788         "x": 4281.5001220703125,\r
1789         "y": 1146,\r
1790         "z": "5a4cb919.dfff38",\r
1791         "wires": [\r
1792             [\r
1793                 "cfe04507.17faa"\r
1794             ]\r
1795         ]\r
1796     },\r
1797     {\r
1798         "id": "cfe04507.17faa",\r
1799         "type": "returnFailure",\r
1800         "name": "return failure",\r
1801         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
1802         "comments": "",\r
1803         "x": 4433.5001220703125,\r
1804         "y": 1147,\r
1805         "z": "5a4cb919.dfff38",\r
1806         "wires": []\r
1807     },\r
1808     {\r
1809         "id": "5e10560f.7f2a6",\r
1810         "type": "returnFailure",\r
1811         "name": "return failure",\r
1812         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
1813         "comments": "",\r
1814         "x": 4444.5001220703125,\r
1815         "y": 1090,\r
1816         "z": "5a4cb919.dfff38",\r
1817         "wires": []\r
1818     },\r
1819     {\r
1820         "id": "127c7c35.f5600c",\r
1821         "type": "set",\r
1822         "name": "set vpn-bindingG and connectivityG",\r
1823         "xml": "<set>\n<parameter name='tmp.aai.vpn-bindingG.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityG.' value=\"`$tmp.aai.connectivity.`\" />\n",\r
1824         "comments": "",\r
1825         "x": 4120,\r
1826         "y": 857,\r
1827         "z": "5a4cb919.dfff38",\r
1828         "wires": []\r
1829     },\r
1830     {\r
1831         "id": "ce204654.d589e8",\r
1832         "type": "outcome",\r
1833         "name": "esr-thirdparty-sdnc",\r
1834         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
1835         "comments": "",\r
1836         "outputs": 1,\r
1837         "x": 5011,\r
1838         "y": 1036,\r
1839         "z": "5a4cb919.dfff38",\r
1840         "wires": [\r
1841             [\r
1842                 "fea8f5c8.b664d8"\r
1843             ]\r
1844         ]\r
1845     },\r
1846     {\r
1847         "id": "17936311.45c0f5",\r
1848         "type": "execute",\r
1849         "name": "get esr-thirdparty-sdnc",\r
1850         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainG.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >",\r
1851         "comments": "",\r
1852         "outputs": 1,\r
1853         "x": 5396,\r
1854         "y": 1049,\r
1855         "z": "5a4cb919.dfff38",\r
1856         "wires": [\r
1857             [\r
1858                 "bda3b861.07af08",\r
1859                 "8ce8739f.28fc08",\r
1860                 "8098fa71.4cbf3"\r
1861             ]\r
1862         ]\r
1863     },\r
1864     {\r
1865         "id": "fea8f5c8.b664d8",\r
1866         "type": "block",\r
1867         "name": "block : atomic",\r
1868         "xml": "<block atomic=\"true\">",\r
1869         "atomic": "true",\r
1870         "outputs": 1,\r
1871         "x": 5190,\r
1872         "y": 1036,\r
1873         "z": "5a4cb919.dfff38",\r
1874         "wires": [\r
1875             [\r
1876                 "619520a0.18d9e",\r
1877                 "17936311.45c0f5"\r
1878             ]\r
1879         ]\r
1880     },\r
1881     {\r
1882         "id": "619520a0.18d9e",\r
1883         "type": "set",\r
1884         "name": "set esr-thirdparty-sdnc domainG id",\r
1885         "xml": "<set>\n<parameter name='tmp.domainG.esr-thirdparty-id' value=\"`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
1886         "comments": "",\r
1887         "x": 5426,\r
1888         "y": 997,\r
1889         "z": "5a4cb919.dfff38",\r
1890         "wires": []\r
1891     },\r
1892     {\r
1893         "id": "bda3b861.07af08",\r
1894         "type": "success",\r
1895         "name": "success",\r
1896         "xml": "<outcome value='success'>\n",\r
1897         "comments": "",\r
1898         "outputs": 1,\r
1899         "x": 5606,\r
1900         "y": 1040,\r
1901         "z": "5a4cb919.dfff38",\r
1902         "wires": [\r
1903             [\r
1904                 "3c9ad3f5.e5e4a4"\r
1905             ]\r
1906         ]\r
1907     },\r
1908     {\r
1909         "id": "8ce8739f.28fc08",\r
1910         "type": "not-found",\r
1911         "name": "not-found",\r
1912         "xml": "<outcome value='not-found'>\n",\r
1913         "comments": "",\r
1914         "outputs": 1,\r
1915         "x": 5598,\r
1916         "y": 1095,\r
1917         "z": "5a4cb919.dfff38",\r
1918         "wires": [\r
1919             [\r
1920                 "ec86cd9f.a15968"\r
1921             ]\r
1922         ]\r
1923     },\r
1924     {\r
1925         "id": "8098fa71.4cbf3",\r
1926         "type": "other",\r
1927         "name": "other",\r
1928         "xml": "<outcome value='Other'>\n",\r
1929         "comments": "",\r
1930         "outputs": 1,\r
1931         "x": 5603,\r
1932         "y": 1152,\r
1933         "z": "5a4cb919.dfff38",\r
1934         "wires": [\r
1935             [\r
1936                 "244270ad.8dfe1"\r
1937             ]\r
1938         ]\r
1939     },\r
1940     {\r
1941         "id": "244270ad.8dfe1",\r
1942         "type": "returnFailure",\r
1943         "name": "return failure",\r
1944         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
1945         "comments": "",\r
1946         "x": 5755,\r
1947         "y": 1153,\r
1948         "z": "5a4cb919.dfff38",\r
1949         "wires": []\r
1950     },\r
1951     {\r
1952         "id": "ec86cd9f.a15968",\r
1953         "type": "returnFailure",\r
1954         "name": "return failure",\r
1955         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
1956         "comments": "",\r
1957         "x": 5766,\r
1958         "y": 1098,\r
1959         "z": "5a4cb919.dfff38",\r
1960         "wires": []\r
1961     },\r
1962     {\r
1963         "id": "3c9ad3f5.e5e4a4",\r
1964         "type": "block",\r
1965         "name": "block",\r
1966         "xml": "<block>\n",\r
1967         "atomic": "false",\r
1968         "comments": "",\r
1969         "outputs": 1,\r
1970         "x": 5750.38232421875,\r
1971         "y": 1037.6556701660156,\r
1972         "z": "5a4cb919.dfff38",\r
1973         "wires": [\r
1974             [\r
1975                 "2068f2a1.5ec866"\r
1976             ]\r
1977         ]\r
1978     },\r
1979     {\r
1980         "id": "2068f2a1.5ec866",\r
1981         "type": "set",\r
1982         "name": "set controller domainG data",\r
1983         "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
1984         "comments": "",\r
1985         "x": 5965,\r
1986         "y": 1034,\r
1987         "z": "5a4cb919.dfff38",\r
1988         "wires": []\r
1989     },\r
1990     {\r
1991         "id": "e69cbe2a.82be58",\r
1992         "type": "comment",\r
1993         "name": "both src and dst exist",\r
1994         "info": "",\r
1995         "comments": "",\r
1996         "x": 3739,\r
1997         "y": 975,\r
1998         "z": "5a4cb919.dfff38",\r
1999         "wires": []\r
2000     },\r
2001     {\r
2002         "id": "957d0d12.f7d338",\r
2003         "type": "switchNode",\r
2004         "name": "switch vpn-binding is not already Activated (i.e. is either Created or Modified)",\r
2005         "xml": "<switch test=\"`$tmp.aai.vpn-binding.operational-status != 'Activated' `\">\n",\r
2006         "comments": "",\r
2007         "outputs": 1,\r
2008         "x": 2301,\r
2009         "y": 702,\r
2010         "z": "5a4cb919.dfff38",\r
2011         "wires": [\r
2012             [\r
2013                 "7969493f.6a54d",\r
2014                 "9a6050c4.300548"\r
2015             ]\r
2016         ]\r
2017     },\r
2018     {\r
2019         "id": "9a6050c4.300548",\r
2020         "type": "outcomeFalse",\r
2021         "name": "false",\r
2022         "xml": "<outcome value='false'>\n",\r
2023         "comments": "",\r
2024         "outputs": 1,\r
2025         "x": 2708,\r
2026         "y": 720,\r
2027         "z": "5a4cb919.dfff38",\r
2028         "wires": [\r
2029             [\r
2030                 "66cd0943.de62f"\r
2031             ]\r
2032         ]\r
2033     },\r
2034     {\r
2035         "id": "7969493f.6a54d",\r
2036         "type": "outcomeTrue",\r
2037         "name": "true",\r
2038         "xml": "<outcome value='true'>\n",\r
2039         "comments": "",\r
2040         "outputs": 1,\r
2041         "x": 2708,\r
2042         "y": 665,\r
2043         "z": "5a4cb919.dfff38",\r
2044         "wires": [\r
2045             [\r
2046                 "7c5fc999.6b62c"\r
2047             ]\r
2048         ]\r
2049     },\r
2050     {\r
2051         "id": "7c5fc999.6b62c",\r
2052         "type": "block",\r
2053         "name": "block : atomic",\r
2054         "xml": "<block atomic=\"true\">",\r
2055         "atomic": "true",\r
2056         "outputs": 1,\r
2057         "x": 2864,\r
2058         "y": 663,\r
2059         "z": "5a4cb919.dfff38",\r
2060         "wires": [\r
2061             [\r
2062                 "641093d5.a73774",\r
2063                 "a1edca3.1a62bb8"\r
2064             ]\r
2065         ]\r
2066     },\r
2067     {\r
2068         "id": "66cd0943.de62f",\r
2069         "type": "block",\r
2070         "name": "block",\r
2071         "xml": "<block>",\r
2072         "atomic": "false",\r
2073         "comments": "",\r
2074         "outputs": 1,\r
2075         "x": 2841,\r
2076         "y": 721,\r
2077         "z": "5a4cb919.dfff38",\r
2078         "wires": [\r
2079             []\r
2080         ]\r
2081     },\r
2082     {\r
2083         "id": "cce8745e.b515b8",\r
2084         "type": "set",\r
2085         "name": "unset tmp.aai.all-vpn-bindings",\r
2086         "xml": "<set>\n<parameter name='tmp.aai.all-vpn-bindings.' value=\"\" />\n",\r
2087         "comments": "",\r
2088         "x": 1018,\r
2089         "y": 137,\r
2090         "z": "5a4cb919.dfff38",\r
2091         "wires": []\r
2092     },\r
2093     {\r
2094         "id": "48ad099a.c16688",\r
2095         "type": "comment",\r
2096         "name": "CLL new",\r
2097         "info": "construct two array structures like these:\n\n${otn-tunnels-name-list[${1}].otn-tunnel-name}\n\n----------------\n${ethernet-srv-end-points-list[${1}].ethernet-end-point-name}\n${ethernet-srv-end-points-list[${1}].index-number},\n${ethernet-srv-end-points-list[${1}].eth-node-id},\n${ethernet-srv-end-points-list[${1}].eth-node-tp-id},\n${ethernet-srv-end-points-list[${1}].leafOrRootAccess}\n${ethernet-srv-end-points-list[${1}].cvlan}\n${ethernet-srv-end-points-list[${1}].CIR}\n${ethernet-srv-end-points-list[${1}].EIR}",\r
2098         "comments": "",\r
2099         "x": 4135,\r
2100         "y": 555,\r
2101         "z": "5a4cb919.dfff38",\r
2102         "wires": []\r
2103     },\r
2104     {\r
2105         "id": "ec3b4a19.7f5ee",\r
2106         "type": "set",\r
2107         "name": "set leaf-otn-tunnels-list array",\r
2108         "xml": "<set>\n<parameter name='`leaf-tunnels-list[$leaftunsidx].tunnel-name`' value='`$tmp.aai.vpn-binding.vpn-name`' />\n<parameter name='`leaf-tunnels-list[$leaftunsidx].vpn-id`' value='`$tmp.aai.vpn-binding.vpn-id`' />\n<parameter name='`leaf-tunnels-list_length`' value='`$leaftunsidx + 1`' />\n",\r
2109         "comments": "",\r
2110         "x": 4195,\r
2111         "y": 594,\r
2112         "z": "5a4cb919.dfff38",\r
2113         "wires": []\r
2114     },\r
2115     {\r
2116         "id": "706cb78c.da92b",\r
2117         "type": "set",\r
2118         "name": "unset leaf-otn-tunnels-list array",\r
2119         "xml": "<set>\n<parameter name='`leaf-tunnels-list.`' value='' />\n<parameter name='`leaf-tunnels-list_length`' value='0' />\n<parameter name='`leaftunsidx`' value='0' />\n",\r
2120         "comments": "",\r
2121         "x": 1011,\r
2122         "y": 45,\r
2123         "z": "5a4cb919.dfff38",\r
2124         "wires": []\r
2125     },\r
2126     {\r
2127         "id": "9a38eb9e.71f4d8",\r
2128         "type": "comment",\r
2129         "name": "CLL new",\r
2130         "info": "construct two array structures like these:\n\n${otn-tunnels-name-list[${1}].otn-tunnel-name}\n\n----------------\n${ethernet-srv-end-points-list[${1}].ethernet-end-point-name}\n${ethernet-srv-end-points-list[${1}].index-number},\n${ethernet-srv-end-points-list[${1}].eth-node-id},\n${ethernet-srv-end-points-list[${1}].eth-node-tp-id},\n${ethernet-srv-end-points-list[${1}].leafOrRootAccess}\n${ethernet-srv-end-points-list[${1}].cvlan}\n${ethernet-srv-end-points-list[${1}].CIR}\n${ethernet-srv-end-points-list[${1}].EIR}",\r
2131         "comments": "",\r
2132         "x": 3547,\r
2133         "y": 2071,\r
2134         "z": "5a4cb919.dfff38",\r
2135         "wires": []\r
2136     },\r
2137     {\r
2138         "id": "724930a5.f44628",\r
2139         "type": "set",\r
2140         "name": "set root-otn-tunnels-list array",\r
2141         "xml": "<set>\n<parameter name='`root-tunnels-list[$roottunsidx].tunnel-name`' value='`$tmp.aai.vpn-binding.vpn-name`' />\n<parameter name='`root-tunnels-list[$roottunsidx].vpn-id`' value='`$tmp.aai.vpn-binding.vpn-id`' />\n<parameter name='`root-tunnels-list_length`' value='`$roottunsidx + 1`' />\n",\r
2142         "comments": "",\r
2143         "x": 3603,\r
2144         "y": 2120,\r
2145         "z": "5a4cb919.dfff38",\r
2146         "wires": []\r
2147     },\r
2148     {\r
2149         "id": "2a414bdc.2311dc",\r
2150         "type": "set",\r
2151         "name": "unset root-otn-tunnels-list array",\r
2152         "xml": "<set>\n<parameter name='`root-tunnels-list.`' value='' />\n<parameter name='`root-tunnels-list_length`' value='0' />\n<parameter name='`roottunsidx`' value='0' />\n",\r
2153         "comments": "",\r
2154         "x": 1011,\r
2155         "y": 84,\r
2156         "z": "5a4cb919.dfff38",\r
2157         "wires": []\r
2158     },\r
2159     {\r
2160         "id": "88772a4.9b58658",\r
2161         "type": "execute",\r
2162         "name": "execute properties",\r
2163         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />",\r
2164         "comments": "",\r
2165         "outputs": 1,\r
2166         "x": 1042,\r
2167         "y": 185,\r
2168         "z": "5a4cb919.dfff38",\r
2169         "wires": [\r
2170             []\r
2171         ]\r
2172     },\r
2173     {\r
2174         "id": "4ace150.4554dec",\r
2175         "type": "save",\r
2176         "name": "get service-instance from aai",\r
2177         "xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.service-instance\">\n\n\n<!--$vnf-topology-operation-input.service-information.service-instance-id-->",\r
2178         "comments": "",\r
2179         "outputs": 1,\r
2180         "x": 252,\r
2181         "y": 660,\r
2182         "z": "5a4cb919.dfff38",\r
2183         "wires": [\r
2184             [\r
2185                 "ce4ab0d3.b836a",\r
2186                 "9dbee6c6.1a60a",\r
2187                 "290803ec.65c94c"\r
2188             ]\r
2189         ]\r
2190     },\r
2191     {\r
2192         "id": "ce4ab0d3.b836a",\r
2193         "type": "success",\r
2194         "name": "success",\r
2195         "xml": "<outcome value='success'>\n",\r
2196         "comments": "",\r
2197         "outputs": 1,\r
2198         "x": 471,\r
2199         "y": 598,\r
2200         "z": "5a4cb919.dfff38",\r
2201         "wires": [\r
2202             [\r
2203                 "280015e3.c315e2"\r
2204             ]\r
2205         ]\r
2206     },\r
2207     {\r
2208         "id": "9dbee6c6.1a60a",\r
2209         "type": "not-found",\r
2210         "name": "not-found",\r
2211         "xml": "<outcome value='not-found'>\n",\r
2212         "comments": "",\r
2213         "outputs": 1,\r
2214         "x": 480.490966796875,\r
2215         "y": 640.5740356445312,\r
2216         "z": "5a4cb919.dfff38",\r
2217         "wires": [\r
2218             []\r
2219         ]\r
2220     },\r
2221     {\r
2222         "id": "290803ec.65c94c",\r
2223         "type": "failure",\r
2224         "name": "failure",\r
2225         "xml": "<outcome value='failure'>\n",\r
2226         "comments": "",\r
2227         "outputs": 1,\r
2228         "x": 469,\r
2229         "y": 687,\r
2230         "z": "5a4cb919.dfff38",\r
2231         "wires": [\r
2232             [\r
2233                 "f842cdf9.29a79"\r
2234             ]\r
2235         ]\r
2236     },\r
2237     {\r
2238         "id": "280015e3.c315e2",\r
2239         "type": "for",\r
2240         "name": "for each relationship",\r
2241         "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",\r
2242         "comments": "",\r
2243         "outputs": 1,\r
2244         "x": 668,\r
2245         "y": 594,\r
2246         "z": "5a4cb919.dfff38",\r
2247         "wires": [\r
2248             [\r
2249                 "cd508bdd.302a88"\r
2250             ]\r
2251         ]\r
2252     },\r
2253     {\r
2254         "id": "f842cdf9.29a79",\r
2255         "type": "returnFailure",\r
2256         "name": "return failure",\r
2257         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
2258         "comments": "",\r
2259         "x": 638,\r
2260         "y": 688,\r
2261         "z": "5a4cb919.dfff38",\r
2262         "wires": []\r
2263     },\r
2264     {\r
2265         "id": "cd508bdd.302a88",\r
2266         "type": "switchNode",\r
2267         "name": "switch related-to",\r
2268         "xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",\r
2269         "comments": "",\r
2270         "outputs": 1,\r
2271         "x": 891.33349609375,\r
2272         "y": 593.9999389648438,\r
2273         "z": "5a4cb919.dfff38",\r
2274         "wires": [\r
2275             [\r
2276                 "d4df8e14.56fc08"\r
2277             ]\r
2278         ]\r
2279     },\r
2280     {\r
2281         "id": "d4df8e14.56fc08",\r
2282         "type": "outcome",\r
2283         "name": "connectivity",\r
2284         "xml": "<outcome value='connectivity'>\n",\r
2285         "comments": "",\r
2286         "outputs": 1,\r
2287         "x": 1092.0001335144043,\r
2288         "y": 595.000020980835,\r
2289         "z": "5a4cb919.dfff38",\r
2290         "wires": [\r
2291             [\r
2292                 "b67eb6e5.58b31"\r
2293             ]\r
2294         ]\r
2295     },\r
2296     {\r
2297         "id": "b67eb6e5.58b31",\r
2298         "type": "save",\r
2299         "name": "get connectivity from aai",\r
2300         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t    key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivity\" >\n",\r
2301         "comments": "",\r
2302         "outputs": 1,\r
2303         "x": 222,\r
2304         "y": 857,\r
2305         "z": "5a4cb919.dfff38",\r
2306         "wires": [\r
2307             [\r
2308                 "eb910f68.8a5408",\r
2309                 "a6536ba8.c4e148",\r
2310                 "6d1288a7.3722b8"\r
2311             ]\r
2312         ]\r
2313     },\r
2314     {\r
2315         "id": "eb910f68.8a5408",\r
2316         "type": "success",\r
2317         "name": "success",\r
2318         "xml": "<outcome value='success'>\n",\r
2319         "comments": "",\r
2320         "outputs": 1,\r
2321         "x": 430,\r
2322         "y": 821,\r
2323         "z": "5a4cb919.dfff38",\r
2324         "wires": [\r
2325             [\r
2326                 "6687da8.fb06ca4"\r
2327             ]\r
2328         ]\r
2329     },\r
2330     {\r
2331         "id": "a6536ba8.c4e148",\r
2332         "type": "not-found",\r
2333         "name": "not-found",\r
2334         "xml": "<outcome value='not-found'>\n",\r
2335         "comments": "",\r
2336         "outputs": 1,\r
2337         "x": 430.490966796875,\r
2338         "y": 866.5740356445312,\r
2339         "z": "5a4cb919.dfff38",\r
2340         "wires": [\r
2341             []\r
2342         ]\r
2343     },\r
2344     {\r
2345         "id": "6d1288a7.3722b8",\r
2346         "type": "failure",\r
2347         "name": "failure",\r
2348         "xml": "<outcome value='failure'>\n",\r
2349         "comments": "",\r
2350         "outputs": 1,\r
2351         "x": 428,\r
2352         "y": 910,\r
2353         "z": "5a4cb919.dfff38",\r
2354         "wires": [\r
2355             [\r
2356                 "a3e6b31.4b2495"\r
2357             ]\r
2358         ]\r
2359     },\r
2360     {\r
2361         "id": "a3e6b31.4b2495",\r
2362         "type": "returnFailure",\r
2363         "name": "return failure",\r
2364         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
2365         "comments": "",\r
2366         "x": 597,\r
2367         "y": 911,\r
2368         "z": "5a4cb919.dfff38",\r
2369         "wires": []\r
2370     },\r
2371     {\r
2372         "id": "64de189c.ea0ca",\r
2373         "type": "for",\r
2374         "name": "for each relationship",\r
2375         "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",\r
2376         "comments": "",\r
2377         "outputs": 1,\r
2378         "x": 569,\r
2379         "y": 1405,\r
2380         "z": "5a4cb919.dfff38",\r
2381         "wires": [\r
2382             [\r
2383                 "f09d5f3a.90b09"\r
2384             ]\r
2385         ]\r
2386     },\r
2387     {\r
2388         "id": "f09d5f3a.90b09",\r
2389         "type": "switchNode",\r
2390         "name": "switch related-to",\r
2391         "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",\r
2392         "comments": "",\r
2393         "outputs": 1,\r
2394         "x": 772,\r
2395         "y": 1417,\r
2396         "z": "5a4cb919.dfff38",\r
2397         "wires": [\r
2398             [\r
2399                 "be069a3d.2f258"\r
2400             ]\r
2401         ]\r
2402     },\r
2403     {\r
2404         "id": "be069a3d.2f258",\r
2405         "type": "outcome",\r
2406         "name": "UNI",\r
2407         "xml": "<outcome value='uni'>\n",\r
2408         "comments": "",\r
2409         "outputs": 1,\r
2410         "x": 938,\r
2411         "y": 1414,\r
2412         "z": "5a4cb919.dfff38",\r
2413         "wires": [\r
2414             [\r
2415                 "b33327bf.cf44b8"\r
2416             ]\r
2417         ]\r
2418     },\r
2419     {\r
2420         "id": "b33327bf.cf44b8",\r
2421         "type": "block",\r
2422         "name": "block : atomic",\r
2423         "xml": "<block atomic=\"true\">",\r
2424         "atomic": "true",\r
2425         "outputs": 1,\r
2426         "x": 1099,\r
2427         "y": 1411,\r
2428         "z": "5a4cb919.dfff38",\r
2429         "wires": [\r
2430             [\r
2431                 "9b6250ff.75cf18",\r
2432                 "6e8e9c3e.00f634",\r
2433                 "db16830a.f6a5",\r
2434                 "611e4d54.277574",\r
2435                 "c0f4e533.035be8",\r
2436                 "ee82569c.a25768"\r
2437             ]\r
2438         ]\r
2439     },\r
2440     {\r
2441         "id": "6e8e9c3e.00f634",\r
2442         "type": "set",\r
2443         "name": "unset tmp.aai.uni",\r
2444         "xml": "<set>\n<parameter name='tmp.aai.uni.' value='' />\n",\r
2445         "comments": "",\r
2446         "x": 1305,\r
2447         "y": 1010.9999389648438,\r
2448         "z": "5a4cb919.dfff38",\r
2449         "wires": []\r
2450     },\r
2451     {\r
2452         "id": "9b6250ff.75cf18",\r
2453         "type": "save",\r
2454         "name": "get uni from aai",\r
2455         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"uni\"\n\t    key=\"uni.id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.uni\" >\n",\r
2456         "comments": "",\r
2457         "outputs": 1,\r
2458         "x": 1302,\r
2459         "y": 1055.9999389648438,\r
2460         "z": "5a4cb919.dfff38",\r
2461         "wires": [\r
2462             [\r
2463                 "1b290eb5.e974c9",\r
2464                 "b84573d.a8be19",\r
2465                 "ef2334eb.3c1b68"\r
2466             ]\r
2467         ]\r
2468     },\r
2469     {\r
2470         "id": "b84573d.a8be19",\r
2471         "type": "not-found",\r
2472         "name": "not-found",\r
2473         "xml": "<outcome value='not-found'>\n",\r
2474         "comments": "",\r
2475         "outputs": 1,\r
2476         "x": 1497.490966796875,\r
2477         "y": 1029.5739135742188,\r
2478         "z": "5a4cb919.dfff38",\r
2479         "wires": [\r
2480             [\r
2481                 "45bb14a8.1a7924"\r
2482             ]\r
2483         ]\r
2484     },\r
2485     {\r
2486         "id": "ef2334eb.3c1b68",\r
2487         "type": "failure",\r
2488         "name": "failure",\r
2489         "xml": "<outcome value='failure'>\n",\r
2490         "comments": "",\r
2491         "outputs": 1,\r
2492         "x": 1493,\r
2493         "y": 1073.9998779296875,\r
2494         "z": "5a4cb919.dfff38",\r
2495         "wires": [\r
2496             [\r
2497                 "cd1f6950.fef1f"\r
2498             ]\r
2499         ]\r
2500     },\r
2501     {\r
2502         "id": "45bb14a8.1a7924",\r
2503         "type": "returnFailure",\r
2504         "name": "return failure",\r
2505         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
2506         "comments": "",\r
2507         "x": 1660.0625,\r
2508         "y": 1028.859619140625,\r
2509         "z": "5a4cb919.dfff38",\r
2510         "wires": []\r
2511     },\r
2512     {\r
2513         "id": "cd1f6950.fef1f",\r
2514         "type": "returnFailure",\r
2515         "name": "return failure",\r
2516         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
2517         "comments": "",\r
2518         "x": 1661,\r
2519         "y": 1073.9998779296875,\r
2520         "z": "5a4cb919.dfff38",\r
2521         "wires": []\r
2522     },\r
2523     {\r
2524         "id": "cd4af41f.be1a78",\r
2525         "type": "block",\r
2526         "name": "block : atomic",\r
2527         "xml": "<block atomic=\"true\">",\r
2528         "atomic": "true",\r
2529         "outputs": 1,\r
2530         "x": 1663,\r
2531         "y": 1120.9998779296875,\r
2532         "z": "5a4cb919.dfff38",\r
2533         "wires": [\r
2534             []\r
2535         ]\r
2536     },\r
2537     {\r
2538         "id": "1b290eb5.e974c9",\r
2539         "type": "success",\r
2540         "name": "success",\r
2541         "xml": "<outcome value='success'>\n",\r
2542         "comments": "",\r
2543         "outputs": 1,\r
2544         "x": 1494,\r
2545         "y": 1120.9998779296875,\r
2546         "z": "5a4cb919.dfff38",\r
2547         "wires": [\r
2548             [\r
2549                 "cd4af41f.be1a78"\r
2550             ]\r
2551         ]\r
2552     },\r
2553     {\r
2554         "id": "60f7024f.a382fc",\r
2555         "type": "comment",\r
2556         "name": "CLL new",\r
2557         "info": "construct two array structures like these:\n\n${otn-tunnels-name-list[${1}].otn-tunnel-name}\n\n----------------\n${ethernet-srv-end-points-list[${1}].ethernet-end-point-name}\n${ethernet-srv-end-points-list[${1}].index-number},\n${ethernet-srv-end-points-list[${1}].eth-node-id},\n${ethernet-srv-end-points-list[${1}].eth-node-tp-id},\n${ethernet-srv-end-points-list[${1}].leafOrRootAccess}\n${ethernet-srv-end-points-list[${1}].cvlan}\n${ethernet-srv-end-points-list[${1}].CIR}\n${ethernet-srv-end-points-list[${1}].EIR}",\r
2558         "comments": "",\r
2559         "x": 1276,\r
2560         "y": 1642,\r
2561         "z": "5a4cb919.dfff38",\r
2562         "wires": []\r
2563     },\r
2564     {\r
2565         "id": "db16830a.f6a5",\r
2566         "type": "set",\r
2567         "name": "set ethernet-srv-end-points-list array",\r
2568         "xml": "<set>\n<!--<parameter name='`ethernet-srv-end-points-list[$epidx].ethernet-end-point-name`' value='`$tmp.aai.connectivity.connectivity-id`' />-->\n<parameter name='`ethernet-srv-end-points-list[$epidx].ethernet-end-point-name`' value='`$tmp.aai.uni.id`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].index-number`' value='0' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].eth-node-id`' value='`$tmp.uni-node-id-short`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].eth-node-tp-id`' value='`$tmp.aai.uni.tp-id`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].leafOrRootAccess`' value='`$leafOrRootAccess`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].cvlan`' value='`$tmp.aai.connectivity.cvlan`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].CIR`' value='`$tmp.aai.uni.data-source * 1000000`' />\n<parameter name='`ethernet-srv-end-points-list[$epidx].EIR`' value='`$tmp.aai.uni.data-source * 1000000`' />\n\n<parameter name='`ethernet-srv-end-points-list_length`' value='`$epidx + 1`' />\n",\r
2569         "comments": "",\r
2570         "x": 1367,\r
2571         "y": 1696,\r
2572         "z": "5a4cb919.dfff38",\r
2573         "wires": []\r
2574     },\r
2575     {\r
2576         "id": "1989ebd9.8b76bc",\r
2577         "type": "set",\r
2578         "name": "unset ethernet-srv-end-points-list",\r
2579         "xml": "<set>\n<parameter name='`ethernet-srv-end-points-list.`' value='' />\n<parameter name='`ethernet-srv-end-points-list_length`' value='0' />\n<parameter name='`epidx`' value='0' />",\r
2580         "comments": "",\r
2581         "x": 2043.5,\r
2582         "y": 1109,\r
2583         "z": "5a4cb919.dfff38",\r
2584         "wires": []\r
2585     },\r
2586     {\r
2587         "id": "9da50ff.0241af",\r
2588         "type": "set",\r
2589         "name": "unset ethernet-srv-end-points-list",\r
2590         "xml": "<set>\n<parameter name='`ethernet-srv-end-points-list.`' value='' />\n<parameter name='`ethernet-srv-end-points-list_length`' value='0' />\n<parameter name='`epidx`' value='0' />",\r
2591         "comments": "",\r
2592         "x": 2048.5,\r
2593         "y": 1211,\r
2594         "z": "5a4cb919.dfff38",\r
2595         "wires": []\r
2596     },\r
2597     {\r
2598         "id": "eda2f0f7.d8fb38",\r
2599         "type": "for",\r
2600         "name": "for each relationship",\r
2601         "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",\r
2602         "comments": "",\r
2603         "outputs": 1,\r
2604         "x": 532,\r
2605         "y": 1661,\r
2606         "z": "5a4cb919.dfff38",\r
2607         "wires": [\r
2608             [\r
2609                 "62852429.1f30ac"\r
2610             ]\r
2611         ]\r
2612     },\r
2613     {\r
2614         "id": "62852429.1f30ac",\r
2615         "type": "switchNode",\r
2616         "name": "switch related-to",\r
2617         "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",\r
2618         "comments": "",\r
2619         "outputs": 1,\r
2620         "x": 764,\r
2621         "y": 1660,\r
2622         "z": "5a4cb919.dfff38",\r
2623         "wires": [\r
2624             [\r
2625                 "ede4a749.9f1af8"\r
2626             ]\r
2627         ]\r
2628     },\r
2629     {\r
2630         "id": "ede4a749.9f1af8",\r
2631         "type": "outcome",\r
2632         "name": "vpn-binding",\r
2633         "xml": "<outcome value='vpn-binding'>\n",\r
2634         "comments": "",\r
2635         "outputs": 1,\r
2636         "x": 976,\r
2637         "y": 1661,\r
2638         "z": "5a4cb919.dfff38",\r
2639         "wires": [\r
2640             [\r
2641                 "b699a292.eb6f88"\r
2642             ]\r
2643         ]\r
2644     },\r
2645     {\r
2646         "id": "b699a292.eb6f88",\r
2647         "type": "block",\r
2648         "name": "block : atomic",\r
2649         "xml": "<block atomic=\"true\">",\r
2650         "atomic": "true",\r
2651         "outputs": 1,\r
2652         "x": 232,\r
2653         "y": 1817,\r
2654         "z": "5a4cb919.dfff38",\r
2655         "wires": [\r
2656             [\r
2657                 "13d7e483.3188fb",\r
2658                 "74bc3a8f.9628d4"\r
2659             ]\r
2660         ]\r
2661     },\r
2662     {\r
2663         "id": "74bc3a8f.9628d4",\r
2664         "type": "set",\r
2665         "name": "unset tmp.aai.vpn-binding",\r
2666         "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",\r
2667         "comments": "",\r
2668         "x": 467,\r
2669         "y": 1804,\r
2670         "z": "5a4cb919.dfff38",\r
2671         "wires": []\r
2672     },\r
2673     {\r
2674         "id": "13d7e483.3188fb",\r
2675         "type": "save",\r
2676         "name": "get vpn-binding from aai",\r
2677         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\"\n\t    key=\"vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-binding\" >\n",\r
2678         "comments": "",\r
2679         "outputs": 1,\r
2680         "x": 457,\r
2681         "y": 1865,\r
2682         "z": "5a4cb919.dfff38",\r
2683         "wires": [\r
2684             [\r
2685                 "bcef8cd9.e20998",\r
2686                 "764e27eb.b5496",\r
2687                 "21958602.3fa0ea"\r
2688             ]\r
2689         ]\r
2690     },\r
2691     {\r
2692         "id": "764e27eb.b5496",\r
2693         "type": "not-found",\r
2694         "name": "not-found",\r
2695         "xml": "<outcome value='not-found'>\n",\r
2696         "comments": "",\r
2697         "outputs": 1,\r
2698         "x": 670.490966796875,\r
2699         "y": 1849.5740356445312,\r
2700         "z": "5a4cb919.dfff38",\r
2701         "wires": [\r
2702             [\r
2703                 "9c812de2.87639"\r
2704             ]\r
2705         ]\r
2706     },\r
2707     {\r
2708         "id": "21958602.3fa0ea",\r
2709         "type": "failure",\r
2710         "name": "failure",\r
2711         "xml": "<outcome value='failure'>\n",\r
2712         "comments": "",\r
2713         "outputs": 1,\r
2714         "x": 666,\r
2715         "y": 1894,\r
2716         "z": "5a4cb919.dfff38",\r
2717         "wires": [\r
2718             [\r
2719                 "2915d3a6.63730c"\r
2720             ]\r
2721         ]\r
2722     },\r
2723     {\r
2724         "id": "bcef8cd9.e20998",\r
2725         "type": "success",\r
2726         "name": "success",\r
2727         "xml": "<outcome value='success'>\n",\r
2728         "comments": "",\r
2729         "outputs": 1,\r
2730         "x": 668,\r
2731         "y": 1954,\r
2732         "z": "5a4cb919.dfff38",\r
2733         "wires": [\r
2734             [\r
2735                 "bb26f0d0.bc6288"\r
2736             ]\r
2737         ]\r
2738     },\r
2739     {\r
2740         "id": "9c812de2.87639",\r
2741         "type": "returnFailure",\r
2742         "name": "return failure",\r
2743         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
2744         "comments": "",\r
2745         "x": 833.0625,\r
2746         "y": 1848.8597412109375,\r
2747         "z": "5a4cb919.dfff38",\r
2748         "wires": []\r
2749     },\r
2750     {\r
2751         "id": "2915d3a6.63730c",\r
2752         "type": "returnFailure",\r
2753         "name": "return failure",\r
2754         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
2755         "comments": "",\r
2756         "x": 834,\r
2757         "y": 1894,\r
2758         "z": "5a4cb919.dfff38",\r
2759         "wires": []\r
2760     },\r
2761     {\r
2762         "id": "bb26f0d0.bc6288",\r
2763         "type": "block",\r
2764         "name": "block : atomic",\r
2765         "xml": "<block atomic=\"true\">",\r
2766         "atomic": "true",\r
2767         "outputs": 1,\r
2768         "x": 837,\r
2769         "y": 1953,\r
2770         "z": "5a4cb919.dfff38",\r
2771         "wires": [\r
2772             [\r
2773                 "e8fb0469.22a408",\r
2774                 "b503b0ba.b1ff6"\r
2775             ]\r
2776         ]\r
2777     },\r
2778     {\r
2779         "id": "445d8bb1.6c470c",\r
2780         "type": "set",\r
2781         "name": "set sotn_value",\r
2782         "xml": "<set>\n<!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.connectivity-id`' />-->\n<parameter name='eth-service-name' value='`$tmp.aai.connectivity.etht-svc-name`' />\n<parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='provider-id' value='`$tmp.aai.connectivity.access-provider-id`' />\n<parameter name='client-id' value='`$tmp.aai.connectivity.access-client-id`' />\n<parameter name='topology-id' value='`$tmp.aai.connectivity.access-topology-id`' />\n<!--<parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />-->\n<!--<parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityA.connectivity-id`' />-->\n<!--<parameter name='index-number' value='0' />-->\n<!--<parameter name='eth-node-id' value='`$tmp.aai.connectivityA.access-node-id`' />-->\n<!--<parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityA.access-ltp-id`' />-->\n<!--<parameter name='CIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />-->\n<!--<parameter name='EIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.connectivityA.cvlan`' />-->\n",\r
2783         "comments": "",\r
2784         "x": 236,\r
2785         "y": 2452,\r
2786         "z": "5a4cb919.dfff38",\r
2787         "wires": []\r
2788     },\r
2789     {\r
2790         "id": "925823e9.1c4a4",\r
2791         "type": "execute",\r
2792         "name": "execute RestApiCallNode Create ethernet Service without token",\r
2793         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cll-ethernet-service-loop.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n",\r
2794         "comments": "",\r
2795         "outputs": 1,\r
2796         "x": 379,\r
2797         "y": 2512,\r
2798         "z": "5a4cb919.dfff38",\r
2799         "wires": [\r
2800             [\r
2801                 "345842a4.88ef2e",\r
2802                 "a4dc32a8.6620d8"\r
2803             ]\r
2804         ]\r
2805     },\r
2806     {\r
2807         "id": "345842a4.88ef2e",\r
2808         "type": "failure",\r
2809         "name": "failure",\r
2810         "xml": "<outcome value='failure'>\n",\r
2811         "comments": "",\r
2812         "outputs": 1,\r
2813         "x": 691.5,\r
2814         "y": 2489,\r
2815         "z": "5a4cb919.dfff38",\r
2816         "wires": [\r
2817             []\r
2818         ]\r
2819     },\r
2820     {\r
2821         "id": "a4dc32a8.6620d8",\r
2822         "type": "success",\r
2823         "name": "success",\r
2824         "xml": "<outcome value='success'>\n",\r
2825         "comments": "",\r
2826         "outputs": 1,\r
2827         "x": 695.5,\r
2828         "y": 2529,\r
2829         "z": "5a4cb919.dfff38",\r
2830         "wires": [\r
2831             [\r
2832                 "d1fda3bb.92b0e"\r
2833             ]\r
2834         ]\r
2835     },\r
2836     {\r
2837         "id": "cde1b667.7c4d6",\r
2838         "type": "returnFailure",\r
2839         "name": "return failure",\r
2840         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create ethernet service rest api\" />\n",\r
2841         "comments": "",\r
2842         "x": 871.5,\r
2843         "y": 2493,\r
2844         "z": "5a4cb919.dfff38",\r
2845         "wires": []\r
2846     },\r
2847     {\r
2848         "id": "d1fda3bb.92b0e",\r
2849         "type": "block",\r
2850         "name": "block : atomic",\r
2851         "xml": "<block atomic=\"true\">",\r
2852         "atomic": "true",\r
2853         "comments": "",\r
2854         "outputs": 1,\r
2855         "x": 887,\r
2856         "y": 2547,\r
2857         "z": "5a4cb919.dfff38",\r
2858         "wires": [\r
2859             [\r
2860                 "a9ee92c3.93f6e8"\r
2861             ]\r
2862         ]\r
2863     },\r
2864     {\r
2865         "id": "459839ba.ae33c",\r
2866         "type": "save",\r
2867         "name": "update vpn-binding resource (aka. OTN ) in AAI",\r
2868         "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
2869         "comments": "",\r
2870         "outputs": 1,\r
2871         "x": 1182.5,\r
2872         "y": 2516,\r
2873         "z": "5a4cb919.dfff38",\r
2874         "wires": [\r
2875             []\r
2876         ]\r
2877     },\r
2878     {\r
2879         "id": "120147ed.79206",\r
2880         "type": "comment",\r
2881         "name": "TODO: FIXME",\r
2882         "info": "use proper vpn-binding id and connectivity id\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",\r
2883         "comments": "",\r
2884         "x": 2649.5,\r
2885         "y": 1867,\r
2886         "z": "5a4cb919.dfff38",\r
2887         "wires": []\r
2888     },\r
2889     {\r
2890         "id": "a9ee92c3.93f6e8",\r
2891         "type": "save",\r
2892         "name": "update connectivity resource in AAI",\r
2893         "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
2894         "comments": "",\r
2895         "outputs": 1,\r
2896         "x": 1144.5,\r
2897         "y": 2558,\r
2898         "z": "5a4cb919.dfff38",\r
2899         "wires": [\r
2900             []\r
2901         ]\r
2902     },\r
2903     {\r
2904         "id": "9d25e547.75567",\r
2905         "type": "set",\r
2906         "name": "set leafOrRootAccess",\r
2907         "xml": "<set>\n<parameter name='`leafOrRootAccess`' value='ietf-eth-tran-types:leaf-access' />\n",\r
2908         "comments": "",\r
2909         "x": 2009.5,\r
2910         "y": 1147,\r
2911         "z": "5a4cb919.dfff38",\r
2912         "wires": []\r
2913     },\r
2914     {\r
2915         "id": "52a255e0.e77dec",\r
2916         "type": "set",\r
2917         "name": "set leafOrRootAccess",\r
2918         "xml": "<set>\n<parameter name='`leafOrRootAccess`' value='ietf-eth-tran-types:root-primary' />\n",\r
2919         "comments": "",\r
2920         "x": 2010.5,\r
2921         "y": 1251,\r
2922         "z": "5a4cb919.dfff38",\r
2923         "wires": []\r
2924     },\r
2925     {\r
2926         "id": "881b2d7a.c4e888",\r
2927         "type": "save",\r
2928         "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",\r
2929         "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
2930         "comments": "",\r
2931         "outputs": 1,\r
2932         "x": 4304,\r
2933         "y": 508,\r
2934         "z": "5a4cb919.dfff38",\r
2935         "wires": [\r
2936             []\r
2937         ]\r
2938     },\r
2939     {\r
2940         "id": "61ff745d.2cf8b4",\r
2941         "type": "save",\r
2942         "name": "update vpn-binding G resource (aka. OTN domainA) in AAI",\r
2943         "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
2944         "comments": "",\r
2945         "outputs": 1,\r
2946         "x": 4207,\r
2947         "y": 1327,\r
2948         "z": "5a4cb919.dfff38",\r
2949         "wires": [\r
2950             []\r
2951         ]\r
2952     },\r
2953     {\r
2954         "id": "98331ea2.d141f",\r
2955         "type": "save",\r
2956         "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",\r
2957         "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
2958         "comments": "",\r
2959         "outputs": 1,\r
2960         "x": 3701,\r
2961         "y": 1999,\r
2962         "z": "5a4cb919.dfff38",\r
2963         "wires": [\r
2964             []\r
2965         ]\r
2966     },\r
2967     {\r
2968         "id": "6687da8.fb06ca4",\r
2969         "type": "switchNode",\r
2970         "name": "switch connectivity is not already Activated (i.e. is either Created or Modified)",\r
2971         "xml": "<switch test=\"`$tmp.aai.connectivity.operational-status != 'Activated' `\">\n",\r
2972         "comments": "",\r
2973         "outputs": 1,\r
2974         "x": 802,\r
2975         "y": 807,\r
2976         "z": "5a4cb919.dfff38",\r
2977         "wires": [\r
2978             [\r
2979                 "11a4a5f5.385f32",\r
2980                 "192499d2.667f1e"\r
2981             ]\r
2982         ]\r
2983     },\r
2984     {\r
2985         "id": "11a4a5f5.385f32",\r
2986         "type": "outcomeTrue",\r
2987         "name": "true",\r
2988         "xml": "<outcome value='true'>\n",\r
2989         "comments": "",\r
2990         "outputs": 1,\r
2991         "x": 1165,\r
2992         "y": 830,\r
2993         "z": "5a4cb919.dfff38",\r
2994         "wires": [\r
2995             [\r
2996                 "1fc9c5be.8fac2a"\r
2997             ]\r
2998         ]\r
2999     },\r
3000     {\r
3001         "id": "192499d2.667f1e",\r
3002         "type": "outcomeFalse",\r
3003         "name": "false",\r
3004         "xml": "<outcome value='false'>\n",\r
3005         "comments": "",\r
3006         "outputs": 1,\r
3007         "x": 1165,\r
3008         "y": 779,\r
3009         "z": "5a4cb919.dfff38",\r
3010         "wires": [\r
3011             [\r
3012                 "5fe8520c.50e664"\r
3013             ]\r
3014         ]\r
3015     },\r
3016     {\r
3017         "id": "1fc9c5be.8fac2a",\r
3018         "type": "block",\r
3019         "name": "block : atomic",\r
3020         "xml": "<block atomic=\"true\">",\r
3021         "atomic": "true",\r
3022         "outputs": 1,\r
3023         "x": 1321,\r
3024         "y": 828,\r
3025         "z": "5a4cb919.dfff38",\r
3026         "wires": [\r
3027             [\r
3028                 "a46faf22.6dbda8"\r
3029             ]\r
3030         ]\r
3031     },\r
3032     {\r
3033         "id": "5fe8520c.50e664",\r
3034         "type": "block",\r
3035         "name": "block",\r
3036         "xml": "<block>",\r
3037         "atomic": "false",\r
3038         "comments": "",\r
3039         "outputs": 1,\r
3040         "x": 1298,\r
3041         "y": 780,\r
3042         "z": "5a4cb919.dfff38",\r
3043         "wires": [\r
3044             []\r
3045         ]\r
3046     },\r
3047     {\r
3048         "id": "1f9b767f.d670b2",\r
3049         "type": "set",\r
3050         "name": "unset tmp.aai.vpn-binding",\r
3051         "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value=\"\" />\n",\r
3052         "comments": "",\r
3053         "x": 2058,\r
3054         "y": 178,\r
3055         "z": "5a4cb919.dfff38",\r
3056         "wires": []\r
3057     },\r
3058     {\r
3059         "id": "f84de17e.e8ea08",\r
3060         "type": "set",\r
3061         "name": "set root-otn-tunnels-list array",\r
3062         "xml": "<set>\n<parameter name='`roottunsidx`' value='`$roottunsidx + 1`' />\n",\r
3063         "comments": "",\r
3064         "x": 3600,\r
3065         "y": 2159,\r
3066         "z": "5a4cb919.dfff38",\r
3067         "wires": []\r
3068     },\r
3069     {\r
3070         "id": "1a392cd7.238923",\r
3071         "type": "set",\r
3072         "name": "set leaf-otn-tunnels-list array",\r
3073         "xml": "<set>\n<parameter name='`leaftunsidx`' value='`$leaftunsidx + 1`' />\n",\r
3074         "comments": "",\r
3075         "x": 4190,\r
3076         "y": 632,\r
3077         "z": "5a4cb919.dfff38",\r
3078         "wires": []\r
3079     },\r
3080     {\r
3081         "id": "611e4d54.277574",\r
3082         "type": "set",\r
3083         "name": "set ethernet-srv-end-points-list array",\r
3084         "xml": "<set>\n<parameter name='`epidx`' value='`$epidx + 1`' />\n",\r
3085         "comments": "",\r
3086         "x": 1364,\r
3087         "y": 1738,\r
3088         "z": "5a4cb919.dfff38",\r
3089         "wires": []\r
3090     },\r
3091     {\r
3092         "id": "dc7d7df9.afb81",\r
3093         "type": "set",\r
3094         "name": "set filename",\r
3095         "xml": "<set>\n<parameter name='filenameclleths' value=\"`$leafOrRootAccess + $tmp.aai.connectivity.access-node-id`\" />",\r
3096         "comments": "",\r
3097         "x": 543,\r
3098         "y": 1472,\r
3099         "z": "5a4cb919.dfff38",\r
3100         "wires": []\r
3101     },\r
3102     {\r
3103         "id": "c70f6326.e297a",\r
3104         "type": "execute",\r
3105         "name": "execute printContext",\r
3106         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n    <parameter name=\"filename\" value=\"`$filenameclleths`\" />\n",\r
3107         "comments": "",\r
3108         "outputs": 1,\r
3109         "x": 574,\r
3110         "y": 1512,\r
3111         "z": "5a4cb919.dfff38",\r
3112         "wires": [\r
3113             []\r
3114         ]\r
3115     },\r
3116     {\r
3117         "id": "e8fb0469.22a408",\r
3118         "type": "set",\r
3119         "name": "set otn-tunnels-name-list array",\r
3120         "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
3121         "comments": "",\r
3122         "x": 1122,\r
3123         "y": 1920,\r
3124         "z": "5a4cb919.dfff38",\r
3125         "wires": []\r
3126     },\r
3127     {\r
3128         "id": "b503b0ba.b1ff6",\r
3129         "type": "set",\r
3130         "name": "set otn-tunnels-name-list array",\r
3131         "xml": "<set>\n<parameter name='`otntunsidx`' value='`$otntunsidx + 1`' />\n",\r
3132         "comments": "",\r
3133         "x": 1125,\r
3134         "y": 1962,\r
3135         "z": "5a4cb919.dfff38",\r
3136         "wires": []\r
3137     },\r
3138     {\r
3139         "id": "f7d70d92.8a17d",\r
3140         "type": "set",\r
3141         "name": "unset otn-tunnels-name-list array",\r
3142         "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
3143         "comments": "",\r
3144         "x": 568,\r
3145         "y": 1602,\r
3146         "z": "5a4cb919.dfff38",\r
3147         "wires": []\r
3148     },\r
3149     {\r
3150         "id": "93ecab9f.5bb27",\r
3151         "type": "set",\r
3152         "name": "set filename",\r
3153         "xml": "<set>\n<parameter name='filenamecllotns' value=\"`leafrootOTNtunnelnames`\" />",\r
3154         "comments": "",\r
3155         "x": 323,\r
3156         "y": 1981,\r
3157         "z": "5a4cb919.dfff38",\r
3158         "wires": []\r
3159     },\r
3160     {\r
3161         "id": "e1bf516d.80132",\r
3162         "type": "execute",\r
3163         "name": "execute printContext",\r
3164         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n    <parameter name=\"filename\" value=\"`$filenamecllotns`\" />\n",\r
3165         "comments": "",\r
3166         "outputs": 1,\r
3167         "x": 331,\r
3168         "y": 2038,\r
3169         "z": "5a4cb919.dfff38",\r
3170         "wires": [\r
3171             []\r
3172         ]\r
3173     },\r
3174     {\r
3175         "id": "c0f4e533.035be8",\r
3176         "type": "execute",\r
3177         "name": "execute split tp-id to get pnf-name",\r
3178         "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
3179         "comments": "",\r
3180         "outputs": 1,\r
3181         "x": 1342,\r
3182         "y": 1587,\r
3183         "z": "5a4cb919.dfff38",\r
3184         "wires": [\r
3185             [\r
3186                 "ff9a5641.69fda",\r
3187                 "a44c9ce4.5d2008"\r
3188             ]\r
3189         ]\r
3190     },\r
3191     {\r
3192         "id": "a44c9ce4.5d2008",\r
3193         "type": "failure",\r
3194         "name": "success",\r
3195         "xml": "<outcome value='success'>\n",\r
3196         "comments": "",\r
3197         "outputs": 1,\r
3198         "x": 1565,\r
3199         "y": 1542,\r
3200         "z": "5a4cb919.dfff38",\r
3201         "wires": [\r
3202             [\r
3203                 "eaca171f.944a48"\r
3204             ]\r
3205         ]\r
3206     },\r
3207     {\r
3208         "id": "ff9a5641.69fda",\r
3209         "type": "failure",\r
3210         "name": "failure",\r
3211         "xml": "<outcome value='failure'>\n",\r
3212         "comments": "",\r
3213         "outputs": 1,\r
3214         "x": 1567,\r
3215         "y": 1606,\r
3216         "z": "5a4cb919.dfff38",\r
3217         "wires": [\r
3218             [\r
3219                 "93d69fa.52d496"\r
3220             ]\r
3221         ]\r
3222     },\r
3223     {\r
3224         "id": "eaca171f.944a48",\r
3225         "type": "block",\r
3226         "name": "block : atomic",\r
3227         "xml": "<block atomic=\"true\">",\r
3228         "atomic": "true",\r
3229         "outputs": 1,\r
3230         "x": 1730,\r
3231         "y": 1539,\r
3232         "z": "5a4cb919.dfff38",\r
3233         "wires": [\r
3234             [\r
3235                 "b0447236.92d3b"\r
3236             ]\r
3237         ]\r
3238     },\r
3239     {\r
3240         "id": "93d69fa.52d496",\r
3241         "type": "returnFailure",\r
3242         "name": "return failure",\r
3243         "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
3244         "comments": "",\r
3245         "x": 1729,\r
3246         "y": 1602,\r
3247         "z": "5a4cb919.dfff38",\r
3248         "wires": []\r
3249     },\r
3250     {\r
3251         "id": "b0447236.92d3b",\r
3252         "type": "set",\r
3253         "name": "set tmp.uni-node-id-short",\r
3254         "xml": "<set>\n<parameter name='tmp.uni-node-id-short' value='`$param-prefix-uni[$param-prefix-uni_length -4]`' />\n",\r
3255         "comments": "",\r
3256         "x": 1950,\r
3257         "y": 1553,\r
3258         "z": "5a4cb919.dfff38",\r
3259         "wires": []\r
3260     },\r
3261     {\r
3262         "id": "ab15b7a9.bc6bc8",\r
3263         "type": "outcome",\r
3264         "name": "esr-thirdparty-sdnc",\r
3265         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
3266         "comments": "",\r
3267         "outputs": 1,\r
3268         "x": 1495,\r
3269         "y": 2278,\r
3270         "z": "5a4cb919.dfff38",\r
3271         "wires": [\r
3272             [\r
3273                 "be2440af.c20c98"\r
3274             ]\r
3275         ]\r
3276     },\r
3277     {\r
3278         "id": "1405448e.40f263",\r
3279         "type": "execute",\r
3280         "name": "get esr-thirdparty-sdnc",\r
3281         "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
3282         "comments": "",\r
3283         "outputs": 1,\r
3284         "x": 1880,\r
3285         "y": 2291,\r
3286         "z": "5a4cb919.dfff38",\r
3287         "wires": [\r
3288             [\r
3289                 "facba133.b01618",\r
3290                 "36457cd.f85a104",\r
3291                 "a0c24437.cf174"\r
3292             ]\r
3293         ]\r
3294     },\r
3295     {\r
3296         "id": "be2440af.c20c98",\r
3297         "type": "block",\r
3298         "name": "block : atomic",\r
3299         "xml": "<block atomic=\"true\">",\r
3300         "atomic": "true",\r
3301         "outputs": 1,\r
3302         "x": 1674,\r
3303         "y": 2278,\r
3304         "z": "5a4cb919.dfff38",\r
3305         "wires": [\r
3306             [\r
3307                 "eec40e11.9fdab",\r
3308                 "1405448e.40f263"\r
3309             ]\r
3310         ]\r
3311     },\r
3312     {\r
3313         "id": "eec40e11.9fdab",\r
3314         "type": "set",\r
3315         "name": "set esr-thirdparty-sdnc domainConn id",\r
3316         "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
3317         "comments": "",\r
3318         "x": 1910,\r
3319         "y": 2239,\r
3320         "z": "5a4cb919.dfff38",\r
3321         "wires": []\r
3322     },\r
3323     {\r
3324         "id": "facba133.b01618",\r
3325         "type": "success",\r
3326         "name": "success",\r
3327         "xml": "<outcome value='success'>\n",\r
3328         "comments": "",\r
3329         "outputs": 1,\r
3330         "x": 2090,\r
3331         "y": 2282,\r
3332         "z": "5a4cb919.dfff38",\r
3333         "wires": [\r
3334             [\r
3335                 "926a046d.eed228"\r
3336             ]\r
3337         ]\r
3338     },\r
3339     {\r
3340         "id": "36457cd.f85a104",\r
3341         "type": "not-found",\r
3342         "name": "not-found",\r
3343         "xml": "<outcome value='not-found'>\n",\r
3344         "comments": "",\r
3345         "outputs": 1,\r
3346         "x": 2082,\r
3347         "y": 2337,\r
3348         "z": "5a4cb919.dfff38",\r
3349         "wires": [\r
3350             [\r
3351                 "6ca22053.c9fba8"\r
3352             ]\r
3353         ]\r
3354     },\r
3355     {\r
3356         "id": "a0c24437.cf174",\r
3357         "type": "other",\r
3358         "name": "other",\r
3359         "xml": "<outcome value='Other'>\n",\r
3360         "comments": "",\r
3361         "outputs": 1,\r
3362         "x": 2087,\r
3363         "y": 2394,\r
3364         "z": "5a4cb919.dfff38",\r
3365         "wires": [\r
3366             [\r
3367                 "f91dd017.676d7"\r
3368             ]\r
3369         ]\r
3370     },\r
3371     {\r
3372         "id": "f91dd017.676d7",\r
3373         "type": "returnFailure",\r
3374         "name": "return failure",\r
3375         "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
3376         "comments": "",\r
3377         "x": 2239,\r
3378         "y": 2395,\r
3379         "z": "5a4cb919.dfff38",\r
3380         "wires": []\r
3381     },\r
3382     {\r
3383         "id": "6ca22053.c9fba8",\r
3384         "type": "returnFailure",\r
3385         "name": "return failure",\r
3386         "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
3387         "comments": "",\r
3388         "x": 2250,\r
3389         "y": 2340,\r
3390         "z": "5a4cb919.dfff38",\r
3391         "wires": []\r
3392     },\r
3393     {\r
3394         "id": "926a046d.eed228",\r
3395         "type": "block",\r
3396         "name": "block",\r
3397         "xml": "<block>\n",\r
3398         "atomic": "false",\r
3399         "comments": "",\r
3400         "outputs": 1,\r
3401         "x": 2234.38232421875,\r
3402         "y": 2279.6556701660156,\r
3403         "z": "5a4cb919.dfff38",\r
3404         "wires": [\r
3405             [\r
3406                 "1e25e04f.ee7df"\r
3407             ]\r
3408         ]\r
3409     },\r
3410     {\r
3411         "id": "1e25e04f.ee7df",\r
3412         "type": "set",\r
3413         "name": "set controller domainConn data",\r
3414         "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
3415         "comments": "",\r
3416         "x": 2449,\r
3417         "y": 2276,\r
3418         "z": "5a4cb919.dfff38",\r
3419         "wires": []\r
3420     },\r
3421     {\r
3422         "id": "46842cb8.91c5bc",\r
3423         "type": "get-resource",\r
3424         "name": "get-resource src pnf",\r
3425         "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
3426         "comments": "",\r
3427         "outputs": 1,\r
3428         "x": 573,\r
3429         "y": 2324,\r
3430         "z": "5a4cb919.dfff38",\r
3431         "wires": [\r
3432             [\r
3433                 "80e94eed.70f82",\r
3434                 "e1101309.b00428",\r
3435                 "6cefa506.12a2dc"\r
3436             ]\r
3437         ]\r
3438     },\r
3439     {\r
3440         "id": "80e94eed.70f82",\r
3441         "type": "success",\r
3442         "name": "success",\r
3443         "xml": "<outcome value='success'>\n",\r
3444         "comments": "",\r
3445         "outputs": 1,\r
3446         "x": 768.5001220703125,\r
3447         "y": 2276,\r
3448         "z": "5a4cb919.dfff38",\r
3449         "wires": [\r
3450             [\r
3451                 "a961cabf.5d77d8"\r
3452             ]\r
3453         ]\r
3454     },\r
3455     {\r
3456         "id": "e1101309.b00428",\r
3457         "type": "not-found",\r
3458         "name": "not-found",\r
3459         "xml": "<outcome value='not-found'>\n",\r
3460         "comments": "",\r
3461         "outputs": 1,\r
3462         "x": 760.5001220703125,\r
3463         "y": 2331,\r
3464         "z": "5a4cb919.dfff38",\r
3465         "wires": [\r
3466             [\r
3467                 "cfce6a08.8d1818"\r
3468             ]\r
3469         ]\r
3470     },\r
3471     {\r
3472         "id": "a961cabf.5d77d8",\r
3473         "type": "block",\r
3474         "name": "block",\r
3475         "xml": "<block>\n",\r
3476         "atomic": "false",\r
3477         "comments": "",\r
3478         "outputs": 1,\r
3479         "x": 912.8824462890625,\r
3480         "y": 2275.6556701660156,\r
3481         "z": "5a4cb919.dfff38",\r
3482         "wires": [\r
3483             [\r
3484                 "41f5578e.096c08"\r
3485             ]\r
3486         ]\r
3487     },\r
3488     {\r
3489         "id": "41f5578e.096c08",\r
3490         "type": "for",\r
3491         "name": "for each relationship",\r
3492         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
3493         "comments": "",\r
3494         "outputs": 1,\r
3495         "x": 1097,\r
3496         "y": 2274,\r
3497         "z": "5a4cb919.dfff38",\r
3498         "wires": [\r
3499             [\r
3500                 "78702bad.3695f4"\r
3501             ]\r
3502         ]\r
3503     },\r
3504     {\r
3505         "id": "78702bad.3695f4",\r
3506         "type": "switchNode",\r
3507         "name": "switch related-to",\r
3508         "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
3509         "comments": "",\r
3510         "outputs": 1,\r
3511         "x": 1292,\r
3512         "y": 2274,\r
3513         "z": "5a4cb919.dfff38",\r
3514         "wires": [\r
3515             [\r
3516                 "ab15b7a9.bc6bc8"\r
3517             ]\r
3518         ]\r
3519     },\r
3520     {\r
3521         "id": "6cefa506.12a2dc",\r
3522         "type": "other",\r
3523         "name": "other",\r
3524         "xml": "<outcome value='Other'>\n",\r
3525         "comments": "",\r
3526         "outputs": 1,\r
3527         "x": 765.5001220703125,\r
3528         "y": 2388,\r
3529         "z": "5a4cb919.dfff38",\r
3530         "wires": [\r
3531             [\r
3532                 "bbb236e9.1d475"\r
3533             ]\r
3534         ]\r
3535     },\r
3536     {\r
3537         "id": "bbb236e9.1d475",\r
3538         "type": "returnFailure",\r
3539         "name": "return failure",\r
3540         "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
3541         "comments": "",\r
3542         "x": 917.5001220703125,\r
3543         "y": 2389,\r
3544         "z": "5a4cb919.dfff38",\r
3545         "wires": []\r
3546     },\r
3547     {\r
3548         "id": "cfce6a08.8d1818",\r
3549         "type": "returnFailure",\r
3550         "name": "return failure",\r
3551         "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
3552         "comments": "",\r
3553         "x": 928.5001220703125,\r
3554         "y": 2332,\r
3555         "z": "5a4cb919.dfff38",\r
3556         "wires": []\r
3557     },\r
3558     {\r
3559         "id": "fd11a034.71ffe8",\r
3560         "type": "set",\r
3561         "name": "set tmp.pnf-name-forUrl",\r
3562         "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
3563         "comments": "",\r
3564         "x": 563,\r
3565         "y": 2236,\r
3566         "z": "5a4cb919.dfff38",\r
3567         "wires": []\r
3568     },\r
3569     {\r
3570         "id": "2ab715a0.ab46a2",\r
3571         "type": "block",\r
3572         "name": "block : atomic",\r
3573         "xml": "<block atomic=\"true\">",\r
3574         "atomic": "true",\r
3575         "comments": "",\r
3576         "outputs": 1,\r
3577         "x": 308,\r
3578         "y": 2367,\r
3579         "z": "5a4cb919.dfff38",\r
3580         "wires": [\r
3581             [\r
3582                 "fd11a034.71ffe8",\r
3583                 "46842cb8.91c5bc"\r
3584             ]\r
3585         ]\r
3586     },\r
3587     {\r
3588         "id": "c68339b5.636678",\r
3589         "type": "comment",\r
3590         "name": "Temporary skipping this check - to support multiple instances in one slice",\r
3591         "info": "",\r
3592         "comments": "",\r
3593         "x": 1522.9666748046875,\r
3594         "y": 184.88333129882812,\r
3595         "z": "5a4cb919.dfff38",\r
3596         "wires": []\r
3597     },\r
3598     {\r
3599         "id": "6b1a691d.f6617",\r
3600         "type": "returnFailure",\r
3601         "name": "return failure",\r
3602         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
3603         "comments": "",\r
3604         "x": 725,\r
3605         "y": 407,\r
3606         "z": "5a4cb919.dfff38",\r
3607         "wires": []\r
3608     },\r
3609     {\r
3610         "id": "a46faf22.6dbda8",\r
3611         "type": "block",\r
3612         "name": "block",\r
3613         "xml": "<block>",\r
3614         "atomic": "false",\r
3615         "comments": "",\r
3616         "outputs": 1,\r
3617         "x": 284.5,\r
3618         "y": 1376,\r
3619         "z": "5a4cb919.dfff38",\r
3620         "wires": [\r
3621             [\r
3622                 "64de189c.ea0ca",\r
3623                 "eda2f0f7.d8fb38",\r
3624                 "dc7d7df9.afb81",\r
3625                 "c70f6326.e297a",\r
3626                 "445d8bb1.6c470c",\r
3627                 "925823e9.1c4a4",\r
3628                 "f7d70d92.8a17d",\r
3629                 "93ecab9f.5bb27",\r
3630                 "e1bf516d.80132",\r
3631                 "2ab715a0.ab46a2"\r
3632             ]\r
3633         ]\r
3634     },\r
3635     {\r
3636         "id": "ee82569c.a25768",\r
3637         "type": "switchNode",\r
3638         "name": "switch uni type",\r
3639         "xml": "<switch test=\"`$tmp.aai.uni.type`\">\n\n",\r
3640         "comments": "",\r
3641         "outputs": 1,\r
3642         "x": 1315,\r
3643         "y": 1214,\r
3644         "z": "5a4cb919.dfff38",\r
3645         "wires": [\r
3646             [\r
3647                 "ef11d348.e67b18",\r
3648                 "db4eac49.9ee78",\r
3649                 "ccd7386e.438c4",\r
3650                 "8a1e26c1.925918"\r
3651             ]\r
3652         ]\r
3653     },\r
3654     {\r
3655         "id": "ef11d348.e67b18",\r
3656         "type": "outcome",\r
3657         "name": "leaf",\r
3658         "xml": "<outcome value='leaf'>\n",\r
3659         "comments": "",\r
3660         "outputs": 1,\r
3661         "x": 1480,\r
3662         "y": 1196,\r
3663         "z": "5a4cb919.dfff38",\r
3664         "wires": [\r
3665             [\r
3666                 "1989ebd9.8b76bc",\r
3667                 "9d25e547.75567"\r
3668             ]\r
3669         ]\r
3670     },\r
3671     {\r
3672         "id": "db4eac49.9ee78",\r
3673         "type": "outcome",\r
3674         "name": "root",\r
3675         "xml": "<outcome value='root'>\n",\r
3676         "comments": "",\r
3677         "outputs": 1,\r
3678         "x": 1483,\r
3679         "y": 1235,\r
3680         "z": "5a4cb919.dfff38",\r
3681         "wires": [\r
3682             [\r
3683                 "9da50ff.0241af",\r
3684                 "52a255e0.e77dec"\r
3685             ]\r
3686         ]\r
3687     },\r
3688     {\r
3689         "id": "8a1e26c1.925918",\r
3690         "type": "other",\r
3691         "name": "other",\r
3692         "xml": "<outcome value='Other'>\n",\r
3693         "comments": "",\r
3694         "outputs": 1,\r
3695         "x": 1477,\r
3696         "y": 1313,\r
3697         "z": "5a4cb919.dfff38",\r
3698         "wires": [\r
3699             [\r
3700                 "af3eb285.34bda8"\r
3701             ]\r
3702         ]\r
3703     },\r
3704     {\r
3705         "id": "ccd7386e.438c4",\r
3706         "type": "outcome",\r
3707         "name": "root-secondary",\r
3708         "xml": "<outcome value='root-secondary'>\n",\r
3709         "comments": "",\r
3710         "outputs": 1,\r
3711         "x": 1500,\r
3712         "y": 1276,\r
3713         "z": "5a4cb919.dfff38",\r
3714         "wires": [\r
3715             [\r
3716                 "8dd3ee03.704618",\r
3717                 "3acf3b0f.3b0184"\r
3718             ]\r
3719         ]\r
3720     },\r
3721     {\r
3722         "id": "8dd3ee03.704618",\r
3723         "type": "set",\r
3724         "name": "unset ethernet-srv-end-points-list",\r
3725         "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
3726         "comments": "",\r
3727         "x": 2046,\r
3728         "y": 1309,\r
3729         "z": "5a4cb919.dfff38",\r
3730         "wires": []\r
3731     },\r
3732     {\r
3733         "id": "3acf3b0f.3b0184",\r
3734         "type": "set",\r
3735         "name": "set leafOrRootAccess",\r
3736         "xml": "<set>\n<parameter name='`leafOrRootAccess`' value='ietf-eth-tran-types:root-secondary' />\n",\r
3737         "comments": "",\r
3738         "x": 2008,\r
3739         "y": 1349,\r
3740         "z": "5a4cb919.dfff38",\r
3741         "wires": []\r
3742     },\r
3743     {\r
3744         "id": "af3eb285.34bda8",\r
3745         "type": "block",\r
3746         "name": "block",\r
3747         "xml": "<block>",\r
3748         "atomic": "false",\r
3749         "comments": "",\r
3750         "outputs": 1,\r
3751         "x": 1629,\r
3752         "y": 1334,\r
3753         "z": "5a4cb919.dfff38",\r
3754         "wires": [\r
3755             []\r
3756         ]\r
3757     }\r
3758 ]