Bug fixing to support more than two domains for Transport Slicing.
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / trans_slicing / GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.json
1 [\r
2     {\r
3         "id": "df3491bc.625428",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 128,\r
8         "y": 113,\r
9         "z": "b31344e1.6b9228",\r
10         "wires": [\r
11             [\r
12                 "f93a4fe6.087538"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "f93a4fe6.087538",\r
18         "type": "service-logic",\r
19         "name": "GENERIC-RESOURCE-API ${project.version}",\r
20         "module": "GENERIC-RESOURCE-API",\r
21         "version": "${project.version}",\r
22         "comments": "",\r
23         "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
24         "outputs": 1,\r
25         "x": 412.2856903076172,\r
26         "y": 174.23810863494873,\r
27         "z": "b31344e1.6b9228",\r
28         "wires": [\r
29             [\r
30                 "3a78d95d.5e3c5e"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "3a78d95d.5e3c5e",\r
36         "type": "method",\r
37         "name": "method tsli-vnf-topology-operation-trans-slice-allocate",\r
38         "xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-allocate' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 418.42860412597656,\r
42         "y": 259.0000305175781,\r
43         "z": "b31344e1.6b9228",\r
44         "wires": [\r
45             [\r
46                 "35ecb5b7.3f1b02"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "35ecb5b7.3f1b02",\r
52         "type": "block",\r
53         "name": "block : atomic",\r
54         "xml": "<block atomic=\"true\">",\r
55         "atomic": "true",\r
56         "outputs": 1,\r
57         "x": 788.238037109375,\r
58         "y": 283.66668701171875,\r
59         "z": "b31344e1.6b9228",\r
60         "wires": [\r
61             [\r
62                 "a99ea7b2.f5e618",\r
63                 "183025fe.418fa2",\r
64                 "d352d101.d008a8"\r
65             ]\r
66         ]\r
67     },\r
68     {\r
69         "id": "a99ea7b2.f5e618",\r
70         "type": "returnSuccess",\r
71         "name": "return success",\r
72         "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",\r
73         "comments": "",\r
74         "x": 1089.571533203125,\r
75         "y": 554.5969848632812,\r
76         "z": "b31344e1.6b9228",\r
77         "wires": []\r
78     },\r
79     {\r
80         "id": "183025fe.418fa2",\r
81         "type": "save",\r
82         "name": "get service-instance from aai",\r
83         "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[$vnf-index].vnf-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].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<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->",\r
84         "comments": "",\r
85         "outputs": 1,\r
86         "x": 1111,\r
87         "y": 257,\r
88         "z": "b31344e1.6b9228",\r
89         "wires": [\r
90             [\r
91                 "47f816cc.c0286",\r
92                 "318d2442.efdd34",\r
93                 "4265fd48.9eb024"\r
94             ]\r
95         ]\r
96     },\r
97     {\r
98         "id": "47f816cc.c0286",\r
99         "type": "success",\r
100         "name": "success",\r
101         "xml": "<outcome value='success'>\n",\r
102         "comments": "",\r
103         "outputs": 1,\r
104         "x": 1336,\r
105         "y": 115,\r
106         "z": "b31344e1.6b9228",\r
107         "wires": [\r
108             [\r
109                 "6fd78e9c.961b2"\r
110             ]\r
111         ]\r
112     },\r
113     {\r
114         "id": "318d2442.efdd34",\r
115         "type": "not-found",\r
116         "name": "not-found",\r
117         "xml": "<outcome value='not-found'>\n",\r
118         "comments": "",\r
119         "outputs": 1,\r
120         "x": 1331.490966796875,\r
121         "y": 184.57403564453125,\r
122         "z": "b31344e1.6b9228",\r
123         "wires": [\r
124             [\r
125                 "aa8b68cf.4936c"\r
126             ]\r
127         ]\r
128     },\r
129     {\r
130         "id": "4265fd48.9eb024",\r
131         "type": "failure",\r
132         "name": "failure",\r
133         "xml": "<outcome value='failure'>\n",\r
134         "comments": "",\r
135         "outputs": 1,\r
136         "x": 1320,\r
137         "y": 231,\r
138         "z": "b31344e1.6b9228",\r
139         "wires": [\r
140             [\r
141                 "ea9381a6.8a9938"\r
142             ]\r
143         ]\r
144     },\r
145     {\r
146         "id": "6fd78e9c.961b2",\r
147         "type": "switchNode",\r
148         "name": "switch allotted-resources_length != 0",\r
149         "xml": "<switch test='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length != 0`'>\n",\r
150         "comments": "",\r
151         "outputs": 1,\r
152         "x": 1575,\r
153         "y": 112,\r
154         "z": "b31344e1.6b9228",\r
155         "wires": [\r
156             [\r
157                 "a9515923.c68db8",\r
158                 "3b6a0136.f8dee6"\r
159             ]\r
160         ]\r
161     },\r
162     {\r
163         "id": "aa8b68cf.4936c",\r
164         "type": "returnFailure",\r
165         "name": "return failure",\r
166         "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
167         "comments": "",\r
168         "x": 1485.0623779296875,\r
169         "y": 187.85977172851562,\r
170         "z": "b31344e1.6b9228",\r
171         "wires": []\r
172     },\r
173     {\r
174         "id": "ea9381a6.8a9938",\r
175         "type": "returnFailure",\r
176         "name": "return failure",\r
177         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
178         "comments": "",\r
179         "x": 1489,\r
180         "y": 232,\r
181         "z": "b31344e1.6b9228",\r
182         "wires": []\r
183     },\r
184     {\r
185         "id": "a9515923.c68db8",\r
186         "type": "outcomeTrue",\r
187         "name": "true",\r
188         "xml": "<outcome value='true'>\n",\r
189         "comments": "",\r
190         "outputs": 1,\r
191         "x": 1788,\r
192         "y": 136,\r
193         "z": "b31344e1.6b9228",\r
194         "wires": [\r
195             [\r
196                 "8d77a4c9.47348"\r
197             ]\r
198         ]\r
199     },\r
200     {\r
201         "id": "3b6a0136.f8dee6",\r
202         "type": "outcomeFalse",\r
203         "name": "false",\r
204         "xml": "<outcome value='false'>\n",\r
205         "comments": "",\r
206         "outputs": 1,\r
207         "x": 1790,\r
208         "y": 76,\r
209         "z": "b31344e1.6b9228",\r
210         "wires": [\r
211             []\r
212         ]\r
213     },\r
214     {\r
215         "id": "2b9472b2.e91dbe",\r
216         "type": "comment",\r
217         "name": "new for TransportSlicing",\r
218         "info": "",\r
219         "comments": "",\r
220         "x": 1090,\r
221         "y": 145,\r
222         "z": "b31344e1.6b9228",\r
223         "wires": []\r
224     },\r
225     {\r
226         "id": "8d77a4c9.47348",\r
227         "type": "block",\r
228         "name": "block",\r
229         "xml": "<block>\n",\r
230         "atomic": "false",\r
231         "comments": "",\r
232         "outputs": 1,\r
233         "x": 1773,\r
234         "y": 224,\r
235         "z": "b31344e1.6b9228",\r
236         "wires": [\r
237             [\r
238                 "2dfd81e1.a251ae",\r
239                 "d0adb7e4.435f98",\r
240                 "bf30e0be.23b998",\r
241                 "bc1d9c19.8a817"\r
242             ]\r
243         ]\r
244     },\r
245     {\r
246         "id": "4b515bec.7b07fc",\r
247         "type": "set",\r
248         "name": "set network-route-A",\r
249         "xml": "<set>\n<!--<parameter name='network-route-A' value=\"`$tmp.aai.logical-link.link-name`\" />-->\n<parameter name='network-route-A' value=\"`$tmp.aai.logical-link.link-id`\" />\n\n\n",\r
250         "comments": "",\r
251         "x": 2636,\r
252         "y": 824,\r
253         "z": "b31344e1.6b9228",\r
254         "wires": []\r
255     },\r
256     {\r
257         "id": "1fb3da4d.f9823e",\r
258         "type": "set",\r
259         "name": "set network-route-B",\r
260         "xml": "<set>\n<parameter name='network-route-B' value=\"`$tmp.aai.logical-link.link-name2`\" />\n\n\n",\r
261         "comments": "",\r
262         "x": 2637,\r
263         "y": 879,\r
264         "z": "b31344e1.6b9228",\r
265         "wires": []\r
266     },\r
267     {\r
268         "id": "1fed210d.6adb97",\r
269         "type": "save",\r
270         "name": "get allotted-resource from aai",\r
271         "xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"allotted-resource\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type-->\n<!--         AND allotted-resource.id = $allotted-resource-id'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"allotted-resource\"\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         AND allotted-resource.id = $allotted-resource-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">\n\n",\r
272         "comments": "",\r
273         "outputs": 1,\r
274         "x": 2259,\r
275         "y": 275,\r
276         "z": "b31344e1.6b9228",\r
277         "wires": [\r
278             [\r
279                 "1d390c60.f37264",\r
280                 "828d1344.2eeb18",\r
281                 "35c0fff4.63034"\r
282             ]\r
283         ]\r
284     },\r
285     {\r
286         "id": "1d390c60.f37264",\r
287         "type": "success",\r
288         "name": "success",\r
289         "xml": "<outcome value='success'>\n",\r
290         "comments": "",\r
291         "outputs": 1,\r
292         "x": 2475,\r
293         "y": 342,\r
294         "z": "b31344e1.6b9228",\r
295         "wires": [\r
296             [\r
297                 "1dfc0585.305702"\r
298             ]\r
299         ]\r
300     },\r
301     {\r
302         "id": "828d1344.2eeb18",\r
303         "type": "not-found",\r
304         "name": "not-found",\r
305         "xml": "<outcome value='not-found'>\n",\r
306         "comments": "",\r
307         "outputs": 1,\r
308         "x": 2475.490966796875,\r
309         "y": 241.573974609375,\r
310         "z": "b31344e1.6b9228",\r
311         "wires": [\r
312             [\r
313                 "899f4256.fc61"\r
314             ]\r
315         ]\r
316     },\r
317     {\r
318         "id": "35c0fff4.63034",\r
319         "type": "failure",\r
320         "name": "failure",\r
321         "xml": "<outcome value='failure'>\n",\r
322         "comments": "",\r
323         "outputs": 1,\r
324         "x": 2471,\r
325         "y": 291,\r
326         "z": "b31344e1.6b9228",\r
327         "wires": [\r
328             [\r
329                 "5b10d117.cfe6d8"\r
330             ]\r
331         ]\r
332     },\r
333     {\r
334         "id": "899f4256.fc61",\r
335         "type": "returnFailure",\r
336         "name": "return failure",\r
337         "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
338         "comments": "",\r
339         "x": 2653.0625,\r
340         "y": 241.8597412109375,\r
341         "z": "b31344e1.6b9228",\r
342         "wires": []\r
343     },\r
344     {\r
345         "id": "5b10d117.cfe6d8",\r
346         "type": "returnFailure",\r
347         "name": "return failure",\r
348         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
349         "comments": "",\r
350         "x": 2653,\r
351         "y": 291,\r
352         "z": "b31344e1.6b9228",\r
353         "wires": []\r
354     },\r
355     {\r
356         "id": "e459bf6d.9da9d8",\r
357         "type": "save",\r
358         "name": "get logical-link from aai",\r
359         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\"\n\tkey='logical-link.link-name = $logical-link-name'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.logical-link\">",\r
360         "comments": "",\r
361         "outputs": 1,\r
362         "x": 1994,\r
363         "y": 764,\r
364         "z": "b31344e1.6b9228",\r
365         "wires": [\r
366             [\r
367                 "f5d3816e.ab2828",\r
368                 "4956f23f.0bb47c",\r
369                 "fe0f59f6.d97868"\r
370             ]\r
371         ]\r
372     },\r
373     {\r
374         "id": "f5d3816e.ab2828",\r
375         "type": "not-found",\r
376         "name": "not-found",\r
377         "xml": "<outcome value='not-found'>\n",\r
378         "comments": "",\r
379         "outputs": 1,\r
380         "x": 2285.490966796875,\r
381         "y": 742.573974609375,\r
382         "z": "b31344e1.6b9228",\r
383         "wires": [\r
384             [\r
385                 "9822556a.f611a"\r
386             ]\r
387         ]\r
388     },\r
389     {\r
390         "id": "4956f23f.0bb47c",\r
391         "type": "failure",\r
392         "name": "failure",\r
393         "xml": "<outcome value='failure'>\n",\r
394         "comments": "",\r
395         "outputs": 1,\r
396         "x": 2274,\r
397         "y": 787,\r
398         "z": "b31344e1.6b9228",\r
399         "wires": [\r
400             [\r
401                 "6c100a4d.9d821c"\r
402             ]\r
403         ]\r
404     },\r
405     {\r
406         "id": "9822556a.f611a",\r
407         "type": "returnFailure",\r
408         "name": "return failure",\r
409         "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
410         "comments": "",\r
411         "x": 2434.0625,\r
412         "y": 742.8597412109375,\r
413         "z": "b31344e1.6b9228",\r
414         "wires": []\r
415     },\r
416     {\r
417         "id": "6c100a4d.9d821c",\r
418         "type": "returnFailure",\r
419         "name": "return failure",\r
420         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
421         "comments": "",\r
422         "x": 2433,\r
423         "y": 787,\r
424         "z": "b31344e1.6b9228",\r
425         "wires": []\r
426     },\r
427     {\r
428         "id": "fe0f59f6.d97868",\r
429         "type": "success",\r
430         "name": "success",\r
431         "xml": "<outcome value='success'>\n",\r
432         "comments": "",\r
433         "outputs": 1,\r
434         "x": 2281,\r
435         "y": 866,\r
436         "z": "b31344e1.6b9228",\r
437         "wires": [\r
438             [\r
439                 "6d1afb47.ab3814"\r
440             ]\r
441         ]\r
442     },\r
443     {\r
444         "id": "6d1afb47.ab3814",\r
445         "type": "block",\r
446         "name": "block",\r
447         "xml": "<block>\n",\r
448         "atomic": "false",\r
449         "comments": "",\r
450         "outputs": 1,\r
451         "x": 2420,\r
452         "y": 866,\r
453         "z": "b31344e1.6b9228",\r
454         "wires": [\r
455             [\r
456                 "4b515bec.7b07fc",\r
457                 "1fb3da4d.f9823e",\r
458                 "97eccb48.84f6c",\r
459                 "c57ab47a.d333d8",\r
460                 "10cbf4f3.49fe3b",\r
461                 "49d3005f.62282",\r
462                 "1f03402a.5db7",\r
463                 "56710693.e24068",\r
464                 "84b0870f.4db1e",\r
465                 "3323f682.f60c3a",\r
466                 "13ac3dbd.1f366a"\r
467             ]\r
468         ]\r
469     },\r
470     {\r
471         "id": "97eccb48.84f6c",\r
472         "type": "save",\r
473         "name": "get network-route-A from aai",\r
474         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-route\"\n\tkey='network-route.route-id = $network-route-A'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-route-A\">",\r
475         "comments": "",\r
476         "outputs": 1,\r
477         "x": 2649,\r
478         "y": 947,\r
479         "z": "b31344e1.6b9228",\r
480         "wires": [\r
481             [\r
482                 "8c8a4891.ac867",\r
483                 "8506ad3d.b7e4c",\r
484                 "a3b6635c.c539f8"\r
485             ]\r
486         ]\r
487     },\r
488     {\r
489         "id": "c57ab47a.d333d8",\r
490         "type": "save",\r
491         "name": "get network-route-B from aai",\r
492         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-route\"\n\tkey='network-route.route-id = $network-route-B'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-route-B\">",\r
493         "comments": "",\r
494         "outputs": 1,\r
495         "x": 2628,\r
496         "y": 1548.9998779296875,\r
497         "z": "b31344e1.6b9228",\r
498         "wires": [\r
499             [\r
500                 "506562cd.b8f74c",\r
501                 "8d73f82f.8988f8",\r
502                 "24728d1d.df92ba"\r
503             ]\r
504         ]\r
505     },\r
506     {\r
507         "id": "8c8a4891.ac867",\r
508         "type": "not-found",\r
509         "name": "not-found",\r
510         "xml": "<outcome value='not-found'>\n",\r
511         "comments": "",\r
512         "outputs": 1,\r
513         "x": 2850,\r
514         "y": 831,\r
515         "z": "b31344e1.6b9228",\r
516         "wires": [\r
517             [\r
518                 "40f9d3c1.86e1ec"\r
519             ]\r
520         ]\r
521     },\r
522     {\r
523         "id": "8506ad3d.b7e4c",\r
524         "type": "failure",\r
525         "name": "failure",\r
526         "xml": "<outcome value='failure'>\n",\r
527         "comments": "",\r
528         "outputs": 1,\r
529         "x": 2845.509033203125,\r
530         "y": 880.426025390625,\r
531         "z": "b31344e1.6b9228",\r
532         "wires": [\r
533             [\r
534                 "6f975963.47cb7"\r
535             ]\r
536         ]\r
537     },\r
538     {\r
539         "id": "a3b6635c.c539f8",\r
540         "type": "success",\r
541         "name": "success",\r
542         "xml": "<outcome value='success'>\n",\r
543         "comments": "",\r
544         "outputs": 1,\r
545         "x": 2849.509033203125,\r
546         "y": 931.426025390625,\r
547         "z": "b31344e1.6b9228",\r
548         "wires": [\r
549             [\r
550                 "61bb235e.2775f4"\r
551             ]\r
552         ]\r
553     },\r
554     {\r
555         "id": "40f9d3c1.86e1ec",\r
556         "type": "returnFailure",\r
557         "name": "return failure",\r
558         "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
559         "comments": "",\r
560         "x": 2998.571533203125,\r
561         "y": 830.2857666015625,\r
562         "z": "b31344e1.6b9228",\r
563         "wires": []\r
564     },\r
565     {\r
566         "id": "6f975963.47cb7",\r
567         "type": "returnFailure",\r
568         "name": "return failure",\r
569         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
570         "comments": "",\r
571         "x": 2988.509033203125,\r
572         "y": 880.426025390625,\r
573         "z": "b31344e1.6b9228",\r
574         "wires": []\r
575     },\r
576     {\r
577         "id": "506562cd.b8f74c",\r
578         "type": "not-found",\r
579         "name": "not-found",\r
580         "xml": "<outcome value='not-found'>\n",\r
581         "comments": "",\r
582         "outputs": 1,\r
583         "x": 2851,\r
584         "y": 1518.9998779296875,\r
585         "z": "b31344e1.6b9228",\r
586         "wires": [\r
587             [\r
588                 "7f769faa.864248"\r
589             ]\r
590         ]\r
591     },\r
592     {\r
593         "id": "8d73f82f.8988f8",\r
594         "type": "failure",\r
595         "name": "failure",\r
596         "xml": "<outcome value='failure'>\n",\r
597         "comments": "",\r
598         "outputs": 1,\r
599         "x": 2846.509033203125,\r
600         "y": 1568.4259033203125,\r
601         "z": "b31344e1.6b9228",\r
602         "wires": [\r
603             [\r
604                 "cc9ee8f2.77fda8"\r
605             ]\r
606         ]\r
607     },\r
608     {\r
609         "id": "24728d1d.df92ba",\r
610         "type": "success",\r
611         "name": "success",\r
612         "xml": "<outcome value='success'>\n",\r
613         "comments": "",\r
614         "outputs": 1,\r
615         "x": 2850.509033203125,\r
616         "y": 1619.4259033203125,\r
617         "z": "b31344e1.6b9228",\r
618         "wires": [\r
619             [\r
620                 "8a29f509.d58fe8"\r
621             ]\r
622         ]\r
623     },\r
624     {\r
625         "id": "7f769faa.864248",\r
626         "type": "returnFailure",\r
627         "name": "return failure",\r
628         "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
629         "comments": "",\r
630         "x": 2999.571533203125,\r
631         "y": 1518.28564453125,\r
632         "z": "b31344e1.6b9228",\r
633         "wires": []\r
634     },\r
635     {\r
636         "id": "cc9ee8f2.77fda8",\r
637         "type": "returnFailure",\r
638         "name": "return failure",\r
639         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
640         "comments": "",\r
641         "x": 2989.509033203125,\r
642         "y": 1568.4259033203125,\r
643         "z": "b31344e1.6b9228",\r
644         "wires": []\r
645     },\r
646     {\r
647         "id": "b720785b.7c7",\r
648         "type": "block",\r
649         "name": "block : atomic",\r
650         "xml": "<block atomic=\"true\">",\r
651         "atomic": "true",\r
652         "outputs": 1,\r
653         "x": 3663.66650390625,\r
654         "y": 975,\r
655         "z": "b31344e1.6b9228",\r
656         "wires": [\r
657             [\r
658                 "f3775fbc.163688",\r
659                 "77e2870c.e28a38",\r
660                 "ac8bf04e.ff247",\r
661                 "7c2c78d5.f4945",\r
662                 "bb95643a.1dafd8"\r
663             ]\r
664         ]\r
665     },\r
666     {\r
667         "id": "669f51ab.4dcf7",\r
668         "type": "success",\r
669         "name": "success",\r
670         "xml": "<outcome value='success'>\n",\r
671         "comments": "",\r
672         "outputs": 1,\r
673         "x": 3491,\r
674         "y": 976,\r
675         "z": "b31344e1.6b9228",\r
676         "wires": [\r
677             [\r
678                 "b720785b.7c7"\r
679             ]\r
680         ]\r
681     },\r
682     {\r
683         "id": "bfa60b88.954ac8",\r
684         "type": "not-found",\r
685         "name": "not-found",\r
686         "xml": "<outcome value='not-found'>\n",\r
687         "comments": "",\r
688         "outputs": 1,\r
689         "x": 3500.490966796875,\r
690         "y": 1018.5740356445312,\r
691         "z": "b31344e1.6b9228",\r
692         "wires": [\r
693             [\r
694                 "f78f70ff.0f2c38"\r
695             ]\r
696         ]\r
697     },\r
698     {\r
699         "id": "83a912b8.5c33b",\r
700         "type": "failure",\r
701         "name": "failure",\r
702         "xml": "<outcome value='failure'>\n",\r
703         "comments": "",\r
704         "outputs": 1,\r
705         "x": 3489,\r
706         "y": 1065,\r
707         "z": "b31344e1.6b9228",\r
708         "wires": [\r
709             [\r
710                 "d7142401.9476c"\r
711             ]\r
712         ]\r
713     },\r
714     {\r
715         "id": "f78f70ff.0f2c38",\r
716         "type": "returnFailure",\r
717         "name": "return failure",\r
718         "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
719         "comments": "",\r
720         "x": 3654.0623779296875,\r
721         "y": 1021.8597717285156,\r
722         "z": "b31344e1.6b9228",\r
723         "wires": []\r
724     },\r
725     {\r
726         "id": "d7142401.9476c",\r
727         "type": "returnFailure",\r
728         "name": "return failure",\r
729         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
730         "comments": "",\r
731         "x": 3658,\r
732         "y": 1066,\r
733         "z": "b31344e1.6b9228",\r
734         "wires": []\r
735     },\r
736     {\r
737         "id": "61bb235e.2775f4",\r
738         "type": "block",\r
739         "name": "block : atomic",\r
740         "xml": "<block atomic=\"true\">",\r
741         "atomic": "true",\r
742         "outputs": 1,\r
743         "x": 3011,\r
744         "y": 933,\r
745         "z": "b31344e1.6b9228",\r
746         "wires": [\r
747             [\r
748                 "4914fb6.031ad84",\r
749                 "4835023e.e8e8cc"\r
750             ]\r
751         ]\r
752     },\r
753     {\r
754         "id": "8a29f509.d58fe8",\r
755         "type": "block",\r
756         "name": "block : atomic",\r
757         "xml": "<block atomic=\"true\">",\r
758         "atomic": "true",\r
759         "outputs": 1,\r
760         "x": 3001,\r
761         "y": 1620.9998779296875,\r
762         "z": "b31344e1.6b9228",\r
763         "wires": [\r
764             [\r
765                 "33a198b5.ec1ae",\r
766                 "684cf1ab.a79f48"\r
767             ]\r
768         ]\r
769     },\r
770     {\r
771         "id": "d9ace0a0.b4a76",\r
772         "type": "block",\r
773         "name": "block : atomic",\r
774         "xml": "<block atomic=\"true\">",\r
775         "atomic": "true",\r
776         "outputs": 1,\r
777         "x": 3631.66650390625,\r
778         "y": 1811,\r
779         "z": "b31344e1.6b9228",\r
780         "wires": [\r
781             [\r
782                 "a2003991.03fd4",\r
783                 "52dfb8b2.652278",\r
784                 "22f952b9.882086",\r
785                 "eb4dde28.2b2138",\r
786                 "60f3b421.08732c"\r
787             ]\r
788         ]\r
789     },\r
790     {\r
791         "id": "cc45c64e.73066",\r
792         "type": "success",\r
793         "name": "success",\r
794         "xml": "<outcome value='success'>\n",\r
795         "comments": "",\r
796         "outputs": 1,\r
797         "x": 3459,\r
798         "y": 1812,\r
799         "z": "b31344e1.6b9228",\r
800         "wires": [\r
801             [\r
802                 "d9ace0a0.b4a76"\r
803             ]\r
804         ]\r
805     },\r
806     {\r
807         "id": "33759aa.996c566",\r
808         "type": "not-found",\r
809         "name": "not-found",\r
810         "xml": "<outcome value='not-found'>\n",\r
811         "comments": "",\r
812         "outputs": 1,\r
813         "x": 3468.490966796875,\r
814         "y": 1854.5740356445312,\r
815         "z": "b31344e1.6b9228",\r
816         "wires": [\r
817             [\r
818                 "28b2902a.f0c46"\r
819             ]\r
820         ]\r
821     },\r
822     {\r
823         "id": "fff61c46.59cf58",\r
824         "type": "failure",\r
825         "name": "failure",\r
826         "xml": "<outcome value='failure'>\n",\r
827         "comments": "",\r
828         "outputs": 1,\r
829         "x": 3457,\r
830         "y": 1901,\r
831         "z": "b31344e1.6b9228",\r
832         "wires": [\r
833             [\r
834                 "c4e6ae73.bdead"\r
835             ]\r
836         ]\r
837     },\r
838     {\r
839         "id": "28b2902a.f0c46",\r
840         "type": "returnFailure",\r
841         "name": "return failure",\r
842         "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
843         "comments": "",\r
844         "x": 3622.0623779296875,\r
845         "y": 1857.8597717285156,\r
846         "z": "b31344e1.6b9228",\r
847         "wires": []\r
848     },\r
849     {\r
850         "id": "c4e6ae73.bdead",\r
851         "type": "returnFailure",\r
852         "name": "return failure",\r
853         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
854         "comments": "",\r
855         "x": 3626,\r
856         "y": 1902,\r
857         "z": "b31344e1.6b9228",\r
858         "wires": []\r
859     },\r
860     {\r
861         "id": "f3775fbc.163688",\r
862         "type": "execute",\r
863         "name": "execute split tp-id to get pnf-name",\r
864         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-A.p-interface-src.interface-name`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainA\"/>\n\n",\r
865         "comments": "",\r
866         "outputs": 1,\r
867         "x": 3928,\r
868         "y": 959,\r
869         "z": "b31344e1.6b9228",\r
870         "wires": [\r
871             [\r
872                 "17df8b10.734cad",\r
873                 "e9e72181.7c2d78"\r
874             ]\r
875         ]\r
876     },\r
877     {\r
878         "id": "e9e72181.7c2d78",\r
879         "type": "failure",\r
880         "name": "success",\r
881         "xml": "<outcome value='success'>\n",\r
882         "comments": "",\r
883         "outputs": 1,\r
884         "x": 4151,\r
885         "y": 914,\r
886         "z": "b31344e1.6b9228",\r
887         "wires": [\r
888             [\r
889                 "c8b8d5f9.b22ca8"\r
890             ]\r
891         ]\r
892     },\r
893     {\r
894         "id": "17df8b10.734cad",\r
895         "type": "failure",\r
896         "name": "failure",\r
897         "xml": "<outcome value='failure'>\n",\r
898         "comments": "",\r
899         "outputs": 1,\r
900         "x": 4153,\r
901         "y": 978,\r
902         "z": "b31344e1.6b9228",\r
903         "wires": [\r
904             [\r
905                 "59177303.95ce1c"\r
906             ]\r
907         ]\r
908     },\r
909     {\r
910         "id": "e95ea736.29045",\r
911         "type": "set",\r
912         "name": "set ltpId",\r
913         "xml": "<set>\n<parameter name='tmp.src.ltpId' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n",\r
914         "comments": "",\r
915         "x": 4486,\r
916         "y": 869,\r
917         "z": "b31344e1.6b9228",\r
918         "wires": []\r
919     },\r
920     {\r
921         "id": "59177303.95ce1c",\r
922         "type": "returnFailure",\r
923         "name": "return failure",\r
924         "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
925         "comments": "",\r
926         "x": 4315,\r
927         "y": 974,\r
928         "z": "b31344e1.6b9228",\r
929         "wires": []\r
930     },\r
931     {\r
932         "id": "c8b8d5f9.b22ca8",\r
933         "type": "block",\r
934         "name": "block : atomic",\r
935         "xml": "<block atomic=\"true\">",\r
936         "atomic": "true",\r
937         "outputs": 1,\r
938         "x": 4316,\r
939         "y": 911,\r
940         "z": "b31344e1.6b9228",\r
941         "wires": [\r
942             [\r
943                 "f09148e0.5a878",\r
944                 "e95ea736.29045"\r
945             ]\r
946         ]\r
947     },\r
948     {\r
949         "id": "f09148e0.5a878",\r
950         "type": "set",\r
951         "name": "set pnf-name",\r
952         "xml": "<set>\n<parameter name='tmp.src.pnf-name' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n",\r
953         "comments": "",\r
954         "x": 4487,\r
955         "y": 977,\r
956         "z": "b31344e1.6b9228",\r
957         "wires": []\r
958     },\r
959     {\r
960         "id": "2c408fec.1a81a",\r
961         "type": "comment",\r
962         "name": "TODO: FIXME",\r
963         "info": "using the output of regex string arrays,\nconcatinate index 0 to index[length-2] all together\nin order to assemble the correct pnf-name",\r
964         "comments": "",\r
965         "x": 4488,\r
966         "y": 926,\r
967         "z": "b31344e1.6b9228",\r
968         "wires": []\r
969     },\r
970     {\r
971         "id": "ac8bf04e.ff247",\r
972         "type": "save",\r
973         "name": "save connectivity resource in AAI",\r
974         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='CIR' value='`$prop.sotn.cir`' />\n<parameter name='EIR' value='`$prop.sotn.eir`' />\n<parameter name='CBS' value='`$prop.sotn.cbs`' />\n<parameter name='EBS' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
975         "comments": "",\r
976         "outputs": 1,\r
977         "x": 3930,\r
978         "y": 1118,\r
979         "z": "b31344e1.6b9228",\r
980         "wires": [\r
981             []\r
982         ]\r
983     },\r
984     {\r
985         "id": "77e2870c.e28a38",\r
986         "type": "execute",\r
987         "name": "execute UUID generator for connectivity domainA",\r
988         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-domainA-uuid\"/>\n",\r
989         "comments": "",\r
990         "outputs": 1,\r
991         "x": 3975,\r
992         "y": 1028,\r
993         "z": "b31344e1.6b9228",\r
994         "wires": [\r
995             []\r
996         ]\r
997     },\r
998     {\r
999         "id": "936488c4.d6b8e",\r
1000         "type": "comment",\r
1001         "name": "TODO: FIXME",\r
1002         "info": "using the output of regex string arrays,\nconcatinate index 0 to index[?] all together\nin order to assemble the correct values for provider-id, \ntopology-id, node-id, etc.",\r
1003         "comments": "",\r
1004         "x": 3864,\r
1005         "y": 1069,\r
1006         "z": "b31344e1.6b9228",\r
1007         "wires": []\r
1008     },\r
1009     {\r
1010         "id": "a2003991.03fd4",\r
1011         "type": "execute",\r
1012         "name": "execute split tp-id to get pnf-name",\r
1013         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-B.p-interface-dst.interface-name`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainB\"/>\n\n\n",\r
1014         "comments": "",\r
1015         "outputs": 1,\r
1016         "x": 3918,\r
1017         "y": 1815.0001220703125,\r
1018         "z": "b31344e1.6b9228",\r
1019         "wires": [\r
1020             [\r
1021                 "f2d8cb03.1eed48",\r
1022                 "6e32cf18.31944"\r
1023             ]\r
1024         ]\r
1025     },\r
1026     {\r
1027         "id": "6e32cf18.31944",\r
1028         "type": "failure",\r
1029         "name": "success",\r
1030         "xml": "<outcome value='success'>\n",\r
1031         "comments": "",\r
1032         "outputs": 1,\r
1033         "x": 4141,\r
1034         "y": 1770.0001220703125,\r
1035         "z": "b31344e1.6b9228",\r
1036         "wires": [\r
1037             [\r
1038                 "201ffc86.8db20c"\r
1039             ]\r
1040         ]\r
1041     },\r
1042     {\r
1043         "id": "f2d8cb03.1eed48",\r
1044         "type": "failure",\r
1045         "name": "failure",\r
1046         "xml": "<outcome value='failure'>\n",\r
1047         "comments": "",\r
1048         "outputs": 1,\r
1049         "x": 4143,\r
1050         "y": 1834.0001220703125,\r
1051         "z": "b31344e1.6b9228",\r
1052         "wires": [\r
1053             [\r
1054                 "b29b2d4c.c3046"\r
1055             ]\r
1056         ]\r
1057     },\r
1058     {\r
1059         "id": "2386e717.060b18",\r
1060         "type": "set",\r
1061         "name": "set ltpId",\r
1062         "xml": "<set>\n<parameter name='tmp.dst.ltpId' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n",\r
1063         "comments": "",\r
1064         "x": 4476,\r
1065         "y": 1728.0001220703125,\r
1066         "z": "b31344e1.6b9228",\r
1067         "wires": []\r
1068     },\r
1069     {\r
1070         "id": "b29b2d4c.c3046",\r
1071         "type": "returnFailure",\r
1072         "name": "return failure",\r
1073         "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
1074         "comments": "",\r
1075         "x": 4302,\r
1076         "y": 1853.0001220703125,\r
1077         "z": "b31344e1.6b9228",\r
1078         "wires": []\r
1079     },\r
1080     {\r
1081         "id": "201ffc86.8db20c",\r
1082         "type": "block",\r
1083         "name": "block : atomic",\r
1084         "xml": "<block atomic=\"true\">",\r
1085         "atomic": "true",\r
1086         "outputs": 1,\r
1087         "x": 4306,\r
1088         "y": 1767.0001220703125,\r
1089         "z": "b31344e1.6b9228",\r
1090         "wires": [\r
1091             [\r
1092                 "2386e717.060b18",\r
1093                 "c71df80d.cfbb08"\r
1094             ]\r
1095         ]\r
1096     },\r
1097     {\r
1098         "id": "c71df80d.cfbb08",\r
1099         "type": "set",\r
1100         "name": "set pnf-name",\r
1101         "xml": "<set>\n<parameter name='tmp.dst.pnf-name' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n",\r
1102         "comments": "",\r
1103         "x": 4477,\r
1104         "y": 1833.0001220703125,\r
1105         "z": "b31344e1.6b9228",\r
1106         "wires": []\r
1107     },\r
1108     {\r
1109         "id": "e385afea.eec45",\r
1110         "type": "comment",\r
1111         "name": "TODO: FIXME",\r
1112         "info": "using the output of regex string arrays,\nconcatinate index 0 to index[length-2] all together\nin order to assemble the correct pnf-name",\r
1113         "comments": "",\r
1114         "x": 4472,\r
1115         "y": 1782.0001220703125,\r
1116         "z": "b31344e1.6b9228",\r
1117         "wires": []\r
1118     },\r
1119     {\r
1120         "id": "22f952b9.882086",\r
1121         "type": "save",\r
1122         "name": "save connectivity resource in AAI",\r
1123         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n\n\n<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='CIR' value='`$prop.sotn.cir`' />\n<parameter name='EIR' value='`$prop.sotn.eir`' />\n<parameter name='CBS' value='`$prop.sotn.cbs`' />\n<parameter name='EBS' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
1124         "comments": "",\r
1125         "outputs": 1,\r
1126         "x": 3920,\r
1127         "y": 1974.0001220703125,\r
1128         "z": "b31344e1.6b9228",\r
1129         "wires": [\r
1130             []\r
1131         ]\r
1132     },\r
1133     {\r
1134         "id": "52dfb8b2.652278",\r
1135         "type": "execute",\r
1136         "name": "execute UUID generator for connectivity domainB",\r
1137         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainB-uuid\"/>\n",\r
1138         "comments": "",\r
1139         "outputs": 1,\r
1140         "x": 3965,\r
1141         "y": 1884.0001220703125,\r
1142         "z": "b31344e1.6b9228",\r
1143         "wires": [\r
1144             []\r
1145         ]\r
1146     },\r
1147     {\r
1148         "id": "4961c905.9d4bb",\r
1149         "type": "comment",\r
1150         "name": "TODO: FIXME",\r
1151         "info": "using the output of regex string arrays,\nconcatinate index 0 to index[?] all together\nin order to assemble the correct values for provider-id, \ntopology-id, node-id, etc.",\r
1152         "comments": "",\r
1153         "x": 3854,\r
1154         "y": 1922.0001220703125,\r
1155         "z": "b31344e1.6b9228",\r
1156         "wires": []\r
1157     },\r
1158     {\r
1159         "id": "10cbf4f3.49fe3b",\r
1160         "type": "call",\r
1161         "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof",\r
1162         "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof' mode='sync' >\n\n",\r
1163         "comments": "",\r
1164         "outputs": 1,\r
1165         "x": 2848,\r
1166         "y": 2278,\r
1167         "z": "b31344e1.6b9228",\r
1168         "wires": [\r
1169             []\r
1170         ]\r
1171     },\r
1172     {\r
1173         "id": "49d3005f.62282",\r
1174         "type": "set",\r
1175         "name": "set attachment_param",\r
1176         "xml": "<set>\n<parameter name='prop.connection-attachment.access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='prop.connection-attachment.access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='prop.connection-attachment.access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='prop.connection-attachment.access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='prop.connection-attachment.access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n\n<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='prop.remote.connection-attachment.access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='prop.remote.connection-attachment.access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n\n<!--<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$oof.vpn.access-provider-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-client-id' value='`$oof.vpn.access-client-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$oof.vpn.access-topology-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-node-id' value='`$oof.vpn.access-node-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />-->\n",\r
1177         "comments": "",\r
1178         "x": 2642,\r
1179         "y": 2179,\r
1180         "z": "b31344e1.6b9228",\r
1181         "wires": []\r
1182     },\r
1183     {\r
1184         "id": "9f05df83.0d8378",\r
1185         "type": "comment",\r
1186         "name": "TODO: FIXME",\r
1187         "info": "put proper values for src topology-id, node-id, ltp-id, etc (in domain A)\nand dst topology-id, node-id, ltp-id, etc (in domain B)",\r
1188         "comments": "",\r
1189         "x": 2616,\r
1190         "y": 2132,\r
1191         "z": "b31344e1.6b9228",\r
1192         "wires": []\r
1193     },\r
1194     {\r
1195         "id": "7c2c78d5.f4945",\r
1196         "type": "save",\r
1197         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
1198         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='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      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-domainA-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
1199         "comments": "",\r
1200         "outputs": 1,\r
1201         "x": 4058,\r
1202         "y": 1166,\r
1203         "z": "b31344e1.6b9228",\r
1204         "wires": [\r
1205             []\r
1206         ]\r
1207     },\r
1208     {\r
1209         "id": "eb4dde28.2b2138",\r
1210         "type": "save",\r
1211         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
1212         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='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      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-domainB-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
1213         "comments": "",\r
1214         "outputs": 1,\r
1215         "x": 4047,\r
1216         "y": 2039.0001220703125,\r
1217         "z": "b31344e1.6b9228",\r
1218         "wires": [\r
1219             []\r
1220         ]\r
1221     },\r
1222     {\r
1223         "id": "2d08c6.2cc1e73a",\r
1224         "type": "execute",\r
1225         "name": "get esr-thirdparty-sdnc",\r
1226         "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
1227         "comments": "",\r
1228         "outputs": 1,\r
1229         "x": 5102,\r
1230         "y": 686,\r
1231         "z": "b31344e1.6b9228",\r
1232         "wires": [\r
1233             [\r
1234                 "fe7f5526.b757d",\r
1235                 "ace94fc7.113e6",\r
1236                 "42739782.dc6168"\r
1237             ]\r
1238         ]\r
1239     },\r
1240     {\r
1241         "id": "1dfc0585.305702",\r
1242         "type": "block",\r
1243         "name": "block : atomic",\r
1244         "xml": "<block atomic=\"true\">",\r
1245         "atomic": "true",\r
1246         "outputs": 1,\r
1247         "x": 2655,\r
1248         "y": 342,\r
1249         "z": "b31344e1.6b9228",\r
1250         "wires": [\r
1251             [\r
1252                 "8622621b.5191"\r
1253             ]\r
1254         ]\r
1255     },\r
1256     {\r
1257         "id": "7de95d04.4c5e84",\r
1258         "type": "outcome",\r
1259         "name": "logical-link",\r
1260         "xml": "<outcome value='logical-link'>\n",\r
1261         "comments": "",\r
1262         "outputs": 1,\r
1263         "x": 1585.0001220703125,\r
1264         "y": 759.0001220703125,\r
1265         "z": "b31344e1.6b9228",\r
1266         "wires": [\r
1267             [\r
1268                 "38efe599.5c2462"\r
1269             ]\r
1270         ]\r
1271     },\r
1272     {\r
1273         "id": "a0ff94f7.a05cd8",\r
1274         "type": "switchNode",\r
1275         "name": "switch allotted-resource.relationship-list not empty",\r
1276         "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship_length != 0`'>\n",\r
1277         "comments": "",\r
1278         "outputs": 1,\r
1279         "x": 2323,\r
1280         "y": 465,\r
1281         "z": "b31344e1.6b9228",\r
1282         "wires": [\r
1283             [\r
1284                 "8055d128.93cf8",\r
1285                 "a4e55956.340f1"\r
1286             ]\r
1287         ]\r
1288     },\r
1289     {\r
1290         "id": "a4e55956.340f1",\r
1291         "type": "outcomeFalse",\r
1292         "name": "false",\r
1293         "xml": "<outcome value='false'>\n",\r
1294         "comments": "",\r
1295         "outputs": 1,\r
1296         "x": 2633,\r
1297         "y": 472,\r
1298         "z": "b31344e1.6b9228",\r
1299         "wires": [\r
1300             []\r
1301         ]\r
1302     },\r
1303     {\r
1304         "id": "8055d128.93cf8",\r
1305         "type": "outcomeTrue",\r
1306         "name": "true",\r
1307         "xml": "<outcome value='true'>\n",\r
1308         "comments": "",\r
1309         "outputs": 1,\r
1310         "x": 2632,\r
1311         "y": 526,\r
1312         "z": "b31344e1.6b9228",\r
1313         "wires": [\r
1314             [\r
1315                 "33bd7ebe.34c502"\r
1316             ]\r
1317         ]\r
1318     },\r
1319     {\r
1320         "id": "2ecd1033.1e79d8",\r
1321         "type": "set",\r
1322         "name": "set the current logical-link-name",\r
1323         "xml": "<set>\n<parameter name='logical-link-name' value=\"`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`\" />\n\n\n",\r
1324         "comments": "",\r
1325         "x": 2005,\r
1326         "y": 709,\r
1327         "z": "b31344e1.6b9228",\r
1328         "wires": []\r
1329     },\r
1330     {\r
1331         "id": "38efe599.5c2462",\r
1332         "type": "block",\r
1333         "name": "block : atomic",\r
1334         "xml": "<block atomic=\"true\">",\r
1335         "atomic": "true",\r
1336         "outputs": 1,\r
1337         "x": 1762,\r
1338         "y": 752,\r
1339         "z": "b31344e1.6b9228",\r
1340         "wires": [\r
1341             [\r
1342                 "2ecd1033.1e79d8",\r
1343                 "e459bf6d.9da9d8"\r
1344             ]\r
1345         ]\r
1346     },\r
1347     {\r
1348         "id": "f61b9c.2378ec68",\r
1349         "type": "comment",\r
1350         "name": "Question?",\r
1351         "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
1352         "comments": "",\r
1353         "x": 3191,\r
1354         "y": 938,\r
1355         "z": "b31344e1.6b9228",\r
1356         "wires": []\r
1357     },\r
1358     {\r
1359         "id": "4914fb6.031ad84",\r
1360         "type": "save",\r
1361         "name": "get p-interface-src from aai",\r
1362         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t    key=\"pnf.pnf-name = $tmp.src.domainA.pnf-name\n\t        AND p-interface.interface-name = $tmp.aai.network-route-A.next-hop\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.network-route-A.p-interface-src\" >\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"p-interface\"-->\n<!--\t    key=\"pnf.pnf-name = $unique-src-node-Id-->\n<!--\t        and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"-->\n<!--\t\tlocal-only=\"false\" -->\n<!--\t\tpfx=\"tmp.aai.endpointA.p-interface-src\" >-->\n",\r
1363         "comments": "",\r
1364         "outputs": 1,\r
1365         "x": 3234,\r
1366         "y": 1003,\r
1367         "z": "b31344e1.6b9228",\r
1368         "wires": [\r
1369             [\r
1370                 "669f51ab.4dcf7",\r
1371                 "bfa60b88.954ac8",\r
1372                 "83a912b8.5c33b"\r
1373             ]\r
1374         ]\r
1375     },\r
1376     {\r
1377         "id": "33a198b5.ec1ae",\r
1378         "type": "save",\r
1379         "name": "get p-interface-dst from aai",\r
1380         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t    key=\"pnf.pnf-name = $tmp.dst.domainB.pnf-name\n\t        AND p-interface.interface-name = $tmp.aai.network-route-B.next-hop\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.network-route-B.p-interface-dst\" >\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"p-interface\"-->\n<!--\t    key=\"pnf.pnf-name = $unique-src-node-Id-->\n<!--\t        and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"-->\n<!--\t\tlocal-only=\"false\" -->\n<!--\t\tpfx=\"tmp.aai.endpointA.p-interface-src\" >-->\n",\r
1381         "comments": "",\r
1382         "outputs": 1,\r
1383         "x": 3231,\r
1384         "y": 1847,\r
1385         "z": "b31344e1.6b9228",\r
1386         "wires": [\r
1387             [\r
1388                 "cc45c64e.73066",\r
1389                 "33759aa.996c566",\r
1390                 "fff61c46.59cf58"\r
1391             ]\r
1392         ]\r
1393     },\r
1394     {\r
1395         "id": "13eb2671.9e12f2",\r
1396         "type": "comment",\r
1397         "name": "Question?",\r
1398         "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
1399         "comments": "",\r
1400         "x": 3192,\r
1401         "y": 1791,\r
1402         "z": "b31344e1.6b9228",\r
1403         "wires": []\r
1404     },\r
1405     {\r
1406         "id": "8622621b.5191",\r
1407         "type": "save",\r
1408         "name": "get allotted-resource relationship from aai",\r
1409         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"allotted-resource:relationship-list\"\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         AND allotted-resource.id = $allotted-resource-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.allotted-resource.relationship-list\">\n\n",\r
1410         "comments": "",\r
1411         "outputs": 1,\r
1412         "x": 2948,\r
1413         "y": 289,\r
1414         "z": "b31344e1.6b9228",\r
1415         "wires": [\r
1416             [\r
1417                 "774c27b3.d5b958",\r
1418                 "314f18ee.d0e28",\r
1419                 "177a6858.e45f48"\r
1420             ]\r
1421         ]\r
1422     },\r
1423     {\r
1424         "id": "314f18ee.d0e28",\r
1425         "type": "not-found",\r
1426         "name": "not-found",\r
1427         "xml": "<outcome value='not-found'>\n",\r
1428         "comments": "",\r
1429         "outputs": 1,\r
1430         "x": 3221.490966796875,\r
1431         "y": 181.573974609375,\r
1432         "z": "b31344e1.6b9228",\r
1433         "wires": [\r
1434             [\r
1435                 "bf0d979c.0d6a2"\r
1436             ]\r
1437         ]\r
1438     },\r
1439     {\r
1440         "id": "bf0d979c.0d6a2",\r
1441         "type": "returnFailure",\r
1442         "name": "return failure",\r
1443         "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
1444         "comments": "",\r
1445         "x": 3399.0625,\r
1446         "y": 181.8597412109375,\r
1447         "z": "b31344e1.6b9228",\r
1448         "wires": []\r
1449     },\r
1450     {\r
1451         "id": "177a6858.e45f48",\r
1452         "type": "failure",\r
1453         "name": "failure",\r
1454         "xml": "<outcome value='failure'>\n",\r
1455         "comments": "",\r
1456         "outputs": 1,\r
1457         "x": 3217,\r
1458         "y": 231,\r
1459         "z": "b31344e1.6b9228",\r
1460         "wires": [\r
1461             [\r
1462                 "69e0c103.73f7e"\r
1463             ]\r
1464         ]\r
1465     },\r
1466     {\r
1467         "id": "69e0c103.73f7e",\r
1468         "type": "returnFailure",\r
1469         "name": "return failure",\r
1470         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1471         "comments": "",\r
1472         "x": 3399,\r
1473         "y": 231,\r
1474         "z": "b31344e1.6b9228",\r
1475         "wires": []\r
1476     },\r
1477     {\r
1478         "id": "774c27b3.d5b958",\r
1479         "type": "success",\r
1480         "name": "success",\r
1481         "xml": "<outcome value='success'>\n",\r
1482         "comments": "",\r
1483         "outputs": 1,\r
1484         "x": 3221,\r
1485         "y": 282,\r
1486         "z": "b31344e1.6b9228",\r
1487         "wires": [\r
1488             [\r
1489                 "8d4f11e6.7da04"\r
1490             ]\r
1491         ]\r
1492     },\r
1493     {\r
1494         "id": "8d4f11e6.7da04",\r
1495         "type": "block",\r
1496         "name": "block : atomic",\r
1497         "xml": "<block atomic=\"true\">",\r
1498         "atomic": "true",\r
1499         "outputs": 1,\r
1500         "x": 3401,\r
1501         "y": 282,\r
1502         "z": "b31344e1.6b9228",\r
1503         "wires": [\r
1504             [\r
1505                 "a0ff94f7.a05cd8"\r
1506             ]\r
1507         ]\r
1508     },\r
1509     {\r
1510         "id": "fe8ff063.6863b8",\r
1511         "type": "for",\r
1512         "name": "for each allotted-resource relationship",\r
1513         "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",\r
1514         "comments": "",\r
1515         "outputs": 1,\r
1516         "x": 2892,\r
1517         "y": 506,\r
1518         "z": "b31344e1.6b9228",\r
1519         "wires": [\r
1520             [\r
1521                 "7f3884a8.055b2c"\r
1522             ]\r
1523         ]\r
1524     },\r
1525     {\r
1526         "id": "7f3884a8.055b2c",\r
1527         "type": "switchNode",\r
1528         "name": "switch related-to",\r
1529         "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",\r
1530         "comments": "",\r
1531         "outputs": 1,\r
1532         "x": 3172,\r
1533         "y": 506,\r
1534         "z": "b31344e1.6b9228",\r
1535         "wires": [\r
1536             [\r
1537                 "7de95d04.4c5e84"\r
1538             ]\r
1539         ]\r
1540     },\r
1541     {\r
1542         "id": "5050eb58.e00ed4",\r
1543         "type": "outcome",\r
1544         "name": "network-policy",\r
1545         "xml": "<outcome value='network-policy'>\n",\r
1546         "comments": "",\r
1547         "outputs": 1,\r
1548         "x": 3377,\r
1549         "y": 480,\r
1550         "z": "b31344e1.6b9228",\r
1551         "wires": [\r
1552             [\r
1553                 "9ce29b77.ad6fe8"\r
1554             ]\r
1555         ]\r
1556     },\r
1557     {\r
1558         "id": "9ce29b77.ad6fe8",\r
1559         "type": "block",\r
1560         "name": "block : atomic",\r
1561         "xml": "<block atomic=\"true\">",\r
1562         "atomic": "true",\r
1563         "outputs": 1,\r
1564         "x": 3553.9998779296875,\r
1565         "y": 472.9998779296875,\r
1566         "z": "b31344e1.6b9228",\r
1567         "wires": [\r
1568             [\r
1569                 "e7ee0b09.87c5d8",\r
1570                 "7fe89152.e612e8"\r
1571             ]\r
1572         ]\r
1573     },\r
1574     {\r
1575         "id": "e7ee0b09.87c5d8",\r
1576         "type": "set",\r
1577         "name": "set the 1st network-policy-id",\r
1578         "xml": "<set>\n<parameter name='network-policy-id' value=\"`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`\" />\n\n\n",\r
1579         "comments": "",\r
1580         "x": 3796.9998779296875,\r
1581         "y": 429.9998779296875,\r
1582         "z": "b31344e1.6b9228",\r
1583         "wires": []\r
1584     },\r
1585     {\r
1586         "id": "7fe89152.e612e8",\r
1587         "type": "save",\r
1588         "name": "get network-policy from aai",\r
1589         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy\"\n\tkey='network-policy.network-policy-id = $network-policy-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-policy\">",\r
1590         "comments": "",\r
1591         "outputs": 1,\r
1592         "x": 3785.9998779296875,\r
1593         "y": 484.9998779296875,\r
1594         "z": "b31344e1.6b9228",\r
1595         "wires": [\r
1596             [\r
1597                 "64fb2208.a0a974",\r
1598                 "c3b9f4d3.aab1b8",\r
1599                 "f6aa84f.18621f8"\r
1600             ]\r
1601         ]\r
1602     },\r
1603     {\r
1604         "id": "f6aa84f.18621f8",\r
1605         "type": "not-found",\r
1606         "name": "not-found",\r
1607         "xml": "<outcome value='not-found'>\n",\r
1608         "comments": "",\r
1609         "outputs": 1,\r
1610         "x": 4039,\r
1611         "y": 371,\r
1612         "z": "b31344e1.6b9228",\r
1613         "wires": [\r
1614             [\r
1615                 "c20366f5.78311"\r
1616             ]\r
1617         ]\r
1618     },\r
1619     {\r
1620         "id": "c20366f5.78311",\r
1621         "type": "returnFailure",\r
1622         "name": "return failure",\r
1623         "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
1624         "comments": "",\r
1625         "x": 4187.571533203125,\r
1626         "y": 371.2857666015625,\r
1627         "z": "b31344e1.6b9228",\r
1628         "wires": []\r
1629     },\r
1630     {\r
1631         "id": "a9aadb9.f22de28",\r
1632         "type": "returnFailure",\r
1633         "name": "return failure",\r
1634         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1635         "comments": "",\r
1636         "x": 4186.509033203125,\r
1637         "y": 415.426025390625,\r
1638         "z": "b31344e1.6b9228",\r
1639         "wires": []\r
1640     },\r
1641     {\r
1642         "id": "c3b9f4d3.aab1b8",\r
1643         "type": "failure",\r
1644         "name": "failure",\r
1645         "xml": "<outcome value='failure'>\n",\r
1646         "comments": "",\r
1647         "outputs": 1,\r
1648         "x": 4027.509033203125,\r
1649         "y": 415.426025390625,\r
1650         "z": "b31344e1.6b9228",\r
1651         "wires": [\r
1652             [\r
1653                 "a9aadb9.f22de28"\r
1654             ]\r
1655         ]\r
1656     },\r
1657     {\r
1658         "id": "64fb2208.a0a974",\r
1659         "type": "success",\r
1660         "name": "success",\r
1661         "xml": "<outcome value='success'>\n",\r
1662         "comments": "",\r
1663         "outputs": 1,\r
1664         "x": 4034.509033203125,\r
1665         "y": 494.426025390625,\r
1666         "z": "b31344e1.6b9228",\r
1667         "wires": [\r
1668             [\r
1669                 "7a83723d.cc96f4"\r
1670             ]\r
1671         ]\r
1672     },\r
1673     {\r
1674         "id": "7a83723d.cc96f4",\r
1675         "type": "block",\r
1676         "name": "block",\r
1677         "xml": "<block>\n",\r
1678         "atomic": "false",\r
1679         "comments": "",\r
1680         "outputs": 1,\r
1681         "x": 4173.509033203125,\r
1682         "y": 494.426025390625,\r
1683         "z": "b31344e1.6b9228",\r
1684         "wires": [\r
1685             [\r
1686                 "1f8d33e3.a771dc",\r
1687                 "420f3616.2f701"\r
1688             ]\r
1689         ]\r
1690     },\r
1691     {\r
1692         "id": "1f8d33e3.a771dc",\r
1693         "type": "set",\r
1694         "name": "set the max bandwidth",\r
1695         "xml": "<set>\n<parameter name='maximum-bandwidth' value=\"`$tmp.aai.network-policy.max-bandwidth`\" />\n<parameter name='route-distinguisher' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",\r
1696         "comments": "",\r
1697         "x": 4379,\r
1698         "y": 492,\r
1699         "z": "b31344e1.6b9228",\r
1700         "wires": []\r
1701     },\r
1702     {\r
1703         "id": "4835023e.e8e8cc",\r
1704         "type": "execute",\r
1705         "name": "execute split tp-id to get pnf-name",\r
1706         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-A.next-hop`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainA-pnfName\"/>\n\n",\r
1707         "comments": "",\r
1708         "outputs": 1,\r
1709         "x": 3235,\r
1710         "y": 673,\r
1711         "z": "b31344e1.6b9228",\r
1712         "wires": [\r
1713             [\r
1714                 "eafc912d.cb0fe",\r
1715                 "14b2df73.02d4e1"\r
1716             ]\r
1717         ]\r
1718     },\r
1719     {\r
1720         "id": "14b2df73.02d4e1",\r
1721         "type": "failure",\r
1722         "name": "success",\r
1723         "xml": "<outcome value='success'>\n",\r
1724         "comments": "",\r
1725         "outputs": 1,\r
1726         "x": 3458,\r
1727         "y": 659,\r
1728         "z": "b31344e1.6b9228",\r
1729         "wires": [\r
1730             [\r
1731                 "bb352d17.34137"\r
1732             ]\r
1733         ]\r
1734     },\r
1735     {\r
1736         "id": "eafc912d.cb0fe",\r
1737         "type": "failure",\r
1738         "name": "failure",\r
1739         "xml": "<outcome value='failure'>\n",\r
1740         "comments": "",\r
1741         "outputs": 1,\r
1742         "x": 3460,\r
1743         "y": 692,\r
1744         "z": "b31344e1.6b9228",\r
1745         "wires": [\r
1746             [\r
1747                 "4040c9e2.8e3008"\r
1748             ]\r
1749         ]\r
1750     },\r
1751     {\r
1752         "id": "4040c9e2.8e3008",\r
1753         "type": "returnFailure",\r
1754         "name": "return failure",\r
1755         "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
1756         "comments": "",\r
1757         "x": 3603,\r
1758         "y": 689,\r
1759         "z": "b31344e1.6b9228",\r
1760         "wires": []\r
1761     },\r
1762     {\r
1763         "id": "bb352d17.34137",\r
1764         "type": "block",\r
1765         "name": "block : atomic",\r
1766         "xml": "<block atomic=\"true\">",\r
1767         "atomic": "true",\r
1768         "outputs": 1,\r
1769         "x": 3606,\r
1770         "y": 652,\r
1771         "z": "b31344e1.6b9228",\r
1772         "wires": [\r
1773             [\r
1774                 "8f0d5ee9.6635d",\r
1775                 "300f312a.b253d6"\r
1776             ]\r
1777         ]\r
1778     },\r
1779     {\r
1780         "id": "8f0d5ee9.6635d",\r
1781         "type": "set",\r
1782         "name": "set pnf-name",\r
1783         "xml": "<set>\n<parameter name='tmp.src.domainA.pnf-name' value=\"`$param-prefix-domainA-pnfName[0] + '-' +\n                                                   $param-prefix-domainA-pnfName[1] + '-' +\n                                                   $param-prefix-domainA-pnfName[2] + '-' +\n                                                   $param-prefix-domainA-pnfName[3] + '-' +\n                                                   $param-prefix-domainA-pnfName[4] + '-' +\n                                                   $param-prefix-domainA-pnfName[5] + '-' +\n                                                   $param-prefix-domainA-pnfName[6] + '-' +\n                                                   $param-prefix-domainA-pnfName[7] + '-' +\n                                                   $param-prefix-domainA-pnfName[8]`\" />\n",\r
1784         "comments": "",\r
1785         "x": 3768,\r
1786         "y": 647,\r
1787         "z": "b31344e1.6b9228",\r
1788         "wires": []\r
1789     },\r
1790     {\r
1791         "id": "684cf1ab.a79f48",\r
1792         "type": "execute",\r
1793         "name": "execute split tp-id to get pnf-name",\r
1794         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-B.next-hop`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainB-pnfName\"/>\n\n",\r
1795         "comments": "",\r
1796         "outputs": 1,\r
1797         "x": 3249,\r
1798         "y": 1509.9998779296875,\r
1799         "z": "b31344e1.6b9228",\r
1800         "wires": [\r
1801             [\r
1802                 "10ff0da4.16d4ea",\r
1803                 "55c5195b.3875c8"\r
1804             ]\r
1805         ]\r
1806     },\r
1807     {\r
1808         "id": "55c5195b.3875c8",\r
1809         "type": "failure",\r
1810         "name": "success",\r
1811         "xml": "<outcome value='success'>\n",\r
1812         "comments": "",\r
1813         "outputs": 1,\r
1814         "x": 3472,\r
1815         "y": 1495.9998779296875,\r
1816         "z": "b31344e1.6b9228",\r
1817         "wires": [\r
1818             [\r
1819                 "7202d26b.6dffec"\r
1820             ]\r
1821         ]\r
1822     },\r
1823     {\r
1824         "id": "10ff0da4.16d4ea",\r
1825         "type": "failure",\r
1826         "name": "failure",\r
1827         "xml": "<outcome value='failure'>\n",\r
1828         "comments": "",\r
1829         "outputs": 1,\r
1830         "x": 3474,\r
1831         "y": 1528.9998779296875,\r
1832         "z": "b31344e1.6b9228",\r
1833         "wires": [\r
1834             [\r
1835                 "30474e74.e5639a"\r
1836             ]\r
1837         ]\r
1838     },\r
1839     {\r
1840         "id": "30474e74.e5639a",\r
1841         "type": "returnFailure",\r
1842         "name": "return failure",\r
1843         "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
1844         "comments": "",\r
1845         "x": 3617,\r
1846         "y": 1525.9998779296875,\r
1847         "z": "b31344e1.6b9228",\r
1848         "wires": []\r
1849     },\r
1850     {\r
1851         "id": "7202d26b.6dffec",\r
1852         "type": "block",\r
1853         "name": "block : atomic",\r
1854         "xml": "<block atomic=\"true\">",\r
1855         "atomic": "true",\r
1856         "outputs": 1,\r
1857         "x": 3620,\r
1858         "y": 1488.9998779296875,\r
1859         "z": "b31344e1.6b9228",\r
1860         "wires": [\r
1861             [\r
1862                 "885f2609.7cba58",\r
1863                 "e1d06713.adb0c8"\r
1864             ]\r
1865         ]\r
1866     },\r
1867     {\r
1868         "id": "885f2609.7cba58",\r
1869         "type": "set",\r
1870         "name": "set pnf-name",\r
1871         "xml": "<set>\n<parameter name='tmp.dst.domainB.pnf-name' value=\"`$param-prefix-domainB-pnfName[0] + '-' +\n                                                   $param-prefix-domainB-pnfName[1] + '-' +\n                                                   $param-prefix-domainB-pnfName[2] + '-' +\n                                                   $param-prefix-domainB-pnfName[3] + '-' +\n                                                   $param-prefix-domainB-pnfName[4] + '-' +\n                                                   $param-prefix-domainB-pnfName[5] + '-' +\n                                                   $param-prefix-domainB-pnfName[6] + '-' +\n                                                   $param-prefix-domainB-pnfName[7] + '-' +\n                                                   $param-prefix-domainB-pnfName[8]`\" />\n",\r
1872         "comments": "",\r
1873         "x": 3814,\r
1874         "y": 1492,\r
1875         "z": "b31344e1.6b9228",\r
1876         "wires": []\r
1877     },\r
1878     {\r
1879         "id": "d352d101.d008a8",\r
1880         "type": "execute",\r
1881         "name": "execute properties",\r
1882         "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
1883         "comments": "",\r
1884         "outputs": 1,\r
1885         "x": 1078,\r
1886         "y": 197,\r
1887         "z": "b31344e1.6b9228",\r
1888         "wires": [\r
1889             []\r
1890         ]\r
1891     },\r
1892     {\r
1893         "id": "bb95643a.1dafd8",\r
1894         "type": "for",\r
1895         "name": "for each relationship",\r
1896         "xml": "<for silentFailure='true' index='pividx' start='0' end='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship_length`' >\n",\r
1897         "comments": "",\r
1898         "outputs": 1,\r
1899         "x": 3882,\r
1900         "y": 1243,\r
1901         "z": "b31344e1.6b9228",\r
1902         "wires": [\r
1903             [\r
1904                 "232e8f32.739b48"\r
1905             ]\r
1906         ]\r
1907     },\r
1908     {\r
1909         "id": "232e8f32.739b48",\r
1910         "type": "switchNode",\r
1911         "name": "switch related-to",\r
1912         "xml": "<switch test='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].related-to`'>\n",\r
1913         "comments": "",\r
1914         "outputs": 1,\r
1915         "x": 4088,\r
1916         "y": 1243,\r
1917         "z": "b31344e1.6b9228",\r
1918         "wires": [\r
1919             [\r
1920                 "8bbe738e.7fafb"\r
1921             ]\r
1922         ]\r
1923     },\r
1924     {\r
1925         "id": "8bbe738e.7fafb",\r
1926         "type": "outcome",\r
1927         "name": "tunnel-termination-point",\r
1928         "xml": "<outcome value='tunnel-termination-point'>\n",\r
1929         "comments": "",\r
1930         "outputs": 1,\r
1931         "x": 4303.28564453125,\r
1932         "y": 1242.82177734375,\r
1933         "z": "b31344e1.6b9228",\r
1934         "wires": [\r
1935             [\r
1936                 "c3ad3464.e3237"\r
1937             ]\r
1938         ]\r
1939     },\r
1940     {\r
1941         "id": "c3ad3464.e3237",\r
1942         "type": "block",\r
1943         "name": "block : atomic",\r
1944         "xml": "<block atomic=\"true\">",\r
1945         "atomic": "true",\r
1946         "outputs": 1,\r
1947         "x": 4510.1171875,\r
1948         "y": 1243.34033203125,\r
1949         "z": "b31344e1.6b9228",\r
1950         "wires": [\r
1951             [\r
1952                 "f0158859.e44c4",\r
1953                 "1be7b379.0a0a35",\r
1954                 "bee0e07a.660808"\r
1955             ]\r
1956         ]\r
1957     },\r
1958     {\r
1959         "id": "f0158859.e44c4",\r
1960         "type": "set",\r
1961         "name": "set source ttp-id",\r
1962         "xml": "<set>\n<parameter name='tmp.source.ttp-id' value=\"`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].relationship-data[0].relationship-value`\" />\n",\r
1963         "comments": "",\r
1964         "x": 4725.1171875,\r
1965         "y": 1205.34033203125,\r
1966         "z": "b31344e1.6b9228",\r
1967         "wires": []\r
1968     },\r
1969     {\r
1970         "id": "1be7b379.0a0a35",\r
1971         "type": "get-resource",\r
1972         "name": "get-resource src TTP",\r
1973         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"tunnel-termination-point\" \n\t\tkey=\"tunnel-termination-point.ttp-id = $tmp.source.ttp-id \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.source-ttp' local-only='false' >\n\n\n",\r
1974         "comments": "",\r
1975         "outputs": 1,\r
1976         "x": 4722.1171875,\r
1977         "y": 1244.34033203125,\r
1978         "z": "b31344e1.6b9228",\r
1979         "wires": [\r
1980             [\r
1981                 "5d7ec3ca.e9fe2c"\r
1982             ]\r
1983         ]\r
1984     },\r
1985     {\r
1986         "id": "bee0e07a.660808",\r
1987         "type": "break",\r
1988         "name": "break",\r
1989         "xml": "<break>\n",\r
1990         "comments": "",\r
1991         "x": 4677.6171875,\r
1992         "y": 1286.34033203125,\r
1993         "z": "b31344e1.6b9228",\r
1994         "wires": []\r
1995     },\r
1996     {\r
1997         "id": "5d7ec3ca.e9fe2c",\r
1998         "type": "success",\r
1999         "name": "success",\r
2000         "xml": "<outcome value='success'>\n",\r
2001         "comments": "",\r
2002         "outputs": 1,\r
2003         "x": 4902.6171875,\r
2004         "y": 1243.34033203125,\r
2005         "z": "b31344e1.6b9228",\r
2006         "wires": [\r
2007             [\r
2008                 "5c631dd4.8f5fbc"\r
2009             ]\r
2010         ]\r
2011     },\r
2012     {\r
2013         "id": "5c631dd4.8f5fbc",\r
2014         "type": "block",\r
2015         "name": "block : atomic",\r
2016         "xml": "<block atomic=\"true\">",\r
2017         "atomic": "true",\r
2018         "outputs": 1,\r
2019         "x": 5060.6171875,\r
2020         "y": 1243.34033203125,\r
2021         "z": "b31344e1.6b9228",\r
2022         "wires": [\r
2023             [\r
2024                 "d5d5e908.7a8eb8"\r
2025             ]\r
2026         ]\r
2027     },\r
2028     {\r
2029         "id": "d5d5e908.7a8eb8",\r
2030         "type": "set",\r
2031         "name": "set source tunnel tp ip",\r
2032         "xml": "<set>\n<parameter name='source.tunnel-tp-id' value=\"`$tmp.aai.source-ttp.tunnel-tp-id`\" />\n",\r
2033         "comments": "",\r
2034         "x": 5267.6171875,\r
2035         "y": 1243.34033203125,\r
2036         "z": "b31344e1.6b9228",\r
2037         "wires": []\r
2038     },\r
2039     {\r
2040         "id": "60f3b421.08732c",\r
2041         "type": "for",\r
2042         "name": "for each relationship",\r
2043         "xml": "<for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship_length`' >\n",\r
2044         "comments": "",\r
2045         "outputs": 1,\r
2046         "x": 3879,\r
2047         "y": 2112.0001220703125,\r
2048         "z": "b31344e1.6b9228",\r
2049         "wires": [\r
2050             [\r
2051                 "715a89d.cfea178"\r
2052             ]\r
2053         ]\r
2054     },\r
2055     {\r
2056         "id": "715a89d.cfea178",\r
2057         "type": "switchNode",\r
2058         "name": "switch related-to",\r
2059         "xml": "<switch test='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].related-to`'>\n",\r
2060         "comments": "",\r
2061         "outputs": 1,\r
2062         "x": 4085,\r
2063         "y": 2112.0001220703125,\r
2064         "z": "b31344e1.6b9228",\r
2065         "wires": [\r
2066             [\r
2067                 "977e3712.429b18"\r
2068             ]\r
2069         ]\r
2070     },\r
2071     {\r
2072         "id": "977e3712.429b18",\r
2073         "type": "outcome",\r
2074         "name": "tunnel-termination-point",\r
2075         "xml": "<outcome value='tunnel-termination-point'>\n",\r
2076         "comments": "",\r
2077         "outputs": 1,\r
2078         "x": 4300.28564453125,\r
2079         "y": 2111.8218994140625,\r
2080         "z": "b31344e1.6b9228",\r
2081         "wires": [\r
2082             [\r
2083                 "2113d9ff.cdd31e"\r
2084             ]\r
2085         ]\r
2086     },\r
2087     {\r
2088         "id": "2113d9ff.cdd31e",\r
2089         "type": "block",\r
2090         "name": "block : atomic",\r
2091         "xml": "<block atomic=\"true\">",\r
2092         "atomic": "true",\r
2093         "outputs": 1,\r
2094         "x": 4507.1171875,\r
2095         "y": 2112.3404541015625,\r
2096         "z": "b31344e1.6b9228",\r
2097         "wires": [\r
2098             [\r
2099                 "3c92c59b.613ca2",\r
2100                 "193b4238.409d8e",\r
2101                 "b71c718.f135e1"\r
2102             ]\r
2103         ]\r
2104     },\r
2105     {\r
2106         "id": "3c92c59b.613ca2",\r
2107         "type": "set",\r
2108         "name": "set destination ttp-id",\r
2109         "xml": "<set>\n<parameter name='tmp.destination.ttp-id' value=\"`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].relationship-data[0].relationship-value`\" />\n",\r
2110         "comments": "",\r
2111         "x": 4722.1171875,\r
2112         "y": 2074.3404541015625,\r
2113         "z": "b31344e1.6b9228",\r
2114         "wires": []\r
2115     },\r
2116     {\r
2117         "id": "193b4238.409d8e",\r
2118         "type": "get-resource",\r
2119         "name": "get-resource src TTP",\r
2120         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"tunnel-termination-point\" \n\t\tkey=\"tunnel-termination-point.ttp-id = $tmp.destination.ttp-id \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.destination-ttp' local-only='false' >\n\n\n",\r
2121         "comments": "",\r
2122         "outputs": 1,\r
2123         "x": 4719.1171875,\r
2124         "y": 2113.3404541015625,\r
2125         "z": "b31344e1.6b9228",\r
2126         "wires": [\r
2127             [\r
2128                 "df85928.81de67"\r
2129             ]\r
2130         ]\r
2131     },\r
2132     {\r
2133         "id": "b71c718.f135e1",\r
2134         "type": "break",\r
2135         "name": "break",\r
2136         "xml": "<break>\n",\r
2137         "comments": "",\r
2138         "x": 4674.6171875,\r
2139         "y": 2155.3404541015625,\r
2140         "z": "b31344e1.6b9228",\r
2141         "wires": []\r
2142     },\r
2143     {\r
2144         "id": "df85928.81de67",\r
2145         "type": "success",\r
2146         "name": "success",\r
2147         "xml": "<outcome value='success'>\n",\r
2148         "comments": "",\r
2149         "outputs": 1,\r
2150         "x": 4899.6171875,\r
2151         "y": 2112.3404541015625,\r
2152         "z": "b31344e1.6b9228",\r
2153         "wires": [\r
2154             [\r
2155                 "8b1f9fde.337d98"\r
2156             ]\r
2157         ]\r
2158     },\r
2159     {\r
2160         "id": "8b1f9fde.337d98",\r
2161         "type": "block",\r
2162         "name": "block : atomic",\r
2163         "xml": "<block atomic=\"true\">",\r
2164         "atomic": "true",\r
2165         "outputs": 1,\r
2166         "x": 5057.6171875,\r
2167         "y": 2112.3404541015625,\r
2168         "z": "b31344e1.6b9228",\r
2169         "wires": [\r
2170             [\r
2171                 "20d9b129.b72206"\r
2172             ]\r
2173         ]\r
2174     },\r
2175     {\r
2176         "id": "20d9b129.b72206",\r
2177         "type": "set",\r
2178         "name": "set destination tunnel tp ip",\r
2179         "xml": "<set>\n<parameter name='destination.tunnel-tp-id' value=\"`$tmp.aai.destination-ttp.tunnel-tp-id`\" />\n",\r
2180         "comments": "",\r
2181         "x": 5264.6171875,\r
2182         "y": 2112.3404541015625,\r
2183         "z": "b31344e1.6b9228",\r
2184         "wires": []\r
2185     },\r
2186     {\r
2187         "id": "300f312a.b253d6",\r
2188         "type": "get-resource",\r
2189         "name": "get-resource src pnf",\r
2190         "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
2191         "comments": "",\r
2192         "outputs": 1,\r
2193         "x": 3795,\r
2194         "y": 719,\r
2195         "z": "b31344e1.6b9228",\r
2196         "wires": [\r
2197             [\r
2198                 "1c354309.a76ffd",\r
2199                 "950deba8.cc3e4",\r
2200                 "c2c16051.a906d8"\r
2201             ]\r
2202         ]\r
2203     },\r
2204     {\r
2205         "id": "1c354309.a76ffd",\r
2206         "type": "success",\r
2207         "name": "success",\r
2208         "xml": "<outcome value='success'>\n",\r
2209         "comments": "",\r
2210         "outputs": 1,\r
2211         "x": 3990.5001220703125,\r
2212         "y": 671,\r
2213         "z": "b31344e1.6b9228",\r
2214         "wires": [\r
2215             [\r
2216                 "d41af0c3.594838"\r
2217             ]\r
2218         ]\r
2219     },\r
2220     {\r
2221         "id": "950deba8.cc3e4",\r
2222         "type": "not-found",\r
2223         "name": "not-found",\r
2224         "xml": "<outcome value='not-found'>\n",\r
2225         "comments": "",\r
2226         "outputs": 1,\r
2227         "x": 3982.5001220703125,\r
2228         "y": 726,\r
2229         "z": "b31344e1.6b9228",\r
2230         "wires": [\r
2231             [\r
2232                 "3d15fff1.053cf"\r
2233             ]\r
2234         ]\r
2235     },\r
2236     {\r
2237         "id": "c2c16051.a906d8",\r
2238         "type": "other",\r
2239         "name": "other",\r
2240         "xml": "<outcome value='Other'>\n",\r
2241         "comments": "",\r
2242         "outputs": 1,\r
2243         "x": 3987.5001220703125,\r
2244         "y": 783,\r
2245         "z": "b31344e1.6b9228",\r
2246         "wires": [\r
2247             [\r
2248                 "d7ef8f23.d036"\r
2249             ]\r
2250         ]\r
2251     },\r
2252     {\r
2253         "id": "d7ef8f23.d036",\r
2254         "type": "returnFailure",\r
2255         "name": "return failure",\r
2256         "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
2257         "comments": "",\r
2258         "x": 4139.5001220703125,\r
2259         "y": 784,\r
2260         "z": "b31344e1.6b9228",\r
2261         "wires": []\r
2262     },\r
2263     {\r
2264         "id": "3d15fff1.053cf",\r
2265         "type": "returnFailure",\r
2266         "name": "return failure",\r
2267         "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
2268         "comments": "",\r
2269         "x": 4150.5001220703125,\r
2270         "y": 729,\r
2271         "z": "b31344e1.6b9228",\r
2272         "wires": []\r
2273     },\r
2274     {\r
2275         "id": "d41af0c3.594838",\r
2276         "type": "block",\r
2277         "name": "block",\r
2278         "xml": "<block>\n",\r
2279         "atomic": "false",\r
2280         "comments": "",\r
2281         "outputs": 1,\r
2282         "x": 4134.8824462890625,\r
2283         "y": 668.6556701660156,\r
2284         "z": "b31344e1.6b9228",\r
2285         "wires": [\r
2286             [\r
2287                 "b45d0128.680c8"\r
2288             ]\r
2289         ]\r
2290     },\r
2291     {\r
2292         "id": "7cb8afd4.8d20b8",\r
2293         "type": "outcome",\r
2294         "name": "esr-thirdparty-sdnc",\r
2295         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
2296         "comments": "",\r
2297         "outputs": 1,\r
2298         "x": 4717,\r
2299         "y": 687,\r
2300         "z": "b31344e1.6b9228",\r
2301         "wires": [\r
2302             [\r
2303                 "47edc84c.808f88"\r
2304             ]\r
2305         ]\r
2306     },\r
2307     {\r
2308         "id": "47edc84c.808f88",\r
2309         "type": "block",\r
2310         "name": "block : atomic",\r
2311         "xml": "<block atomic=\"true\">",\r
2312         "atomic": "true",\r
2313         "outputs": 1,\r
2314         "x": 4894,\r
2315         "y": 679,\r
2316         "z": "b31344e1.6b9228",\r
2317         "wires": [\r
2318             [\r
2319                 "266ac25a.ea33a6",\r
2320                 "2d08c6.2cc1e73a"\r
2321             ]\r
2322         ]\r
2323     },\r
2324     {\r
2325         "id": "b45d0128.680c8",\r
2326         "type": "for",\r
2327         "name": "for each relationship",\r
2328         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
2329         "comments": "",\r
2330         "outputs": 1,\r
2331         "x": 4319,\r
2332         "y": 683,\r
2333         "z": "b31344e1.6b9228",\r
2334         "wires": [\r
2335             [\r
2336                 "4f9ef890.59c338"\r
2337             ]\r
2338         ]\r
2339     },\r
2340     {\r
2341         "id": "4f9ef890.59c338",\r
2342         "type": "switchNode",\r
2343         "name": "switch related-to",\r
2344         "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
2345         "comments": "",\r
2346         "outputs": 1,\r
2347         "x": 4514,\r
2348         "y": 683,\r
2349         "z": "b31344e1.6b9228",\r
2350         "wires": [\r
2351             [\r
2352                 "7cb8afd4.8d20b8",\r
2353                 "212f425.c6d5fbe"\r
2354             ]\r
2355         ]\r
2356     },\r
2357     {\r
2358         "id": "266ac25a.ea33a6",\r
2359         "type": "set",\r
2360         "name": "set esr-thirdparty-sdnc domainA id",\r
2361         "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
2362         "comments": "",\r
2363         "x": 5132,\r
2364         "y": 634,\r
2365         "z": "b31344e1.6b9228",\r
2366         "wires": []\r
2367     },\r
2368     {\r
2369         "id": "fe7f5526.b757d",\r
2370         "type": "success",\r
2371         "name": "success",\r
2372         "xml": "<outcome value='success'>\n",\r
2373         "comments": "",\r
2374         "outputs": 1,\r
2375         "x": 5312,\r
2376         "y": 677,\r
2377         "z": "b31344e1.6b9228",\r
2378         "wires": [\r
2379             [\r
2380                 "c4631195.e5511"\r
2381             ]\r
2382         ]\r
2383     },\r
2384     {\r
2385         "id": "ace94fc7.113e6",\r
2386         "type": "not-found",\r
2387         "name": "not-found",\r
2388         "xml": "<outcome value='not-found'>\n",\r
2389         "comments": "",\r
2390         "outputs": 1,\r
2391         "x": 5304,\r
2392         "y": 732,\r
2393         "z": "b31344e1.6b9228",\r
2394         "wires": [\r
2395             [\r
2396                 "af8bf071.82c85"\r
2397             ]\r
2398         ]\r
2399     },\r
2400     {\r
2401         "id": "42739782.dc6168",\r
2402         "type": "other",\r
2403         "name": "other",\r
2404         "xml": "<outcome value='Other'>\n",\r
2405         "comments": "",\r
2406         "outputs": 1,\r
2407         "x": 5309,\r
2408         "y": 789,\r
2409         "z": "b31344e1.6b9228",\r
2410         "wires": [\r
2411             [\r
2412                 "b1e33e76.6db9b"\r
2413             ]\r
2414         ]\r
2415     },\r
2416     {\r
2417         "id": "b1e33e76.6db9b",\r
2418         "type": "returnFailure",\r
2419         "name": "return failure",\r
2420         "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
2421         "comments": "",\r
2422         "x": 5461,\r
2423         "y": 790,\r
2424         "z": "b31344e1.6b9228",\r
2425         "wires": []\r
2426     },\r
2427     {\r
2428         "id": "af8bf071.82c85",\r
2429         "type": "returnFailure",\r
2430         "name": "return failure",\r
2431         "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
2432         "comments": "",\r
2433         "x": 5472,\r
2434         "y": 735,\r
2435         "z": "b31344e1.6b9228",\r
2436         "wires": []\r
2437     },\r
2438     {\r
2439         "id": "c4631195.e5511",\r
2440         "type": "block",\r
2441         "name": "block",\r
2442         "xml": "<block>\n",\r
2443         "atomic": "false",\r
2444         "comments": "",\r
2445         "outputs": 1,\r
2446         "x": 5456.38232421875,\r
2447         "y": 674.6556701660156,\r
2448         "z": "b31344e1.6b9228",\r
2449         "wires": [\r
2450             [\r
2451                 "4dcc9c46.887914"\r
2452             ]\r
2453         ]\r
2454     },\r
2455     {\r
2456         "id": "4dcc9c46.887914",\r
2457         "type": "set",\r
2458         "name": "set controller domainA data",\r
2459         "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
2460         "comments": "",\r
2461         "x": 5671,\r
2462         "y": 671,\r
2463         "z": "b31344e1.6b9228",\r
2464         "wires": []\r
2465     },\r
2466     {\r
2467         "id": "e1d06713.adb0c8",\r
2468         "type": "get-resource",\r
2469         "name": "get-resource src pnf",\r
2470         "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
2471         "comments": "",\r
2472         "outputs": 1,\r
2473         "x": 3836,\r
2474         "y": 1560,\r
2475         "z": "b31344e1.6b9228",\r
2476         "wires": [\r
2477             [\r
2478                 "34f7d7e6.e7fa8",\r
2479                 "cb710953.72942",\r
2480                 "4c788e8d.e93588"\r
2481             ]\r
2482         ]\r
2483     },\r
2484     {\r
2485         "id": "34f7d7e6.e7fa8",\r
2486         "type": "success",\r
2487         "name": "success",\r
2488         "xml": "<outcome value='success'>\n",\r
2489         "comments": "",\r
2490         "outputs": 1,\r
2491         "x": 4031.5001220703125,\r
2492         "y": 1512,\r
2493         "z": "b31344e1.6b9228",\r
2494         "wires": [\r
2495             [\r
2496                 "fd0d1ee5.65b0f"\r
2497             ]\r
2498         ]\r
2499     },\r
2500     {\r
2501         "id": "cb710953.72942",\r
2502         "type": "not-found",\r
2503         "name": "not-found",\r
2504         "xml": "<outcome value='not-found'>\n",\r
2505         "comments": "",\r
2506         "outputs": 1,\r
2507         "x": 4023.5001220703125,\r
2508         "y": 1567,\r
2509         "z": "b31344e1.6b9228",\r
2510         "wires": [\r
2511             [\r
2512                 "68639fde.fb4de8"\r
2513             ]\r
2514         ]\r
2515     },\r
2516     {\r
2517         "id": "4c788e8d.e93588",\r
2518         "type": "other",\r
2519         "name": "other",\r
2520         "xml": "<outcome value='Other'>\n",\r
2521         "comments": "",\r
2522         "outputs": 1,\r
2523         "x": 4028.5001220703125,\r
2524         "y": 1624,\r
2525         "z": "b31344e1.6b9228",\r
2526         "wires": [\r
2527             [\r
2528                 "ed57c904.1da5b"\r
2529             ]\r
2530         ]\r
2531     },\r
2532     {\r
2533         "id": "ed57c904.1da5b",\r
2534         "type": "returnFailure",\r
2535         "name": "return failure",\r
2536         "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
2537         "comments": "",\r
2538         "x": 4180.5001220703125,\r
2539         "y": 1625,\r
2540         "z": "b31344e1.6b9228",\r
2541         "wires": []\r
2542     },\r
2543     {\r
2544         "id": "68639fde.fb4de8",\r
2545         "type": "returnFailure",\r
2546         "name": "return failure",\r
2547         "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
2548         "comments": "",\r
2549         "x": 4191.5001220703125,\r
2550         "y": 1570,\r
2551         "z": "b31344e1.6b9228",\r
2552         "wires": []\r
2553     },\r
2554     {\r
2555         "id": "fd0d1ee5.65b0f",\r
2556         "type": "block",\r
2557         "name": "block",\r
2558         "xml": "<block>\n",\r
2559         "atomic": "false",\r
2560         "comments": "",\r
2561         "outputs": 1,\r
2562         "x": 4175.8824462890625,\r
2563         "y": 1509.6556701660156,\r
2564         "z": "b31344e1.6b9228",\r
2565         "wires": [\r
2566             [\r
2567                 "2c890085.25e4f8"\r
2568             ]\r
2569         ]\r
2570     },\r
2571     {\r
2572         "id": "b16b2c11.a7e9e",\r
2573         "type": "outcome",\r
2574         "name": "esr-thirdparty-sdnc",\r
2575         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
2576         "comments": "",\r
2577         "outputs": 1,\r
2578         "x": 4758,\r
2579         "y": 1528,\r
2580         "z": "b31344e1.6b9228",\r
2581         "wires": [\r
2582             [\r
2583                 "e2c7b2a2.534808"\r
2584             ]\r
2585         ]\r
2586     },\r
2587     {\r
2588         "id": "e2c7b2a2.534808",\r
2589         "type": "block",\r
2590         "name": "block : atomic",\r
2591         "xml": "<block atomic=\"true\">",\r
2592         "atomic": "true",\r
2593         "outputs": 1,\r
2594         "x": 4935,\r
2595         "y": 1520,\r
2596         "z": "b31344e1.6b9228",\r
2597         "wires": [\r
2598             [\r
2599                 "8256d13e.acb508",\r
2600                 "e33af2d.2ed629"\r
2601             ]\r
2602         ]\r
2603     },\r
2604     {\r
2605         "id": "2c890085.25e4f8",\r
2606         "type": "for",\r
2607         "name": "for each relationship",\r
2608         "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",\r
2609         "comments": "",\r
2610         "outputs": 1,\r
2611         "x": 4360,\r
2612         "y": 1524,\r
2613         "z": "b31344e1.6b9228",\r
2614         "wires": [\r
2615             [\r
2616                 "7ad873b6.5b0624"\r
2617             ]\r
2618         ]\r
2619     },\r
2620     {\r
2621         "id": "7ad873b6.5b0624",\r
2622         "type": "switchNode",\r
2623         "name": "switch related-to",\r
2624         "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",\r
2625         "comments": "",\r
2626         "outputs": 1,\r
2627         "x": 4555,\r
2628         "y": 1524,\r
2629         "z": "b31344e1.6b9228",\r
2630         "wires": [\r
2631             [\r
2632                 "b16b2c11.a7e9e",\r
2633                 "ba30acec.499f9"\r
2634             ]\r
2635         ]\r
2636     },\r
2637     {\r
2638         "id": "e33af2d.2ed629",\r
2639         "type": "execute",\r
2640         "name": "get esr-thirdparty-sdnc",\r
2641         "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
2642         "comments": "",\r
2643         "outputs": 1,\r
2644         "x": 5143,\r
2645         "y": 1527,\r
2646         "z": "b31344e1.6b9228",\r
2647         "wires": [\r
2648             [\r
2649                 "dd2f9c6b.57f548",\r
2650                 "3b879379.c9bf84",\r
2651                 "13b1398c.3c465e"\r
2652             ]\r
2653         ]\r
2654     },\r
2655     {\r
2656         "id": "8256d13e.acb508",\r
2657         "type": "set",\r
2658         "name": "set esr-thirdparty-sdnc domainB id",\r
2659         "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
2660         "comments": "",\r
2661         "x": 5173,\r
2662         "y": 1475,\r
2663         "z": "b31344e1.6b9228",\r
2664         "wires": []\r
2665     },\r
2666     {\r
2667         "id": "dd2f9c6b.57f548",\r
2668         "type": "success",\r
2669         "name": "success",\r
2670         "xml": "<outcome value='success'>\n",\r
2671         "comments": "",\r
2672         "outputs": 1,\r
2673         "x": 5353,\r
2674         "y": 1518,\r
2675         "z": "b31344e1.6b9228",\r
2676         "wires": [\r
2677             [\r
2678                 "56d2c260.edc91c"\r
2679             ]\r
2680         ]\r
2681     },\r
2682     {\r
2683         "id": "3b879379.c9bf84",\r
2684         "type": "not-found",\r
2685         "name": "not-found",\r
2686         "xml": "<outcome value='not-found'>\n",\r
2687         "comments": "",\r
2688         "outputs": 1,\r
2689         "x": 5345,\r
2690         "y": 1573,\r
2691         "z": "b31344e1.6b9228",\r
2692         "wires": [\r
2693             [\r
2694                 "7449bea.eaa7fc"\r
2695             ]\r
2696         ]\r
2697     },\r
2698     {\r
2699         "id": "13b1398c.3c465e",\r
2700         "type": "other",\r
2701         "name": "other",\r
2702         "xml": "<outcome value='Other'>\n",\r
2703         "comments": "",\r
2704         "outputs": 1,\r
2705         "x": 5350,\r
2706         "y": 1630,\r
2707         "z": "b31344e1.6b9228",\r
2708         "wires": [\r
2709             [\r
2710                 "232c7315.841b1c"\r
2711             ]\r
2712         ]\r
2713     },\r
2714     {\r
2715         "id": "232c7315.841b1c",\r
2716         "type": "returnFailure",\r
2717         "name": "return failure",\r
2718         "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
2719         "comments": "",\r
2720         "x": 5502,\r
2721         "y": 1631,\r
2722         "z": "b31344e1.6b9228",\r
2723         "wires": []\r
2724     },\r
2725     {\r
2726         "id": "7449bea.eaa7fc",\r
2727         "type": "returnFailure",\r
2728         "name": "return failure",\r
2729         "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
2730         "comments": "",\r
2731         "x": 5513,\r
2732         "y": 1576,\r
2733         "z": "b31344e1.6b9228",\r
2734         "wires": []\r
2735     },\r
2736     {\r
2737         "id": "56d2c260.edc91c",\r
2738         "type": "block",\r
2739         "name": "block",\r
2740         "xml": "<block>\n",\r
2741         "atomic": "false",\r
2742         "comments": "",\r
2743         "outputs": 1,\r
2744         "x": 5497.38232421875,\r
2745         "y": 1515.6556701660156,\r
2746         "z": "b31344e1.6b9228",\r
2747         "wires": [\r
2748             [\r
2749                 "49d0cb53.31a39c"\r
2750             ]\r
2751         ]\r
2752     },\r
2753     {\r
2754         "id": "49d0cb53.31a39c",\r
2755         "type": "set",\r
2756         "name": "set controller domainB data",\r
2757         "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
2758         "comments": "",\r
2759         "x": 5712,\r
2760         "y": 1512,\r
2761         "z": "b31344e1.6b9228",\r
2762         "wires": []\r
2763     },\r
2764     {\r
2765         "id": "33bd7ebe.34c502",\r
2766         "type": "block",\r
2767         "name": "block : atomic",\r
2768         "xml": "<block atomic=\"true\">",\r
2769         "atomic": "true",\r
2770         "outputs": 1,\r
2771         "x": 2796,\r
2772         "y": 452,\r
2773         "z": "b31344e1.6b9228",\r
2774         "wires": [\r
2775             [\r
2776                 "fe8ff063.6863b8",\r
2777                 "4e85bccf.c8cf0c"\r
2778             ]\r
2779         ]\r
2780     },\r
2781     {\r
2782         "id": "4e85bccf.c8cf0c",\r
2783         "type": "for",\r
2784         "name": "for each allotted-resource relationship",\r
2785         "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",\r
2786         "comments": "",\r
2787         "outputs": 1,\r
2788         "x": 3077,\r
2789         "y": 408,\r
2790         "z": "b31344e1.6b9228",\r
2791         "wires": [\r
2792             [\r
2793                 "badd7dbd.ce16"\r
2794             ]\r
2795         ]\r
2796     },\r
2797     {\r
2798         "id": "badd7dbd.ce16",\r
2799         "type": "switchNode",\r
2800         "name": "switch related-to",\r
2801         "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",\r
2802         "comments": "",\r
2803         "outputs": 1,\r
2804         "x": 3339,\r
2805         "y": 408,\r
2806         "z": "b31344e1.6b9228",\r
2807         "wires": [\r
2808             [\r
2809                 "5050eb58.e00ed4"\r
2810             ]\r
2811         ]\r
2812     },\r
2813     {\r
2814         "id": "212f425.c6d5fbe",\r
2815         "type": "outcome",\r
2816         "name": "network-resource",\r
2817         "xml": "<outcome value='network-resource'>",\r
2818         "comments": "",\r
2819         "outputs": 1,\r
2820         "x": 4720,\r
2821         "y": 761,\r
2822         "z": "b31344e1.6b9228",\r
2823         "wires": [\r
2824             [\r
2825                 "656d86d7.e1bb3"\r
2826             ]\r
2827         ]\r
2828     },\r
2829     {\r
2830         "id": "656d86d7.e1bb3",\r
2831         "type": "block",\r
2832         "name": "block : atomic",\r
2833         "xml": "<block atomic=\"true\">",\r
2834         "atomic": "true",\r
2835         "outputs": 1,\r
2836         "x": 4897,\r
2837         "y": 753,\r
2838         "z": "b31344e1.6b9228",\r
2839         "wires": [\r
2840             [\r
2841                 "4f5b4545.d432fc"\r
2842             ]\r
2843         ]\r
2844     },\r
2845     {\r
2846         "id": "4f5b4545.d432fc",\r
2847         "type": "set",\r
2848         "name": "set domainA ethernet layer network-id",\r
2849         "xml": "<set>\n<parameter name='tmp.domainA.eth-network-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
2850         "comments": "",\r
2851         "x": 5132,\r
2852         "y": 877,\r
2853         "z": "b31344e1.6b9228",\r
2854         "wires": []\r
2855     },\r
2856     {\r
2857         "id": "5e5727f6.ce94f",\r
2858         "type": "set",\r
2859         "name": "set domainB ethernet layer network-id",\r
2860         "xml": "<set>\n<parameter name='tmp.domainB.eth-network-id' value=\"`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",\r
2861         "comments": "",\r
2862         "x": 5172,\r
2863         "y": 1717,\r
2864         "z": "b31344e1.6b9228",\r
2865         "wires": []\r
2866     },\r
2867     {\r
2868         "id": "33761656.d7dc5a",\r
2869         "type": "block",\r
2870         "name": "block : atomic",\r
2871         "xml": "<block atomic=\"true\">",\r
2872         "atomic": "true",\r
2873         "outputs": 1,\r
2874         "x": 4937,\r
2875         "y": 1593,\r
2876         "z": "b31344e1.6b9228",\r
2877         "wires": [\r
2878             [\r
2879                 "5e5727f6.ce94f"\r
2880             ]\r
2881         ]\r
2882     },\r
2883     {\r
2884         "id": "ba30acec.499f9",\r
2885         "type": "outcome",\r
2886         "name": "network-resource",\r
2887         "xml": "<outcome value='network-resource'>",\r
2888         "comments": "",\r
2889         "outputs": 1,\r
2890         "x": 4760,\r
2891         "y": 1601,\r
2892         "z": "b31344e1.6b9228",\r
2893         "wires": [\r
2894             [\r
2895                 "33761656.d7dc5a"\r
2896             ]\r
2897         ]\r
2898     },\r
2899     {\r
2900         "id": "420f3616.2f701",\r
2901         "type": "set",\r
2902         "name": "set the max bandwidth",\r
2903         "xml": "<set>\n<parameter name='gfp' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",\r
2904         "comments": "",\r
2905         "x": 4378,\r
2906         "y": 538,\r
2907         "z": "b31344e1.6b9228",\r
2908         "wires": []\r
2909     },\r
2910     {\r
2911         "id": "b1349530.c53cc",\r
2912         "type": "execute",\r
2913         "name": "execute UUID generator for ethernet-service-name",\r
2914         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.ethernet-service-name\"/>\n",\r
2915         "comments": "",\r
2916         "outputs": 1,\r
2917         "x": 2734,\r
2918         "y": 672,\r
2919         "z": "b31344e1.6b9228",\r
2920         "wires": [\r
2921             []\r
2922         ]\r
2923     },\r
2924     {\r
2925         "id": "84b0870f.4db1e",\r
2926         "type": "execute",\r
2927         "name": "execute UUID generator for otn-tunnel-name",\r
2928         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.otn-tunnel-name\"/>\n",\r
2929         "comments": "",\r
2930         "outputs": 1,\r
2931         "x": 2715,\r
2932         "y": 722,\r
2933         "z": "b31344e1.6b9228",\r
2934         "wires": [\r
2935             []\r
2936         ]\r
2937     },\r
2938     {\r
2939         "id": "2dfd81e1.a251ae",\r
2940         "type": "for",\r
2941         "name": "for each allotted-resource",\r
2942         "xml": "<for index='aridx' start='0' end='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length`' >\n",\r
2943         "comments": "",\r
2944         "outputs": 1,\r
2945         "x": 1972,\r
2946         "y": 224,\r
2947         "z": "b31344e1.6b9228",\r
2948         "wires": [\r
2949             [\r
2950                 "3ffb610e.7895d6",\r
2951                 "1fed210d.6adb97"\r
2952             ]\r
2953         ]\r
2954     },\r
2955     {\r
2956         "id": "3ffb610e.7895d6",\r
2957         "type": "set",\r
2958         "name": "set the current allotted-resource-id",\r
2959         "xml": "<set>\n<parameter name='allotted-resource-id' value=\"`$tmp.aai.service-instance.allotted-resources.allotted-resource[$aridx].id`\" />\n\n\n",\r
2960         "comments": "",\r
2961         "x": 2256,\r
2962         "y": 194,\r
2963         "z": "b31344e1.6b9228",\r
2964         "wires": []\r
2965     },\r
2966     {\r
2967         "id": "1f03402a.5db7",\r
2968         "type": "set",\r
2969         "name": "set query_param",\r
2970         "xml": "<set>\n<parameter name='prop.ethsrvType' value='`$network-route-A`' />\n\n",\r
2971         "comments": "",\r
2972         "x": 2631,\r
2973         "y": 2231,\r
2974         "z": "b31344e1.6b9228",\r
2975         "wires": []\r
2976     },\r
2977     {\r
2978         "id": "56710693.e24068",\r
2979         "type": "set",\r
2980         "name": "unset parameters",\r
2981         "xml": "<set>\n<parameter name='domain-A.tunnel-tp-id' value='' />\n<parameter name='domain-A.node-id' value='' />\n<parameter name='domain-A.network-id' value=\"\" />\n<parameter name='domain-A.provider-id' value=\"\" />\n<parameter name='domain-A.client-id' value=\"\" />\n<parameter name='domain-A.te-topo-id' value=\"\" />\n<parameter name='domain-A.network-type' value=\"\" />\n<parameter name='domain-A.ltpId' value=\"\" />\n<parameter name='tmp.domain-A.network-id' value=\"\" />\n<parameter name='tmp.domain-A.ttp-id' value=\"\" />\n<parameter name='network-route-A' value=\"\" />\n<!--<parameter name='domain-A.' value=\"\" />-->\n\n<parameter name='request-id' value='' />\n<parameter name='otn-source-node' value='' />\n<parameter name='otn-dest-node' value='' />\n<parameter name='bw-odu' value=\"\" />\n<parameter name='src-ttp-id' value='' />\n<parameter name='dst-ttp-id' value='' />\n\n<parameter name='domain-B.tunnel-tp-id' value='' />\n<parameter name='domain-B.node-id' value='' />\n<parameter name='domain-B.network-id' value=\"\" />\n<parameter name='domain-B.provider-id' value=\"\" />\n<parameter name='domain-B.client-id' value=\"\" />\n<parameter name='domain-B.te-topo-id' value=\"\" />\n<parameter name='domain-B.network-type' value=\"\" />\n<parameter name='domain-B.ltpId' value=\"\" />\n<parameter name='tmp.domain-B.network-id' value=\"\" />\n<parameter name='tmp.domain-B.ttp-id' value=\"\" />\n<parameter name='network-route-B' value=\"\" />\n<!--<parameter name='domain-B.' value=\"\" />-->\n\n\n\n\n\n",\r
2982         "comments": "",\r
2983         "x": 2615,\r
2984         "y": 3930,\r
2985         "z": "b31344e1.6b9228",\r
2986         "wires": []\r
2987     },\r
2988     {\r
2989         "id": "3323f682.f60c3a",\r
2990         "type": "set",\r
2991         "name": "set new ethernet-service-name",\r
2992         "xml": "<set>\n<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-name`\" />\n\n\n",\r
2993         "comments": "",\r
2994         "x": 2672,\r
2995         "y": 767,\r
2996         "z": "b31344e1.6b9228",\r
2997         "wires": []\r
2998     },\r
2999     {\r
3000         "id": "13ac3dbd.1f366a",\r
3001         "type": "for",\r
3002         "name": "for vidx..tmp.otninfo_length[]",\r
3003         "xml": "<for index='otnidx' start='0' end='`$tmp.otninfo_length`' >",\r
3004         "comments": "",\r
3005         "outputs": 1,\r
3006         "x": 2666,\r
3007         "y": 2351,\r
3008         "z": "b31344e1.6b9228",\r
3009         "wires": [\r
3010             [\r
3011                 "f2924301.397558"\r
3012             ]\r
3013         ]\r
3014     },\r
3015     {\r
3016         "id": "647d2436.140504",\r
3017         "type": "save",\r
3018         "name": "save vpn-binding otnIdx resource (aka. OTN) in AAI",\r
3019         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' >\n<parameter name='vpn-id' value='`$prop.vpn-binding-otnidx-uuid`' />\n<parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />\n<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<parameter name='access-client-id' value='`$tmp.access-client-id`' />\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<parameter name='access-topology-id' value='`$tmp.access-topology-id`' />\n<!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<parameter name='src-access-node-id' value='`$tmp.domainG-src-access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />\n<!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->\n<parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.global.sotn.vpnType`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n\n\n<parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />\n<parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />\n<parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />\n",\r
3020         "comments": "",\r
3021         "outputs": 1,\r
3022         "x": 3789,\r
3023         "y": 2919,\r
3024         "z": "b31344e1.6b9228",\r
3025         "wires": [\r
3026             [\r
3027                 "810630b1.0e1b6"\r
3028             ]\r
3029         ]\r
3030     },\r
3031     {\r
3032         "id": "fdfa6fb7.1a35f",\r
3033         "type": "save",\r
3034         "name": "save connectivity-A relationship to vpn-binding-A, in AAI",\r
3035         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-domainA-uuid`\" />",\r
3036         "comments": "",\r
3037         "outputs": 1,\r
3038         "x": 4361.5,\r
3039         "y": 3023,\r
3040         "z": "b31344e1.6b9228",\r
3041         "wires": [\r
3042             []\r
3043         ]\r
3044     },\r
3045     {\r
3046         "id": "810630b1.0e1b6",\r
3047         "type": "success",\r
3048         "name": "success",\r
3049         "xml": "<outcome value='success'>\n",\r
3050         "comments": "",\r
3051         "outputs": 1,\r
3052         "x": 4095,\r
3053         "y": 2918,\r
3054         "z": "b31344e1.6b9228",\r
3055         "wires": [\r
3056             [\r
3057                 "a594830d.53acd8"\r
3058             ]\r
3059         ]\r
3060     },\r
3061     {\r
3062         "id": "a594830d.53acd8",\r
3063         "type": "block",\r
3064         "name": "block",\r
3065         "xml": "<block>\n",\r
3066         "atomic": "false",\r
3067         "comments": "",\r
3068         "outputs": 1,\r
3069         "x": 4304.5,\r
3070         "y": 2918.25390625,\r
3071         "z": "b31344e1.6b9228",\r
3072         "wires": [\r
3073             [\r
3074                 "b41cf773.b97ef"\r
3075             ]\r
3076         ]\r
3077     },\r
3078     {\r
3079         "id": "4c295920.4b5da",\r
3080         "type": "execute",\r
3081         "name": "execute UUID generator for vpn-binding $otnidx",\r
3082         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vpn-binding-otnidx-uuid\"/>\n",\r
3083         "comments": "",\r
3084         "outputs": 1,\r
3085         "x": 3825,\r
3086         "y": 2383,\r
3087         "z": "b31344e1.6b9228",\r
3088         "wires": [\r
3089             []\r
3090         ]\r
3091     },\r
3092     {\r
3093         "id": "19452741.32e4c1",\r
3094         "type": "switchNode",\r
3095         "name": "switch otnidx == 0",\r
3096         "xml": "<switch test='`$otnidx == 0`'>\n",\r
3097         "comments": "",\r
3098         "outputs": 1,\r
3099         "x": 3698,\r
3100         "y": 3036,\r
3101         "z": "b31344e1.6b9228",\r
3102         "wires": [\r
3103             [\r
3104                 "9c40fb98.e1f61",\r
3105                 "20acba8d.85a5f6"\r
3106             ]\r
3107         ]\r
3108     },\r
3109     {\r
3110         "id": "9c40fb98.e1f61",\r
3111         "type": "outcomeTrue",\r
3112         "name": "true",\r
3113         "xml": "<outcome value='true'>\n",\r
3114         "comments": "",\r
3115         "outputs": 1,\r
3116         "x": 3881,\r
3117         "y": 3036,\r
3118         "z": "b31344e1.6b9228",\r
3119         "wires": [\r
3120             [\r
3121                 "a42fc89d.d0c4a"\r
3122             ]\r
3123         ]\r
3124     },\r
3125     {\r
3126         "id": "20acba8d.85a5f6",\r
3127         "type": "outcomeFalse",\r
3128         "name": "false",\r
3129         "xml": "<outcome value='false'>\n",\r
3130         "comments": "",\r
3131         "outputs": 1,\r
3132         "x": 3706,\r
3133         "y": 3183,\r
3134         "z": "b31344e1.6b9228",\r
3135         "wires": [\r
3136             [\r
3137                 "332942c6.7f663e"\r
3138             ]\r
3139         ]\r
3140     },\r
3141     {\r
3142         "id": "f5749296.6a691",\r
3143         "type": "switchNode",\r
3144         "name": "switch otnidx == last",\r
3145         "xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n\n",\r
3146         "comments": "",\r
3147         "outputs": 1,\r
3148         "x": 4047,\r
3149         "y": 3264,\r
3150         "z": "b31344e1.6b9228",\r
3151         "wires": [\r
3152             [\r
3153                 "2103be8f.1fc842",\r
3154                 "1554c822.b8c828"\r
3155             ]\r
3156         ]\r
3157     },\r
3158     {\r
3159         "id": "2103be8f.1fc842",\r
3160         "type": "outcomeTrue",\r
3161         "name": "true",\r
3162         "xml": "<outcome value='true'>\n",\r
3163         "comments": "",\r
3164         "outputs": 1,\r
3165         "x": 4232,\r
3166         "y": 3265,\r
3167         "z": "b31344e1.6b9228",\r
3168         "wires": [\r
3169             [\r
3170                 "a1250da6.1c6"\r
3171             ]\r
3172         ]\r
3173     },\r
3174     {\r
3175         "id": "1554c822.b8c828",\r
3176         "type": "outcomeFalse",\r
3177         "name": "false",\r
3178         "xml": "<outcome value='false'>\n",\r
3179         "comments": "",\r
3180         "outputs": 1,\r
3181         "x": 4251,\r
3182         "y": 3531,\r
3183         "z": "b31344e1.6b9228",\r
3184         "wires": [\r
3185             [\r
3186                 "99adbaff.3e741"\r
3187             ]\r
3188         ]\r
3189     },\r
3190     {\r
3191         "id": "f416ea28.cb6ab",\r
3192         "type": "save",\r
3193         "name": "save connectivity-B relationship to vpn-binding-B, in AAI",\r
3194         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-domainB-uuid`\" />",\r
3195         "comments": "",\r
3196         "outputs": 1,\r
3197         "x": 4662,\r
3198         "y": 3266,\r
3199         "z": "b31344e1.6b9228",\r
3200         "wires": [\r
3201             []\r
3202         ]\r
3203     },\r
3204     {\r
3205         "id": "e6548b2c.2addd8",\r
3206         "type": "execute",\r
3207         "name": "execute UUID generator for connectivity domain otnidx",\r
3208         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-otnidx-uuid\"/>\n",\r
3209         "comments": "",\r
3210         "outputs": 1,\r
3211         "x": 4736,\r
3212         "y": 3564,\r
3213         "z": "b31344e1.6b9228",\r
3214         "wires": [\r
3215             []\r
3216         ]\r
3217     },\r
3218     {\r
3219         "id": "ddd52155.f542e8",\r
3220         "type": "save",\r
3221         "name": "save connectivity resource in AAI",\r
3222         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->\n\n<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />\n<parameter name='vpn-type' value='dummy' />\n<!--<parameter name='CIR' value='`$prop.sotn.cir`' />-->\n<!--<parameter name='EIR' value='`$prop.sotn.eir`' />-->\n<!--<parameter name='CBS' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='EBS' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
3223         "comments": "",\r
3224         "outputs": 1,\r
3225         "x": 4672,\r
3226         "y": 3615,\r
3227         "z": "b31344e1.6b9228",\r
3228         "wires": [\r
3229             []\r
3230         ]\r
3231     },\r
3232     {\r
3233         "id": "a14f6e93.1adaf8",\r
3234         "type": "save",\r
3235         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
3236         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='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      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
3237         "comments": "",\r
3238         "outputs": 1,\r
3239         "x": 4801,\r
3240         "y": 3665,\r
3241         "z": "b31344e1.6b9228",\r
3242         "wires": [\r
3243             []\r
3244         ]\r
3245     },\r
3246     {\r
3247         "id": "16a831c0.877516",\r
3248         "type": "comment",\r
3249         "name": "connectivity has not been created for middle domains, so we have to create one",\r
3250         "info": "",\r
3251         "comments": "",\r
3252         "x": 4811,\r
3253         "y": 3508,\r
3254         "z": "b31344e1.6b9228",\r
3255         "wires": []\r
3256     },\r
3257     {\r
3258         "id": "2e301756.38a228",\r
3259         "type": "save",\r
3260         "name": "save connectivity-otnidx relationship to vpn-binding-otnidx, in AAI",\r
3261         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />",\r
3262         "comments": "",\r
3263         "outputs": 1,\r
3264         "x": 4769,\r
3265         "y": 3724,\r
3266         "z": "b31344e1.6b9228",\r
3267         "wires": [\r
3268             []\r
3269         ]\r
3270     },\r
3271     {\r
3272         "id": "99adbaff.3e741",\r
3273         "type": "block",\r
3274         "name": "block : atomic",\r
3275         "xml": "<block atomic='true'>",\r
3276         "atomic": "true",\r
3277         "comments": "",\r
3278         "outputs": 1,\r
3279         "x": 4408,\r
3280         "y": 3532,\r
3281         "z": "b31344e1.6b9228",\r
3282         "wires": [\r
3283             [\r
3284                 "e6548b2c.2addd8",\r
3285                 "ddd52155.f542e8",\r
3286                 "a14f6e93.1adaf8",\r
3287                 "2e301756.38a228",\r
3288                 "ebae712b.9f6bf8"\r
3289             ]\r
3290         ]\r
3291     },\r
3292     {\r
3293         "id": "f2924301.397558",\r
3294         "type": "block",\r
3295         "name": "block : atomic",\r
3296         "xml": "<block atomic='true'>",\r
3297         "atomic": "true",\r
3298         "comments": "",\r
3299         "outputs": 1,\r
3300         "x": 2918,\r
3301         "y": 2412,\r
3302         "z": "b31344e1.6b9228",\r
3303         "wires": [\r
3304             [\r
3305                 "4c295920.4b5da",\r
3306                 "647d2436.140504",\r
3307                 "19452741.32e4c1",\r
3308                 "1d59f70d.1ee6c9",\r
3309                 "b15a67ed.f1cb18",\r
3310                 "e4fb52b5.f04798",\r
3311                 "f5263d8c.0dd66"\r
3312             ]\r
3313         ]\r
3314     },\r
3315     {\r
3316         "id": "2e1edee2.ee8112",\r
3317         "type": "set",\r
3318         "name": "set attachment_param domain A",\r
3319         "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n\n",\r
3320         "comments": "",\r
3321         "x": 4286,\r
3322         "y": 3080,\r
3323         "z": "b31344e1.6b9228",\r
3324         "wires": []\r
3325     },\r
3326     {\r
3327         "id": "ba046748.bfe1b",\r
3328         "type": "execute",\r
3329         "name": "execute RestApiCallNode domainA UNI Coloring",\r
3330         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainA.eth-network-id + '/node=' + $tmp.src.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.src.ltpId + '/ietf-te-topology: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
3331         "comments": "",\r
3332         "outputs": 1,\r
3333         "x": 4339,\r
3334         "y": 3124,\r
3335         "z": "b31344e1.6b9228",\r
3336         "wires": [\r
3337             [\r
3338                 "b63ee960.cee2c",\r
3339                 "1b1f60e5.7a7c9f"\r
3340             ]\r
3341         ]\r
3342     },\r
3343     {\r
3344         "id": "1b1f60e5.7a7c9f",\r
3345         "type": "failure",\r
3346         "name": "failure",\r
3347         "xml": "<outcome value='failure'>\n",\r
3348         "comments": "",\r
3349         "outputs": 1,\r
3350         "x": 4610,\r
3351         "y": 3109,\r
3352         "z": "b31344e1.6b9228",\r
3353         "wires": [\r
3354             [\r
3355                 "e9f5d50.e9a0928"\r
3356             ]\r
3357         ]\r
3358     },\r
3359     {\r
3360         "id": "b63ee960.cee2c",\r
3361         "type": "success",\r
3362         "name": "success",\r
3363         "xml": "<outcome value='success'>\n",\r
3364         "comments": "",\r
3365         "outputs": 1,\r
3366         "x": 4608.000213623047,\r
3367         "y": 3166.99990940094,\r
3368         "z": "b31344e1.6b9228",\r
3369         "wires": [\r
3370             [\r
3371                 "c9e53751.966bb8"\r
3372             ]\r
3373         ]\r
3374     },\r
3375     {\r
3376         "id": "e9f5d50.e9a0928",\r
3377         "type": "returnFailure",\r
3378         "name": "return failure",\r
3379         "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 UNI Coloring for domain A\" />\n",\r
3380         "comments": "",\r
3381         "x": 4750.000247955322,\r
3382         "y": 3109.0000009536743,\r
3383         "z": "b31344e1.6b9228",\r
3384         "wires": []\r
3385     },\r
3386     {\r
3387         "id": "c9e53751.966bb8",\r
3388         "type": "block",\r
3389         "name": "block",\r
3390         "xml": "<block>\n",\r
3391         "atomic": "false",\r
3392         "comments": "",\r
3393         "outputs": 1,\r
3394         "x": 4756.02725982666,\r
3395         "y": 3157.745394706726,\r
3396         "z": "b31344e1.6b9228",\r
3397         "wires": [\r
3398             []\r
3399         ]\r
3400     },\r
3401     {\r
3402         "id": "a42fc89d.d0c4a",\r
3403         "type": "block",\r
3404         "name": "block",\r
3405         "xml": "<block>\n",\r
3406         "atomic": "false",\r
3407         "comments": "",\r
3408         "outputs": 1,\r
3409         "x": 4022,\r
3410         "y": 3026,\r
3411         "z": "b31344e1.6b9228",\r
3412         "wires": [\r
3413             [\r
3414                 "fdfa6fb7.1a35f",\r
3415                 "ba046748.bfe1b",\r
3416                 "2e1edee2.ee8112"\r
3417             ]\r
3418         ]\r
3419     },\r
3420     {\r
3421         "id": "a1250da6.1c6",\r
3422         "type": "block",\r
3423         "name": "block",\r
3424         "xml": "<block>\n",\r
3425         "atomic": "false",\r
3426         "comments": "",\r
3427         "outputs": 1,\r
3428         "x": 4366,\r
3429         "y": 3266,\r
3430         "z": "b31344e1.6b9228",\r
3431         "wires": [\r
3432             [\r
3433                 "f416ea28.cb6ab",\r
3434                 "6f1cb48c.6026e4",\r
3435                 "1cf9708b.795d07"\r
3436             ]\r
3437         ]\r
3438     },\r
3439     {\r
3440         "id": "1cf9708b.795d07",\r
3441         "type": "set",\r
3442         "name": "set attachment_param domain B",\r
3443         "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n",\r
3444         "comments": "",\r
3445         "x": 4586,\r
3446         "y": 3310,\r
3447         "z": "b31344e1.6b9228",\r
3448         "wires": []\r
3449     },\r
3450     {\r
3451         "id": "6f1cb48c.6026e4",\r
3452         "type": "execute",\r
3453         "name": "execute RestApiCallNode domainB UNI Coloring",\r
3454         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainB.eth-network-id + '/node=' + $tmp.dst.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.dst.ltpId + '/ietf-te-topology: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
3455         "comments": "",\r
3456         "outputs": 1,\r
3457         "x": 4637,\r
3458         "y": 3354,\r
3459         "z": "b31344e1.6b9228",\r
3460         "wires": [\r
3461             [\r
3462                 "6e1323b5.c04ce4",\r
3463                 "1555b51f.0ca46b"\r
3464             ]\r
3465         ]\r
3466     },\r
3467     {\r
3468         "id": "1555b51f.0ca46b",\r
3469         "type": "failure",\r
3470         "name": "failure",\r
3471         "xml": "<outcome value='failure'>\n",\r
3472         "comments": "",\r
3473         "outputs": 1,\r
3474         "x": 4900,\r
3475         "y": 3334,\r
3476         "z": "b31344e1.6b9228",\r
3477         "wires": [\r
3478             [\r
3479                 "7a3f18c.e7bf268"\r
3480             ]\r
3481         ]\r
3482     },\r
3483     {\r
3484         "id": "6e1323b5.c04ce4",\r
3485         "type": "success",\r
3486         "name": "success",\r
3487         "xml": "<outcome value='success'>\n",\r
3488         "comments": "",\r
3489         "outputs": 1,\r
3490         "x": 4901.000213623047,\r
3491         "y": 3384.99990940094,\r
3492         "z": "b31344e1.6b9228",\r
3493         "wires": [\r
3494             [\r
3495                 "c1d2c5de.5e2688"\r
3496             ]\r
3497         ]\r
3498     },\r
3499     {\r
3500         "id": "7a3f18c.e7bf268",\r
3501         "type": "returnFailure",\r
3502         "name": "return failure",\r
3503         "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 UNI coloring for domain B\" />\n",\r
3504         "comments": "",\r
3505         "x": 5040.000247955322,\r
3506         "y": 3334.0000009536743,\r
3507         "z": "b31344e1.6b9228",\r
3508         "wires": []\r
3509     },\r
3510     {\r
3511         "id": "c1d2c5de.5e2688",\r
3512         "type": "block",\r
3513         "name": "block",\r
3514         "xml": "<block>\n",\r
3515         "atomic": "false",\r
3516         "comments": "",\r
3517         "outputs": 1,\r
3518         "x": 5046.02725982666,\r
3519         "y": 3382.745394706726,\r
3520         "z": "b31344e1.6b9228",\r
3521         "wires": [\r
3522             []\r
3523         ]\r
3524     },\r
3525     {\r
3526         "id": "ebae712b.9f6bf8",\r
3527         "type": "set",\r
3528         "name": "set attachment_param domain otnidx",\r
3529         "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n",\r
3530         "comments": "",\r
3531         "x": 4683,\r
3532         "y": 3784,\r
3533         "z": "b31344e1.6b9228",\r
3534         "wires": []\r
3535     },\r
3536     {\r
3537         "id": "bc1d9c19.8a817",\r
3538         "type": "save",\r
3539         "name": "get all-vpn-bindings from aai",\r
3540         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-bindings\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v21/network/vpn-bindings\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.all-vpn-bindings\" >\n",\r
3541         "comments": "",\r
3542         "outputs": 1,\r
3543         "x": 2002,\r
3544         "y": 4131,\r
3545         "z": "b31344e1.6b9228",\r
3546         "wires": [\r
3547             [\r
3548                 "3b12d36f.6d8234",\r
3549                 "89a53740.4d3c98",\r
3550                 "a61d86b5.6c70f"\r
3551             ]\r
3552         ]\r
3553     },\r
3554     {\r
3555         "id": "3b12d36f.6d8234",\r
3556         "type": "success",\r
3557         "name": "success",\r
3558         "xml": "<outcome value='success'>\n",\r
3559         "comments": "",\r
3560         "outputs": 1,\r
3561         "x": 2190,\r
3562         "y": 4144,\r
3563         "z": "b31344e1.6b9228",\r
3564         "wires": [\r
3565             [\r
3566                 "3ced61cb.b2d7fe"\r
3567             ]\r
3568         ]\r
3569     },\r
3570     {\r
3571         "id": "89a53740.4d3c98",\r
3572         "type": "not-found",\r
3573         "name": "not-found",\r
3574         "xml": "<outcome value='not-found'>\n",\r
3575         "comments": "",\r
3576         "outputs": 1,\r
3577         "x": 2190.490966796875,\r
3578         "y": 4189.574035644531,\r
3579         "z": "b31344e1.6b9228",\r
3580         "wires": [\r
3581             [\r
3582                 "3eafcbaf.f2f56c"\r
3583             ]\r
3584         ]\r
3585     },\r
3586     {\r
3587         "id": "a61d86b5.6c70f",\r
3588         "type": "failure",\r
3589         "name": "failure",\r
3590         "xml": "<outcome value='failure'>\n",\r
3591         "comments": "",\r
3592         "outputs": 1,\r
3593         "x": 2188,\r
3594         "y": 4233,\r
3595         "z": "b31344e1.6b9228",\r
3596         "wires": [\r
3597             [\r
3598                 "170e04a2.1b39fb"\r
3599             ]\r
3600         ]\r
3601     },\r
3602     {\r
3603         "id": "3ced61cb.b2d7fe",\r
3604         "type": "block",\r
3605         "name": "block : atomic",\r
3606         "xml": "<block atomic=\"true\">",\r
3607         "atomic": "true",\r
3608         "outputs": 1,\r
3609         "x": 2363,\r
3610         "y": 4142,\r
3611         "z": "b31344e1.6b9228",\r
3612         "wires": [\r
3613             [\r
3614                 "ef9d0591.fefb08"\r
3615             ]\r
3616         ]\r
3617     },\r
3618     {\r
3619         "id": "3eafcbaf.f2f56c",\r
3620         "type": "returnFailure",\r
3621         "name": "return failure",\r
3622         "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
3623         "comments": "",\r
3624         "x": 2353.0623779296875,\r
3625         "y": 4189.859771728516,\r
3626         "z": "b31344e1.6b9228",\r
3627         "wires": []\r
3628     },\r
3629     {\r
3630         "id": "170e04a2.1b39fb",\r
3631         "type": "returnFailure",\r
3632         "name": "return failure",\r
3633         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
3634         "comments": "",\r
3635         "x": 2355,\r
3636         "y": 4232,\r
3637         "z": "b31344e1.6b9228",\r
3638         "wires": []\r
3639     },\r
3640     {\r
3641         "id": "bf30e0be.23b998",\r
3642         "type": "for",\r
3643         "name": "for vidx..tmp.otninfo_length[]",\r
3644         "xml": "<for index='dmnsidx' start='0' end='`$otn-tunnel-slice_length`' >\n",\r
3645         "comments": "",\r
3646         "outputs": 1,\r
3647         "x": 1991,\r
3648         "y": 4322,\r
3649         "z": "b31344e1.6b9228",\r
3650         "wires": [\r
3651             [\r
3652                 "557999e1.77dcb"\r
3653             ]\r
3654         ]\r
3655     },\r
3656     {\r
3657         "id": "d613988a.0c40c",\r
3658         "type": "block",\r
3659         "name": "block : atomic",\r
3660         "xml": "<block atomic='true'>",\r
3661         "atomic": "true",\r
3662         "comments": "",\r
3663         "outputs": 1,\r
3664         "x": 2801,\r
3665         "y": 4322,\r
3666         "z": "b31344e1.6b9228",\r
3667         "wires": [\r
3668             [\r
3669                 "e4afc290.74f038"\r
3670             ]\r
3671         ]\r
3672     },\r
3673     {\r
3674         "id": "f7f46916.4f1ee",\r
3675         "type": "for",\r
3676         "name": "for vidx..tmp.otninfo_length[]",\r
3677         "xml": "<for index='stunidx' start='0' end='`$otn-tunnel-slice[$dmnsidx].list_length`' >\n",\r
3678         "comments": "",\r
3679         "outputs": 1,\r
3680         "x": 2573,\r
3681         "y": 4322,\r
3682         "z": "b31344e1.6b9228",\r
3683         "wires": [\r
3684             [\r
3685                 "d613988a.0c40c"\r
3686             ]\r
3687         ]\r
3688     },\r
3689     {\r
3690         "id": "ce29a297.cf1cb8",\r
3691         "type": "set",\r
3692         "name": "set providerValue",\r
3693         "xml": "<set>\n<parameter name='providerValue' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].access-provider-id`' />\n<parameter name='found' value='false' />\n\n\n",\r
3694         "comments": "",\r
3695         "x": 3693,\r
3696         "y": 4089,\r
3697         "z": "b31344e1.6b9228",\r
3698         "wires": []\r
3699     },\r
3700     {\r
3701         "id": "90828ea.8f9357",\r
3702         "type": "set",\r
3703         "name": "set",\r
3704         "xml": "<set>\n<parameter name='testingvalue' value='$tmp.otninfo_length -1' />\n",\r
3705         "comments": "",\r
3706         "x": 3995,\r
3707         "y": 3215,\r
3708         "z": "b31344e1.6b9228",\r
3709         "wires": []\r
3710     },\r
3711     {\r
3712         "id": "332942c6.7f663e",\r
3713         "type": "block",\r
3714         "name": "block",\r
3715         "xml": "<block>\n",\r
3716         "atomic": "false",\r
3717         "comments": "",\r
3718         "outputs": 1,\r
3719         "x": 3830,\r
3720         "y": 3190,\r
3721         "z": "b31344e1.6b9228",\r
3722         "wires": [\r
3723             [\r
3724                 "90828ea.8f9357",\r
3725                 "f5749296.6a691"\r
3726             ]\r
3727         ]\r
3728     },\r
3729     {\r
3730         "id": "d0adb7e4.435f98",\r
3731         "type": "set",\r
3732         "name": "set tmp.arr",\r
3733         "xml": "<set>\n<parameter name='tmp.arr' value='' />\n<parameter name='tmp.arridx' value='0' />\n<parameter name='tmp.arr_length' value='0' />\n\n<parameter name='otn-tunnel-slice' value='' />\n<parameter name='otn-tunnel-slice_length' value='0' />\n\n<parameter name='tmp.slicevpns' value='' />\n<parameter name='tmp.slicevpns_length' value='0' />\n\n<parameter name='tmp.slicevpnuuids' value='' />\n<parameter name='tmp.slicevpnuuids.' value='' />\n\n\n",\r
3734         "comments": "",\r
3735         "x": 1954,\r
3736         "y": 170,\r
3737         "z": "b31344e1.6b9228",\r
3738         "wires": []\r
3739     },\r
3740     {\r
3741         "id": "ef9d0591.fefb08",\r
3742         "type": "for",\r
3743         "name": "for vpnidx in all-vpn-bindings",\r
3744         "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",\r
3745         "comments": "",\r
3746         "outputs": 1,\r
3747         "x": 2592,\r
3748         "y": 4143,\r
3749         "z": "b31344e1.6b9228",\r
3750         "wires": [\r
3751             [\r
3752                 "2fbee9b.ff76316"\r
3753             ]\r
3754         ]\r
3755     },\r
3756     {\r
3757         "id": "2fbee9b.ff76316",\r
3758         "type": "block",\r
3759         "name": "block : atomic",\r
3760         "xml": "<block atomic='true'>",\r
3761         "atomic": "true",\r
3762         "comments": "",\r
3763         "outputs": 1,\r
3764         "x": 2807,\r
3765         "y": 4144,\r
3766         "z": "b31344e1.6b9228",\r
3767         "wires": [\r
3768             [\r
3769                 "9baaaca4.d54a4"\r
3770             ]\r
3771         ]\r
3772     },\r
3773     {\r
3774         "id": "49f4d5cd.eba3ac",\r
3775         "type": "for",\r
3776         "name": "for arridx in tmp.arr",\r
3777         "xml": "<for index='arridx' start='0' end='`$tmp.arr_length`' >\n",\r
3778         "comments": "",\r
3779         "outputs": 1,\r
3780         "x": 4260,\r
3781         "y": 4064,\r
3782         "z": "b31344e1.6b9228",\r
3783         "wires": [\r
3784             [\r
3785                 "a296aaec.6a9f7"\r
3786             ]\r
3787         ]\r
3788     },\r
3789     {\r
3790         "id": "72392f69.a40338",\r
3791         "type": "switchNode",\r
3792         "name": "switch $tmp.arr_length != 0",\r
3793         "xml": "<switch test='`$tmp.arr_length != 0`'>\n",\r
3794         "comments": "",\r
3795         "outputs": 1,\r
3796         "x": 3726,\r
3797         "y": 4144,\r
3798         "z": "b31344e1.6b9228",\r
3799         "wires": [\r
3800             [\r
3801                 "1e30cbc6.5b29c4",\r
3802                 "73a572c0.fcdcfc"\r
3803             ]\r
3804         ]\r
3805     },\r
3806     {\r
3807         "id": "1e30cbc6.5b29c4",\r
3808         "type": "outcomeTrue",\r
3809         "name": "true",\r
3810         "xml": "<outcome value='true'>\n",\r
3811         "comments": "",\r
3812         "outputs": 1,\r
3813         "x": 3922,\r
3814         "y": 4114,\r
3815         "z": "b31344e1.6b9228",\r
3816         "wires": [\r
3817             [\r
3818                 "79192fda.22a8a8"\r
3819             ]\r
3820         ]\r
3821     },\r
3822     {\r
3823         "id": "73a572c0.fcdcfc",\r
3824         "type": "outcomeFalse",\r
3825         "name": "false",\r
3826         "xml": "<outcome value='false'>\n",\r
3827         "comments": "",\r
3828         "outputs": 1,\r
3829         "x": 3923,\r
3830         "y": 4185,\r
3831         "z": "b31344e1.6b9228",\r
3832         "wires": [\r
3833             [\r
3834                 "e5b5d449.e95738"\r
3835             ]\r
3836         ]\r
3837     },\r
3838     {\r
3839         "id": "79192fda.22a8a8",\r
3840         "type": "block",\r
3841         "name": "block : atomic",\r
3842         "xml": "<block atomic='true'>",\r
3843         "atomic": "true",\r
3844         "comments": "",\r
3845         "outputs": 1,\r
3846         "x": 4073,\r
3847         "y": 4112,\r
3848         "z": "b31344e1.6b9228",\r
3849         "wires": [\r
3850             [\r
3851                 "49f4d5cd.eba3ac",\r
3852                 "ee34549a.68661"\r
3853             ]\r
3854         ]\r
3855     },\r
3856     {\r
3857         "id": "a296aaec.6a9f7",\r
3858         "type": "switchNode",\r
3859         "name": "switch tmp.arr[$arridx] == $providerValue",\r
3860         "xml": "<switch test='`$tmp.arr[$arridx] == $providerValue`'>\n",\r
3861         "comments": "",\r
3862         "outputs": 1,\r
3863         "x": 4551,\r
3864         "y": 4064,\r
3865         "z": "b31344e1.6b9228",\r
3866         "wires": [\r
3867             [\r
3868                 "f6a570fa.8c3e18",\r
3869                 "f096fdfa.51af18"\r
3870             ]\r
3871         ]\r
3872     },\r
3873     {\r
3874         "id": "f6a570fa.8c3e18",\r
3875         "type": "outcomeTrue",\r
3876         "name": "true",\r
3877         "xml": "<outcome value='true'>\n",\r
3878         "comments": "",\r
3879         "outputs": 1,\r
3880         "x": 4826,\r
3881         "y": 4033,\r
3882         "z": "b31344e1.6b9228",\r
3883         "wires": [\r
3884             [\r
3885                 "7e64bb9a.5c5954"\r
3886             ]\r
3887         ]\r
3888     },\r
3889     {\r
3890         "id": "f096fdfa.51af18",\r
3891         "type": "outcomeFalse",\r
3892         "name": "false",\r
3893         "xml": "<outcome value='false'>\n",\r
3894         "comments": "",\r
3895         "outputs": 1,\r
3896         "x": 4827,\r
3897         "y": 4104,\r
3898         "z": "b31344e1.6b9228",\r
3899         "wires": [\r
3900             [\r
3901                 "2ae9b410.b8e274"\r
3902             ]\r
3903         ]\r
3904     },\r
3905     {\r
3906         "id": "7e64bb9a.5c5954",\r
3907         "type": "block",\r
3908         "name": "block : atomic",\r
3909         "xml": "<block atomic='true'>",\r
3910         "atomic": "true",\r
3911         "comments": "",\r
3912         "outputs": 1,\r
3913         "x": 4977,\r
3914         "y": 4031,\r
3915         "z": "b31344e1.6b9228",\r
3916         "wires": [\r
3917             [\r
3918                 "883ad39b.46747",\r
3919                 "3d5cad7b.78211a",\r
3920                 "ac8bc417.7b82a",\r
3921                 "6ea95490.220544",\r
3922                 "6a39b9a6.2592"\r
3923             ]\r
3924         ]\r
3925     },\r
3926     {\r
3927         "id": "883ad39b.46747",\r
3928         "type": "set",\r
3929         "name": "set found to true",\r
3930         "xml": "<set>\n<parameter name='found' value='true' />\n\n\n",\r
3931         "comments": "",\r
3932         "x": 5165,\r
3933         "y": 3991,\r
3934         "z": "b31344e1.6b9228",\r
3935         "wires": []\r
3936     },\r
3937     {\r
3938         "id": "3d5cad7b.78211a",\r
3939         "type": "save",\r
3940         "name": "store $arridx somewhere in vpn-binding",\r
3941         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='`$arridx`' />\n\n\n",\r
3942         "comments": "",\r
3943         "outputs": 1,\r
3944         "x": 5237,\r
3945         "y": 4036,\r
3946         "z": "b31344e1.6b9228",\r
3947         "wires": [\r
3948             []\r
3949         ]\r
3950     },\r
3951     {\r
3952         "id": "6a39b9a6.2592",\r
3953         "type": "set",\r
3954         "name": "set twoD arr",\r
3955         "xml": "<set>\n\n<!--<parameter name='`tmp.arr[$arridx + 1]`' value='`$providerValue`' />-->\n<!--<parameter name='tmp.arr_length' value='`$tmp.arr_length + 1`' />-->\n\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<!--<parameter name='otn-tunnel-slice_length' value='`$arridx + 2`' />-->\n<parameter name='`otn-tunnel-slice[$arridx].list_length`' value='`$sizeOfSliceList + 1`' />\n\n",\r
3956         "comments": "",\r
3957         "x": 5152,\r
3958         "y": 4163,\r
3959         "z": "b31344e1.6b9228",\r
3960         "wires": []\r
3961     },\r
3962     {\r
3963         "id": "6ea95490.220544",\r
3964         "type": "set",\r
3965         "name": "set sizeOfSliceList",\r
3966         "xml": "<set>\n<parameter name='sizeOfSliceList' value='`$otn-tunnel-slice[$arridx].list_length`' />\n\n\n",\r
3967         "comments": "",\r
3968         "x": 5173,\r
3969         "y": 4099,\r
3970         "z": "b31344e1.6b9228",\r
3971         "wires": []\r
3972     },\r
3973     {\r
3974         "id": "e5b5d449.e95738",\r
3975         "type": "block",\r
3976         "name": "block : atomic",\r
3977         "xml": "<block atomic='true'>",\r
3978         "atomic": "true",\r
3979         "comments": "",\r
3980         "outputs": 1,\r
3981         "x": 4075,\r
3982         "y": 4185,\r
3983         "z": "b31344e1.6b9228",\r
3984         "wires": [\r
3985             [\r
3986                 "b867d047.fac",\r
3987                 "3788e630.590d72"\r
3988             ]\r
3989         ]\r
3990     },\r
3991     {\r
3992         "id": "b867d047.fac",\r
3993         "type": "save",\r
3994         "name": "store $arridx somewhere in vpn-binding",\r
3995         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='0' />\n\n\n",\r
3996         "comments": "",\r
3997         "outputs": 1,\r
3998         "x": 4330,\r
3999         "y": 4178,\r
4000         "z": "b31344e1.6b9228",\r
4001         "wires": [\r
4002             []\r
4003         ]\r
4004     },\r
4005     {\r
4006         "id": "3788e630.590d72",\r
4007         "type": "set",\r
4008         "name": "set twoD array",\r
4009         "xml": "<set>\n<parameter name='tmp.arr[0]' value='`$providerValue`' />\n<parameter name='tmp.arr_length' value='1' />\n\n<parameter name='`otn-tunnel-slice[0].list[0].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[0].list[0].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[0].list[0].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[0].list[0].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[0].list[0].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<parameter name='otn-tunnel-slice_length' value='1' />\n<parameter name='otn-tunnel-slice[0].list_length' value='1' />\n\n",\r
4010         "comments": "",\r
4011         "x": 4258,\r
4012         "y": 4225,\r
4013         "z": "b31344e1.6b9228",\r
4014         "wires": []\r
4015     },\r
4016     {\r
4017         "id": "ee34549a.68661",\r
4018         "type": "switchNode",\r
4019         "name": "switch found?",\r
4020         "xml": "<switch test='`$found`'>\n",\r
4021         "comments": "",\r
4022         "outputs": 1,\r
4023         "x": 4251,\r
4024         "y": 4109,\r
4025         "z": "b31344e1.6b9228",\r
4026         "wires": [\r
4027             [\r
4028                 "d1f76975.e11b9",\r
4029                 "3421ae07.ec9d62"\r
4030             ]\r
4031         ]\r
4032     },\r
4033     {\r
4034         "id": "d1f76975.e11b9",\r
4035         "type": "outcomeTrue",\r
4036         "name": "true",\r
4037         "xml": "<outcome value='true'>\n",\r
4038         "comments": "",\r
4039         "outputs": 1,\r
4040         "x": 4411,\r
4041         "y": 4101,\r
4042         "z": "b31344e1.6b9228",\r
4043         "wires": [\r
4044             [\r
4045                 "2d9d0080.4d96d"\r
4046             ]\r
4047         ]\r
4048     },\r
4049     {\r
4050         "id": "3421ae07.ec9d62",\r
4051         "type": "outcomeFalse",\r
4052         "name": "false",\r
4053         "xml": "<outcome value='false'>\n",\r
4054         "comments": "",\r
4055         "outputs": 1,\r
4056         "x": 4409,\r
4057         "y": 4138,\r
4058         "z": "b31344e1.6b9228",\r
4059         "wires": [\r
4060             [\r
4061                 "91314308.ab84d"\r
4062             ]\r
4063         ]\r
4064     },\r
4065     {\r
4066         "id": "2d9d0080.4d96d",\r
4067         "type": "block",\r
4068         "name": "block",\r
4069         "xml": "<block>\n",\r
4070         "atomic": "false",\r
4071         "comments": "",\r
4072         "outputs": 1,\r
4073         "x": 4536,\r
4074         "y": 4101,\r
4075         "z": "b31344e1.6b9228",\r
4076         "wires": [\r
4077             []\r
4078         ]\r
4079     },\r
4080     {\r
4081         "id": "fd3f24a6.bbbfb8",\r
4082         "type": "save",\r
4083         "name": "store $arridx+1 somewhere in vpn-binding",\r
4084         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='`$arridx + 1`' />\n\n\n",\r
4085         "comments": "",\r
4086         "outputs": 1,\r
4087         "x": 4843,\r
4088         "y": 4159,\r
4089         "z": "b31344e1.6b9228",\r
4090         "wires": [\r
4091             []\r
4092         ]\r
4093     },\r
4094     {\r
4095         "id": "91314308.ab84d",\r
4096         "type": "block",\r
4097         "name": "block : atomic",\r
4098         "xml": "<block atomic='true'>",\r
4099         "atomic": "true",\r
4100         "comments": "",\r
4101         "outputs": 1,\r
4102         "x": 4569,\r
4103         "y": 4146,\r
4104         "z": "b31344e1.6b9228",\r
4105         "wires": [\r
4106             [\r
4107                 "fd3f24a6.bbbfb8",\r
4108                 "3fbaf181.1ff88e"\r
4109             ]\r
4110         ]\r
4111     },\r
4112     {\r
4113         "id": "3fbaf181.1ff88e",\r
4114         "type": "set",\r
4115         "name": "set twoD array",\r
4116         "xml": "<set>\n<parameter name='`tmp.arr[$arridx + 1]`' value='`$providerValue`' />\n<parameter name='tmp.arr_length' value='`$tmp.arr_length + 1`' />\n\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<parameter name='otn-tunnel-slice_length' value='`$arridx + 2`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list_length`' value='1' />\n\n",\r
4117         "comments": "",\r
4118         "x": 4760,\r
4119         "y": 4205,\r
4120         "z": "b31344e1.6b9228",\r
4121         "wires": []\r
4122     },\r
4123     {\r
4124         "id": "2ae9b410.b8e274",\r
4125         "type": "block",\r
4126         "name": "block",\r
4127         "xml": "<block>\n",\r
4128         "atomic": "false",\r
4129         "comments": "",\r
4130         "outputs": 1,\r
4131         "x": 4960,\r
4132         "y": 4103,\r
4133         "z": "b31344e1.6b9228",\r
4134         "wires": [\r
4135             []\r
4136         ]\r
4137     },\r
4138     {\r
4139         "id": "ac8bc417.7b82a",\r
4140         "type": "break",\r
4141         "name": "break",\r
4142         "xml": "<break>\n",\r
4143         "comments": "",\r
4144         "x": 5131,\r
4145         "y": 4230,\r
4146         "z": "b31344e1.6b9228",\r
4147         "wires": []\r
4148     },\r
4149     {\r
4150         "id": "1d59f70d.1ee6c9",\r
4151         "type": "switchNode",\r
4152         "name": "switch dstPort == NULL",\r
4153         "xml": "<switch test=\"`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id == ''`\">\n\n",\r
4154         "comments": "",\r
4155         "outputs": 1,\r
4156         "x": 3528,\r
4157         "y": 2442,\r
4158         "z": "b31344e1.6b9228",\r
4159         "wires": [\r
4160             [\r
4161                 "13d01e4b.11cf72",\r
4162                 "f41dda2a.86b79"\r
4163             ]\r
4164         ]\r
4165     },\r
4166     {\r
4167         "id": "13d01e4b.11cf72",\r
4168         "type": "outcomeTrue",\r
4169         "name": "true",\r
4170         "xml": "<outcome value='true'>\n",\r
4171         "comments": "",\r
4172         "outputs": 1,\r
4173         "x": 3917,\r
4174         "y": 2420,\r
4175         "z": "b31344e1.6b9228",\r
4176         "wires": [\r
4177             [\r
4178                 "a63400f9.70b798"\r
4179             ]\r
4180         ]\r
4181     },\r
4182     {\r
4183         "id": "f41dda2a.86b79",\r
4184         "type": "outcomeFalse",\r
4185         "name": "false",\r
4186         "xml": "<outcome value='false'>\n",\r
4187         "comments": "",\r
4188         "outputs": 1,\r
4189         "x": 3918,\r
4190         "y": 2466,\r
4191         "z": "b31344e1.6b9228",\r
4192         "wires": [\r
4193             [\r
4194                 "201cd4b0.391f6c"\r
4195             ]\r
4196         ]\r
4197     },\r
4198     {\r
4199         "id": "a63400f9.70b798",\r
4200         "type": "set",\r
4201         "name": "set access-provider-id and client-id",\r
4202         "xml": "<set>\n<parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-provider-id`' />\n<parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-client-id`' />\n<parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-topology-id`' />\n<parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n",\r
4203         "comments": "",\r
4204         "x": 4131,\r
4205         "y": 2419,\r
4206         "z": "b31344e1.6b9228",\r
4207         "wires": []\r
4208     },\r
4209     {\r
4210         "id": "201cd4b0.391f6c",\r
4211         "type": "set",\r
4212         "name": "set access-provider-id and client-id",\r
4213         "xml": "<set>\n<parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />\n<parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />\n<parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />\n<parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />\n",\r
4214         "comments": "",\r
4215         "x": 4129,\r
4216         "y": 2464,\r
4217         "z": "b31344e1.6b9228",\r
4218         "wires": []\r
4219     },\r
4220     {\r
4221         "id": "e4afc290.74f038",\r
4222         "type": "set",\r
4223         "name": "set attachment_param sliceG",\r
4224         "xml": "<set>\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].request-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].request-id`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].otn-source-node`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].otn-source-node`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].otn-dest-node`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].otn-dest-node`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].bw-odu`' value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].bw-odu`\" />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].src-ttp-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].src-ttp-id`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].dst-ttp-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].dst-ttp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='otn-tunnel-sliceG-list_length' value='`$stunidx + 1`' />\n\n\n<parameter name=\"tmp.domainG.restapiUrl\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainurl`\" />\n<parameter name=\"tmp.domainG.restapiUser\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainuser`\" />\n<parameter name=\"tmp.domainG.restapiPassword\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainpassword`\" />",\r
4225         "comments": "",\r
4226         "x": 3054,\r
4227         "y": 4320,\r
4228         "z": "b31344e1.6b9228",\r
4229         "wires": []\r
4230     },\r
4231     {\r
4232         "id": "5a129ea2.020ec",\r
4233         "type": "execute",\r
4234         "name": "execute RestApiCallNode sliceG creation domainG",\r
4235         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.transport-sliceG-list-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$tmp.domainG.restapiUrl + '/restconf/operations/ietf-optical-slice:create-optical-slice'`\" />\n<parameter name=\"restapiUser\" value=\"`$tmp.domainG.restapiUser`\" />\n<parameter name=\"restapiPassword\" value=\"`tmp.domainG.restapiPassword`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\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`\" />\n",\r
4236         "comments": "",\r
4237         "outputs": 1,\r
4238         "x": 2639,\r
4239         "y": 4428,\r
4240         "z": "b31344e1.6b9228",\r
4241         "wires": [\r
4242             [\r
4243                 "235df5b8.967b5a",\r
4244                 "2fcb7bfa.e794ec"\r
4245             ]\r
4246         ]\r
4247     },\r
4248     {\r
4249         "id": "2fcb7bfa.e794ec",\r
4250         "type": "failure",\r
4251         "name": "failure",\r
4252         "xml": "<outcome value='failure'>\n",\r
4253         "comments": "",\r
4254         "outputs": 1,\r
4255         "x": 2922,\r
4256         "y": 4408,\r
4257         "z": "b31344e1.6b9228",\r
4258         "wires": [\r
4259             [\r
4260                 "ec27b172.f3b03"\r
4261             ]\r
4262         ]\r
4263     },\r
4264     {\r
4265         "id": "235df5b8.967b5a",\r
4266         "type": "success",\r
4267         "name": "success",\r
4268         "xml": "<outcome value='success'>\n",\r
4269         "comments": "",\r
4270         "outputs": 1,\r
4271         "x": 2923.000213623047,\r
4272         "y": 4458.99990940094,\r
4273         "z": "b31344e1.6b9228",\r
4274         "wires": [\r
4275             [\r
4276                 "afac7d54.5ea3c8"\r
4277             ]\r
4278         ]\r
4279     },\r
4280     {\r
4281         "id": "ec27b172.f3b03",\r
4282         "type": "returnFailure",\r
4283         "name": "return failure",\r
4284         "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 slice creation api for domain A\" />\n",\r
4285         "comments": "",\r
4286         "x": 3062.0002479553223,\r
4287         "y": 4408.000000953674,\r
4288         "z": "b31344e1.6b9228",\r
4289         "wires": []\r
4290     },\r
4291     {\r
4292         "id": "afac7d54.5ea3c8",\r
4293         "type": "block",\r
4294         "name": "block",\r
4295         "xml": "<block>\n",\r
4296         "atomic": "false",\r
4297         "comments": "",\r
4298         "outputs": 1,\r
4299         "x": 3068.02725982666,\r
4300         "y": 4456.745394706726,\r
4301         "z": "b31344e1.6b9228",\r
4302         "wires": [\r
4303             []\r
4304         ]\r
4305     },\r
4306     {\r
4307         "id": "b15a67ed.f1cb18",\r
4308         "type": "set",\r
4309         "name": "set srcdstpnf-name",\r
4310         "xml": "<set>\n<parameter name='tmp.srcdstpnf-name' value=\"`'networkId-providerId-' + \n                                             $tmp.access-provider-id + '-clientId-' +\n                                             $tmp.access-client-id + '-topologyId-' + \n                                             $tmp.access-topology-id + '-nodeId-' + \n                                             $tmp.srcdstpnf-id`\" />\n\n",\r
4311         "comments": "",\r
4312         "x": 3712,\r
4313         "y": 2562,\r
4314         "z": "b31344e1.6b9228",\r
4315         "wires": []\r
4316     },\r
4317     {\r
4318         "id": "e4fb52b5.f04798",\r
4319         "type": "get-resource",\r
4320         "name": "get-resource tmp.srcdstpnf-name",\r
4321         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.srcdstpnf-name\"\n        pfx='tmp.aai.srcdst-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
4322         "comments": "",\r
4323         "outputs": 1,\r
4324         "x": 3756,\r
4325         "y": 2610,\r
4326         "z": "b31344e1.6b9228",\r
4327         "wires": [\r
4328             [\r
4329                 "38280842.8f481",\r
4330                 "762394a6.8c9edc",\r
4331                 "bf6967d.9863518"\r
4332             ]\r
4333         ]\r
4334     },\r
4335     {\r
4336         "id": "38280842.8f481",\r
4337         "type": "success",\r
4338         "name": "success",\r
4339         "xml": "<outcome value='success'>\n",\r
4340         "comments": "",\r
4341         "outputs": 1,\r
4342         "x": 3968.5,\r
4343         "y": 2557,\r
4344         "z": "b31344e1.6b9228",\r
4345         "wires": [\r
4346             [\r
4347                 "7c3bab6c.40727c"\r
4348             ]\r
4349         ]\r
4350     },\r
4351     {\r
4352         "id": "762394a6.8c9edc",\r
4353         "type": "not-found",\r
4354         "name": "not-found",\r
4355         "xml": "<outcome value='not-found'>\n",\r
4356         "comments": "",\r
4357         "outputs": 1,\r
4358         "x": 3980.5,\r
4359         "y": 2607,\r
4360         "z": "b31344e1.6b9228",\r
4361         "wires": [\r
4362             [\r
4363                 "9fa14d44.80429"\r
4364             ]\r
4365         ]\r
4366     },\r
4367     {\r
4368         "id": "bf6967d.9863518",\r
4369         "type": "other",\r
4370         "name": "other",\r
4371         "xml": "<outcome value='Other'>\n",\r
4372         "comments": "",\r
4373         "outputs": 1,\r
4374         "x": 3971.5,\r
4375         "y": 2662,\r
4376         "z": "b31344e1.6b9228",\r
4377         "wires": [\r
4378             [\r
4379                 "e6f16a7e.5e034"\r
4380             ]\r
4381         ]\r
4382     },\r
4383     {\r
4384         "id": "e6f16a7e.5e034",\r
4385         "type": "returnFailure",\r
4386         "name": "return failure",\r
4387         "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
4388         "comments": "",\r
4389         "x": 4116.5,\r
4390         "y": 2661,\r
4391         "z": "b31344e1.6b9228",\r
4392         "wires": []\r
4393     },\r
4394     {\r
4395         "id": "9fa14d44.80429",\r
4396         "type": "returnFailure",\r
4397         "name": "return failure",\r
4398         "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
4399         "comments": "",\r
4400         "x": 4127.5,\r
4401         "y": 2604,\r
4402         "z": "b31344e1.6b9228",\r
4403         "wires": []\r
4404     },\r
4405     {\r
4406         "id": "7c3bab6c.40727c",\r
4407         "type": "block",\r
4408         "name": "block",\r
4409         "xml": "<block>\n",\r
4410         "atomic": "false",\r
4411         "comments": "",\r
4412         "outputs": 1,\r
4413         "x": 4093.8824462890625,\r
4414         "y": 2550.6556701660156,\r
4415         "z": "b31344e1.6b9228",\r
4416         "wires": [\r
4417             [\r
4418                 "3ada39cb.077d7e"\r
4419             ]\r
4420         ]\r
4421     },\r
4422     {\r
4423         "id": "79f49c03.b31834",\r
4424         "type": "outcome",\r
4425         "name": "esr-thirdparty-sdnc",\r
4426         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
4427         "comments": "",\r
4428         "outputs": 1,\r
4429         "x": 4653,\r
4430         "y": 2569,\r
4431         "z": "b31344e1.6b9228",\r
4432         "wires": [\r
4433             [\r
4434                 "b38ec96c.50bcb"\r
4435             ]\r
4436         ]\r
4437     },\r
4438     {\r
4439         "id": "b38ec96c.50bcb",\r
4440         "type": "block",\r
4441         "name": "block : atomic",\r
4442         "xml": "<block atomic=\"true\">",\r
4443         "atomic": "true",\r
4444         "outputs": 1,\r
4445         "x": 4830,\r
4446         "y": 2561,\r
4447         "z": "b31344e1.6b9228",\r
4448         "wires": [\r
4449             [\r
4450                 "b25407c2.fe4e9",\r
4451                 "76abd2d6.8cf2bc"\r
4452             ]\r
4453         ]\r
4454     },\r
4455     {\r
4456         "id": "3ada39cb.077d7e",\r
4457         "type": "for",\r
4458         "name": "for each relationship",\r
4459         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.srcdst-pnf.relationship-list.relationship_length`' >\n",\r
4460         "comments": "",\r
4461         "outputs": 1,\r
4462         "x": 4255,\r
4463         "y": 2565,\r
4464         "z": "b31344e1.6b9228",\r
4465         "wires": [\r
4466             [\r
4467                 "631c6ac2.9b4684"\r
4468             ]\r
4469         ]\r
4470     },\r
4471     {\r
4472         "id": "631c6ac2.9b4684",\r
4473         "type": "switchNode",\r
4474         "name": "switch related-to",\r
4475         "xml": "<switch test='`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
4476         "comments": "",\r
4477         "outputs": 1,\r
4478         "x": 4450,\r
4479         "y": 2565,\r
4480         "z": "b31344e1.6b9228",\r
4481         "wires": [\r
4482             [\r
4483                 "79f49c03.b31834"\r
4484             ]\r
4485         ]\r
4486     },\r
4487     {\r
4488         "id": "76abd2d6.8cf2bc",\r
4489         "type": "execute",\r
4490         "name": "get esr-thirdparty-sdnc",\r
4491         "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
4492         "comments": "",\r
4493         "outputs": 1,\r
4494         "x": 5038,\r
4495         "y": 2568,\r
4496         "z": "b31344e1.6b9228",\r
4497         "wires": [\r
4498             [\r
4499                 "b500a3b6.711188",\r
4500                 "e4ff3e60.96d148",\r
4501                 "ef9c5a3.20232a8"\r
4502             ]\r
4503         ]\r
4504     },\r
4505     {\r
4506         "id": "b25407c2.fe4e9",\r
4507         "type": "set",\r
4508         "name": "set esr-thirdparty-sdnc domainG id",\r
4509         "xml": "<set>\n<parameter name='tmp.domainG.esr-thirdparty-id' value=\"`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
4510         "comments": "",\r
4511         "x": 5068,\r
4512         "y": 2516,\r
4513         "z": "b31344e1.6b9228",\r
4514         "wires": []\r
4515     },\r
4516     {\r
4517         "id": "b500a3b6.711188",\r
4518         "type": "success",\r
4519         "name": "success",\r
4520         "xml": "<outcome value='success'>\n",\r
4521         "comments": "",\r
4522         "outputs": 1,\r
4523         "x": 5248,\r
4524         "y": 2559,\r
4525         "z": "b31344e1.6b9228",\r
4526         "wires": [\r
4527             [\r
4528                 "8c9a0f1.a2e9b7"\r
4529             ]\r
4530         ]\r
4531     },\r
4532     {\r
4533         "id": "e4ff3e60.96d148",\r
4534         "type": "not-found",\r
4535         "name": "not-found",\r
4536         "xml": "<outcome value='not-found'>\n",\r
4537         "comments": "",\r
4538         "outputs": 1,\r
4539         "x": 5240,\r
4540         "y": 2614,\r
4541         "z": "b31344e1.6b9228",\r
4542         "wires": [\r
4543             [\r
4544                 "7d5ba752.0bac28"\r
4545             ]\r
4546         ]\r
4547     },\r
4548     {\r
4549         "id": "ef9c5a3.20232a8",\r
4550         "type": "other",\r
4551         "name": "other",\r
4552         "xml": "<outcome value='Other'>\n",\r
4553         "comments": "",\r
4554         "outputs": 1,\r
4555         "x": 5245,\r
4556         "y": 2671,\r
4557         "z": "b31344e1.6b9228",\r
4558         "wires": [\r
4559             [\r
4560                 "5979580a.e6b1f8"\r
4561             ]\r
4562         ]\r
4563     },\r
4564     {\r
4565         "id": "5979580a.e6b1f8",\r
4566         "type": "returnFailure",\r
4567         "name": "return failure",\r
4568         "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
4569         "comments": "",\r
4570         "x": 5397,\r
4571         "y": 2672,\r
4572         "z": "b31344e1.6b9228",\r
4573         "wires": []\r
4574     },\r
4575     {\r
4576         "id": "7d5ba752.0bac28",\r
4577         "type": "returnFailure",\r
4578         "name": "return failure",\r
4579         "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
4580         "comments": "",\r
4581         "x": 5408,\r
4582         "y": 2617,\r
4583         "z": "b31344e1.6b9228",\r
4584         "wires": []\r
4585     },\r
4586     {\r
4587         "id": "8c9a0f1.a2e9b7",\r
4588         "type": "block",\r
4589         "name": "block",\r
4590         "xml": "<block>\n",\r
4591         "atomic": "false",\r
4592         "comments": "",\r
4593         "outputs": 1,\r
4594         "x": 5392.38232421875,\r
4595         "y": 2556.6556701660156,\r
4596         "z": "b31344e1.6b9228",\r
4597         "wires": [\r
4598             [\r
4599                 "b4fe40f1.fee308"\r
4600             ]\r
4601         ]\r
4602     },\r
4603     {\r
4604         "id": "b4fe40f1.fee308",\r
4605         "type": "set",\r
4606         "name": "set controller domainA data",\r
4607         "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
4608         "comments": "",\r
4609         "x": 5607,\r
4610         "y": 2553,\r
4611         "z": "b31344e1.6b9228",\r
4612         "wires": []\r
4613     },\r
4614     {\r
4615         "id": "557999e1.77dcb",\r
4616         "type": "block",\r
4617         "name": "block : atomic",\r
4618         "xml": "<block atomic='true'>",\r
4619         "atomic": "true",\r
4620         "comments": "",\r
4621         "outputs": 1,\r
4622         "x": 2223,\r
4623         "y": 4320,\r
4624         "z": "b31344e1.6b9228",\r
4625         "wires": [\r
4626             [\r
4627                 "f7f46916.4f1ee",\r
4628                 "5a129ea2.020ec"\r
4629             ]\r
4630         ]\r
4631     },\r
4632     {\r
4633         "id": "f5263d8c.0dd66",\r
4634         "type": "switchNode",\r
4635         "name": "switch dmnsidx == 0 (domainA)",\r
4636         "xml": "<switch test='`$otnidx == 0`'>\n",\r
4637         "comments": "",\r
4638         "outputs": 1,\r
4639         "x": 3726,\r
4640         "y": 2779,\r
4641         "z": "b31344e1.6b9228",\r
4642         "wires": [\r
4643             [\r
4644                 "cb45f40e.c4e9f",\r
4645                 "686c2e71.b364f8"\r
4646             ]\r
4647         ]\r
4648     },\r
4649     {\r
4650         "id": "cb45f40e.c4e9f",\r
4651         "type": "outcomeTrue",\r
4652         "name": "true",\r
4653         "xml": "<outcome value='true'>\n",\r
4654         "comments": "",\r
4655         "outputs": 1,\r
4656         "x": 3927,\r
4657         "y": 2777,\r
4658         "z": "b31344e1.6b9228",\r
4659         "wires": [\r
4660             [\r
4661                 "906b7761.ec3cf"\r
4662             ]\r
4663         ]\r
4664     },\r
4665     {\r
4666         "id": "906b7761.ec3cf",\r
4667         "type": "set",\r
4668         "name": "set attachment_param domain A",\r
4669         "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />",\r
4670         "comments": "",\r
4671         "x": 4141,\r
4672         "y": 2779,\r
4673         "z": "b31344e1.6b9228",\r
4674         "wires": []\r
4675     },\r
4676     {\r
4677         "id": "bb50949c.2c4e68",\r
4678         "type": "switchNode",\r
4679         "name": "switch dmnsidx == last (domainB)",\r
4680         "xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n",\r
4681         "comments": "",\r
4682         "outputs": 1,\r
4683         "x": 4144,\r
4684         "y": 2828,\r
4685         "z": "b31344e1.6b9228",\r
4686         "wires": [\r
4687             [\r
4688                 "f9f184f6.8f0c58",\r
4689                 "b1eb5cf.84b33a"\r
4690             ]\r
4691         ]\r
4692     },\r
4693     {\r
4694         "id": "f9f184f6.8f0c58",\r
4695         "type": "outcomeTrue",\r
4696         "name": "true",\r
4697         "xml": "<outcome value='true'>\n",\r
4698         "comments": "",\r
4699         "outputs": 1,\r
4700         "x": 4374,\r
4701         "y": 2824,\r
4702         "z": "b31344e1.6b9228",\r
4703         "wires": [\r
4704             [\r
4705                 "ea46128e.0ba028"\r
4706             ]\r
4707         ]\r
4708     },\r
4709     {\r
4710         "id": "ea46128e.0ba028",\r
4711         "type": "set",\r
4712         "name": "set attachment_param domain B",\r
4713         "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />",\r
4714         "comments": "",\r
4715         "x": 4588,\r
4716         "y": 2827,\r
4717         "z": "b31344e1.6b9228",\r
4718         "wires": []\r
4719     },\r
4720     {\r
4721         "id": "686c2e71.b364f8",\r
4722         "type": "outcomeFalse",\r
4723         "name": "false",\r
4724         "xml": "<outcome value='false'>\n",\r
4725         "comments": "",\r
4726         "outputs": 1,\r
4727         "x": 3927,\r
4728         "y": 2826,\r
4729         "z": "b31344e1.6b9228",\r
4730         "wires": [\r
4731             [\r
4732                 "bb50949c.2c4e68"\r
4733             ]\r
4734         ]\r
4735     },\r
4736     {\r
4737         "id": "b1eb5cf.84b33a",\r
4738         "type": "outcomeFalse",\r
4739         "name": "false",\r
4740         "xml": "<outcome value='false'>\n",\r
4741         "comments": "",\r
4742         "outputs": 1,\r
4743         "x": 4375,\r
4744         "y": 2870,\r
4745         "z": "b31344e1.6b9228",\r
4746         "wires": [\r
4747             [\r
4748                 "591dd2d5.72937c"\r
4749             ]\r
4750         ]\r
4751     },\r
4752     {\r
4753         "id": "591dd2d5.72937c",\r
4754         "type": "set",\r
4755         "name": "set attachment_param domain G",\r
4756         "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />",\r
4757         "comments": "",\r
4758         "x": 4589,\r
4759         "y": 2870,\r
4760         "z": "b31344e1.6b9228",\r
4761         "wires": []\r
4762     },\r
4763     {\r
4764         "id": "b41cf773.b97ef",\r
4765         "type": "set",\r
4766         "name": "set tmp.slicevpns",\r
4767         "xml": "<set>\n<parameter name='`tmp.slicevpns[$tmp.slicevpns_length]`' value=\"`$prop.vpn-binding-otnidx-uuid`\" />\n<parameter name='tmp.slicevpns_length' value=\"`$tmp.slicevpns_length + 1`\" />\n\n<parameter name='`tmp.slicevpnuuids[$prop.vpn-binding-otnidx-uuid]`' value=\"`$prop.vpn-binding-otnidx-uuid`\" />\n\n",\r
4768         "comments": "",\r
4769         "x": 4487,\r
4770         "y": 2919,\r
4771         "z": "b31344e1.6b9228",\r
4772         "wires": []\r
4773     },\r
4774     {\r
4775         "id": "9baaaca4.d54a4",\r
4776         "type": "switchNode",\r
4777         "name": "switch vpnuuid is for this slice",\r
4778         "xml": "<switch test=\"`$tmp.slicevpnuuids[$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id] != '' `\">\n",\r
4779         "comments": "",\r
4780         "outputs": 1,\r
4781         "x": 3051,\r
4782         "y": 4143,\r
4783         "z": "b31344e1.6b9228",\r
4784         "wires": [\r
4785             [\r
4786                 "cb64ffb8.43ead",\r
4787                 "d4b6930e.5ef778"\r
4788             ]\r
4789         ]\r
4790     },\r
4791     {\r
4792         "id": "cb64ffb8.43ead",\r
4793         "type": "outcomeTrue",\r
4794         "name": "true",\r
4795         "xml": "<outcome value='true'>\n",\r
4796         "comments": "",\r
4797         "outputs": 1,\r
4798         "x": 3268,\r
4799         "y": 4122,\r
4800         "z": "b31344e1.6b9228",\r
4801         "wires": [\r
4802             [\r
4803                 "2504214d.099dbe"\r
4804             ]\r
4805         ]\r
4806     },\r
4807     {\r
4808         "id": "d4b6930e.5ef778",\r
4809         "type": "outcomeFalse",\r
4810         "name": "false",\r
4811         "xml": "<outcome value='false'>\n",\r
4812         "comments": "",\r
4813         "outputs": 1,\r
4814         "x": 3268,\r
4815         "y": 4171,\r
4816         "z": "b31344e1.6b9228",\r
4817         "wires": [\r
4818             []\r
4819         ]\r
4820     },\r
4821     {\r
4822         "id": "2504214d.099dbe",\r
4823         "type": "block",\r
4824         "name": "block : atomic",\r
4825         "xml": "<block atomic='true'>",\r
4826         "atomic": "true",\r
4827         "comments": "",\r
4828         "outputs": 1,\r
4829         "x": 3436,\r
4830         "y": 4122,\r
4831         "z": "b31344e1.6b9228",\r
4832         "wires": [\r
4833             [\r
4834                 "ce29a297.cf1cb8",\r
4835                 "72392f69.a40338"\r
4836             ]\r
4837         ]\r
4838     }\r
4839 ]