5f709bf0345ef2420bba2fb6de142e59eedca43b
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / cloud_leased_line / GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-create-clean.json
1 [\r
2     {\r
3         "id": "4a2a1676.3e3ca",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 107,\r
8         "y": 137,\r
9         "z": "2902829f.18c74e",\r
10         "wires": [\r
11             [\r
12                 "4dd41696.2f452"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "4dd41696.2f452",\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": 391.2856903076172,\r
26         "y": 198.23810863494873,\r
27         "z": "2902829f.18c74e",\r
28         "wires": [\r
29             [\r
30                 "44e593d9.2efad4"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "44e593d9.2efad4",\r
36         "type": "method",\r
37         "name": "method cll-vnf-topology-operation-cll-create-clean",\r
38         "xml": "<method rpc='cll-vnf-topology-operation-cll-create-clean' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 397.42860412597656,\r
42         "y": 283.0000305175781,\r
43         "z": "2902829f.18c74e",\r
44         "wires": [\r
45             [\r
46                 "49513b93.fc23ac"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "49513b93.fc23ac",\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": 747,\r
58         "y": 342,\r
59         "z": "2902829f.18c74e",\r
60         "wires": [\r
61             [\r
62                 "b2135089.199e6",\r
63                 "23db3db6.da8e02",\r
64                 "2b8995d5.8b0c7a"\r
65             ]\r
66         ]\r
67     },\r
68     {\r
69         "id": "b2135089.199e6",\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": 1048.33349609375,\r
75         "y": 612.9302978515625,\r
76         "z": "2902829f.18c74e",\r
77         "wires": []\r
78     },\r
79     {\r
80         "id": "23db3db6.da8e02",\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": 1069.761962890625,\r
87         "y": 315.33331298828125,\r
88         "z": "2902829f.18c74e",\r
89         "wires": [\r
90             [\r
91                 "b4c73c35.f93038",\r
92                 "3d5524fd.e8ecb4",\r
93                 "65a2b99e.db6b"\r
94             ]\r
95         ]\r
96     },\r
97     {\r
98         "id": "b4c73c35.f93038",\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": 1294.761962890625,\r
105         "y": 173.33331298828125,\r
106         "z": "2902829f.18c74e",\r
107         "wires": [\r
108             [\r
109                 "8dbada70.49fdc8"\r
110             ]\r
111         ]\r
112     },\r
113     {\r
114         "id": "3d5524fd.e8ecb4",\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": 1290.2529296875,\r
121         "y": 242.9073486328125,\r
122         "z": "2902829f.18c74e",\r
123         "wires": [\r
124             [\r
125                 "57a109f4.ebf0e8"\r
126             ]\r
127         ]\r
128     },\r
129     {\r
130         "id": "65a2b99e.db6b",\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": 1278.761962890625,\r
137         "y": 289.33331298828125,\r
138         "z": "2902829f.18c74e",\r
139         "wires": [\r
140             [\r
141                 "60bf0db6.5a7ed4"\r
142             ]\r
143         ]\r
144     },\r
145     {\r
146         "id": "b4e2ba33.09b93",\r
147         "type": "comment",\r
148         "name": "new for TransportSlicing",\r
149         "info": "",\r
150         "comments": "",\r
151         "x": 1048.761962890625,\r
152         "y": 203.33331298828125,\r
153         "z": "2902829f.18c74e",\r
154         "wires": []\r
155     },\r
156     {\r
157         "id": "2b8995d5.8b0c7a",\r
158         "type": "execute",\r
159         "name": "execute properties",\r
160         "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
161         "comments": "",\r
162         "outputs": 1,\r
163         "x": 1036.761962890625,\r
164         "y": 255.33331298828125,\r
165         "z": "2902829f.18c74e",\r
166         "wires": [\r
167             []\r
168         ]\r
169     },\r
170     {\r
171         "id": "8dbada70.49fdc8",\r
172         "type": "switchNode",\r
173         "name": "switch allotted-resources_length != 0",\r
174         "xml": "<switch test='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length != 0`'>\n",\r
175         "comments": "",\r
176         "outputs": 1,\r
177         "x": 1535,\r
178         "y": 170,\r
179         "z": "2902829f.18c74e",\r
180         "wires": [\r
181             [\r
182                 "d1591597.ec80d8",\r
183                 "57531373.e3de34"\r
184             ]\r
185         ]\r
186     },\r
187     {\r
188         "id": "57a109f4.ebf0e8",\r
189         "type": "returnFailure",\r
190         "name": "return failure",\r
191         "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
192         "comments": "",\r
193         "x": 1445.0623779296875,\r
194         "y": 245.85977172851562,\r
195         "z": "2902829f.18c74e",\r
196         "wires": []\r
197     },\r
198     {\r
199         "id": "60bf0db6.5a7ed4",\r
200         "type": "returnFailure",\r
201         "name": "return failure",\r
202         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
203         "comments": "",\r
204         "x": 1449,\r
205         "y": 290,\r
206         "z": "2902829f.18c74e",\r
207         "wires": []\r
208     },\r
209     {\r
210         "id": "d1591597.ec80d8",\r
211         "type": "outcomeTrue",\r
212         "name": "true",\r
213         "xml": "<outcome value='true'>\n",\r
214         "comments": "",\r
215         "outputs": 1,\r
216         "x": 1740,\r
217         "y": 207,\r
218         "z": "2902829f.18c74e",\r
219         "wires": [\r
220             [\r
221                 "4fdc9fba.45ecc"\r
222             ]\r
223         ]\r
224     },\r
225     {\r
226         "id": "57531373.e3de34",\r
227         "type": "outcomeFalse",\r
228         "name": "false",\r
229         "xml": "<outcome value='false'>\n",\r
230         "comments": "",\r
231         "outputs": 1,\r
232         "x": 1750,\r
233         "y": 134,\r
234         "z": "2902829f.18c74e",\r
235         "wires": [\r
236             []\r
237         ]\r
238     },\r
239     {\r
240         "id": "4fdc9fba.45ecc",\r
241         "type": "block",\r
242         "name": "block",\r
243         "xml": "<block>\n",\r
244         "atomic": "false",\r
245         "comments": "",\r
246         "outputs": 1,\r
247         "x": 1733,\r
248         "y": 282,\r
249         "z": "2902829f.18c74e",\r
250         "wires": [\r
251             [\r
252                 "a7b4edd.d51559",\r
253                 "2c272659.3a51ba",\r
254                 "5c772a63.5a0db4",\r
255                 "289d87b9.bd6eb8",\r
256                 "58aa906f.8d52e"\r
257             ]\r
258         ]\r
259     },\r
260     {\r
261         "id": "23486bfb.15b8c4",\r
262         "type": "save",\r
263         "name": "get allotted-resource from aai",\r
264         "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
265         "comments": "",\r
266         "outputs": 1,\r
267         "x": 2219,\r
268         "y": 333,\r
269         "z": "2902829f.18c74e",\r
270         "wires": [\r
271             [\r
272                 "7220fecb.3a8288",\r
273                 "32198bbf.43a4fc",\r
274                 "5d55cc38.78e3ec"\r
275             ]\r
276         ]\r
277     },\r
278     {\r
279         "id": "7220fecb.3a8288",\r
280         "type": "success",\r
281         "name": "success",\r
282         "xml": "<outcome value='success'>\n",\r
283         "comments": "",\r
284         "outputs": 1,\r
285         "x": 2435,\r
286         "y": 400,\r
287         "z": "2902829f.18c74e",\r
288         "wires": [\r
289             [\r
290                 "fa7f120f.655768"\r
291             ]\r
292         ]\r
293     },\r
294     {\r
295         "id": "32198bbf.43a4fc",\r
296         "type": "not-found",\r
297         "name": "not-found",\r
298         "xml": "<outcome value='not-found'>\n",\r
299         "comments": "",\r
300         "outputs": 1,\r
301         "x": 2435.490966796875,\r
302         "y": 299.573974609375,\r
303         "z": "2902829f.18c74e",\r
304         "wires": [\r
305             [\r
306                 "b28e6d20.f339e8"\r
307             ]\r
308         ]\r
309     },\r
310     {\r
311         "id": "5d55cc38.78e3ec",\r
312         "type": "failure",\r
313         "name": "failure",\r
314         "xml": "<outcome value='failure'>\n",\r
315         "comments": "",\r
316         "outputs": 1,\r
317         "x": 2431,\r
318         "y": 349,\r
319         "z": "2902829f.18c74e",\r
320         "wires": [\r
321             [\r
322                 "3d8a7dac.ce2c6a"\r
323             ]\r
324         ]\r
325     },\r
326     {\r
327         "id": "a7b4edd.d51559",\r
328         "type": "for",\r
329         "name": "for each allotted-resource",\r
330         "xml": "<for index='aridx' start='0' end='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length`' >\n",\r
331         "comments": "",\r
332         "outputs": 1,\r
333         "x": 1936,\r
334         "y": 314,\r
335         "z": "2902829f.18c74e",\r
336         "wires": [\r
337             [\r
338                 "88b22f1d.3626",\r
339                 "23486bfb.15b8c4",\r
340                 "8ffbf90a.9a2a4",\r
341                 "9ccad127.ffcf6"\r
342             ]\r
343         ]\r
344     },\r
345     {\r
346         "id": "88b22f1d.3626",\r
347         "type": "set",\r
348         "name": "set the current allotted-resource-id",\r
349         "xml": "<set>\n<parameter name='allotted-resource-id' value=\"`$tmp.aai.service-instance.allotted-resources.allotted-resource[$aridx].id`\" />\n\n\n",\r
350         "comments": "",\r
351         "x": 2216,\r
352         "y": 252,\r
353         "z": "2902829f.18c74e",\r
354         "wires": []\r
355     },\r
356     {\r
357         "id": "289d87b9.bd6eb8",\r
358         "type": "set",\r
359         "name": "set tmp.arr",\r
360         "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
361         "comments": "",\r
362         "x": 1910,\r
363         "y": 264,\r
364         "z": "2902829f.18c74e",\r
365         "wires": []\r
366     },\r
367     {\r
368         "id": "2c272659.3a51ba",\r
369         "type": "get-resource",\r
370         "name": "get-resource pnfs-list",\r
371         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"pnfs\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v24/network/pnfs?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopopnfs\" >",\r
372         "comments": "",\r
373         "outputs": 1,\r
374         "x": 1953,\r
375         "y": 123,\r
376         "z": "2902829f.18c74e",\r
377         "wires": [\r
378             []\r
379         ]\r
380     },\r
381     {\r
382         "id": "5c772a63.5a0db4",\r
383         "type": "get-resource",\r
384         "name": "get-resource logical-links",\r
385         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-links\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v24/network/logical-links?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopologicalLinks\" >",\r
386         "comments": "",\r
387         "outputs": 1,\r
388         "x": 1965,\r
389         "y": 164,\r
390         "z": "2902829f.18c74e",\r
391         "wires": [\r
392             []\r
393         ]\r
394     },\r
395     {\r
396         "id": "7c71ad84.2ad9d4",\r
397         "type": "comment",\r
398         "name": "The following two nodes are for PCE",\r
399         "info": "",\r
400         "comments": "",\r
401         "x": 1990,\r
402         "y": 76,\r
403         "z": "2902829f.18c74e",\r
404         "wires": []\r
405     },\r
406     {\r
407         "id": "f16230fe.988a5",\r
408         "type": "set",\r
409         "name": "set tmp.arr",\r
410         "xml": "<set>\n<parameter name='tmp.arr.' value='' />\n<parameter name='tmp.arridx' value='0' />\n<parameter name='otn-tunnel-slice.' value='' />\n\n\n",\r
411         "comments": "",\r
412         "x": 1910,\r
413         "y": 210,\r
414         "z": "2902829f.18c74e",\r
415         "wires": []\r
416     },\r
417     {\r
418         "id": "b28e6d20.f339e8",\r
419         "type": "returnFailure",\r
420         "name": "return failure",\r
421         "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
422         "comments": "",\r
423         "x": 2614,\r
424         "y": 302,\r
425         "z": "2902829f.18c74e",\r
426         "wires": []\r
427     },\r
428     {\r
429         "id": "3d8a7dac.ce2c6a",\r
430         "type": "returnFailure",\r
431         "name": "return failure",\r
432         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
433         "comments": "",\r
434         "x": 2613.9375,\r
435         "y": 351.1402587890625,\r
436         "z": "2902829f.18c74e",\r
437         "wires": []\r
438     },\r
439     {\r
440         "id": "fa7f120f.655768",\r
441         "type": "block",\r
442         "name": "block : atomic",\r
443         "xml": "<block atomic=\"true\">",\r
444         "atomic": "true",\r
445         "outputs": 1,\r
446         "x": 2615.9375,\r
447         "y": 402.1402587890625,\r
448         "z": "2902829f.18c74e",\r
449         "wires": [\r
450             [\r
451                 "e41c6870.5c2ef8"\r
452             ]\r
453         ]\r
454     },\r
455     {\r
456         "id": "e41c6870.5c2ef8",\r
457         "type": "save",\r
458         "name": "get allotted-resource relationship from aai",\r
459         "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
460         "comments": "",\r
461         "outputs": 1,\r
462         "x": 2908.9375,\r
463         "y": 349.1402587890625,\r
464         "z": "2902829f.18c74e",\r
465         "wires": [\r
466             [\r
467                 "54a2b596.71e144",\r
468                 "d130d716.0cf7a",\r
469                 "2cc5b868.058328"\r
470             ]\r
471         ]\r
472     },\r
473     {\r
474         "id": "d130d716.0cf7a",\r
475         "type": "not-found",\r
476         "name": "not-found",\r
477         "xml": "<outcome value='not-found'>\n",\r
478         "comments": "",\r
479         "outputs": 1,\r
480         "x": 3182.428466796875,\r
481         "y": 241.7142333984375,\r
482         "z": "2902829f.18c74e",\r
483         "wires": [\r
484             [\r
485                 "b3a5f124.2cf16"\r
486             ]\r
487         ]\r
488     },\r
489     {\r
490         "id": "b3a5f124.2cf16",\r
491         "type": "returnFailure",\r
492         "name": "return failure",\r
493         "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
494         "comments": "",\r
495         "x": 3360,\r
496         "y": 242,\r
497         "z": "2902829f.18c74e",\r
498         "wires": []\r
499     },\r
500     {\r
501         "id": "2cc5b868.058328",\r
502         "type": "failure",\r
503         "name": "failure",\r
504         "xml": "<outcome value='failure'>\n",\r
505         "comments": "",\r
506         "outputs": 1,\r
507         "x": 3177.9375,\r
508         "y": 291.1402587890625,\r
509         "z": "2902829f.18c74e",\r
510         "wires": [\r
511             [\r
512                 "c7a34562.68f14"\r
513             ]\r
514         ]\r
515     },\r
516     {\r
517         "id": "c7a34562.68f14",\r
518         "type": "returnFailure",\r
519         "name": "return failure",\r
520         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
521         "comments": "",\r
522         "x": 3359.9375,\r
523         "y": 291.1402587890625,\r
524         "z": "2902829f.18c74e",\r
525         "wires": []\r
526     },\r
527     {\r
528         "id": "54a2b596.71e144",\r
529         "type": "success",\r
530         "name": "success",\r
531         "xml": "<outcome value='success'>\n",\r
532         "comments": "",\r
533         "outputs": 1,\r
534         "x": 3181.9375,\r
535         "y": 342.1402587890625,\r
536         "z": "2902829f.18c74e",\r
537         "wires": [\r
538             [\r
539                 "bd0a4532.c3f628"\r
540             ]\r
541         ]\r
542     },\r
543     {\r
544         "id": "bd0a4532.c3f628",\r
545         "type": "block",\r
546         "name": "block : atomic",\r
547         "xml": "<block atomic=\"true\">",\r
548         "atomic": "true",\r
549         "outputs": 1,\r
550         "x": 3361.9375,\r
551         "y": 342.1402587890625,\r
552         "z": "2902829f.18c74e",\r
553         "wires": [\r
554             [\r
555                 "f545f705.e2438"\r
556             ]\r
557         ]\r
558     },\r
559     {\r
560         "id": "f545f705.e2438",\r
561         "type": "switchNode",\r
562         "name": "switch allotted-resource.relationship-list not empty",\r
563         "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship_length != 0`'>\n",\r
564         "comments": "",\r
565         "outputs": 1,\r
566         "x": 2928,\r
567         "y": 477,\r
568         "z": "2902829f.18c74e",\r
569         "wires": [\r
570             [\r
571                 "333578f7.b029b",\r
572                 "a1ea266d.8059"\r
573             ]\r
574         ]\r
575     },\r
576     {\r
577         "id": "a1ea266d.8059",\r
578         "type": "outcomeFalse",\r
579         "name": "false",\r
580         "xml": "<outcome value='false'>\n",\r
581         "comments": "",\r
582         "outputs": 1,\r
583         "x": 3238,\r
584         "y": 484,\r
585         "z": "2902829f.18c74e",\r
586         "wires": [\r
587             []\r
588         ]\r
589     },\r
590     {\r
591         "id": "333578f7.b029b",\r
592         "type": "outcomeTrue",\r
593         "name": "true",\r
594         "xml": "<outcome value='true'>\n",\r
595         "comments": "",\r
596         "outputs": 1,\r
597         "x": 3237,\r
598         "y": 538,\r
599         "z": "2902829f.18c74e",\r
600         "wires": [\r
601             [\r
602                 "76551384.dcd284"\r
603             ]\r
604         ]\r
605     },\r
606     {\r
607         "id": "b7449756.393128",\r
608         "type": "outcome",\r
609         "name": "network-policy",\r
610         "xml": "<outcome value='network-policy'>\n",\r
611         "comments": "",\r
612         "outputs": 1,\r
613         "x": 3982,\r
614         "y": 492,\r
615         "z": "2902829f.18c74e",\r
616         "wires": [\r
617             [\r
618                 "497604b.3da63fc"\r
619             ]\r
620         ]\r
621     },\r
622     {\r
623         "id": "497604b.3da63fc",\r
624         "type": "block",\r
625         "name": "block : atomic",\r
626         "xml": "<block atomic=\"true\">",\r
627         "atomic": "true",\r
628         "outputs": 1,\r
629         "x": 4158.9998779296875,\r
630         "y": 484.9998779296875,\r
631         "z": "2902829f.18c74e",\r
632         "wires": [\r
633             [\r
634                 "5622eb31.c6aaa4",\r
635                 "f42a71d2.4e018"\r
636             ]\r
637         ]\r
638     },\r
639     {\r
640         "id": "76551384.dcd284",\r
641         "type": "block",\r
642         "name": "block : atomic",\r
643         "xml": "<block atomic=\"true\">",\r
644         "atomic": "true",\r
645         "outputs": 1,\r
646         "x": 3401,\r
647         "y": 464,\r
648         "z": "2902829f.18c74e",\r
649         "wires": [\r
650             [\r
651                 "4cba462a.39c2",\r
652                 "cfce2e8c.cb8c08"\r
653             ]\r
654         ]\r
655     },\r
656     {\r
657         "id": "4cba462a.39c2",\r
658         "type": "for",\r
659         "name": "for each allotted-resource relationship",\r
660         "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",\r
661         "comments": "",\r
662         "outputs": 1,\r
663         "x": 3682,\r
664         "y": 420,\r
665         "z": "2902829f.18c74e",\r
666         "wires": [\r
667             [\r
668                 "96ce5ffe.418c6"\r
669             ]\r
670         ]\r
671     },\r
672     {\r
673         "id": "96ce5ffe.418c6",\r
674         "type": "switchNode",\r
675         "name": "switch related-to",\r
676         "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",\r
677         "comments": "",\r
678         "outputs": 1,\r
679         "x": 3944,\r
680         "y": 420,\r
681         "z": "2902829f.18c74e",\r
682         "wires": [\r
683             [\r
684                 "b7449756.393128"\r
685             ]\r
686         ]\r
687     },\r
688     {\r
689         "id": "5622eb31.c6aaa4",\r
690         "type": "set",\r
691         "name": "set the 1st network-policy-id",\r
692         "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
693         "comments": "",\r
694         "x": 4401.9998779296875,\r
695         "y": 441.9998779296875,\r
696         "z": "2902829f.18c74e",\r
697         "wires": []\r
698     },\r
699     {\r
700         "id": "f42a71d2.4e018",\r
701         "type": "save",\r
702         "name": "get network-policy from aai",\r
703         "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
704         "comments": "",\r
705         "outputs": 1,\r
706         "x": 4390.9998779296875,\r
707         "y": 496.9998779296875,\r
708         "z": "2902829f.18c74e",\r
709         "wires": [\r
710             [\r
711                 "d27d0859.022f28",\r
712                 "109e108a.071aff",\r
713                 "335266e0.15cee2"\r
714             ]\r
715         ]\r
716     },\r
717     {\r
718         "id": "335266e0.15cee2",\r
719         "type": "not-found",\r
720         "name": "not-found",\r
721         "xml": "<outcome value='not-found'>\n",\r
722         "comments": "",\r
723         "outputs": 1,\r
724         "x": 4644,\r
725         "y": 383,\r
726         "z": "2902829f.18c74e",\r
727         "wires": [\r
728             [\r
729                 "a7539c87.81698"\r
730             ]\r
731         ]\r
732     },\r
733     {\r
734         "id": "a7539c87.81698",\r
735         "type": "returnFailure",\r
736         "name": "return failure",\r
737         "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
738         "comments": "",\r
739         "x": 4792.571533203125,\r
740         "y": 383.2857666015625,\r
741         "z": "2902829f.18c74e",\r
742         "wires": []\r
743     },\r
744     {\r
745         "id": "3deb078.64eee78",\r
746         "type": "returnFailure",\r
747         "name": "return failure",\r
748         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
749         "comments": "",\r
750         "x": 4791.509033203125,\r
751         "y": 427.426025390625,\r
752         "z": "2902829f.18c74e",\r
753         "wires": []\r
754     },\r
755     {\r
756         "id": "109e108a.071aff",\r
757         "type": "failure",\r
758         "name": "failure",\r
759         "xml": "<outcome value='failure'>\n",\r
760         "comments": "",\r
761         "outputs": 1,\r
762         "x": 4632.509033203125,\r
763         "y": 427.426025390625,\r
764         "z": "2902829f.18c74e",\r
765         "wires": [\r
766             [\r
767                 "3deb078.64eee78"\r
768             ]\r
769         ]\r
770     },\r
771     {\r
772         "id": "d27d0859.022f28",\r
773         "type": "success",\r
774         "name": "success",\r
775         "xml": "<outcome value='success'>\n",\r
776         "comments": "",\r
777         "outputs": 1,\r
778         "x": 4639.509033203125,\r
779         "y": 506.426025390625,\r
780         "z": "2902829f.18c74e",\r
781         "wires": [\r
782             [\r
783                 "fa515a9e.7b382"\r
784             ]\r
785         ]\r
786     },\r
787     {\r
788         "id": "fa515a9e.7b382",\r
789         "type": "block",\r
790         "name": "block",\r
791         "xml": "<block>\n",\r
792         "atomic": "false",\r
793         "comments": "",\r
794         "outputs": 1,\r
795         "x": 4778.509033203125,\r
796         "y": 506.426025390625,\r
797         "z": "2902829f.18c74e",\r
798         "wires": [\r
799             [\r
800                 "f8e42c4e.db7c",\r
801                 "af21638c.1e4978"\r
802             ]\r
803         ]\r
804     },\r
805     {\r
806         "id": "f8e42c4e.db7c",\r
807         "type": "set",\r
808         "name": "set the max bandwidth",\r
809         "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
810         "comments": "",\r
811         "x": 4984,\r
812         "y": 504,\r
813         "z": "2902829f.18c74e",\r
814         "wires": []\r
815     },\r
816     {\r
817         "id": "af21638c.1e4978",\r
818         "type": "set",\r
819         "name": "set the max bandwidth",\r
820         "xml": "<set>\n<parameter name='gfp' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",\r
821         "comments": "",\r
822         "x": 4983,\r
823         "y": 550,\r
824         "z": "2902829f.18c74e",\r
825         "wires": []\r
826     },\r
827     {\r
828         "id": "cfce2e8c.cb8c08",\r
829         "type": "for",\r
830         "name": "for each allotted-resource relationship",\r
831         "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",\r
832         "comments": "",\r
833         "outputs": 1,\r
834         "x": 3499,\r
835         "y": 536,\r
836         "z": "2902829f.18c74e",\r
837         "wires": [\r
838             [\r
839                 "d81e40de.4db928"\r
840             ]\r
841         ]\r
842     },\r
843     {\r
844         "id": "d81e40de.4db928",\r
845         "type": "switchNode",\r
846         "name": "switch related-to",\r
847         "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",\r
848         "comments": "",\r
849         "outputs": 1,\r
850         "x": 3779,\r
851         "y": 536,\r
852         "z": "2902829f.18c74e",\r
853         "wires": [\r
854             [\r
855                 "5031094a.3c0128"\r
856             ]\r
857         ]\r
858     },\r
859     {\r
860         "id": "5031094a.3c0128",\r
861         "type": "outcome",\r
862         "name": "logical-link",\r
863         "xml": "<outcome value='logical-link'>\n",\r
864         "comments": "",\r
865         "outputs": 1,\r
866         "x": 2192.0001220703125,\r
867         "y": 789.0001220703125,\r
868         "z": "2902829f.18c74e",\r
869         "wires": [\r
870             [\r
871                 "e73c28db.21f4e"\r
872             ]\r
873         ]\r
874     },\r
875     {\r
876         "id": "e73c28db.21f4e",\r
877         "type": "block",\r
878         "name": "block : atomic",\r
879         "xml": "<block atomic=\"true\">",\r
880         "atomic": "true",\r
881         "outputs": 1,\r
882         "x": 2369,\r
883         "y": 782,\r
884         "z": "2902829f.18c74e",\r
885         "wires": [\r
886             [\r
887                 "315e52b1.1cc22e",\r
888                 "35f8f7f9.459f"\r
889             ]\r
890         ]\r
891     },\r
892     {\r
893         "id": "315e52b1.1cc22e",\r
894         "type": "set",\r
895         "name": "set the current logical-link-name",\r
896         "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
897         "comments": "",\r
898         "x": 2612,\r
899         "y": 739,\r
900         "z": "2902829f.18c74e",\r
901         "wires": []\r
902     },\r
903     {\r
904         "id": "35f8f7f9.459f",\r
905         "type": "save",\r
906         "name": "get logical-link from aai",\r
907         "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
908         "comments": "",\r
909         "outputs": 1,\r
910         "x": 2601,\r
911         "y": 794,\r
912         "z": "2902829f.18c74e",\r
913         "wires": [\r
914             [\r
915                 "d939ca6a.3080e8",\r
916                 "9cfbb845.158be",\r
917                 "6d8b4fc3.7b3018"\r
918             ]\r
919         ]\r
920     },\r
921     {\r
922         "id": "d939ca6a.3080e8",\r
923         "type": "not-found",\r
924         "name": "not-found",\r
925         "xml": "<outcome value='not-found'>\n",\r
926         "comments": "",\r
927         "outputs": 1,\r
928         "x": 2892.490966796875,\r
929         "y": 772.573974609375,\r
930         "z": "2902829f.18c74e",\r
931         "wires": [\r
932             [\r
933                 "107f7ba4.2d7e2c"\r
934             ]\r
935         ]\r
936     },\r
937     {\r
938         "id": "9cfbb845.158be",\r
939         "type": "failure",\r
940         "name": "failure",\r
941         "xml": "<outcome value='failure'>\n",\r
942         "comments": "",\r
943         "outputs": 1,\r
944         "x": 2881,\r
945         "y": 817,\r
946         "z": "2902829f.18c74e",\r
947         "wires": [\r
948             [\r
949                 "acf32404.78571"\r
950             ]\r
951         ]\r
952     },\r
953     {\r
954         "id": "107f7ba4.2d7e2c",\r
955         "type": "returnFailure",\r
956         "name": "return failure",\r
957         "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
958         "comments": "",\r
959         "x": 3041.0625,\r
960         "y": 772.8597412109375,\r
961         "z": "2902829f.18c74e",\r
962         "wires": []\r
963     },\r
964     {\r
965         "id": "acf32404.78571",\r
966         "type": "returnFailure",\r
967         "name": "return failure",\r
968         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
969         "comments": "",\r
970         "x": 3040,\r
971         "y": 817,\r
972         "z": "2902829f.18c74e",\r
973         "wires": []\r
974     },\r
975     {\r
976         "id": "6d8b4fc3.7b3018",\r
977         "type": "success",\r
978         "name": "success",\r
979         "xml": "<outcome value='success'>\n",\r
980         "comments": "",\r
981         "outputs": 1,\r
982         "x": 2888,\r
983         "y": 896,\r
984         "z": "2902829f.18c74e",\r
985         "wires": [\r
986             [\r
987                 "5fee2f71.e558f"\r
988             ]\r
989         ]\r
990     },\r
991     {\r
992         "id": "5fee2f71.e558f",\r
993         "type": "block",\r
994         "name": "block",\r
995         "xml": "<block>\n",\r
996         "atomic": "false",\r
997         "comments": "",\r
998         "outputs": 1,\r
999         "x": 3027,\r
1000         "y": 896,\r
1001         "z": "2902829f.18c74e",\r
1002         "wires": [\r
1003             [\r
1004                 "eaccb004.7e72b",\r
1005                 "eb22e702.6eba4",\r
1006                 "86c2cb32.4be2a",\r
1007                 "1855e375.e26f95",\r
1008                 "a98465a.ebb3518",\r
1009                 "c39134de.e7bb78",\r
1010                 "2345afcc.0ac648",\r
1011                 "a5a8afe4.995398",\r
1012                 "2419d5d3.394c4a",\r
1013                 "7c523485.24203c",\r
1014                 "6836f0a.48b871",\r
1015                 "b794c846.a3a7a8",\r
1016                 "2e62e80b.5f4db"\r
1017             ]\r
1018         ]\r
1019     },\r
1020     {\r
1021         "id": "ecf79c2.e9d746",\r
1022         "type": "execute",\r
1023         "name": "execute UUID generator for ethernet-service-name",\r
1024         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.ethernet-service-name\"/>\n",\r
1025         "comments": "",\r
1026         "outputs": 1,\r
1027         "x": 3341,\r
1028         "y": 702,\r
1029         "z": "2902829f.18c74e",\r
1030         "wires": [\r
1031             []\r
1032         ]\r
1033     },\r
1034     {\r
1035         "id": "eaccb004.7e72b",\r
1036         "type": "execute",\r
1037         "name": "execute UUID generator for otn-tunnel-name",\r
1038         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.otn-tunnel-name\"/>\n",\r
1039         "comments": "",\r
1040         "outputs": 1,\r
1041         "x": 3322,\r
1042         "y": 752,\r
1043         "z": "2902829f.18c74e",\r
1044         "wires": [\r
1045             []\r
1046         ]\r
1047     },\r
1048     {\r
1049         "id": "c7da7bbe.4fbda",\r
1050         "type": "set",\r
1051         "name": "set new ethernet-service-name",\r
1052         "xml": "<set>\n<!--<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-name`\" />-->\n<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-id`\" />\n\n\n",\r
1053         "comments": "",\r
1054         "x": 3279,\r
1055         "y": 797,\r
1056         "z": "2902829f.18c74e",\r
1057         "wires": []\r
1058     },\r
1059     {\r
1060         "id": "eb22e702.6eba4",\r
1061         "type": "set",\r
1062         "name": "set network-route-one",\r
1063         "xml": "<set>\n<parameter name='network-route-one' value=\"`$tmp.aai.logical-link.link-name`\" />\n\n\n",\r
1064         "comments": "",\r
1065         "x": 3254,\r
1066         "y": 860,\r
1067         "z": "2902829f.18c74e",\r
1068         "wires": []\r
1069     },\r
1070     {\r
1071         "id": "86c2cb32.4be2a",\r
1072         "type": "set",\r
1073         "name": "set network-route-two",\r
1074         "xml": "<set>\n<parameter name='network-route-two' value=\"`$tmp.aai.logical-link.link-name2`\" />\n\n\n",\r
1075         "comments": "",\r
1076         "x": 3255,\r
1077         "y": 915,\r
1078         "z": "2902829f.18c74e",\r
1079         "wires": []\r
1080     },\r
1081     {\r
1082         "id": "1855e375.e26f95",\r
1083         "type": "save",\r
1084         "name": "get network-route-one from aai",\r
1085         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-route\"\n\tkey='network-route.route-id = $network-route-one'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-route-one\">",\r
1086         "comments": "",\r
1087         "outputs": 1,\r
1088         "x": 3271,\r
1089         "y": 963,\r
1090         "z": "2902829f.18c74e",\r
1091         "wires": [\r
1092             [\r
1093                 "a1f10f8e.c2622",\r
1094                 "ab6386aa.ce2908",\r
1095                 "465cfd34.a22f5c"\r
1096             ]\r
1097         ]\r
1098     },\r
1099     {\r
1100         "id": "a98465a.ebb3518",\r
1101         "type": "save",\r
1102         "name": "get network-route-two from aai",\r
1103         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-route\"\n\tkey='network-route.route-id = $network-route-two'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-route-two\">",\r
1104         "comments": "",\r
1105         "outputs": 1,\r
1106         "x": 3260,\r
1107         "y": 1049.9998779296875,\r
1108         "z": "2902829f.18c74e",\r
1109         "wires": [\r
1110             [\r
1111                 "1727bd6.343d1c3",\r
1112                 "193b021d.8148b6",\r
1113                 "fa057cc5.1269c"\r
1114             ]\r
1115         ]\r
1116     },\r
1117     {\r
1118         "id": "a1f10f8e.c2622",\r
1119         "type": "not-found",\r
1120         "name": "not-found",\r
1121         "xml": "<outcome value='not-found'>\n",\r
1122         "comments": "",\r
1123         "outputs": 1,\r
1124         "x": 3472,\r
1125         "y": 847,\r
1126         "z": "2902829f.18c74e",\r
1127         "wires": [\r
1128             [\r
1129                 "ef53d37a.78768"\r
1130             ]\r
1131         ]\r
1132     },\r
1133     {\r
1134         "id": "ab6386aa.ce2908",\r
1135         "type": "failure",\r
1136         "name": "failure",\r
1137         "xml": "<outcome value='failure'>\n",\r
1138         "comments": "",\r
1139         "outputs": 1,\r
1140         "x": 3467.509033203125,\r
1141         "y": 896.426025390625,\r
1142         "z": "2902829f.18c74e",\r
1143         "wires": [\r
1144             [\r
1145                 "2e203f6c.c03ed"\r
1146             ]\r
1147         ]\r
1148     },\r
1149     {\r
1150         "id": "465cfd34.a22f5c",\r
1151         "type": "success",\r
1152         "name": "success",\r
1153         "xml": "<outcome value='success'>\n",\r
1154         "comments": "",\r
1155         "outputs": 1,\r
1156         "x": 3471.509033203125,\r
1157         "y": 949.426025390625,\r
1158         "z": "2902829f.18c74e",\r
1159         "wires": [\r
1160             [\r
1161                 "187fdc98.499a83"\r
1162             ]\r
1163         ]\r
1164     },\r
1165     {\r
1166         "id": "ef53d37a.78768",\r
1167         "type": "returnFailure",\r
1168         "name": "return failure",\r
1169         "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
1170         "comments": "",\r
1171         "x": 3620.571533203125,\r
1172         "y": 846.2857666015625,\r
1173         "z": "2902829f.18c74e",\r
1174         "wires": []\r
1175     },\r
1176     {\r
1177         "id": "2e203f6c.c03ed",\r
1178         "type": "returnFailure",\r
1179         "name": "return failure",\r
1180         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1181         "comments": "",\r
1182         "x": 3610.509033203125,\r
1183         "y": 896.426025390625,\r
1184         "z": "2902829f.18c74e",\r
1185         "wires": []\r
1186     },\r
1187     {\r
1188         "id": "1727bd6.343d1c3",\r
1189         "type": "not-found",\r
1190         "name": "not-found",\r
1191         "xml": "<outcome value='not-found'>\n",\r
1192         "comments": "",\r
1193         "outputs": 1,\r
1194         "x": 3483,\r
1195         "y": 1019.9998779296875,\r
1196         "z": "2902829f.18c74e",\r
1197         "wires": [\r
1198             [\r
1199                 "d09d8aa1.f9ab4"\r
1200             ]\r
1201         ]\r
1202     },\r
1203     {\r
1204         "id": "193b021d.8148b6",\r
1205         "type": "failure",\r
1206         "name": "failure",\r
1207         "xml": "<outcome value='failure'>\n",\r
1208         "comments": "",\r
1209         "outputs": 1,\r
1210         "x": 3478.509033203125,\r
1211         "y": 1069.4259033203125,\r
1212         "z": "2902829f.18c74e",\r
1213         "wires": [\r
1214             [\r
1215                 "b9e292a1.c9c0e8"\r
1216             ]\r
1217         ]\r
1218     },\r
1219     {\r
1220         "id": "fa057cc5.1269c",\r
1221         "type": "success",\r
1222         "name": "success",\r
1223         "xml": "<outcome value='success'>\n",\r
1224         "comments": "",\r
1225         "outputs": 1,\r
1226         "x": 3479.509033203125,\r
1227         "y": 1122.4259033203125,\r
1228         "z": "2902829f.18c74e",\r
1229         "wires": [\r
1230             [\r
1231                 "eb27f87a.b5a63"\r
1232             ]\r
1233         ]\r
1234     },\r
1235     {\r
1236         "id": "d09d8aa1.f9ab4",\r
1237         "type": "returnFailure",\r
1238         "name": "return failure",\r
1239         "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
1240         "comments": "",\r
1241         "x": 3631.571533203125,\r
1242         "y": 1019.28564453125,\r
1243         "z": "2902829f.18c74e",\r
1244         "wires": []\r
1245     },\r
1246     {\r
1247         "id": "b9e292a1.c9c0e8",\r
1248         "type": "returnFailure",\r
1249         "name": "return failure",\r
1250         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1251         "comments": "",\r
1252         "x": 3621.509033203125,\r
1253         "y": 1069.4259033203125,\r
1254         "z": "2902829f.18c74e",\r
1255         "wires": []\r
1256     },\r
1257     {\r
1258         "id": "187fdc98.499a83",\r
1259         "type": "block",\r
1260         "name": "block : atomic",\r
1261         "xml": "<block atomic=\"true\">",\r
1262         "atomic": "true",\r
1263         "outputs": 1,\r
1264         "x": 3633,\r
1265         "y": 949,\r
1266         "z": "2902829f.18c74e",\r
1267         "wires": [\r
1268             [\r
1269                 "c01f8fee.f337d8"\r
1270             ]\r
1271         ]\r
1272     },\r
1273     {\r
1274         "id": "eb27f87a.b5a63",\r
1275         "type": "block",\r
1276         "name": "block : atomic",\r
1277         "xml": "<block atomic=\"true\">",\r
1278         "atomic": "true",\r
1279         "outputs": 1,\r
1280         "x": 3633,\r
1281         "y": 1121.9998779296875,\r
1282         "z": "2902829f.18c74e",\r
1283         "wires": [\r
1284             [\r
1285                 "1b75ad85.419ffa"\r
1286             ]\r
1287         ]\r
1288     },\r
1289     {\r
1290         "id": "c01f8fee.f337d8",\r
1291         "type": "switchNode",\r
1292         "name": "switch nr type",\r
1293         "xml": "<switch test='`$tmp.aai.network-route-one.type`'>\n",\r
1294         "comments": "",\r
1295         "outputs": 1,\r
1296         "x": 3805,\r
1297         "y": 949,\r
1298         "z": "2902829f.18c74e",\r
1299         "wires": [\r
1300             [\r
1301                 "363c4a34.666d16",\r
1302                 "db7701b7.1114a8"\r
1303             ]\r
1304         ]\r
1305     },\r
1306     {\r
1307         "id": "1b75ad85.419ffa",\r
1308         "type": "switchNode",\r
1309         "name": "switch nr type",\r
1310         "xml": "<switch test='`$tmp.aai.network-route-two.type`'>\n",\r
1311         "comments": "",\r
1312         "outputs": 1,\r
1313         "x": 3806,\r
1314         "y": 1122,\r
1315         "z": "2902829f.18c74e",\r
1316         "wires": [\r
1317             [\r
1318                 "be2b6c76.ff3af8",\r
1319                 "8a677a0d.0b4e4"\r
1320             ]\r
1321         ]\r
1322     },\r
1323     {\r
1324         "id": "363c4a34.666d16",\r
1325         "type": "outcome",\r
1326         "name": "ROOT",\r
1327         "xml": "<outcome value='ROOT'>\n",\r
1328         "comments": "",\r
1329         "outputs": 1,\r
1330         "x": 3981,\r
1331         "y": 928,\r
1332         "z": "2902829f.18c74e",\r
1333         "wires": [\r
1334             [\r
1335                 "91c5280b.7efb48"\r
1336             ]\r
1337         ]\r
1338     },\r
1339     {\r
1340         "id": "db7701b7.1114a8",\r
1341         "type": "outcome",\r
1342         "name": "LEAF",\r
1343         "xml": "<outcome value='LEAF'>\n",\r
1344         "comments": "",\r
1345         "outputs": 1,\r
1346         "x": 3983,\r
1347         "y": 982,\r
1348         "z": "2902829f.18c74e",\r
1349         "wires": [\r
1350             [\r
1351                 "feb127dc.b0fca"\r
1352             ]\r
1353         ]\r
1354     },\r
1355     {\r
1356         "id": "be2b6c76.ff3af8",\r
1357         "type": "outcome",\r
1358         "name": "ROOT",\r
1359         "xml": "<outcome value='ROOT'>\n",\r
1360         "comments": "",\r
1361         "outputs": 1,\r
1362         "x": 3982,\r
1363         "y": 1092,\r
1364         "z": "2902829f.18c74e",\r
1365         "wires": [\r
1366             [\r
1367                 "66434378.88cb14"\r
1368             ]\r
1369         ]\r
1370     },\r
1371     {\r
1372         "id": "8a677a0d.0b4e4",\r
1373         "type": "outcome",\r
1374         "name": "LEAF",\r
1375         "xml": "<outcome value='LEAF'>\n",\r
1376         "comments": "",\r
1377         "outputs": 1,\r
1378         "x": 3984,\r
1379         "y": 1146,\r
1380         "z": "2902829f.18c74e",\r
1381         "wires": [\r
1382             [\r
1383                 "7a8a47a9.7cb0d8"\r
1384             ]\r
1385         ]\r
1386     },\r
1387     {\r
1388         "id": "9215f524.47a16",\r
1389         "type": "set",\r
1390         "name": "set network-route-ROOT",\r
1391         "xml": "<set>\n<parameter name='tmp.aai.network-route-ROOT.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
1392         "comments": "",\r
1393         "x": 4291,\r
1394         "y": 880,\r
1395         "z": "2902829f.18c74e",\r
1396         "wires": []\r
1397     },\r
1398     {\r
1399         "id": "c685113.a58967",\r
1400         "type": "set",\r
1401         "name": "set network-route-LEAF",\r
1402         "xml": "<set>\n<parameter name='tmp.aai.network-route-LEAF.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
1403         "comments": "",\r
1404         "x": 4284,\r
1405         "y": 978,\r
1406         "z": "2902829f.18c74e",\r
1407         "wires": []\r
1408     },\r
1409     {\r
1410         "id": "9ce6893.2318f78",\r
1411         "type": "set",\r
1412         "name": "set network-route-ROOT",\r
1413         "xml": "<set>\n<parameter name='tmp.aai.network-route-ROOT.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
1414         "comments": "",\r
1415         "x": 4284,\r
1416         "y": 1065,\r
1417         "z": "2902829f.18c74e",\r
1418         "wires": []\r
1419     },\r
1420     {\r
1421         "id": "82c37441.0afd98",\r
1422         "type": "set",\r
1423         "name": "set network-route-LEAF",\r
1424         "xml": "<set>\n<parameter name='tmp.aai.network-route-LEAF.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
1425         "comments": "",\r
1426         "x": 4288,\r
1427         "y": 1158,\r
1428         "z": "2902829f.18c74e",\r
1429         "wires": []\r
1430     },\r
1431     {\r
1432         "id": "33d383f1.734384",\r
1433         "type": "success",\r
1434         "name": "success",\r
1435         "xml": "<outcome value='success'>\n",\r
1436         "comments": "",\r
1437         "outputs": 1,\r
1438         "x": 3515,\r
1439         "y": 1567,\r
1440         "z": "2902829f.18c74e",\r
1441         "wires": [\r
1442             [\r
1443                 "538c6639.6c6368"\r
1444             ]\r
1445         ]\r
1446     },\r
1447     {\r
1448         "id": "1103f778.e68a59",\r
1449         "type": "not-found",\r
1450         "name": "not-found",\r
1451         "xml": "<outcome value='not-found'>\n",\r
1452         "comments": "",\r
1453         "outputs": 1,\r
1454         "x": 3524.490966796875,\r
1455         "y": 1609.5740356445312,\r
1456         "z": "2902829f.18c74e",\r
1457         "wires": [\r
1458             [\r
1459                 "a7a47c61.df546"\r
1460             ]\r
1461         ]\r
1462     },\r
1463     {\r
1464         "id": "e542ccd0.a278f8",\r
1465         "type": "failure",\r
1466         "name": "failure",\r
1467         "xml": "<outcome value='failure'>\n",\r
1468         "comments": "",\r
1469         "outputs": 1,\r
1470         "x": 3513,\r
1471         "y": 1656,\r
1472         "z": "2902829f.18c74e",\r
1473         "wires": [\r
1474             [\r
1475                 "754b02d5.434a64"\r
1476             ]\r
1477         ]\r
1478     },\r
1479     {\r
1480         "id": "9291fa20.ad2b7",\r
1481         "type": "comment",\r
1482         "name": "Question?",\r
1483         "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
1484         "comments": "",\r
1485         "x": 3215,\r
1486         "y": 1529,\r
1487         "z": "2902829f.18c74e",\r
1488         "wires": []\r
1489     },\r
1490     {\r
1491         "id": "2345afcc.0ac648",\r
1492         "type": "save",\r
1493         "name": "get p-interface-src from aai",\r
1494         "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
1495         "comments": "",\r
1496         "outputs": 1,\r
1497         "x": 3258,\r
1498         "y": 1594,\r
1499         "z": "2902829f.18c74e",\r
1500         "wires": [\r
1501             [\r
1502                 "33d383f1.734384",\r
1503                 "1103f778.e68a59",\r
1504                 "e542ccd0.a278f8"\r
1505             ]\r
1506         ]\r
1507     },\r
1508     {\r
1509         "id": "c39134de.e7bb78",\r
1510         "type": "execute",\r
1511         "name": "execute split tp-id to get pnf-name",\r
1512         "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
1513         "comments": "",\r
1514         "outputs": 1,\r
1515         "x": 3259,\r
1516         "y": 1264,\r
1517         "z": "2902829f.18c74e",\r
1518         "wires": [\r
1519             [\r
1520                 "846097ad.2e1c3",\r
1521                 "39e06a12.c523ae"\r
1522             ]\r
1523         ]\r
1524     },\r
1525     {\r
1526         "id": "39e06a12.c523ae",\r
1527         "type": "failure",\r
1528         "name": "success",\r
1529         "xml": "<outcome value='success'>\n",\r
1530         "comments": "",\r
1531         "outputs": 1,\r
1532         "x": 3482,\r
1533         "y": 1250,\r
1534         "z": "2902829f.18c74e",\r
1535         "wires": [\r
1536             [\r
1537                 "f0966fa1.0b829"\r
1538             ]\r
1539         ]\r
1540     },\r
1541     {\r
1542         "id": "846097ad.2e1c3",\r
1543         "type": "failure",\r
1544         "name": "failure",\r
1545         "xml": "<outcome value='failure'>\n",\r
1546         "comments": "",\r
1547         "outputs": 1,\r
1548         "x": 3484,\r
1549         "y": 1283,\r
1550         "z": "2902829f.18c74e",\r
1551         "wires": [\r
1552             [\r
1553                 "36674d51.b9eb9a"\r
1554             ]\r
1555         ]\r
1556     },\r
1557     {\r
1558         "id": "538c6639.6c6368",\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": 3687.66650390625,\r
1565         "y": 1566,\r
1566         "z": "2902829f.18c74e",\r
1567         "wires": [\r
1568             [\r
1569                 "6fff18a2.92ea08",\r
1570                 "f3044461.d6a5a8"\r
1571             ]\r
1572         ]\r
1573     },\r
1574     {\r
1575         "id": "a7a47c61.df546",\r
1576         "type": "returnFailure",\r
1577         "name": "return failure",\r
1578         "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
1579         "comments": "",\r
1580         "x": 3678.0623779296875,\r
1581         "y": 1612.8597717285156,\r
1582         "z": "2902829f.18c74e",\r
1583         "wires": []\r
1584     },\r
1585     {\r
1586         "id": "754b02d5.434a64",\r
1587         "type": "returnFailure",\r
1588         "name": "return failure",\r
1589         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1590         "comments": "",\r
1591         "x": 3682,\r
1592         "y": 1657,\r
1593         "z": "2902829f.18c74e",\r
1594         "wires": []\r
1595     },\r
1596     {\r
1597         "id": "6fff18a2.92ea08",\r
1598         "type": "execute",\r
1599         "name": "execute split tp-id to get pnf-name",\r
1600         "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
1601         "comments": "",\r
1602         "outputs": 1,\r
1603         "x": 3952,\r
1604         "y": 1550,\r
1605         "z": "2902829f.18c74e",\r
1606         "wires": [\r
1607             [\r
1608                 "d1ee9b94.2f27a",\r
1609                 "6eb5b0d3.7baf78"\r
1610             ]\r
1611         ]\r
1612     },\r
1613     {\r
1614         "id": "6eb5b0d3.7baf78",\r
1615         "type": "failure",\r
1616         "name": "success",\r
1617         "xml": "<outcome value='success'>\n",\r
1618         "comments": "",\r
1619         "outputs": 1,\r
1620         "x": 4175,\r
1621         "y": 1505,\r
1622         "z": "2902829f.18c74e",\r
1623         "wires": [\r
1624             [\r
1625                 "f1c76342.65c028"\r
1626             ]\r
1627         ]\r
1628     },\r
1629     {\r
1630         "id": "d1ee9b94.2f27a",\r
1631         "type": "failure",\r
1632         "name": "failure",\r
1633         "xml": "<outcome value='failure'>\n",\r
1634         "comments": "",\r
1635         "outputs": 1,\r
1636         "x": 4177,\r
1637         "y": 1569,\r
1638         "z": "2902829f.18c74e",\r
1639         "wires": [\r
1640             [\r
1641                 "7b8cb4e4.928c34"\r
1642             ]\r
1643         ]\r
1644     },\r
1645     {\r
1646         "id": "7b8cb4e4.928c34",\r
1647         "type": "returnFailure",\r
1648         "name": "return failure",\r
1649         "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
1650         "comments": "",\r
1651         "x": 4339,\r
1652         "y": 1565,\r
1653         "z": "2902829f.18c74e",\r
1654         "wires": []\r
1655     },\r
1656     {\r
1657         "id": "f1c76342.65c028",\r
1658         "type": "block",\r
1659         "name": "block : atomic",\r
1660         "xml": "<block atomic=\"true\">",\r
1661         "atomic": "true",\r
1662         "outputs": 1,\r
1663         "x": 4340,\r
1664         "y": 1502,\r
1665         "z": "2902829f.18c74e",\r
1666         "wires": [\r
1667             [\r
1668                 "2b4fe89a.1b97b",\r
1669                 "666bc5e4.57107c"\r
1670             ]\r
1671         ]\r
1672     },\r
1673     {\r
1674         "id": "272ec148.b5240e",\r
1675         "type": "save",\r
1676         "name": "save connectivity resource in AAI",\r
1677         "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='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\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
1678         "comments": "",\r
1679         "outputs": 1,\r
1680         "x": 3954,\r
1681         "y": 1709,\r
1682         "z": "2902829f.18c74e",\r
1683         "wires": [\r
1684             []\r
1685         ]\r
1686     },\r
1687     {\r
1688         "id": "5865c90a.cd5358",\r
1689         "type": "execute",\r
1690         "name": "execute UUID generator for connectivity domainA",\r
1691         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-domainA-uuid\"/>\n",\r
1692         "comments": "",\r
1693         "outputs": 1,\r
1694         "x": 3999,\r
1695         "y": 1619,\r
1696         "z": "2902829f.18c74e",\r
1697         "wires": [\r
1698             []\r
1699         ]\r
1700     },\r
1701     {\r
1702         "id": "cab25a0.579bfa8",\r
1703         "type": "save",\r
1704         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
1705         "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
1706         "comments": "",\r
1707         "outputs": 1,\r
1708         "x": 4082,\r
1709         "y": 1757,\r
1710         "z": "2902829f.18c74e",\r
1711         "wires": [\r
1712             []\r
1713         ]\r
1714     },\r
1715     {\r
1716         "id": "36674d51.b9eb9a",\r
1717         "type": "returnFailure",\r
1718         "name": "return failure",\r
1719         "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
1720         "comments": "",\r
1721         "x": 3627,\r
1722         "y": 1280,\r
1723         "z": "2902829f.18c74e",\r
1724         "wires": []\r
1725     },\r
1726     {\r
1727         "id": "f0966fa1.0b829",\r
1728         "type": "block",\r
1729         "name": "block : atomic",\r
1730         "xml": "<block atomic=\"true\">",\r
1731         "atomic": "true",\r
1732         "outputs": 1,\r
1733         "x": 3630,\r
1734         "y": 1243,\r
1735         "z": "2902829f.18c74e",\r
1736         "wires": [\r
1737             [\r
1738                 "1289ab88.c47cfc",\r
1739                 "43b7d27f.a3c314"\r
1740             ]\r
1741         ]\r
1742     },\r
1743     {\r
1744         "id": "1289ab88.c47cfc",\r
1745         "type": "set",\r
1746         "name": "set pnf-name",\r
1747         "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
1748         "comments": "",\r
1749         "x": 3804,\r
1750         "y": 1199,\r
1751         "z": "2902829f.18c74e",\r
1752         "wires": []\r
1753     },\r
1754     {\r
1755         "id": "f3044461.d6a5a8",\r
1756         "type": "for",\r
1757         "name": "for each relationship",\r
1758         "xml": "<for silentFailure='true' index='pividx' start='0' end='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship_length`' >\n",\r
1759         "comments": "",\r
1760         "outputs": 1,\r
1761         "x": 3906,\r
1762         "y": 1834,\r
1763         "z": "2902829f.18c74e",\r
1764         "wires": [\r
1765             [\r
1766                 "1efd3cc0.01265b"\r
1767             ]\r
1768         ]\r
1769     },\r
1770     {\r
1771         "id": "1efd3cc0.01265b",\r
1772         "type": "switchNode",\r
1773         "name": "switch related-to",\r
1774         "xml": "<switch test='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].related-to`'>\n",\r
1775         "comments": "",\r
1776         "outputs": 1,\r
1777         "x": 4112,\r
1778         "y": 1834,\r
1779         "z": "2902829f.18c74e",\r
1780         "wires": [\r
1781             [\r
1782                 "42b8e904.3e26e8"\r
1783             ]\r
1784         ]\r
1785     },\r
1786     {\r
1787         "id": "42b8e904.3e26e8",\r
1788         "type": "outcome",\r
1789         "name": "tunnel-termination-point",\r
1790         "xml": "<outcome value='tunnel-termination-point'>\n",\r
1791         "comments": "",\r
1792         "outputs": 1,\r
1793         "x": 4327.28564453125,\r
1794         "y": 1833.82177734375,\r
1795         "z": "2902829f.18c74e",\r
1796         "wires": [\r
1797             [\r
1798                 "c27d35dc.5f20a"\r
1799             ]\r
1800         ]\r
1801     },\r
1802     {\r
1803         "id": "43b7d27f.a3c314",\r
1804         "type": "get-resource",\r
1805         "name": "get-resource src pnf",\r
1806         "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
1807         "comments": "",\r
1808         "outputs": 1,\r
1809         "x": 3819,\r
1810         "y": 1310,\r
1811         "z": "2902829f.18c74e",\r
1812         "wires": [\r
1813             [\r
1814                 "818754d0.62847",\r
1815                 "ffd47564.1fe1e",\r
1816                 "154b0ca5.d55e4b"\r
1817             ]\r
1818         ]\r
1819     },\r
1820     {\r
1821         "id": "818754d0.62847",\r
1822         "type": "success",\r
1823         "name": "success",\r
1824         "xml": "<outcome value='success'>\n",\r
1825         "comments": "",\r
1826         "outputs": 1,\r
1827         "x": 4014.5001220703125,\r
1828         "y": 1262,\r
1829         "z": "2902829f.18c74e",\r
1830         "wires": [\r
1831             [\r
1832                 "c3499a0a.3a08a"\r
1833             ]\r
1834         ]\r
1835     },\r
1836     {\r
1837         "id": "ffd47564.1fe1e",\r
1838         "type": "not-found",\r
1839         "name": "not-found",\r
1840         "xml": "<outcome value='not-found'>\n",\r
1841         "comments": "",\r
1842         "outputs": 1,\r
1843         "x": 4006.5001220703125,\r
1844         "y": 1317,\r
1845         "z": "2902829f.18c74e",\r
1846         "wires": [\r
1847             [\r
1848                 "deee5298.4209e"\r
1849             ]\r
1850         ]\r
1851     },\r
1852     {\r
1853         "id": "154b0ca5.d55e4b",\r
1854         "type": "other",\r
1855         "name": "other",\r
1856         "xml": "<outcome value='Other'>\n",\r
1857         "comments": "",\r
1858         "outputs": 1,\r
1859         "x": 4011.5001220703125,\r
1860         "y": 1374,\r
1861         "z": "2902829f.18c74e",\r
1862         "wires": [\r
1863             [\r
1864                 "a4184f75.2f4fc8"\r
1865             ]\r
1866         ]\r
1867     },\r
1868     {\r
1869         "id": "a4184f75.2f4fc8",\r
1870         "type": "returnFailure",\r
1871         "name": "return failure",\r
1872         "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
1873         "comments": "",\r
1874         "x": 4163.5001220703125,\r
1875         "y": 1375,\r
1876         "z": "2902829f.18c74e",\r
1877         "wires": []\r
1878     },\r
1879     {\r
1880         "id": "deee5298.4209e",\r
1881         "type": "returnFailure",\r
1882         "name": "return failure",\r
1883         "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
1884         "comments": "",\r
1885         "x": 4174.5001220703125,\r
1886         "y": 1320,\r
1887         "z": "2902829f.18c74e",\r
1888         "wires": []\r
1889     },\r
1890     {\r
1891         "id": "c3499a0a.3a08a",\r
1892         "type": "block",\r
1893         "name": "block",\r
1894         "xml": "<block>\n",\r
1895         "atomic": "false",\r
1896         "comments": "",\r
1897         "outputs": 1,\r
1898         "x": 4158.8824462890625,\r
1899         "y": 1259.6556701660156,\r
1900         "z": "2902829f.18c74e",\r
1901         "wires": [\r
1902             [\r
1903                 "ece91d8.33480e"\r
1904             ]\r
1905         ]\r
1906     },\r
1907     {\r
1908         "id": "ece91d8.33480e",\r
1909         "type": "for",\r
1910         "name": "for each relationship",\r
1911         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
1912         "comments": "",\r
1913         "outputs": 1,\r
1914         "x": 4343,\r
1915         "y": 1274,\r
1916         "z": "2902829f.18c74e",\r
1917         "wires": [\r
1918             [\r
1919                 "3d2e74e0.b28254"\r
1920             ]\r
1921         ]\r
1922     },\r
1923     {\r
1924         "id": "666bc5e4.57107c",\r
1925         "type": "set",\r
1926         "name": "set ltpId",\r
1927         "xml": "<set>\n<parameter name='tmp.src.ltpId' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n",\r
1928         "comments": "",\r
1929         "x": 4510,\r
1930         "y": 1460,\r
1931         "z": "2902829f.18c74e",\r
1932         "wires": []\r
1933     },\r
1934     {\r
1935         "id": "2b4fe89a.1b97b",\r
1936         "type": "set",\r
1937         "name": "set pnf-name",\r
1938         "xml": "<set>\n<parameter name='tmp.src.pnf-name' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n",\r
1939         "comments": "",\r
1940         "x": 4511,\r
1941         "y": 1568,\r
1942         "z": "2902829f.18c74e",\r
1943         "wires": []\r
1944     },\r
1945     {\r
1946         "id": "990e20c9.dc548",\r
1947         "type": "comment",\r
1948         "name": "TODO: FIXME",\r
1949         "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
1950         "comments": "",\r
1951         "x": 4512,\r
1952         "y": 1517,\r
1953         "z": "2902829f.18c74e",\r
1954         "wires": []\r
1955     },\r
1956     {\r
1957         "id": "c27d35dc.5f20a",\r
1958         "type": "block",\r
1959         "name": "block : atomic",\r
1960         "xml": "<block atomic=\"true\">",\r
1961         "atomic": "true",\r
1962         "outputs": 1,\r
1963         "x": 4534.1171875,\r
1964         "y": 1834.34033203125,\r
1965         "z": "2902829f.18c74e",\r
1966         "wires": [\r
1967             [\r
1968                 "4705b8ac.369ff8",\r
1969                 "140bf681.97f4d1",\r
1970                 "169362ec.4e0805"\r
1971             ]\r
1972         ]\r
1973     },\r
1974     {\r
1975         "id": "4705b8ac.369ff8",\r
1976         "type": "set",\r
1977         "name": "set source ttp-id",\r
1978         "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
1979         "comments": "",\r
1980         "x": 4749.1171875,\r
1981         "y": 1796.34033203125,\r
1982         "z": "2902829f.18c74e",\r
1983         "wires": []\r
1984     },\r
1985     {\r
1986         "id": "140bf681.97f4d1",\r
1987         "type": "get-resource",\r
1988         "name": "get-resource src TTP",\r
1989         "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
1990         "comments": "",\r
1991         "outputs": 1,\r
1992         "x": 4746.1171875,\r
1993         "y": 1835.34033203125,\r
1994         "z": "2902829f.18c74e",\r
1995         "wires": [\r
1996             [\r
1997                 "44788f51.dcb608"\r
1998             ]\r
1999         ]\r
2000     },\r
2001     {\r
2002         "id": "169362ec.4e0805",\r
2003         "type": "break",\r
2004         "name": "break",\r
2005         "xml": "<break>\n",\r
2006         "comments": "",\r
2007         "x": 4701.6171875,\r
2008         "y": 1877.34033203125,\r
2009         "z": "2902829f.18c74e",\r
2010         "wires": []\r
2011     },\r
2012     {\r
2013         "id": "44788f51.dcb608",\r
2014         "type": "success",\r
2015         "name": "success",\r
2016         "xml": "<outcome value='success'>\n",\r
2017         "comments": "",\r
2018         "outputs": 1,\r
2019         "x": 4926.6171875,\r
2020         "y": 1834.34033203125,\r
2021         "z": "2902829f.18c74e",\r
2022         "wires": [\r
2023             [\r
2024                 "96d5e3b9.3b004"\r
2025             ]\r
2026         ]\r
2027     },\r
2028     {\r
2029         "id": "a25be771.e58d08",\r
2030         "type": "outcome",\r
2031         "name": "esr-thirdparty-sdnc",\r
2032         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
2033         "comments": "",\r
2034         "outputs": 1,\r
2035         "x": 4741,\r
2036         "y": 1278,\r
2037         "z": "2902829f.18c74e",\r
2038         "wires": [\r
2039             [\r
2040                 "766cd179.71ceb"\r
2041             ]\r
2042         ]\r
2043     },\r
2044     {\r
2045         "id": "766cd179.71ceb",\r
2046         "type": "block",\r
2047         "name": "block : atomic",\r
2048         "xml": "<block atomic=\"true\">",\r
2049         "atomic": "true",\r
2050         "outputs": 1,\r
2051         "x": 4918,\r
2052         "y": 1270,\r
2053         "z": "2902829f.18c74e",\r
2054         "wires": [\r
2055             [\r
2056                 "4a39420e.bbc88c",\r
2057                 "db93fd8f.b0686"\r
2058             ]\r
2059         ]\r
2060     },\r
2061     {\r
2062         "id": "3d2e74e0.b28254",\r
2063         "type": "switchNode",\r
2064         "name": "switch related-to",\r
2065         "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
2066         "comments": "",\r
2067         "outputs": 1,\r
2068         "x": 4538,\r
2069         "y": 1274,\r
2070         "z": "2902829f.18c74e",\r
2071         "wires": [\r
2072             [\r
2073                 "a25be771.e58d08",\r
2074                 "a5fe54fc.22f278"\r
2075             ]\r
2076         ]\r
2077     },\r
2078     {\r
2079         "id": "a5fe54fc.22f278",\r
2080         "type": "outcome",\r
2081         "name": "network-resource",\r
2082         "xml": "<outcome value='network-resource'>",\r
2083         "comments": "",\r
2084         "outputs": 1,\r
2085         "x": 4744,\r
2086         "y": 1352,\r
2087         "z": "2902829f.18c74e",\r
2088         "wires": [\r
2089             [\r
2090                 "b8ffc162.40264"\r
2091             ]\r
2092         ]\r
2093     },\r
2094     {\r
2095         "id": "b8ffc162.40264",\r
2096         "type": "block",\r
2097         "name": "block : atomic",\r
2098         "xml": "<block atomic=\"true\">",\r
2099         "atomic": "true",\r
2100         "outputs": 1,\r
2101         "x": 4921,\r
2102         "y": 1344,\r
2103         "z": "2902829f.18c74e",\r
2104         "wires": [\r
2105             [\r
2106                 "401010e9.39d95"\r
2107             ]\r
2108         ]\r
2109     },\r
2110     {\r
2111         "id": "96d5e3b9.3b004",\r
2112         "type": "block",\r
2113         "name": "block : atomic",\r
2114         "xml": "<block atomic=\"true\">",\r
2115         "atomic": "true",\r
2116         "outputs": 1,\r
2117         "x": 5084.6171875,\r
2118         "y": 1834.34033203125,\r
2119         "z": "2902829f.18c74e",\r
2120         "wires": [\r
2121             [\r
2122                 "8dcf461b.b0a6b8"\r
2123             ]\r
2124         ]\r
2125     },\r
2126     {\r
2127         "id": "8dcf461b.b0a6b8",\r
2128         "type": "set",\r
2129         "name": "set source tunnel tp ip",\r
2130         "xml": "<set>\n<parameter name='source.tunnel-tp-id' value=\"`$tmp.aai.source-ttp.tunnel-tp-id`\" />\n",\r
2131         "comments": "",\r
2132         "x": 5291.6171875,\r
2133         "y": 1834.34033203125,\r
2134         "z": "2902829f.18c74e",\r
2135         "wires": []\r
2136     },\r
2137     {\r
2138         "id": "db93fd8f.b0686",\r
2139         "type": "execute",\r
2140         "name": "get esr-thirdparty-sdnc",\r
2141         "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
2142         "comments": "",\r
2143         "outputs": 1,\r
2144         "x": 5126,\r
2145         "y": 1277,\r
2146         "z": "2902829f.18c74e",\r
2147         "wires": [\r
2148             [\r
2149                 "1554906a.f71e68",\r
2150                 "e44344a3.bb67b8",\r
2151                 "e5d285d7.a1a42"\r
2152             ]\r
2153         ]\r
2154     },\r
2155     {\r
2156         "id": "4a39420e.bbc88c",\r
2157         "type": "set",\r
2158         "name": "set esr-thirdparty-sdnc domainA id",\r
2159         "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
2160         "comments": "",\r
2161         "x": 5156,\r
2162         "y": 1225,\r
2163         "z": "2902829f.18c74e",\r
2164         "wires": []\r
2165     },\r
2166     {\r
2167         "id": "1554906a.f71e68",\r
2168         "type": "success",\r
2169         "name": "success",\r
2170         "xml": "<outcome value='success'>\n",\r
2171         "comments": "",\r
2172         "outputs": 1,\r
2173         "x": 5336,\r
2174         "y": 1268,\r
2175         "z": "2902829f.18c74e",\r
2176         "wires": [\r
2177             [\r
2178                 "169a2bda.d46874"\r
2179             ]\r
2180         ]\r
2181     },\r
2182     {\r
2183         "id": "e44344a3.bb67b8",\r
2184         "type": "not-found",\r
2185         "name": "not-found",\r
2186         "xml": "<outcome value='not-found'>\n",\r
2187         "comments": "",\r
2188         "outputs": 1,\r
2189         "x": 5328,\r
2190         "y": 1323,\r
2191         "z": "2902829f.18c74e",\r
2192         "wires": [\r
2193             [\r
2194                 "81a51254.f91678"\r
2195             ]\r
2196         ]\r
2197     },\r
2198     {\r
2199         "id": "e5d285d7.a1a42",\r
2200         "type": "other",\r
2201         "name": "other",\r
2202         "xml": "<outcome value='Other'>\n",\r
2203         "comments": "",\r
2204         "outputs": 1,\r
2205         "x": 5333,\r
2206         "y": 1380,\r
2207         "z": "2902829f.18c74e",\r
2208         "wires": [\r
2209             [\r
2210                 "318f7e74.4a0292"\r
2211             ]\r
2212         ]\r
2213     },\r
2214     {\r
2215         "id": "318f7e74.4a0292",\r
2216         "type": "returnFailure",\r
2217         "name": "return failure",\r
2218         "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
2219         "comments": "",\r
2220         "x": 5485,\r
2221         "y": 1381,\r
2222         "z": "2902829f.18c74e",\r
2223         "wires": []\r
2224     },\r
2225     {\r
2226         "id": "81a51254.f91678",\r
2227         "type": "returnFailure",\r
2228         "name": "return failure",\r
2229         "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
2230         "comments": "",\r
2231         "x": 5496,\r
2232         "y": 1326,\r
2233         "z": "2902829f.18c74e",\r
2234         "wires": []\r
2235     },\r
2236     {\r
2237         "id": "169a2bda.d46874",\r
2238         "type": "block",\r
2239         "name": "block",\r
2240         "xml": "<block>\n",\r
2241         "atomic": "false",\r
2242         "comments": "",\r
2243         "outputs": 1,\r
2244         "x": 5480.38232421875,\r
2245         "y": 1265.6556701660156,\r
2246         "z": "2902829f.18c74e",\r
2247         "wires": [\r
2248             [\r
2249                 "40d562bc.5b73a4"\r
2250             ]\r
2251         ]\r
2252     },\r
2253     {\r
2254         "id": "401010e9.39d95",\r
2255         "type": "set",\r
2256         "name": "set domainA ethernet layer network-id",\r
2257         "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
2258         "comments": "",\r
2259         "x": 5156,\r
2260         "y": 1468,\r
2261         "z": "2902829f.18c74e",\r
2262         "wires": []\r
2263     },\r
2264     {\r
2265         "id": "40d562bc.5b73a4",\r
2266         "type": "set",\r
2267         "name": "set controller domainA data",\r
2268         "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
2269         "comments": "",\r
2270         "x": 5695,\r
2271         "y": 1262,\r
2272         "z": "2902829f.18c74e",\r
2273         "wires": []\r
2274     },\r
2275     {\r
2276         "id": "8e9cd61c.43d1a",\r
2277         "type": "set",\r
2278         "name": "set network-route-B",\r
2279         "xml": "<set>\n<parameter name='tmp.aai.network-route-B.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
2280         "comments": "",\r
2281         "x": 4279,\r
2282         "y": 916,\r
2283         "z": "2902829f.18c74e",\r
2284         "wires": []\r
2285     },\r
2286     {\r
2287         "id": "ecfdf50c.08026",\r
2288         "type": "set",\r
2289         "name": "set network-route-A",\r
2290         "xml": "<set>\n<parameter name='tmp.aai.network-route-A.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
2291         "comments": "",\r
2292         "x": 4270,\r
2293         "y": 1014,\r
2294         "z": "2902829f.18c74e",\r
2295         "wires": []\r
2296     },\r
2297     {\r
2298         "id": "91c5280b.7efb48",\r
2299         "type": "block",\r
2300         "name": "block",\r
2301         "xml": "<block>\n",\r
2302         "atomic": "false",\r
2303         "comments": "",\r
2304         "outputs": 1,\r
2305         "x": 4104,\r
2306         "y": 922,\r
2307         "z": "2902829f.18c74e",\r
2308         "wires": [\r
2309             [\r
2310                 "9215f524.47a16",\r
2311                 "8e9cd61c.43d1a"\r
2312             ]\r
2313         ]\r
2314     },\r
2315     {\r
2316         "id": "feb127dc.b0fca",\r
2317         "type": "block",\r
2318         "name": "block",\r
2319         "xml": "<block>\n",\r
2320         "atomic": "false",\r
2321         "comments": "",\r
2322         "outputs": 1,\r
2323         "x": 4110,\r
2324         "y": 986,\r
2325         "z": "2902829f.18c74e",\r
2326         "wires": [\r
2327             [\r
2328                 "c685113.a58967",\r
2329                 "ecfdf50c.08026"\r
2330             ]\r
2331         ]\r
2332     },\r
2333     {\r
2334         "id": "66434378.88cb14",\r
2335         "type": "block",\r
2336         "name": "block",\r
2337         "xml": "<block>\n",\r
2338         "atomic": "false",\r
2339         "comments": "",\r
2340         "outputs": 1,\r
2341         "x": 4110,\r
2342         "y": 1092,\r
2343         "z": "2902829f.18c74e",\r
2344         "wires": [\r
2345             [\r
2346                 "9ce6893.2318f78",\r
2347                 "caa465e0.6dcff"\r
2348             ]\r
2349         ]\r
2350     },\r
2351     {\r
2352         "id": "7a8a47a9.7cb0d8",\r
2353         "type": "block",\r
2354         "name": "block",\r
2355         "xml": "<block>\n",\r
2356         "atomic": "false",\r
2357         "comments": "",\r
2358         "outputs": 1,\r
2359         "x": 4113,\r
2360         "y": 1145,\r
2361         "z": "2902829f.18c74e",\r
2362         "wires": [\r
2363             [\r
2364                 "82c37441.0afd98",\r
2365                 "7e59d376.e30294"\r
2366             ]\r
2367         ]\r
2368     },\r
2369     {\r
2370         "id": "caa465e0.6dcff",\r
2371         "type": "set",\r
2372         "name": "set network-route-B",\r
2373         "xml": "<set>\n<parameter name='tmp.aai.network-route-B.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
2374         "comments": "",\r
2375         "x": 4270,\r
2376         "y": 1105,\r
2377         "z": "2902829f.18c74e",\r
2378         "wires": []\r
2379     },\r
2380     {\r
2381         "id": "7e59d376.e30294",\r
2382         "type": "set",\r
2383         "name": "set network-route-A",\r
2384         "xml": "<set>\n<parameter name='tmp.aai.network-route-A.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
2385         "comments": "",\r
2386         "x": 4273,\r
2387         "y": 1196,\r
2388         "z": "2902829f.18c74e",\r
2389         "wires": []\r
2390     },\r
2391     {\r
2392         "id": "c59f074a.c0fcd",\r
2393         "type": "block",\r
2394         "name": "block : atomic",\r
2395         "xml": "<block atomic=\"true\">",\r
2396         "atomic": "true",\r
2397         "outputs": 1,\r
2398         "x": 3645,\r
2399         "y": 2406,\r
2400         "z": "2902829f.18c74e",\r
2401         "wires": [\r
2402             [\r
2403                 "e6449278.7ffcc8",\r
2404                 "87feacf7.c38bf8"\r
2405             ]\r
2406         ]\r
2407     },\r
2408     {\r
2409         "id": "504f1aa.eb8e864",\r
2410         "type": "success",\r
2411         "name": "success",\r
2412         "xml": "<outcome value='success'>\n",\r
2413         "comments": "",\r
2414         "outputs": 1,\r
2415         "x": 3472.33349609375,\r
2416         "y": 2407,\r
2417         "z": "2902829f.18c74e",\r
2418         "wires": [\r
2419             [\r
2420                 "c59f074a.c0fcd"\r
2421             ]\r
2422         ]\r
2423     },\r
2424     {\r
2425         "id": "a37a9324.8cee68",\r
2426         "type": "not-found",\r
2427         "name": "not-found",\r
2428         "xml": "<outcome value='not-found'>\n",\r
2429         "comments": "",\r
2430         "outputs": 1,\r
2431         "x": 3481.824462890625,\r
2432         "y": 2449.5740356445312,\r
2433         "z": "2902829f.18c74e",\r
2434         "wires": [\r
2435             [\r
2436                 "2466115d.057356"\r
2437             ]\r
2438         ]\r
2439     },\r
2440     {\r
2441         "id": "73c3286f.8eb8c8",\r
2442         "type": "failure",\r
2443         "name": "failure",\r
2444         "xml": "<outcome value='failure'>\n",\r
2445         "comments": "",\r
2446         "outputs": 1,\r
2447         "x": 3470.33349609375,\r
2448         "y": 2496,\r
2449         "z": "2902829f.18c74e",\r
2450         "wires": [\r
2451             [\r
2452                 "e7809543.d60ec"\r
2453             ]\r
2454         ]\r
2455     },\r
2456     {\r
2457         "id": "2466115d.057356",\r
2458         "type": "returnFailure",\r
2459         "name": "return failure",\r
2460         "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
2461         "comments": "",\r
2462         "x": 3635.3958740234375,\r
2463         "y": 2452.8597717285156,\r
2464         "z": "2902829f.18c74e",\r
2465         "wires": []\r
2466     },\r
2467     {\r
2468         "id": "e7809543.d60ec",\r
2469         "type": "returnFailure",\r
2470         "name": "return failure",\r
2471         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
2472         "comments": "",\r
2473         "x": 3639.33349609375,\r
2474         "y": 2497,\r
2475         "z": "2902829f.18c74e",\r
2476         "wires": []\r
2477     },\r
2478     {\r
2479         "id": "e6449278.7ffcc8",\r
2480         "type": "execute",\r
2481         "name": "execute split tp-id to get pnf-name",\r
2482         "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
2483         "comments": "",\r
2484         "outputs": 1,\r
2485         "x": 3931.33349609375,\r
2486         "y": 2410.0001220703125,\r
2487         "z": "2902829f.18c74e",\r
2488         "wires": [\r
2489             [\r
2490                 "b831939d.d94",\r
2491                 "5cb920bb.aff4d"\r
2492             ]\r
2493         ]\r
2494     },\r
2495     {\r
2496         "id": "5cb920bb.aff4d",\r
2497         "type": "failure",\r
2498         "name": "success",\r
2499         "xml": "<outcome value='success'>\n",\r
2500         "comments": "",\r
2501         "outputs": 1,\r
2502         "x": 4154.33349609375,\r
2503         "y": 2365.0001220703125,\r
2504         "z": "2902829f.18c74e",\r
2505         "wires": [\r
2506             [\r
2507                 "cf6e6c99.56f7a"\r
2508             ]\r
2509         ]\r
2510     },\r
2511     {\r
2512         "id": "b831939d.d94",\r
2513         "type": "failure",\r
2514         "name": "failure",\r
2515         "xml": "<outcome value='failure'>\n",\r
2516         "comments": "",\r
2517         "outputs": 1,\r
2518         "x": 4156.33349609375,\r
2519         "y": 2429.0001220703125,\r
2520         "z": "2902829f.18c74e",\r
2521         "wires": [\r
2522             [\r
2523                 "3583978e.f629a8"\r
2524             ]\r
2525         ]\r
2526     },\r
2527     {\r
2528         "id": "3583978e.f629a8",\r
2529         "type": "returnFailure",\r
2530         "name": "return failure",\r
2531         "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
2532         "comments": "",\r
2533         "x": 4315.33349609375,\r
2534         "y": 2448.0001220703125,\r
2535         "z": "2902829f.18c74e",\r
2536         "wires": []\r
2537     },\r
2538     {\r
2539         "id": "cf6e6c99.56f7a",\r
2540         "type": "block",\r
2541         "name": "block : atomic",\r
2542         "xml": "<block atomic=\"true\">",\r
2543         "atomic": "true",\r
2544         "outputs": 1,\r
2545         "x": 4319.33349609375,\r
2546         "y": 2362.0001220703125,\r
2547         "z": "2902829f.18c74e",\r
2548         "wires": [\r
2549             [\r
2550                 "528dc079.e1b708",\r
2551                 "ef41d4a6.237198"\r
2552             ]\r
2553         ]\r
2554     },\r
2555     {\r
2556         "id": "70e4a574.f2fbdc",\r
2557         "type": "save",\r
2558         "name": "save connectivity resource in AAI",\r
2559         "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='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\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
2560         "comments": "",\r
2561         "outputs": 1,\r
2562         "x": 3933.33349609375,\r
2563         "y": 2569.0001220703125,\r
2564         "z": "2902829f.18c74e",\r
2565         "wires": [\r
2566             []\r
2567         ]\r
2568     },\r
2569     {\r
2570         "id": "6fa4c461.e1732c",\r
2571         "type": "execute",\r
2572         "name": "execute UUID generator for connectivity domainB",\r
2573         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainB-uuid\"/>\n",\r
2574         "comments": "",\r
2575         "outputs": 1,\r
2576         "x": 3978.33349609375,\r
2577         "y": 2479.0001220703125,\r
2578         "z": "2902829f.18c74e",\r
2579         "wires": [\r
2580             []\r
2581         ]\r
2582     },\r
2583     {\r
2584         "id": "418cf3ce.c7d714",\r
2585         "type": "save",\r
2586         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
2587         "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
2588         "comments": "",\r
2589         "outputs": 1,\r
2590         "x": 4060.33349609375,\r
2591         "y": 2634.0001220703125,\r
2592         "z": "2902829f.18c74e",\r
2593         "wires": [\r
2594             []\r
2595         ]\r
2596     },\r
2597     {\r
2598         "id": "2419d5d3.394c4a",\r
2599         "type": "save",\r
2600         "name": "get p-interface-dst from aai",\r
2601         "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
2602         "comments": "",\r
2603         "outputs": 1,\r
2604         "x": 3244.33349609375,\r
2605         "y": 2442,\r
2606         "z": "2902829f.18c74e",\r
2607         "wires": [\r
2608             [\r
2609                 "504f1aa.eb8e864",\r
2610                 "a37a9324.8cee68",\r
2611                 "73c3286f.8eb8c8"\r
2612             ]\r
2613         ]\r
2614     },\r
2615     {\r
2616         "id": "b8dec384.717cf",\r
2617         "type": "comment",\r
2618         "name": "Question?",\r
2619         "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
2620         "comments": "",\r
2621         "x": 3205.33349609375,\r
2622         "y": 2386,\r
2623         "z": "2902829f.18c74e",\r
2624         "wires": []\r
2625     },\r
2626     {\r
2627         "id": "a5a8afe4.995398",\r
2628         "type": "execute",\r
2629         "name": "execute split tp-id to get pnf-name",\r
2630         "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
2631         "comments": "",\r
2632         "outputs": 1,\r
2633         "x": 3262.33349609375,\r
2634         "y": 2104.9998779296875,\r
2635         "z": "2902829f.18c74e",\r
2636         "wires": [\r
2637             [\r
2638                 "9c54fa6.d2aa308",\r
2639                 "ba5d54d9.fee348"\r
2640             ]\r
2641         ]\r
2642     },\r
2643     {\r
2644         "id": "ba5d54d9.fee348",\r
2645         "type": "failure",\r
2646         "name": "success",\r
2647         "xml": "<outcome value='success'>\n",\r
2648         "comments": "",\r
2649         "outputs": 1,\r
2650         "x": 3485.33349609375,\r
2651         "y": 2090.9998779296875,\r
2652         "z": "2902829f.18c74e",\r
2653         "wires": [\r
2654             [\r
2655                 "64c87509.eed4dc"\r
2656             ]\r
2657         ]\r
2658     },\r
2659     {\r
2660         "id": "9c54fa6.d2aa308",\r
2661         "type": "failure",\r
2662         "name": "failure",\r
2663         "xml": "<outcome value='failure'>\n",\r
2664         "comments": "",\r
2665         "outputs": 1,\r
2666         "x": 3487.33349609375,\r
2667         "y": 2123.9998779296875,\r
2668         "z": "2902829f.18c74e",\r
2669         "wires": [\r
2670             [\r
2671                 "bff9d45d.398f6"\r
2672             ]\r
2673         ]\r
2674     },\r
2675     {\r
2676         "id": "bff9d45d.398f6",\r
2677         "type": "returnFailure",\r
2678         "name": "return failure",\r
2679         "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
2680         "comments": "",\r
2681         "x": 3630.33349609375,\r
2682         "y": 2120.9998779296875,\r
2683         "z": "2902829f.18c74e",\r
2684         "wires": []\r
2685     },\r
2686     {\r
2687         "id": "64c87509.eed4dc",\r
2688         "type": "block",\r
2689         "name": "block : atomic",\r
2690         "xml": "<block atomic=\"true\">",\r
2691         "atomic": "true",\r
2692         "outputs": 1,\r
2693         "x": 3633.33349609375,\r
2694         "y": 2083.9998779296875,\r
2695         "z": "2902829f.18c74e",\r
2696         "wires": [\r
2697             [\r
2698                 "68ddabff.26f77c",\r
2699                 "3932be0c.eefdc2"\r
2700             ]\r
2701         ]\r
2702     },\r
2703     {\r
2704         "id": "68ddabff.26f77c",\r
2705         "type": "set",\r
2706         "name": "set pnf-name",\r
2707         "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
2708         "comments": "",\r
2709         "x": 3827.33349609375,\r
2710         "y": 2087,\r
2711         "z": "2902829f.18c74e",\r
2712         "wires": []\r
2713     },\r
2714     {\r
2715         "id": "87feacf7.c38bf8",\r
2716         "type": "for",\r
2717         "name": "for each relationship",\r
2718         "xml": "<for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship_length`' >\n",\r
2719         "comments": "",\r
2720         "outputs": 1,\r
2721         "x": 3890.33349609375,\r
2722         "y": 2719,\r
2723         "z": "2902829f.18c74e",\r
2724         "wires": [\r
2725             [\r
2726                 "1be50176.34f787"\r
2727             ]\r
2728         ]\r
2729     },\r
2730     {\r
2731         "id": "1be50176.34f787",\r
2732         "type": "switchNode",\r
2733         "name": "switch related-to",\r
2734         "xml": "<switch test='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].related-to`'>\n",\r
2735         "comments": "",\r
2736         "outputs": 1,\r
2737         "x": 4096.33349609375,\r
2738         "y": 2719,\r
2739         "z": "2902829f.18c74e",\r
2740         "wires": [\r
2741             [\r
2742                 "e1f7ff3.daa43"\r
2743             ]\r
2744         ]\r
2745     },\r
2746     {\r
2747         "id": "e1f7ff3.daa43",\r
2748         "type": "outcome",\r
2749         "name": "tunnel-termination-point",\r
2750         "xml": "<outcome value='tunnel-termination-point'>\n",\r
2751         "comments": "",\r
2752         "outputs": 1,\r
2753         "x": 4313.619140625,\r
2754         "y": 2717.82177734375,\r
2755         "z": "2902829f.18c74e",\r
2756         "wires": [\r
2757             [\r
2758                 "2a02e2d9.dc0d9e"\r
2759             ]\r
2760         ]\r
2761     },\r
2762     {\r
2763         "id": "3932be0c.eefdc2",\r
2764         "type": "get-resource",\r
2765         "name": "get-resource src pnf",\r
2766         "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
2767         "comments": "",\r
2768         "outputs": 1,\r
2769         "x": 3849.33349609375,\r
2770         "y": 2155,\r
2771         "z": "2902829f.18c74e",\r
2772         "wires": [\r
2773             [\r
2774                 "2d0f7089.d1dde8",\r
2775                 "fd005c4a.d8bf",\r
2776                 "939e8fdc.7e7718"\r
2777             ]\r
2778         ]\r
2779     },\r
2780     {\r
2781         "id": "2d0f7089.d1dde8",\r
2782         "type": "success",\r
2783         "name": "success",\r
2784         "xml": "<outcome value='success'>\n",\r
2785         "comments": "",\r
2786         "outputs": 1,\r
2787         "x": 4044.8336181640625,\r
2788         "y": 2107,\r
2789         "z": "2902829f.18c74e",\r
2790         "wires": [\r
2791             [\r
2792                 "30cca3a0.b1e984"\r
2793             ]\r
2794         ]\r
2795     },\r
2796     {\r
2797         "id": "fd005c4a.d8bf",\r
2798         "type": "not-found",\r
2799         "name": "not-found",\r
2800         "xml": "<outcome value='not-found'>\n",\r
2801         "comments": "",\r
2802         "outputs": 1,\r
2803         "x": 4036.8336181640625,\r
2804         "y": 2162,\r
2805         "z": "2902829f.18c74e",\r
2806         "wires": [\r
2807             [\r
2808                 "13a9ea53.f74e26"\r
2809             ]\r
2810         ]\r
2811     },\r
2812     {\r
2813         "id": "939e8fdc.7e7718",\r
2814         "type": "other",\r
2815         "name": "other",\r
2816         "xml": "<outcome value='Other'>\n",\r
2817         "comments": "",\r
2818         "outputs": 1,\r
2819         "x": 4041.8336181640625,\r
2820         "y": 2219,\r
2821         "z": "2902829f.18c74e",\r
2822         "wires": [\r
2823             [\r
2824                 "7b021b51.27b804"\r
2825             ]\r
2826         ]\r
2827     },\r
2828     {\r
2829         "id": "7b021b51.27b804",\r
2830         "type": "returnFailure",\r
2831         "name": "return failure",\r
2832         "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
2833         "comments": "",\r
2834         "x": 4193.8336181640625,\r
2835         "y": 2220,\r
2836         "z": "2902829f.18c74e",\r
2837         "wires": []\r
2838     },\r
2839     {\r
2840         "id": "13a9ea53.f74e26",\r
2841         "type": "returnFailure",\r
2842         "name": "return failure",\r
2843         "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
2844         "comments": "",\r
2845         "x": 4204.8336181640625,\r
2846         "y": 2165,\r
2847         "z": "2902829f.18c74e",\r
2848         "wires": []\r
2849     },\r
2850     {\r
2851         "id": "30cca3a0.b1e984",\r
2852         "type": "block",\r
2853         "name": "block",\r
2854         "xml": "<block>\n",\r
2855         "atomic": "false",\r
2856         "comments": "",\r
2857         "outputs": 1,\r
2858         "x": 4189.2159423828125,\r
2859         "y": 2104.6556701660156,\r
2860         "z": "2902829f.18c74e",\r
2861         "wires": [\r
2862             [\r
2863                 "b6ffbea1.954de"\r
2864             ]\r
2865         ]\r
2866     },\r
2867     {\r
2868         "id": "528dc079.e1b708",\r
2869         "type": "set",\r
2870         "name": "set ltpId",\r
2871         "xml": "<set>\n<parameter name='tmp.dst.ltpId' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n",\r
2872         "comments": "",\r
2873         "x": 4489.33349609375,\r
2874         "y": 2323.0001220703125,\r
2875         "z": "2902829f.18c74e",\r
2876         "wires": []\r
2877     },\r
2878     {\r
2879         "id": "ef41d4a6.237198",\r
2880         "type": "set",\r
2881         "name": "set pnf-name",\r
2882         "xml": "<set>\n<parameter name='tmp.dst.pnf-name' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n",\r
2883         "comments": "",\r
2884         "x": 4490.33349609375,\r
2885         "y": 2428.0001220703125,\r
2886         "z": "2902829f.18c74e",\r
2887         "wires": []\r
2888     },\r
2889     {\r
2890         "id": "442d43d7.782e7c",\r
2891         "type": "comment",\r
2892         "name": "TODO: FIXME",\r
2893         "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
2894         "comments": "",\r
2895         "x": 4485.33349609375,\r
2896         "y": 2377.0001220703125,\r
2897         "z": "2902829f.18c74e",\r
2898         "wires": []\r
2899     },\r
2900     {\r
2901         "id": "2a02e2d9.dc0d9e",\r
2902         "type": "block",\r
2903         "name": "block : atomic",\r
2904         "xml": "<block atomic=\"true\">",\r
2905         "atomic": "true",\r
2906         "outputs": 1,\r
2907         "x": 4520.45068359375,\r
2908         "y": 2707.3404541015625,\r
2909         "z": "2902829f.18c74e",\r
2910         "wires": [\r
2911             [\r
2912                 "c9847dda.408b8",\r
2913                 "34fbe7b.83d4898",\r
2914                 "25621ae5.b8be26"\r
2915             ]\r
2916         ]\r
2917     },\r
2918     {\r
2919         "id": "c9847dda.408b8",\r
2920         "type": "set",\r
2921         "name": "set destination ttp-id",\r
2922         "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
2923         "comments": "",\r
2924         "x": 4735.45068359375,\r
2925         "y": 2669.3404541015625,\r
2926         "z": "2902829f.18c74e",\r
2927         "wires": []\r
2928     },\r
2929     {\r
2930         "id": "34fbe7b.83d4898",\r
2931         "type": "get-resource",\r
2932         "name": "get-resource src TTP",\r
2933         "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
2934         "comments": "",\r
2935         "outputs": 1,\r
2936         "x": 4732.45068359375,\r
2937         "y": 2708.3404541015625,\r
2938         "z": "2902829f.18c74e",\r
2939         "wires": [\r
2940             [\r
2941                 "57e83a4e.a0aa6c"\r
2942             ]\r
2943         ]\r
2944     },\r
2945     {\r
2946         "id": "25621ae5.b8be26",\r
2947         "type": "break",\r
2948         "name": "break",\r
2949         "xml": "<break>\n",\r
2950         "comments": "",\r
2951         "x": 4687.95068359375,\r
2952         "y": 2750.3404541015625,\r
2953         "z": "2902829f.18c74e",\r
2954         "wires": []\r
2955     },\r
2956     {\r
2957         "id": "57e83a4e.a0aa6c",\r
2958         "type": "success",\r
2959         "name": "success",\r
2960         "xml": "<outcome value='success'>\n",\r
2961         "comments": "",\r
2962         "outputs": 1,\r
2963         "x": 4912.95068359375,\r
2964         "y": 2707.3404541015625,\r
2965         "z": "2902829f.18c74e",\r
2966         "wires": [\r
2967             [\r
2968                 "1bf054a.fc9602b"\r
2969             ]\r
2970         ]\r
2971     },\r
2972     {\r
2973         "id": "1bf054a.fc9602b",\r
2974         "type": "block",\r
2975         "name": "block : atomic",\r
2976         "xml": "<block atomic=\"true\">",\r
2977         "atomic": "true",\r
2978         "outputs": 1,\r
2979         "x": 5070.95068359375,\r
2980         "y": 2707.3404541015625,\r
2981         "z": "2902829f.18c74e",\r
2982         "wires": [\r
2983             [\r
2984                 "84673a73.b83338"\r
2985             ]\r
2986         ]\r
2987     },\r
2988     {\r
2989         "id": "84673a73.b83338",\r
2990         "type": "set",\r
2991         "name": "set destination tunnel tp ip",\r
2992         "xml": "<set>\n<parameter name='destination.tunnel-tp-id' value=\"`$tmp.aai.destination-ttp.tunnel-tp-id`\" />\n",\r
2993         "comments": "",\r
2994         "x": 5277.95068359375,\r
2995         "y": 2707.3404541015625,\r
2996         "z": "2902829f.18c74e",\r
2997         "wires": []\r
2998     },\r
2999     {\r
3000         "id": "d76262ee.41fc78",\r
3001         "type": "outcome",\r
3002         "name": "esr-thirdparty-sdnc",\r
3003         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
3004         "comments": "",\r
3005         "outputs": 1,\r
3006         "x": 4771.33349609375,\r
3007         "y": 2123,\r
3008         "z": "2902829f.18c74e",\r
3009         "wires": [\r
3010             [\r
3011                 "16ae4cb2.9049f3"\r
3012             ]\r
3013         ]\r
3014     },\r
3015     {\r
3016         "id": "16ae4cb2.9049f3",\r
3017         "type": "block",\r
3018         "name": "block : atomic",\r
3019         "xml": "<block atomic=\"true\">",\r
3020         "atomic": "true",\r
3021         "outputs": 1,\r
3022         "x": 4948.33349609375,\r
3023         "y": 2115,\r
3024         "z": "2902829f.18c74e",\r
3025         "wires": [\r
3026             [\r
3027                 "e86ea938.d56ff",\r
3028                 "3118b07d.f07b4"\r
3029             ]\r
3030         ]\r
3031     },\r
3032     {\r
3033         "id": "b6ffbea1.954de",\r
3034         "type": "for",\r
3035         "name": "for each relationship",\r
3036         "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",\r
3037         "comments": "",\r
3038         "outputs": 1,\r
3039         "x": 4373.33349609375,\r
3040         "y": 2119,\r
3041         "z": "2902829f.18c74e",\r
3042         "wires": [\r
3043             [\r
3044                 "b9078c68.40a298"\r
3045             ]\r
3046         ]\r
3047     },\r
3048     {\r
3049         "id": "b9078c68.40a298",\r
3050         "type": "switchNode",\r
3051         "name": "switch related-to",\r
3052         "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",\r
3053         "comments": "",\r
3054         "outputs": 1,\r
3055         "x": 4568.33349609375,\r
3056         "y": 2119,\r
3057         "z": "2902829f.18c74e",\r
3058         "wires": [\r
3059             [\r
3060                 "d76262ee.41fc78",\r
3061                 "b2b1c906.01de2"\r
3062             ]\r
3063         ]\r
3064     },\r
3065     {\r
3066         "id": "3118b07d.f07b4",\r
3067         "type": "execute",\r
3068         "name": "get esr-thirdparty-sdnc",\r
3069         "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
3070         "comments": "",\r
3071         "outputs": 1,\r
3072         "x": 5156.33349609375,\r
3073         "y": 2122,\r
3074         "z": "2902829f.18c74e",\r
3075         "wires": [\r
3076             [\r
3077                 "6c958b0a.19f5a4",\r
3078                 "118baae.84358d5",\r
3079                 "1250b3fe.a83aa4"\r
3080             ]\r
3081         ]\r
3082     },\r
3083     {\r
3084         "id": "a44d9faa.fe0e4",\r
3085         "type": "block",\r
3086         "name": "block : atomic",\r
3087         "xml": "<block atomic=\"true\">",\r
3088         "atomic": "true",\r
3089         "outputs": 1,\r
3090         "x": 4950.33349609375,\r
3091         "y": 2188,\r
3092         "z": "2902829f.18c74e",\r
3093         "wires": [\r
3094             [\r
3095                 "b2c88a89.6bb6d"\r
3096             ]\r
3097         ]\r
3098     },\r
3099     {\r
3100         "id": "b2b1c906.01de2",\r
3101         "type": "outcome",\r
3102         "name": "network-resource",\r
3103         "xml": "<outcome value='network-resource'>",\r
3104         "comments": "",\r
3105         "outputs": 1,\r
3106         "x": 4773.33349609375,\r
3107         "y": 2196,\r
3108         "z": "2902829f.18c74e",\r
3109         "wires": [\r
3110             [\r
3111                 "a44d9faa.fe0e4"\r
3112             ]\r
3113         ]\r
3114     },\r
3115     {\r
3116         "id": "e86ea938.d56ff",\r
3117         "type": "set",\r
3118         "name": "set esr-thirdparty-sdnc domainB id",\r
3119         "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
3120         "comments": "",\r
3121         "x": 5186.33349609375,\r
3122         "y": 2070,\r
3123         "z": "2902829f.18c74e",\r
3124         "wires": []\r
3125     },\r
3126     {\r
3127         "id": "b2c88a89.6bb6d",\r
3128         "type": "set",\r
3129         "name": "set domainB ethernet layer network-id",\r
3130         "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
3131         "comments": "",\r
3132         "x": 5185.33349609375,\r
3133         "y": 2312,\r
3134         "z": "2902829f.18c74e",\r
3135         "wires": []\r
3136     },\r
3137     {\r
3138         "id": "6c958b0a.19f5a4",\r
3139         "type": "success",\r
3140         "name": "success",\r
3141         "xml": "<outcome value='success'>\n",\r
3142         "comments": "",\r
3143         "outputs": 1,\r
3144         "x": 5366.33349609375,\r
3145         "y": 2113,\r
3146         "z": "2902829f.18c74e",\r
3147         "wires": [\r
3148             [\r
3149                 "2e246f5a.b4103"\r
3150             ]\r
3151         ]\r
3152     },\r
3153     {\r
3154         "id": "118baae.84358d5",\r
3155         "type": "not-found",\r
3156         "name": "not-found",\r
3157         "xml": "<outcome value='not-found'>\n",\r
3158         "comments": "",\r
3159         "outputs": 1,\r
3160         "x": 5358.33349609375,\r
3161         "y": 2168,\r
3162         "z": "2902829f.18c74e",\r
3163         "wires": [\r
3164             [\r
3165                 "66d6dc00.1bed6c"\r
3166             ]\r
3167         ]\r
3168     },\r
3169     {\r
3170         "id": "1250b3fe.a83aa4",\r
3171         "type": "other",\r
3172         "name": "other",\r
3173         "xml": "<outcome value='Other'>\n",\r
3174         "comments": "",\r
3175         "outputs": 1,\r
3176         "x": 5363.33349609375,\r
3177         "y": 2225,\r
3178         "z": "2902829f.18c74e",\r
3179         "wires": [\r
3180             [\r
3181                 "795bee7e.95831"\r
3182             ]\r
3183         ]\r
3184     },\r
3185     {\r
3186         "id": "795bee7e.95831",\r
3187         "type": "returnFailure",\r
3188         "name": "return failure",\r
3189         "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
3190         "comments": "",\r
3191         "x": 5515.33349609375,\r
3192         "y": 2226,\r
3193         "z": "2902829f.18c74e",\r
3194         "wires": []\r
3195     },\r
3196     {\r
3197         "id": "66d6dc00.1bed6c",\r
3198         "type": "returnFailure",\r
3199         "name": "return failure",\r
3200         "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
3201         "comments": "",\r
3202         "x": 5526.33349609375,\r
3203         "y": 2171,\r
3204         "z": "2902829f.18c74e",\r
3205         "wires": []\r
3206     },\r
3207     {\r
3208         "id": "2e246f5a.b4103",\r
3209         "type": "block",\r
3210         "name": "block",\r
3211         "xml": "<block>\n",\r
3212         "atomic": "false",\r
3213         "comments": "",\r
3214         "outputs": 1,\r
3215         "x": 5510.7158203125,\r
3216         "y": 2110.6556701660156,\r
3217         "z": "2902829f.18c74e",\r
3218         "wires": [\r
3219             [\r
3220                 "c7de596d.cf628"\r
3221             ]\r
3222         ]\r
3223     },\r
3224     {\r
3225         "id": "c7de596d.cf628",\r
3226         "type": "set",\r
3227         "name": "set controller domainB data",\r
3228         "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
3229         "comments": "",\r
3230         "x": 5725.33349609375,\r
3231         "y": 2107,\r
3232         "z": "2902829f.18c74e",\r
3233         "wires": []\r
3234     },\r
3235     {\r
3236         "id": "7c523485.24203c",\r
3237         "type": "set",\r
3238         "name": "set LEAF stuff",\r
3239         "xml": "<set>\n<parameter name='tmp.LEAF.pnf-name-long' 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\n<!--<parameter name='tmp.LEAF.pnf-name-short' value=\"`$param-prefix-domainA-pnfName[8]`\" />-->\n<parameter name='tmp.LEAF.pnf-name-short' value=\"`$tmp.src.pnf-name`\" />\n\n<parameter name='tmp.LEAF.uni-p-interface-long' value=\"`$tmp.aai.network-route-A.next-hop`\" />\n<parameter name='tmp.LEAF.uni-tp-id' value=\"`$tmp.src.ltpId`\" />\n",\r
3240         "comments": "",\r
3241         "x": 3224,\r
3242         "y": 1717,\r
3243         "z": "2902829f.18c74e",\r
3244         "wires": []\r
3245     },\r
3246     {\r
3247         "id": "fded3756.dad178",\r
3248         "type": "comment",\r
3249         "name": "This is it (should be)",\r
3250         "info": "",\r
3251         "comments": "",\r
3252         "x": 4446,\r
3253         "y": 1000,\r
3254         "z": "2902829f.18c74e",\r
3255         "wires": []\r
3256     },\r
3257     {\r
3258         "id": "3766add2.8d805a",\r
3259         "type": "comment",\r
3260         "name": "This is it (should be)",\r
3261         "info": "",\r
3262         "comments": "",\r
3263         "x": 4438,\r
3264         "y": 1090,\r
3265         "z": "2902829f.18c74e",\r
3266         "wires": []\r
3267     },\r
3268     {\r
3269         "id": "6836f0a.48b871",\r
3270         "type": "set",\r
3271         "name": "set ROOT stuff",\r
3272         "xml": "<set>\n<parameter name='tmp.ROOT.pnf-name-long' 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\n<!--<parameter name='tmp.ROOT.pnf-name-short' value=\"`$param-prefix-domainB-pnfName[8]`\" />-->\n<parameter name='tmp.ROOT.pnf-name-short' value=\"`$tmp.dst.pnf-name`\" />\n\n<parameter name='tmp.ROOT.uni-p-interface-long' value=\"`$tmp.aai.network-route-B.next-hop`\" />\n<parameter name='tmp.ROOT.uni-tp-id' value=\"`$tmp.dst.ltpId`\" />\n",\r
3273         "comments": "",\r
3274         "x": 3205,\r
3275         "y": 2573,\r
3276         "z": "2902829f.18c74e",\r
3277         "wires": []\r
3278     },\r
3279     {\r
3280         "id": "b794c846.a3a7a8",\r
3281         "type": "call",\r
3282         "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-logic",\r
3283         "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-logic' mode='sync' >\n\n",\r
3284         "comments": "",\r
3285         "outputs": 1,\r
3286         "x": 3356,\r
3287         "y": 2821,\r
3288         "z": "2902829f.18c74e",\r
3289         "wires": [\r
3290             []\r
3291         ]\r
3292     },\r
3293     {\r
3294         "id": "2e62e80b.5f4db",\r
3295         "type": "switchNode",\r
3296         "name": "switch found-middle-man?",\r
3297         "xml": "<switch test='`$found-middle-man`'>\n",\r
3298         "comments": "",\r
3299         "outputs": 1,\r
3300         "x": 3233,\r
3301         "y": 2931,\r
3302         "z": "2902829f.18c74e",\r
3303         "wires": [\r
3304             [\r
3305                 "91c4e5f7.8ea498",\r
3306                 "651d0ecc.91f9"\r
3307             ]\r
3308         ]\r
3309     },\r
3310     {\r
3311         "id": "91c4e5f7.8ea498",\r
3312         "type": "outcomeFalse",\r
3313         "name": "false",\r
3314         "xml": "<outcome value='false'>\n",\r
3315         "comments": "",\r
3316         "outputs": 1,\r
3317         "x": 3417,\r
3318         "y": 2910,\r
3319         "z": "2902829f.18c74e",\r
3320         "wires": [\r
3321             [\r
3322                 "e83ca4b2.702b38"\r
3323             ]\r
3324         ]\r
3325     },\r
3326     {\r
3327         "id": "651d0ecc.91f9",\r
3328         "type": "outcomeTrue",\r
3329         "name": "true",\r
3330         "xml": "<outcome value='true'>\n",\r
3331         "comments": "",\r
3332         "outputs": 1,\r
3333         "x": 3348,\r
3334         "y": 4835,\r
3335         "z": "2902829f.18c74e",\r
3336         "wires": [\r
3337             [\r
3338                 "e7980e09.0eb63"\r
3339             ]\r
3340         ]\r
3341     },\r
3342     {\r
3343         "id": "e7980e09.0eb63",\r
3344         "type": "block",\r
3345         "name": "block : atomic",\r
3346         "xml": "<block atomic='true'>",\r
3347         "atomic": "true",\r
3348         "comments": "",\r
3349         "outputs": 1,\r
3350         "x": 3503,\r
3351         "y": 4828,\r
3352         "z": "2902829f.18c74e",\r
3353         "wires": [\r
3354             [\r
3355                 "1aa8a9f7.34b03e",\r
3356                 "b0ed6ff1.30772",\r
3357                 "727be5c.c27771c"\r
3358             ]\r
3359         ]\r
3360     },\r
3361     {\r
3362         "id": "e83ca4b2.702b38",\r
3363         "type": "block",\r
3364         "name": "block : atomic",\r
3365         "xml": "<block atomic='true'>",\r
3366         "atomic": "true",\r
3367         "comments": "",\r
3368         "outputs": 1,\r
3369         "x": 3560,\r
3370         "y": 2910,\r
3371         "z": "2902829f.18c74e",\r
3372         "wires": [\r
3373             [\r
3374                 "d8bbc948.15f3d",\r
3375                 "4c5911e7.00bf",\r
3376                 "12a3e526.881a1b",\r
3377                 "832127bd.deb14",\r
3378                 "310c39f.91bd146",\r
3379                 "10ac9372.85589d",\r
3380                 "eff2b9f.ec05748",\r
3381                 "e161ec1a.4abce",\r
3382                 "9f446fe.9ec171",\r
3383                 "53557e78.f7c168",\r
3384                 "a884ac0.a40fdd8",\r
3385                 "7b528859.fb04",\r
3386                 "4b76c053.d564f8",\r
3387                 "90ff1f35.eee16",\r
3388                 "1b3c7e18.ddb16a",\r
3389                 "3e78a7bc.55ca98",\r
3390                 "8cf629c6.d63328"\r
3391             ]\r
3392         ]\r
3393     },\r
3394     {\r
3395         "id": "9f446fe.9ec171",\r
3396         "type": "execute",\r
3397         "name": "execute UUID generator for connectivity domainB",\r
3398         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainB-uuid\"/>\n",\r
3399         "comments": "",\r
3400         "outputs": 1,\r
3401         "x": 3871,\r
3402         "y": 3265,\r
3403         "z": "2902829f.18c74e",\r
3404         "wires": [\r
3405             []\r
3406         ]\r
3407     },\r
3408     {\r
3409         "id": "d8bbc948.15f3d",\r
3410         "type": "save",\r
3411         "name": "save connectivity resource in AAI",\r
3412         "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<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' -->\n<!--      key='connectivity.connectivity-id = $tmp.ROOT.uni-p-interface-long'>-->\n<!--<parameter name='connectivity-id' value='`$tmp.ROOT.uni-p-interface-long`' />-->\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<parameter name='color-aware' value='`$tmp.ROOT.uni-p-interface-long`' />\n<parameter name='vpn-type' value='root' />\n\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\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
3413         "comments": "",\r
3414         "outputs": 1,\r
3415         "x": 3825,\r
3416         "y": 3363,\r
3417         "z": "2902829f.18c74e",\r
3418         "wires": [\r
3419             []\r
3420         ]\r
3421     },\r
3422     {\r
3423         "id": "4c5911e7.00bf",\r
3424         "type": "save",\r
3425         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
3426         "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
3427         "comments": "",\r
3428         "outputs": 1,\r
3429         "x": 3961,\r
3430         "y": 3410,\r
3431         "z": "2902829f.18c74e",\r
3432         "wires": [\r
3433             []\r
3434         ]\r
3435     },\r
3436     {\r
3437         "id": "ec410c1b.c077a8",\r
3438         "type": "comment",\r
3439         "name": "Create ROOT connectivity",\r
3440         "info": "",\r
3441         "comments": "",\r
3442         "x": 3792,\r
3443         "y": 3214,\r
3444         "z": "2902829f.18c74e",\r
3445         "wires": []\r
3446     },\r
3447     {\r
3448         "id": "d6af901.13a67f",\r
3449         "type": "comment",\r
3450         "name": "create middle man connectivity and ...",\r
3451         "info": "1- create middle man connectivity\n2- create relation with all connectivities\n   in the path\n3- put srcTtp (+dstTtp) somewhere in the\n   vpn-binding -> this is for later on to find\n   which OTN tunnel's bandwidth has to be increased.\n5- create UNIs\n4- create relationship to UNIs",\r
3452         "comments": "",\r
3453         "x": 4318,\r
3454         "y": 3705,\r
3455         "z": "2902829f.18c74e",\r
3456         "wires": []\r
3457     },\r
3458     {\r
3459         "id": "12a3e526.881a1b",\r
3460         "type": "execute",\r
3461         "name": "execute UUID generator for connectivity middle-man",\r
3462         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-middle-man-uuid\"/>\n",\r
3463         "comments": "",\r
3464         "outputs": 1,\r
3465         "x": 3882,\r
3466         "y": 3744,\r
3467         "z": "2902829f.18c74e",\r
3468         "wires": [\r
3469             []\r
3470         ]\r
3471     },\r
3472     {\r
3473         "id": "832127bd.deb14",\r
3474         "type": "save",\r
3475         "name": "save connectivity resource in AAI",\r
3476         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $prop.connectivity-middle-man-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-middle-man-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<!--The followings are not needed for the middle-man-connectivity-->\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<parameter name='color-aware' value='`$tmp.ROOT.uni-p-interface-long`' />\n<parameter name='vpn-type' value='mdsc' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\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
3477         "comments": "",\r
3478         "outputs": 1,\r
3479         "x": 3830,\r
3480         "y": 3795,\r
3481         "z": "2902829f.18c74e",\r
3482         "wires": [\r
3483             []\r
3484         ]\r
3485     },\r
3486     {\r
3487         "id": "310c39f.91bd146",\r
3488         "type": "save",\r
3489         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
3490         "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-middle-man-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-middle-man-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
3491         "comments": "",\r
3492         "outputs": 1,\r
3493         "x": 3966,\r
3494         "y": 3842,\r
3495         "z": "2902829f.18c74e",\r
3496         "wires": [\r
3497             []\r
3498         ]\r
3499     },\r
3500     {\r
3501         "id": "dff7d863.27131",\r
3502         "type": "comment",\r
3503         "name": "Create MIDDLE-MAN connectivity",\r
3504         "info": "",\r
3505         "comments": "",\r
3506         "x": 3823,\r
3507         "y": 3704,\r
3508         "z": "2902829f.18c74e",\r
3509         "wires": []\r
3510     },\r
3511     {\r
3512         "id": "7b814ee5.031238",\r
3513         "type": "block",\r
3514         "name": "block : atomic",\r
3515         "xml": "<block atomic='true'>",\r
3516         "atomic": "true",\r
3517         "comments": "",\r
3518         "outputs": 1,\r
3519         "x": 4253,\r
3520         "y": 3901,\r
3521         "z": "2902829f.18c74e",\r
3522         "wires": [\r
3523             []\r
3524         ]\r
3525     },\r
3526     {\r
3527         "id": "10ac9372.85589d",\r
3528         "type": "save",\r
3529         "name": "get middle-man connectivity from aai",\r
3530         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t    key=\"connectivity.connectivity-id = $prop.connectivity-middle-man-uuid\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"middle-man-conn\" >\n",\r
3531         "comments": "",\r
3532         "outputs": 1,\r
3533         "x": 3844,\r
3534         "y": 3948,\r
3535         "z": "2902829f.18c74e",\r
3536         "wires": [\r
3537             [\r
3538                 "7001b67.e717f48",\r
3539                 "2d31ff61.2f04d",\r
3540                 "ccc557b3.890908"\r
3541             ]\r
3542         ]\r
3543     },\r
3544     {\r
3545         "id": "7001b67.e717f48",\r
3546         "type": "success",\r
3547         "name": "success",\r
3548         "xml": "<outcome value='success'>\n",\r
3549         "comments": "",\r
3550         "outputs": 1,\r
3551         "x": 4091,\r
3552         "y": 3902,\r
3553         "z": "2902829f.18c74e",\r
3554         "wires": [\r
3555             [\r
3556                 "7b814ee5.031238"\r
3557             ]\r
3558         ]\r
3559     },\r
3560     {\r
3561         "id": "2d31ff61.2f04d",\r
3562         "type": "not-found",\r
3563         "name": "not-found",\r
3564         "xml": "<outcome value='not-found'>\n",\r
3565         "comments": "",\r
3566         "outputs": 1,\r
3567         "x": 4091.490966796875,\r
3568         "y": 3947.5740356445312,\r
3569         "z": "2902829f.18c74e",\r
3570         "wires": [\r
3571             [\r
3572                 "cf949a05.c89aa8"\r
3573             ]\r
3574         ]\r
3575     },\r
3576     {\r
3577         "id": "ccc557b3.890908",\r
3578         "type": "failure",\r
3579         "name": "failure",\r
3580         "xml": "<outcome value='failure'>\n",\r
3581         "comments": "",\r
3582         "outputs": 1,\r
3583         "x": 4089,\r
3584         "y": 3991,\r
3585         "z": "2902829f.18c74e",\r
3586         "wires": [\r
3587             [\r
3588                 "e98195a6.6d12"\r
3589             ]\r
3590         ]\r
3591     },\r
3592     {\r
3593         "id": "cf949a05.c89aa8",\r
3594         "type": "returnFailure",\r
3595         "name": "return failure",\r
3596         "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
3597         "comments": "",\r
3598         "x": 4254.0623779296875,\r
3599         "y": 3947.8597717285156,\r
3600         "z": "2902829f.18c74e",\r
3601         "wires": []\r
3602     },\r
3603     {\r
3604         "id": "e98195a6.6d12",\r
3605         "type": "returnFailure",\r
3606         "name": "return failure",\r
3607         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
3608         "comments": "",\r
3609         "x": 4258,\r
3610         "y": 3992,\r
3611         "z": "2902829f.18c74e",\r
3612         "wires": []\r
3613     },\r
3614     {\r
3615         "id": "1b3c7e18.ddb16a",\r
3616         "type": "save",\r
3617         "name": "save middle-man-conn relationship to connectivity-LEAF, in AAI",\r
3618         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' \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
3619         "comments": "",\r
3620         "outputs": 1,\r
3621         "x": 3901,\r
3622         "y": 4227,\r
3623         "z": "2902829f.18c74e",\r
3624         "wires": [\r
3625             []\r
3626         ]\r
3627     },\r
3628     {\r
3629         "id": "3e78a7bc.55ca98",\r
3630         "type": "save",\r
3631         "name": "save middle-man-conn relationship to connectivity-ROOT, in AAI",\r
3632         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' \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
3633         "comments": "",\r
3634         "outputs": 1,\r
3635         "x": 3904,\r
3636         "y": 4272,\r
3637         "z": "2902829f.18c74e",\r
3638         "wires": [\r
3639             []\r
3640         ]\r
3641     },\r
3642     {\r
3643         "id": "15c4d898.5d69ef",\r
3644         "type": "save",\r
3645         "name": "save middle-man-conn relationship to UNI-LEAF, in AAI",\r
3646         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"uni\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/unis/uni/' + $tmp.LEAF.uni-p-interface-long`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"uni.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.LEAF.uni-p-interface-long`\" />",\r
3647         "comments": "",\r
3648         "outputs": 1,\r
3649         "x": 3893,\r
3650         "y": 4063,\r
3651         "z": "2902829f.18c74e",\r
3652         "wires": [\r
3653             []\r
3654         ]\r
3655     },\r
3656     {\r
3657         "id": "b9514e95.f8a09",\r
3658         "type": "save",\r
3659         "name": "save middle-man-conn relationship to UNI-ROOT, in AAI",\r
3660         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"uni\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/unis/uni/' + $tmp.ROOT.uni-p-interface-long`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"uni.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.ROOT.uni-p-interface-long`\" />",\r
3661         "comments": "",\r
3662         "outputs": 1,\r
3663         "x": 3895,\r
3664         "y": 4110,\r
3665         "z": "2902829f.18c74e",\r
3666         "wires": [\r
3667             []\r
3668         ]\r
3669     },\r
3670     {\r
3671         "id": "c557914b.681778",\r
3672         "type": "comment",\r
3673         "name": "The following two will be done in F1",\r
3674         "info": "",\r
3675         "comments": "",\r
3676         "x": 3817,\r
3677         "y": 4180,\r
3678         "z": "2902829f.18c74e",\r
3679         "wires": []\r
3680     },\r
3681     {\r
3682         "id": "55d807b9.9e0f1",\r
3683         "type": "save",\r
3684         "name": "save middle-man-conn relationship to UNI-LEAF, in AAI",\r
3685         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"uni\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/unis/uni/' + $tmp.LEAF.uni-p-interface-long`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"uni.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.LEAF.uni-p-interface-long`\" />",\r
3686         "comments": "",\r
3687         "outputs": 1,\r
3688         "x": 4424,\r
3689         "y": 4909,\r
3690         "z": "2902829f.18c74e",\r
3691         "wires": [\r
3692             []\r
3693         ]\r
3694     },\r
3695     {\r
3696         "id": "1aa8a9f7.34b03e",\r
3697         "type": "switchNode",\r
3698         "name": "switch no-pce-call",\r
3699         "xml": "<switch test='`$no-pce-call`'>\n",\r
3700         "comments": "",\r
3701         "outputs": 1,\r
3702         "x": 3718,\r
3703         "y": 4809,\r
3704         "z": "2902829f.18c74e",\r
3705         "wires": [\r
3706             [\r
3707                 "449091f.4415ef",\r
3708                 "1ea76e22.242bea"\r
3709             ]\r
3710         ]\r
3711     },\r
3712     {\r
3713         "id": "1ea76e22.242bea",\r
3714         "type": "outcomeFalse",\r
3715         "name": "false",\r
3716         "xml": "<outcome value='false'>\n",\r
3717         "comments": "",\r
3718         "outputs": 1,\r
3719         "x": 3890,\r
3720         "y": 4806,\r
3721         "z": "2902829f.18c74e",\r
3722         "wires": [\r
3723             [\r
3724                 "8b1b5cc1.1af92"\r
3725             ]\r
3726         ]\r
3727     },\r
3728     {\r
3729         "id": "449091f.4415ef",\r
3730         "type": "outcomeFalse",\r
3731         "name": "true",\r
3732         "xml": "<outcome value='true'>\n",\r
3733         "comments": "",\r
3734         "outputs": 1,\r
3735         "x": 3803,\r
3736         "y": 5906,\r
3737         "z": "2902829f.18c74e",\r
3738         "wires": [\r
3739             [\r
3740                 "6b1cb253.86fb4c"\r
3741             ]\r
3742         ]\r
3743     },\r
3744     {\r
3745         "id": "c26b2751.5ae09",\r
3746         "type": "comment",\r
3747         "name": "1 --> PCE is needed",\r
3748         "info": "",\r
3749         "comments": "",\r
3750         "x": 3903,\r
3751         "y": 4776,\r
3752         "z": "2902829f.18c74e",\r
3753         "wires": []\r
3754     },\r
3755     {\r
3756         "id": "ace6e9f0.39e568",\r
3757         "type": "comment",\r
3758         "name": "2 --> no need to call PCE",\r
3759         "info": "",\r
3760         "comments": "",\r
3761         "x": 3874,\r
3762         "y": 5864,\r
3763         "z": "2902829f.18c74e",\r
3764         "wires": []\r
3765     },\r
3766     {\r
3767         "id": "eff2b9f.ec05748",\r
3768         "type": "call",\r
3769         "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-F1",\r
3770         "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1' mode='sync' >\n\n",\r
3771         "comments": "",\r
3772         "outputs": 1,\r
3773         "x": 3901,\r
3774         "y": 4336,\r
3775         "z": "2902829f.18c74e",\r
3776         "wires": [\r
3777             []\r
3778         ]\r
3779     },\r
3780     {\r
3781         "id": "8b1b5cc1.1af92",\r
3782         "type": "block",\r
3783         "name": "block : atomic",\r
3784         "xml": "<block atomic='true'>",\r
3785         "atomic": "true",\r
3786         "comments": "",\r
3787         "outputs": 1,\r
3788         "x": 4066,\r
3789         "y": 4808,\r
3790         "z": "2902829f.18c74e",\r
3791         "wires": [\r
3792             [\r
3793                 "92650fb7.4fb248",\r
3794                 "32b221b8.94e72e",\r
3795                 "c940cf7e.ee51b",\r
3796                 "dce0cedd.454b5",\r
3797                 "5ecdaa6f.e24ff4",\r
3798                 "3829dc12.3b5b24"\r
3799             ]\r
3800         ]\r
3801     },\r
3802     {\r
3803         "id": "6001979f.e727",\r
3804         "type": "comment",\r
3805         "name": "Use the middle-man-conn.eth-srv-name for the LEAF connectivity's eth srv name",\r
3806         "info": "",\r
3807         "comments": "",\r
3808         "x": 5472,\r
3809         "y": 4534,\r
3810         "z": "2902829f.18c74e",\r
3811         "wires": []\r
3812     },\r
3813     {\r
3814         "id": "92650fb7.4fb248",\r
3815         "type": "call",\r
3816         "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-F1",\r
3817         "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1' mode='sync' >\n\n",\r
3818         "comments": "",\r
3819         "outputs": 1,\r
3820         "x": 4419,\r
3821         "y": 5212,\r
3822         "z": "2902829f.18c74e",\r
3823         "wires": [\r
3824             []\r
3825         ]\r
3826     },\r
3827     {\r
3828         "id": "4d81f93.f62ae88",\r
3829         "type": "call",\r
3830         "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-F1-activate",\r
3831         "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1-activate' mode='sync' >\n\n",\r
3832         "comments": "",\r
3833         "outputs": 1,\r
3834         "x": 3911,\r
3835         "y": 4391,\r
3836         "z": "2902829f.18c74e",\r
3837         "wires": [\r
3838             []\r
3839         ]\r
3840     },\r
3841     {\r
3842         "id": "9c2b0edc.50b4c",\r
3843         "type": "call",\r
3844         "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-F1-activate",\r
3845         "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1-activate' mode='sync' >\n\n",\r
3846         "comments": "",\r
3847         "outputs": 1,\r
3848         "x": 4447,\r
3849         "y": 5263,\r
3850         "z": "2902829f.18c74e",\r
3851         "wires": [\r
3852             []\r
3853         ]\r
3854     },\r
3855     {\r
3856         "id": "e161ec1a.4abce",\r
3857         "type": "save",\r
3858         "name": "save connectivityB relationship to UNI-ROOT, in AAI",\r
3859         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"uni\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/unis/uni/' + $tmp.ROOT.uni-p-interface-long`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"uni.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.ROOT.uni-p-interface-long`\" />",\r
3860         "comments": "",\r
3861         "outputs": 1,\r
3862         "x": 3877,\r
3863         "y": 3604,\r
3864         "z": "2902829f.18c74e",\r
3865         "wires": [\r
3866             []\r
3867         ]\r
3868     },\r
3869     {\r
3870         "id": "d5e12d5f.415ec",\r
3871         "type": "save",\r
3872         "name": "save connectivityA relationship to UNI-LEAF, in AAI",\r
3873         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $prop.connectivity-domainA-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"uni\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/unis/uni/' + $tmp.LEAF.uni-p-interface-long`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"uni.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.LEAF.uni-p-interface-long`\" />",\r
3874         "comments": "",\r
3875         "outputs": 1,\r
3876         "x": 3337,\r
3877         "y": 1823,\r
3878         "z": "2902829f.18c74e",\r
3879         "wires": [\r
3880             []\r
3881         ]\r
3882     },\r
3883     {\r
3884         "id": "47f64a4f.cc38f4",\r
3885         "type": "save",\r
3886         "name": "save LEAF UNI in AAI",\r
3887         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n      key='uni.id = $tmp.LEAF.uni-p-interface-long'>\n<parameter name='id' value='`$tmp.LEAF.uni-p-interface-long`' />\n<parameter name='tp-id' value='`$tmp.LEAF.uni-p-interface-short`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n",\r
3888         "comments": "",\r
3889         "outputs": 1,\r
3890         "x": 3244,\r
3891         "y": 1770,\r
3892         "z": "2902829f.18c74e",\r
3893         "wires": [\r
3894             []\r
3895         ]\r
3896     },\r
3897     {\r
3898         "id": "461bf5c9.7233b4",\r
3899         "type": "set",\r
3900         "name": "set prop.connectivity-domainB-uuid=tmp.ROOT.uni-p-interface-long",\r
3901         "xml": "<set>\n<parameter name='prop.connectivity-domainB-uuid' value=\"`$tmp.ROOT.uni-p-interface-long`\" />\n",\r
3902         "comments": "",\r
3903         "x": 3927,\r
3904         "y": 3307,\r
3905         "z": "2902829f.18c74e",\r
3906         "wires": []\r
3907     },\r
3908     {\r
3909         "id": "53557e78.f7c168",\r
3910         "type": "execute",\r
3911         "name": "execute UUID generator for connectivity domainA",\r
3912         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-domainA-uuid\"/>\n",\r
3913         "comments": "",\r
3914         "outputs": 1,\r
3915         "x": 3874,\r
3916         "y": 2895,\r
3917         "z": "2902829f.18c74e",\r
3918         "wires": [\r
3919             []\r
3920         ]\r
3921     },\r
3922     {\r
3923         "id": "a884ac0.a40fdd8",\r
3924         "type": "save",\r
3925         "name": "save connectivity resource in AAI",\r
3926         "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<parameter name='vpn-type' value='leaf' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\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
3927         "comments": "",\r
3928         "outputs": 1,\r
3929         "x": 3822,\r
3930         "y": 2943,\r
3931         "z": "2902829f.18c74e",\r
3932         "wires": [\r
3933             []\r
3934         ]\r
3935     },\r
3936     {\r
3937         "id": "7b528859.fb04",\r
3938         "type": "save",\r
3939         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
3940         "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
3941         "comments": "",\r
3942         "outputs": 1,\r
3943         "x": 3950,\r
3944         "y": 2990,\r
3945         "z": "2902829f.18c74e",\r
3946         "wires": [\r
3947             []\r
3948         ]\r
3949     },\r
3950     {\r
3951         "id": "145ad0a4.4a593f",\r
3952         "type": "comment",\r
3953         "name": "Create LEAF connectivity",\r
3954         "info": "",\r
3955         "comments": "",\r
3956         "x": 3787,\r
3957         "y": 2853,\r
3958         "z": "2902829f.18c74e",\r
3959         "wires": []\r
3960     },\r
3961     {\r
3962         "id": "4b76c053.d564f8",\r
3963         "type": "save",\r
3964         "name": "save LEAF UNI in AAI",\r
3965         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n      key='uni.id = $tmp.LEAF.uni-p-interface-long'>\n<parameter name='id' value='`$tmp.LEAF.uni-p-interface-long`' />\n<parameter name='tp-id' value='`$tmp.LEAF.uni-tp-id`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n",\r
3966         "comments": "",\r
3967         "outputs": 1,\r
3968         "x": 3784,\r
3969         "y": 3081,\r
3970         "z": "2902829f.18c74e",\r
3971         "wires": [\r
3972             []\r
3973         ]\r
3974     },\r
3975     {\r
3976         "id": "90ff1f35.eee16",\r
3977         "type": "save",\r
3978         "name": "save connectivityA relationship to UNI-LEAF, in AAI",\r
3979         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"uni\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/unis/uni/' + $tmp.LEAF.uni-p-interface-long`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"uni.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.LEAF.uni-p-interface-long`\" />",\r
3980         "comments": "",\r
3981         "outputs": 1,\r
3982         "x": 3877,\r
3983         "y": 3134,\r
3984         "z": "2902829f.18c74e",\r
3985         "wires": [\r
3986             []\r
3987         ]\r
3988     },\r
3989     {\r
3990         "id": "f9c3a7e4.4b967",\r
3991         "type": "comment",\r
3992         "name": "Create LEAF UNI",\r
3993         "info": "",\r
3994         "comments": "",\r
3995         "x": 3768,\r
3996         "y": 3037,\r
3997         "z": "2902829f.18c74e",\r
3998         "wires": []\r
3999     },\r
4000     {\r
4001         "id": "c6c09b88.1384d8",\r
4002         "type": "comment",\r
4003         "name": "Create ROOT UNI",\r
4004         "info": "",\r
4005         "comments": "",\r
4006         "x": 3774,\r
4007         "y": 3487,\r
4008         "z": "2902829f.18c74e",\r
4009         "wires": []\r
4010     },\r
4011     {\r
4012         "id": "dce0cedd.454b5",\r
4013         "type": "save",\r
4014         "name": "save LEAF UNI in AAI",\r
4015         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n      key='uni.id = $tmp.LEAF.uni-p-interface-long'>\n<parameter name='id' value='`$tmp.LEAF.uni-p-interface-long`' />\n<parameter name='tp-id' value='`$tmp.LEAF.uni-tp-id`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n",\r
4016         "comments": "",\r
4017         "outputs": 1,\r
4018         "x": 4341,\r
4019         "y": 4542,\r
4020         "z": "2902829f.18c74e",\r
4021         "wires": [\r
4022             []\r
4023         ]\r
4024     },\r
4025     {\r
4026         "id": "d819a295.d1d948",\r
4027         "type": "comment",\r
4028         "name": "Create LEAF UNI",\r
4029         "info": "",\r
4030         "comments": "",\r
4031         "x": 4325,\r
4032         "y": 4498,\r
4033         "z": "2902829f.18c74e",\r
4034         "wires": []\r
4035     },\r
4036     {\r
4037         "id": "8a0e3e5f.c139f",\r
4038         "type": "comment",\r
4039         "name": "Create LEAF connectivity",\r
4040         "info": "",\r
4041         "comments": "",\r
4042         "x": 5072,\r
4043         "y": 4529,\r
4044         "z": "2902829f.18c74e",\r
4045         "wires": []\r
4046     },\r
4047     {\r
4048         "id": "3d40af5d.b5351",\r
4049         "type": "execute",\r
4050         "name": "execute UUID generator for connectivity domainA",\r
4051         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-domainA-uuid\"/>\n",\r
4052         "comments": "",\r
4053         "outputs": 1,\r
4054         "x": 5159,\r
4055         "y": 4571,\r
4056         "z": "2902829f.18c74e",\r
4057         "wires": [\r
4058             []\r
4059         ]\r
4060     },\r
4061     {\r
4062         "id": "113bf6b.aca4d89",\r
4063         "type": "save",\r
4064         "name": "save connectivity resource in AAI",\r
4065         "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='`$middle-man-conn.etht-svc-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<parameter name='vpn-type' value='leaf' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\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
4066         "comments": "",\r
4067         "outputs": 1,\r
4068         "x": 5107,\r
4069         "y": 4619,\r
4070         "z": "2902829f.18c74e",\r
4071         "wires": [\r
4072             []\r
4073         ]\r
4074     },\r
4075     {\r
4076         "id": "e3b325e.735f958",\r
4077         "type": "save",\r
4078         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
4079         "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
4080         "comments": "",\r
4081         "outputs": 1,\r
4082         "x": 5235,\r
4083         "y": 4666,\r
4084         "z": "2902829f.18c74e",\r
4085         "wires": [\r
4086             []\r
4087         ]\r
4088     },\r
4089     {\r
4090         "id": "3829dc12.3b5b24",\r
4091         "type": "save",\r
4092         "name": "save connectivityA relationship to UNI-LEAF, in AAI",\r
4093         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"uni\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/unis/uni/' + $tmp.LEAF.uni-p-interface-long`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"uni.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.LEAF.uni-p-interface-long`\" />",\r
4094         "comments": "",\r
4095         "outputs": 1,\r
4096         "x": 4412,\r
4097         "y": 4951,\r
4098         "z": "2902829f.18c74e",\r
4099         "wires": [\r
4100             []\r
4101         ]\r
4102     },\r
4103     {\r
4104         "id": "78032561.382d8c",\r
4105         "type": "comment",\r
4106         "name": "populate connectivity-B variable in the context map",\r
4107         "info": "",\r
4108         "comments": "",\r
4109         "x": 4395,\r
4110         "y": 5013,\r
4111         "z": "2902829f.18c74e",\r
4112         "wires": []\r
4113     },\r
4114     {\r
4115         "id": "32b221b8.94e72e",\r
4116         "type": "call",\r
4117         "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-ROOT-conn",\r
4118         "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-ROOT-conn' mode='sync' >\n\n",\r
4119         "comments": "",\r
4120         "outputs": 1,\r
4121         "x": 4506,\r
4122         "y": 5055,\r
4123         "z": "2902829f.18c74e",\r
4124         "wires": [\r
4125             []\r
4126         ]\r
4127     },\r
4128     {\r
4129         "id": "ddb22b48.c7951",\r
4130         "type": "set",\r
4131         "name": "set prop.connectivity-domainB-uuid",\r
4132         "xml": "<set>\n<!--<parameter name='prop.connectivity-domainB-uuid' value=\"`$tmp.ROOT.uni-p-interface-long`\" />-->\n<!--OR-->\n<parameter name='prop.connectivity-domainB-uuid' value=\"`$tmp.aai.ROOT.connectivity.connectivity-id`\" />\n\n\n",\r
4133         "comments": "",\r
4134         "x": 4954,\r
4135         "y": 5108,\r
4136         "z": "2902829f.18c74e",\r
4137         "wires": []\r
4138     },\r
4139     {\r
4140         "id": "8dae734b.2f3cf",\r
4141         "type": "save",\r
4142         "name": "save middle-man-conn relationship to UNI-LEAF, in AAI",\r
4143         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"uni\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/unis/uni/' + $tmp.LEAF.uni-p-interface-long`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"uni.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.LEAF.uni-p-interface-long`\" />",\r
4144         "comments": "",\r
4145         "outputs": 1,\r
4146         "x": 4264,\r
4147         "y": 5806,\r
4148         "z": "2902829f.18c74e",\r
4149         "wires": [\r
4150             []\r
4151         ]\r
4152     },\r
4153     {\r
4154         "id": "6b696600.0c94ac",\r
4155         "type": "save",\r
4156         "name": "save LEAF UNI in AAI",\r
4157         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n      key='uni.id = $tmp.LEAF.uni-p-interface-long'>\n<parameter name='id' value='`$tmp.LEAF.uni-p-interface-long`' />\n<parameter name='tp-id' value='`$tmp.LEAF.uni-tp-id`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n",\r
4158         "comments": "",\r
4159         "outputs": 1,\r
4160         "x": 4162,\r
4161         "y": 5755,\r
4162         "z": "2902829f.18c74e",\r
4163         "wires": [\r
4164             []\r
4165         ]\r
4166     },\r
4167     {\r
4168         "id": "63a3c79e.874c38",\r
4169         "type": "comment",\r
4170         "name": "Create LEAF UNI",\r
4171         "info": "",\r
4172         "comments": "",\r
4173         "x": 4146,\r
4174         "y": 5711,\r
4175         "z": "2902829f.18c74e",\r
4176         "wires": []\r
4177     },\r
4178     {\r
4179         "id": "f7343942.604c5",\r
4180         "type": "save",\r
4181         "name": "save the-connectivity relationship to UNI-LEAF, in AAI",\r
4182         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $tmp.the-connectivity.connectivity-id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"uni\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/unis/uni/' + $tmp.LEAF.uni-p-interface-long`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"uni.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.LEAF.uni-p-interface-long`\" />",\r
4183         "comments": "",\r
4184         "outputs": 1,\r
4185         "x": 4921,\r
4186         "y": 5967,\r
4187         "z": "2902829f.18c74e",\r
4188         "wires": [\r
4189             []\r
4190         ]\r
4191     },\r
4192     {\r
4193         "id": "c940cf7e.ee51b",\r
4194         "type": "switchNode",\r
4195         "name": "switch found-root-connectivity",\r
4196         "xml": "\n<switch test=\"`$found-root-connectivity`\">\n\n",\r
4197         "comments": "",\r
4198         "outputs": 1,\r
4199         "x": 4333,\r
4200         "y": 5112,\r
4201         "z": "2902829f.18c74e",\r
4202         "wires": [\r
4203             [\r
4204                 "b0427d82.5bfe9",\r
4205                 "b8ae94d3.c9ad9"\r
4206             ]\r
4207         ]\r
4208     },\r
4209     {\r
4210         "id": "b0427d82.5bfe9",\r
4211         "type": "outcomeTrue",\r
4212         "name": "true",\r
4213         "xml": "<outcome value='true'>\n",\r
4214         "comments": "",\r
4215         "outputs": 1,\r
4216         "x": 4544,\r
4217         "y": 5112,\r
4218         "z": "2902829f.18c74e",\r
4219         "wires": [\r
4220             [\r
4221                 "25de2beb.6b950c"\r
4222             ]\r
4223         ]\r
4224     },\r
4225     {\r
4226         "id": "25de2beb.6b950c",\r
4227         "type": "block",\r
4228         "name": "block : atomic",\r
4229         "xml": "<block atomic='true'>",\r
4230         "atomic": "true",\r
4231         "comments": "",\r
4232         "outputs": 1,\r
4233         "x": 4700,\r
4234         "y": 5108,\r
4235         "z": "2902829f.18c74e",\r
4236         "wires": [\r
4237             [\r
4238                 "ddb22b48.c7951"\r
4239             ]\r
4240         ]\r
4241     },\r
4242     {\r
4243         "id": "b8ae94d3.c9ad9",\r
4244         "type": "outcomeFalse",\r
4245         "name": "false",\r
4246         "xml": "<outcome value='false'>\n",\r
4247         "comments": "",\r
4248         "outputs": 1,\r
4249         "x": 4540,\r
4250         "y": 5160,\r
4251         "z": "2902829f.18c74e",\r
4252         "wires": [\r
4253             [\r
4254                 "bc7f369f.c4ff98"\r
4255             ]\r
4256         ]\r
4257     },\r
4258     {\r
4259         "id": "bc7f369f.c4ff98",\r
4260         "type": "returnFailure",\r
4261         "name": "return failure",\r
4262         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='Root Connectivity was not found' />\n",\r
4263         "comments": "",\r
4264         "x": 4688,\r
4265         "y": 5155,\r
4266         "z": "2902829f.18c74e",\r
4267         "wires": []\r
4268     },\r
4269     {\r
4270         "id": "9a0e4d6a.9ad2e",\r
4271         "type": "save",\r
4272         "name": "save middle-man-conn relationship to connectivity-LEAF, in AAI",\r
4273         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' \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
4274         "comments": "",\r
4275         "outputs": 1,\r
4276         "x": 5196,\r
4277         "y": 4737,\r
4278         "z": "2902829f.18c74e",\r
4279         "wires": [\r
4280             []\r
4281         ]\r
4282     },\r
4283     {\r
4284         "id": "8ffbf90a.9a2a4",\r
4285         "type": "execute",\r
4286         "name": "execute UUID generator for ethernet-service-name",\r
4287         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.ethernet-service-name\"/>\n",\r
4288         "comments": "",\r
4289         "outputs": 1,\r
4290         "x": 2362,\r
4291         "y": 148,\r
4292         "z": "2902829f.18c74e",\r
4293         "wires": [\r
4294             []\r
4295         ]\r
4296     },\r
4297     {\r
4298         "id": "9ccad127.ffcf6",\r
4299         "type": "set",\r
4300         "name": "set new ethernet-service-name",\r
4301         "xml": "<set>\n<!--<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-name`\" />-->\n<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-id`\" />\n\n\n",\r
4302         "comments": "",\r
4303         "x": 2296,\r
4304         "y": 184,\r
4305         "z": "2902829f.18c74e",\r
4306         "wires": []\r
4307     },\r
4308     {\r
4309         "id": "9431421f.8473c8",\r
4310         "type": "comment",\r
4311         "name": "The following two nodes are to make sure all connectivities for an E-Tree have same etht-srv-name",\r
4312         "info": "",\r
4313         "comments": "",\r
4314         "x": 2481,\r
4315         "y": 111,\r
4316         "z": "2902829f.18c74e",\r
4317         "wires": []\r
4318     },\r
4319     {\r
4320         "id": "4acaf17d.83ce3",\r
4321         "type": "set",\r
4322         "name": "set current-provider-id and current-cvlan-id",\r
4323         "xml": "<set>\n<parameter name='tmp.current-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='tmp.current-cvlan-id' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\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`' />-->",\r
4324         "comments": "",\r
4325         "x": 4231,\r
4326         "y": 5872,\r
4327         "z": "2902829f.18c74e",\r
4328         "wires": []\r
4329     },\r
4330     {\r
4331         "id": "26219883.65a92",\r
4332         "type": "call",\r
4333         "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-connectivity",\r
4334         "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-connectivity' mode='sync' >\n\n",\r
4335         "comments": "",\r
4336         "outputs": 1,\r
4337         "x": 4364,\r
4338         "y": 5920,\r
4339         "z": "2902829f.18c74e",\r
4340         "wires": [\r
4341             []\r
4342         ]\r
4343     },\r
4344     {\r
4345         "id": "1d162fbe.3673a",\r
4346         "type": "switchNode",\r
4347         "name": "switch found-connectivity?",\r
4348         "xml": "\n<switch test=\"`$found-connectivity`\">\n\n",\r
4349         "comments": "",\r
4350         "outputs": 1,\r
4351         "x": 4183,\r
4352         "y": 5978,\r
4353         "z": "2902829f.18c74e",\r
4354         "wires": [\r
4355             [\r
4356                 "b4622dbc.20b678",\r
4357                 "1a01b81f.922a4"\r
4358             ]\r
4359         ]\r
4360     },\r
4361     {\r
4362         "id": "b4622dbc.20b678",\r
4363         "type": "outcomeFalse",\r
4364         "name": "false",\r
4365         "xml": "<outcome value='false'>\n",\r
4366         "comments": "",\r
4367         "outputs": 1,\r
4368         "x": 4376,\r
4369         "y": 5979,\r
4370         "z": "2902829f.18c74e",\r
4371         "wires": [\r
4372             [\r
4373                 "b10bfde8.027e5"\r
4374             ]\r
4375         ]\r
4376     },\r
4377     {\r
4378         "id": "b10bfde8.027e5",\r
4379         "type": "returnFailure",\r
4380         "name": "return failure",\r
4381         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='Connectivity should have been created' />\n",\r
4382         "comments": "",\r
4383         "x": 4532,\r
4384         "y": 5976,\r
4385         "z": "2902829f.18c74e",\r
4386         "wires": []\r
4387     },\r
4388     {\r
4389         "id": "1a01b81f.922a4",\r
4390         "type": "outcomeTrue",\r
4391         "name": "true",\r
4392         "xml": "<outcome value='true'>\n",\r
4393         "comments": "",\r
4394         "outputs": 1,\r
4395         "x": 4380,\r
4396         "y": 6023,\r
4397         "z": "2902829f.18c74e",\r
4398         "wires": [\r
4399             [\r
4400                 "6ceb0be5.2a433c"\r
4401             ]\r
4402         ]\r
4403     },\r
4404     {\r
4405         "id": "6ceb0be5.2a433c",\r
4406         "type": "block",\r
4407         "name": "block",\r
4408         "xml": "<block>\n",\r
4409         "atomic": "false",\r
4410         "comments": "",\r
4411         "outputs": 1,\r
4412         "x": 4519,\r
4413         "y": 6018,\r
4414         "z": "2902829f.18c74e",\r
4415         "wires": [\r
4416             [\r
4417                 "f7343942.604c5",\r
4418                 "c05fdbdc.265b6",\r
4419                 "97927bbc.dcd8c8",\r
4420                 "1cb127d3.5a2788",\r
4421                 "f2b1cf37.e0a26",\r
4422                 "8f16ceb.590e9b",\r
4423                 "60b731fb.d0503",\r
4424                 "bcde9e56.e926a",\r
4425                 "c55840d4.91858",\r
4426                 "9ff86b70.d2fcb"\r
4427             ]\r
4428         ]\r
4429     },\r
4430     {\r
4431         "id": "60b731fb.d0503",\r
4432         "type": "save",\r
4433         "name": "get all-vpn-bindings from aai",\r
4434         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-bindings\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v24/network/vpn-bindings\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.all-vpn-bindings\" >\n",\r
4435         "comments": "",\r
4436         "outputs": 1,\r
4437         "x": 4716,\r
4438         "y": 6697,\r
4439         "z": "2902829f.18c74e",\r
4440         "wires": [\r
4441             [\r
4442                 "cedc6e.0697a39",\r
4443                 "a047ea62.8c149",\r
4444                 "e7b3fd60.6832b8"\r
4445             ]\r
4446         ]\r
4447     },\r
4448     {\r
4449         "id": "cedc6e.0697a39",\r
4450         "type": "success",\r
4451         "name": "success",\r
4452         "xml": "<outcome value='success'>\n",\r
4453         "comments": "",\r
4454         "outputs": 1,\r
4455         "x": 4921,\r
4456         "y": 6694,\r
4457         "z": "2902829f.18c74e",\r
4458         "wires": [\r
4459             [\r
4460                 "193246bb.dba7e9"\r
4461             ]\r
4462         ]\r
4463     },\r
4464     {\r
4465         "id": "a047ea62.8c149",\r
4466         "type": "not-found",\r
4467         "name": "not-found",\r
4468         "xml": "<outcome value='not-found'>\n",\r
4469         "comments": "",\r
4470         "outputs": 1,\r
4471         "x": 4904.490966796875,\r
4472         "y": 6755.574035644531,\r
4473         "z": "2902829f.18c74e",\r
4474         "wires": [\r
4475             [\r
4476                 "6166d474.1f401c"\r
4477             ]\r
4478         ]\r
4479     },\r
4480     {\r
4481         "id": "e7b3fd60.6832b8",\r
4482         "type": "failure",\r
4483         "name": "failure",\r
4484         "xml": "<outcome value='failure'>\n",\r
4485         "comments": "",\r
4486         "outputs": 1,\r
4487         "x": 4902,\r
4488         "y": 6799,\r
4489         "z": "2902829f.18c74e",\r
4490         "wires": [\r
4491             [\r
4492                 "a8cf7040.6462c8"\r
4493             ]\r
4494         ]\r
4495     },\r
4496     {\r
4497         "id": "193246bb.dba7e9",\r
4498         "type": "block",\r
4499         "name": "block : atomic",\r
4500         "xml": "<block atomic=\"true\">",\r
4501         "atomic": "true",\r
4502         "outputs": 1,\r
4503         "x": 5077,\r
4504         "y": 6708,\r
4505         "z": "2902829f.18c74e",\r
4506         "wires": [\r
4507             [\r
4508                 "8ab9510b.66ea08"\r
4509             ]\r
4510         ]\r
4511     },\r
4512     {\r
4513         "id": "6166d474.1f401c",\r
4514         "type": "returnFailure",\r
4515         "name": "return failure",\r
4516         "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
4517         "comments": "",\r
4518         "x": 5067.0623779296875,\r
4519         "y": 6755.859771728516,\r
4520         "z": "2902829f.18c74e",\r
4521         "wires": []\r
4522     },\r
4523     {\r
4524         "id": "a8cf7040.6462c8",\r
4525         "type": "returnFailure",\r
4526         "name": "return failure",\r
4527         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
4528         "comments": "",\r
4529         "x": 5069,\r
4530         "y": 6798,\r
4531         "z": "2902829f.18c74e",\r
4532         "wires": []\r
4533     },\r
4534     {\r
4535         "id": "8ab9510b.66ea08",\r
4536         "type": "for",\r
4537         "name": "for vpnidx in all-vpn-bindings",\r
4538         "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",\r
4539         "comments": "",\r
4540         "outputs": 1,\r
4541         "x": 5324,\r
4542         "y": 6705,\r
4543         "z": "2902829f.18c74e",\r
4544         "wires": [\r
4545             [\r
4546                 "4468378.6607f48"\r
4547             ]\r
4548         ]\r
4549     },\r
4550     {\r
4551         "id": "4468378.6607f48",\r
4552         "type": "block",\r
4553         "name": "block : atomic",\r
4554         "xml": "<block atomic='true'>",\r
4555         "atomic": "true",\r
4556         "comments": "",\r
4557         "outputs": 1,\r
4558         "x": 5561,\r
4559         "y": 6701,\r
4560         "z": "2902829f.18c74e",\r
4561         "wires": [\r
4562             [\r
4563                 "fb8fcf56.6ea2f8"\r
4564             ]\r
4565         ]\r
4566     },\r
4567     {\r
4568         "id": "fb8fcf56.6ea2f8",\r
4569         "type": "switchNode",\r
4570         "name": "switch vpnuuid is for this slice",\r
4571         "xml": "<!--<switch test=\"`$tmp.slicevpnuuids[$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id] != '' `\">-->\n\n<!-- Replace vpn-type with slice-id (a new attribbute in the latest AAI) -->\n<switch test=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].slice-id == $tmp.aai.service-instance.service-instance-id `\">\n\n",\r
4572         "comments": "",\r
4573         "outputs": 1,\r
4574         "x": 5808,\r
4575         "y": 6703,\r
4576         "z": "2902829f.18c74e",\r
4577         "wires": [\r
4578             [\r
4579                 "b35a7d25.7fd0a",\r
4580                 "74f376ab.a729f"\r
4581             ]\r
4582         ]\r
4583     },\r
4584     {\r
4585         "id": "b35a7d25.7fd0a",\r
4586         "type": "outcomeTrue",\r
4587         "name": "true",\r
4588         "xml": "<outcome value='true'>\n",\r
4589         "comments": "",\r
4590         "outputs": 1,\r
4591         "x": 6009,\r
4592         "y": 6693,\r
4593         "z": "2902829f.18c74e",\r
4594         "wires": [\r
4595             [\r
4596                 "53ea7250.143694"\r
4597             ]\r
4598         ]\r
4599     },\r
4600     {\r
4601         "id": "74f376ab.a729f",\r
4602         "type": "outcomeFalse",\r
4603         "name": "false",\r
4604         "xml": "<outcome value='false'>\n",\r
4605         "comments": "",\r
4606         "outputs": 1,\r
4607         "x": 6008,\r
4608         "y": 6646,\r
4609         "z": "2902829f.18c74e",\r
4610         "wires": [\r
4611             []\r
4612         ]\r
4613     },\r
4614     {\r
4615         "id": "53ea7250.143694",\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": 4752,\r
4623         "y": 6968,\r
4624         "z": "2902829f.18c74e",\r
4625         "wires": [\r
4626             [\r
4627                 "2651f488.54465c"\r
4628             ]\r
4629         ]\r
4630     },\r
4631     {\r
4632         "id": "26dbc9a6.ab4616",\r
4633         "type": "set",\r
4634         "name": "set tmp.aai.the-vpn-binding",\r
4635         "xml": "<set>\n<parameter name='tmp.aai.the-vpn-binding.' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].`\" />\n",\r
4636         "comments": "",\r
4637         "x": 5601,\r
4638         "y": 6873,\r
4639         "z": "2902829f.18c74e",\r
4640         "wires": []\r
4641     },\r
4642     {\r
4643         "id": "fba4365f.21d6b",\r
4644         "type": "comment",\r
4645         "name": "find all OTNs that have srcTtpOtnLayer and increase their bandwidth",\r
4646         "info": "",\r
4647         "comments": "",\r
4648         "x": 4814,\r
4649         "y": 6644,\r
4650         "z": "2902829f.18c74e",\r
4651         "wires": []\r
4652     },\r
4653     {\r
4654         "id": "8f16ceb.590e9b",\r
4655         "type": "set",\r
4656         "name": "set srcTtp OTN layer",\r
4657         "xml": "<set>\n<!--<parameter name='tmp.srcTtpOtnLayer' value=\"`$tmp.pce-src-node + '-' + -->\n<!--                                             $param-prefix-domainA[$param-prefix-domainA_length -2] + '-' +-->\n<!--                                             $tmp.source.ttp-id`\" />-->\n\n<parameter name='tmp.srcTtpOtnLayer' value=\"`$tmp.pce-src-node`\" />\n\n\n",\r
4658         "comments": "",\r
4659         "x": 4698,\r
4660         "y": 6493,\r
4661         "z": "2902829f.18c74e",\r
4662         "wires": []\r
4663     },\r
4664     {\r
4665         "id": "db5a4ceb.707c88",\r
4666         "type": "switchNode",\r
4667         "name": "switch provider-id domainA",\r
4668         "xml": "<switch test='`$allNetworksList.network-resource[$netwidx].provider-id == $param-prefix-domainA-pnfName[2]`'>\n",\r
4669         "comments": "",\r
4670         "outputs": 1,\r
4671         "x": 5043,\r
4672         "y": 6324,\r
4673         "z": "2902829f.18c74e",\r
4674         "wires": [\r
4675             [\r
4676                 "45fd9533.be2acc"\r
4677             ]\r
4678         ]\r
4679     },\r
4680     {\r
4681         "id": "45fd9533.be2acc",\r
4682         "type": "outcomeTrue",\r
4683         "name": "true",\r
4684         "xml": "<outcome value='true'>\n",\r
4685         "comments": "",\r
4686         "outputs": 1,\r
4687         "x": 5263,\r
4688         "y": 6330,\r
4689         "z": "2902829f.18c74e",\r
4690         "wires": [\r
4691             [\r
4692                 "530fb98.e048cc8"\r
4693             ]\r
4694         ]\r
4695     },\r
4696     {\r
4697         "id": "530fb98.e048cc8",\r
4698         "type": "switchNode",\r
4699         "name": "switch te-topo-id",\r
4700         "xml": "<switch test='`$allNetworksList.network-resource[$netwidx].te-topo-id != $param-prefix-domainA-pnfName[6]`'>\n",\r
4701         "comments": "",\r
4702         "outputs": 1,\r
4703         "x": 5448,\r
4704         "y": 6329,\r
4705         "z": "2902829f.18c74e",\r
4706         "wires": [\r
4707             [\r
4708                 "36abe2fe.4a9a96"\r
4709             ]\r
4710         ]\r
4711     },\r
4712     {\r
4713         "id": "36abe2fe.4a9a96",\r
4714         "type": "outcomeTrue",\r
4715         "name": "true",\r
4716         "xml": "<outcome value='true'>\n",\r
4717         "comments": "",\r
4718         "outputs": 1,\r
4719         "x": 5640,\r
4720         "y": 6332,\r
4721         "z": "2902829f.18c74e",\r
4722         "wires": [\r
4723             [\r
4724                 "75415a60.e2b3b4"\r
4725             ]\r
4726         ]\r
4727     },\r
4728     {\r
4729         "id": "75415a60.e2b3b4",\r
4730         "type": "set",\r
4731         "name": "set otnTopoIdSrc",\r
4732         "xml": "<set>\n<parameter name='otnTopoIdSrc' value='`$allNetworksList.network-resource[$netwidx].te-topo-id`' />\n",\r
4733         "comments": "",\r
4734         "x": 5849,\r
4735         "y": 6330,\r
4736         "z": "2902829f.18c74e",\r
4737         "wires": []\r
4738     },\r
4739     {\r
4740         "id": "bcde9e56.e926a",\r
4741         "type": "for",\r
4742         "name": "for netwidx..allNetworksList_length",\r
4743         "xml": "<for index='netwidx' start='0' end='`$allNetworksList.network-resource_length`' >",\r
4744         "comments": "",\r
4745         "outputs": 1,\r
4746         "x": 4750,\r
4747         "y": 6318,\r
4748         "z": "2902829f.18c74e",\r
4749         "wires": [\r
4750             [\r
4751                 "db5a4ceb.707c88"\r
4752             ]\r
4753         ]\r
4754     },\r
4755     {\r
4756         "id": "97927bbc.dcd8c8",\r
4757         "type": "get-resource",\r
4758         "name": "get-resource network-resources-list",\r
4759         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-resources\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v24/network/network-resources?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"allNetworksList\" >",\r
4760         "comments": "",\r
4761         "outputs": 1,\r
4762         "x": 4758,\r
4763         "y": 6211,\r
4764         "z": "2902829f.18c74e",\r
4765         "wires": [\r
4766             [\r
4767                 "2440c6c.5eeb4ba",\r
4768                 "8721d82f.3e0a3",\r
4769                 "3f152fd2.1f0f28"\r
4770             ]\r
4771         ]\r
4772     },\r
4773     {\r
4774         "id": "2440c6c.5eeb4ba",\r
4775         "type": "success",\r
4776         "name": "success",\r
4777         "xml": "<outcome value='success'>\n",\r
4778         "comments": "",\r
4779         "outputs": 1,\r
4780         "x": 4994,\r
4781         "y": 6194,\r
4782         "z": "2902829f.18c74e",\r
4783         "wires": [\r
4784             []\r
4785         ]\r
4786     },\r
4787     {\r
4788         "id": "8721d82f.3e0a3",\r
4789         "type": "other",\r
4790         "name": "other",\r
4791         "xml": "<outcome value='Other'>\n",\r
4792         "comments": "",\r
4793         "outputs": 1,\r
4794         "x": 4991,\r
4795         "y": 6235,\r
4796         "z": "2902829f.18c74e",\r
4797         "wires": [\r
4798             []\r
4799         ]\r
4800     },\r
4801     {\r
4802         "id": "3f152fd2.1f0f28",\r
4803         "type": "not-found",\r
4804         "name": "not-found",\r
4805         "xml": "<outcome value='not-found'>\n",\r
4806         "comments": "",\r
4807         "outputs": 1,\r
4808         "x": 5005,\r
4809         "y": 6275,\r
4810         "z": "2902829f.18c74e",\r
4811         "wires": [\r
4812             []\r
4813         ]\r
4814     },\r
4815     {\r
4816         "id": "1cb127d3.5a2788",\r
4817         "type": "set",\r
4818         "name": "unset parameters",\r
4819         "xml": "<set>\n<parameter name='tmp.pce-src-node.' value='' />\n",\r
4820         "comments": "",\r
4821         "x": 4694,\r
4822         "y": 6370,\r
4823         "z": "2902829f.18c74e",\r
4824         "wires": []\r
4825     },\r
4826     {\r
4827         "id": "f2b1cf37.e0a26",\r
4828         "type": "set",\r
4829         "name": "set tmp.pce-src-node",\r
4830         "xml": "<set>\n<!--<parameter name='tmp.pce-src-node' 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<!--                                                   1 + '-' +-->\n<!--                                                   $param-prefix-domainA-pnfName[7] + '-' +-->\n<!--                                                   $param-prefix-domainA-pnfName[8]`\" />-->\n\n<parameter name='tmp.pce-src-node' 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                                                   $otnTopoIdSrc + '-' +\n                                                   $param-prefix-domainA-pnfName[7] + '-' +\n                                                   $param-prefix-domainA-pnfName[8]`\" />",\r
4831         "comments": "",\r
4832         "x": 4702,\r
4833         "y": 6428,\r
4834         "z": "2902829f.18c74e",\r
4835         "wires": []\r
4836     },\r
4837     {\r
4838         "id": "c05fdbdc.265b6",\r
4839         "type": "set",\r
4840         "name": "unset parameters",\r
4841         "xml": "<set>\n<parameter name='allNetworksList.' value='' />\n",\r
4842         "comments": "",\r
4843         "x": 4707,\r
4844         "y": 6168,\r
4845         "z": "2902829f.18c74e",\r
4846         "wires": []\r
4847     },\r
4848     {\r
4849         "id": "b11f8629.171c6",\r
4850         "type": "comment",\r
4851         "name": "The following section is to find srcTtp OTN layer (its long name)",\r
4852         "info": "The following section is to find srcTtp OTN layer (its long name)",\r
4853         "comments": "",\r
4854         "x": 4822,\r
4855         "y": 6120,\r
4856         "z": "2902829f.18c74e",\r
4857         "wires": []\r
4858     },\r
4859     {\r
4860         "id": "2651f488.54465c",\r
4861         "type": "switchNode",\r
4862         "name": "switch ops-note is srcTtpOtnLayer",\r
4863         "xml": "<switch test=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].ops-note == $tmp.srcTtpOtnLayer `\">\n\n",\r
4864         "comments": "",\r
4865         "outputs": 1,\r
4866         "x": 4995,\r
4867         "y": 6965,\r
4868         "z": "2902829f.18c74e",\r
4869         "wires": [\r
4870             [\r
4871                 "69eb57bf.22dfc8",\r
4872                 "815687f4.685f18"\r
4873             ]\r
4874         ]\r
4875     },\r
4876     {\r
4877         "id": "69eb57bf.22dfc8",\r
4878         "type": "outcomeTrue",\r
4879         "name": "true",\r
4880         "xml": "<outcome value='true'>\n",\r
4881         "comments": "",\r
4882         "outputs": 1,\r
4883         "x": 5224,\r
4884         "y": 6942,\r
4885         "z": "2902829f.18c74e",\r
4886         "wires": [\r
4887             [\r
4888                 "3784edbf.83acfa"\r
4889             ]\r
4890         ]\r
4891     },\r
4892     {\r
4893         "id": "815687f4.685f18",\r
4894         "type": "outcomeFalse",\r
4895         "name": "false",\r
4896         "xml": "<outcome value='false'>\n",\r
4897         "comments": "",\r
4898         "outputs": 1,\r
4899         "x": 5224,\r
4900         "y": 6991,\r
4901         "z": "2902829f.18c74e",\r
4902         "wires": [\r
4903             []\r
4904         ]\r
4905     },\r
4906     {\r
4907         "id": "3784edbf.83acfa",\r
4908         "type": "block",\r
4909         "name": "block : atomic",\r
4910         "xml": "<block atomic='true'>",\r
4911         "atomic": "true",\r
4912         "comments": "",\r
4913         "outputs": 1,\r
4914         "x": 5385,\r
4915         "y": 6947,\r
4916         "z": "2902829f.18c74e",\r
4917         "wires": [\r
4918             [\r
4919                 "6a238d9a.9b2fec",\r
4920                 "26dbc9a6.ab4616",\r
4921                 "2310374c.1d397"\r
4922             ]\r
4923         ]\r
4924     },\r
4925     {\r
4926         "id": "bb082a0b.0ed128",\r
4927         "type": "comment",\r
4928         "name": "increase the bw of the-vpn-binding and change status to modified",\r
4929         "info": "increase the bw of the-vpn-binding\nchange status to modified\n",\r
4930         "comments": "",\r
4931         "x": 5729,\r
4932         "y": 6927,\r
4933         "z": "2902829f.18c74e",\r
4934         "wires": []\r
4935     },\r
4936     {\r
4937         "id": "2310374c.1d397",\r
4938         "type": "save",\r
4939         "name": "update vpn-binding otnIdx resource (aka. OTN) in AAI",\r
4940         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.the-vpn-binding.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.the-vpn-binding.vpn-id`' />\n<!--<parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />-->\n<parameter name='customer-vpn-id' value='`$newToBeUsedMaxtpn`' />\n<parameter name='route-distinguisher' value='`$tmp.aai.the-vpn-binding.route-distinguisher + $gfp`' />\n\n<parameter name='operational-status' value='Modified' />\n\n\n",\r
4941         "comments": "",\r
4942         "outputs": 1,\r
4943         "x": 5699,\r
4944         "y": 6987,\r
4945         "z": "2902829f.18c74e",\r
4946         "wires": [\r
4947             []\r
4948         ]\r
4949     },\r
4950     {\r
4951         "id": "6a238d9a.9b2fec",\r
4952         "type": "set",\r
4953         "name": "unset tmp.aai.the-vpn-binding",\r
4954         "xml": "<set>\n<parameter name='tmp.aai.the-vpn-binding.' value=\"\" />\n",\r
4955         "comments": "",\r
4956         "x": 5606,\r
4957         "y": 6815,\r
4958         "z": "2902829f.18c74e",\r
4959         "wires": []\r
4960     },\r
4961     {\r
4962         "id": "6b1cb253.86fb4c",\r
4963         "type": "block",\r
4964         "name": "block : atomic",\r
4965         "xml": "<block atomic='true'>",\r
4966         "atomic": "true",\r
4967         "comments": "",\r
4968         "outputs": 1,\r
4969         "x": 3955,\r
4970         "y": 5905,\r
4971         "z": "2902829f.18c74e",\r
4972         "wires": [\r
4973             [\r
4974                 "6b696600.0c94ac",\r
4975                 "4acaf17d.83ce3",\r
4976                 "26219883.65a92",\r
4977                 "1d162fbe.3673a"\r
4978             ]\r
4979         ]\r
4980     },\r
4981     {\r
4982         "id": "4a1e792c.5d4bf8",\r
4983         "type": "set",\r
4984         "name": "unset otnTopoIdSrc",\r
4985         "xml": "<set>\n<parameter name='otnTopoIdSrc' value='' />\n",\r
4986         "comments": "",\r
4987         "x": 4699,\r
4988         "y": 6268,\r
4989         "z": "2902829f.18c74e",\r
4990         "wires": []\r
4991     },\r
4992     {\r
4993         "id": "c55840d4.91858",\r
4994         "type": "save",\r
4995         "name": "update connectivity resource in AAI",\r
4996         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.the-connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.the-connectivity.connectivity-id`' />\n<parameter name='operational-status' value='Modified' />\n",\r
4997         "comments": "",\r
4998         "outputs": 1,\r
4999         "x": 4814,\r
5000         "y": 6048,\r
5001         "z": "2902829f.18c74e",\r
5002         "wires": [\r
5003             []\r
5004         ]\r
5005     },\r
5006     {\r
5007         "id": "f6160d91.b00c5",\r
5008         "type": "comment",\r
5009         "name": "Update the existing eth-srv by adding the new LEAF UNI into its list of endpoints",\r
5010         "info": "Update the existing eth-srv by adding the new LEAF UNI into its list of endpoints",\r
5011         "comments": "",\r
5012         "x": 4951,\r
5013         "y": 5998,\r
5014         "z": "2902829f.18c74e",\r
5015         "wires": []\r
5016     },\r
5017     {\r
5018         "id": "d896a0c9.160fe8",\r
5019         "type": "call",\r
5020         "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-F1-activate",\r
5021         "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1-activate' mode='sync' >\n\n",\r
5022         "comments": "",\r
5023         "outputs": 1,\r
5024         "x": 4278,\r
5025         "y": 6108,\r
5026         "z": "2902829f.18c74e",\r
5027         "wires": [\r
5028             []\r
5029         ]\r
5030     },\r
5031     {\r
5032         "id": "8cf629c6.d63328",\r
5033         "type": "save",\r
5034         "name": "save ROOT UNI in AAI",\r
5035         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n      key='uni.id = $tmp.ROOT.uni-p-interface-long'>\n<parameter name='id' value='`$tmp.ROOT.uni-p-interface-long`' />\n<parameter name='tp-id' value='`$tmp.ROOT.uni-tp-id`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n",\r
5036         "comments": "",\r
5037         "outputs": 1,\r
5038         "x": 3790,\r
5039         "y": 3546,\r
5040         "z": "2902829f.18c74e",\r
5041         "wires": [\r
5042             []\r
5043         ]\r
5044     },\r
5045     {\r
5046         "id": "b2b24558.6d75f8",\r
5047         "type": "comment",\r
5048         "name": "NOT NEEDED ANYMORE?",\r
5049         "info": "",\r
5050         "comments": "",\r
5051         "x": 3972,\r
5052         "y": 1801,\r
5053         "z": "2902829f.18c74e",\r
5054         "wires": []\r
5055     },\r
5056     {\r
5057         "id": "bb31c80c.f29398",\r
5058         "type": "comment",\r
5059         "name": "NOT NEEDED ANYMORE?",\r
5060         "info": "",\r
5061         "comments": "",\r
5062         "x": 3950,\r
5063         "y": 2671,\r
5064         "z": "2902829f.18c74e",\r
5065         "wires": []\r
5066     },\r
5067     {\r
5068         "id": "f5dbe745.5a7ca",\r
5069         "type": "comment",\r
5070         "name": "TEMPORARY REMOVING THE FOLLOWING TWO NODES",\r
5071         "info": "",\r
5072         "comments": "",\r
5073         "x": 3781,\r
5074         "y": 4013,\r
5075         "z": "2902829f.18c74e",\r
5076         "wires": []\r
5077     },\r
5078     {\r
5079         "id": "58aa906f.8d52e",\r
5080         "type": "call",\r
5081         "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-F1-activate",\r
5082         "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1-activate' mode='sync' >\n\n",\r
5083         "comments": "",\r
5084         "outputs": 1,\r
5085         "x": 3462,\r
5086         "y": 6045,\r
5087         "z": "2902829f.18c74e",\r
5088         "wires": [\r
5089             []\r
5090         ]\r
5091     },\r
5092     {\r
5093         "id": "b0ed6ff1.30772",\r
5094         "type": "set",\r
5095         "name": "set current-provider-id and current-cvlan-id",\r
5096         "xml": "<set>\n<parameter name='tmp.current-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='tmp.current-cvlan-id' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\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`' />-->",\r
5097         "comments": "",\r
5098         "x": 3712,\r
5099         "y": 4669,\r
5100         "z": "2902829f.18c74e",\r
5101         "wires": []\r
5102     },\r
5103     {\r
5104         "id": "727be5c.c27771c",\r
5105         "type": "call",\r
5106         "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-connectivity",\r
5107         "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-connectivity' mode='sync' >\n\n",\r
5108         "comments": "",\r
5109         "outputs": 1,\r
5110         "x": 3845,\r
5111         "y": 4717,\r
5112         "z": "2902829f.18c74e",\r
5113         "wires": [\r
5114             []\r
5115         ]\r
5116     },\r
5117     {\r
5118         "id": "5ecdaa6f.e24ff4",\r
5119         "type": "switchNode",\r
5120         "name": "switch found-connectivity?",\r
5121         "xml": "\n<switch test=\"`$found-connectivity`\">\n\n",\r
5122         "comments": "",\r
5123         "outputs": 1,\r
5124         "x": 4352,\r
5125         "y": 4598,\r
5126         "z": "2902829f.18c74e",\r
5127         "wires": [\r
5128             [\r
5129                 "27ad8f3e.2bb148",\r
5130                 "1abb8af.fa663f5"\r
5131             ]\r
5132         ]\r
5133     },\r
5134     {\r
5135         "id": "27ad8f3e.2bb148",\r
5136         "type": "outcomeFalse",\r
5137         "name": "false",\r
5138         "xml": "<outcome value='false'>\n",\r
5139         "comments": "",\r
5140         "outputs": 1,\r
5141         "x": 4545,\r
5142         "y": 4599,\r
5143         "z": "2902829f.18c74e",\r
5144         "wires": [\r
5145             [\r
5146                 "c5f554a7.be6918"\r
5147             ]\r
5148         ]\r
5149     },\r
5150     {\r
5151         "id": "1abb8af.fa663f5",\r
5152         "type": "outcomeTrue",\r
5153         "name": "true",\r
5154         "xml": "<outcome value='true'>\n",\r
5155         "comments": "",\r
5156         "outputs": 1,\r
5157         "x": 4549,\r
5158         "y": 4643,\r
5159         "z": "2902829f.18c74e",\r
5160         "wires": [\r
5161             [\r
5162                 "359fab60.1e1edc"\r
5163             ]\r
5164         ]\r
5165     },\r
5166     {\r
5167         "id": "359fab60.1e1edc",\r
5168         "type": "block",\r
5169         "name": "block : atomic",\r
5170         "xml": "<block atomic='true'>",\r
5171         "atomic": "true",\r
5172         "comments": "",\r
5173         "outputs": 1,\r
5174         "x": 4688,\r
5175         "y": 4638,\r
5176         "z": "2902829f.18c74e",\r
5177         "wires": [\r
5178             [\r
5179                 "9fca53b1.0733f"\r
5180             ]\r
5181         ]\r
5182     },\r
5183     {\r
5184         "id": "c5f554a7.be6918",\r
5185         "type": "block",\r
5186         "name": "block : atomic",\r
5187         "xml": "<block atomic='true'>",\r
5188         "atomic": "true",\r
5189         "comments": "",\r
5190         "outputs": 1,\r
5191         "x": 4688,\r
5192         "y": 4595,\r
5193         "z": "2902829f.18c74e",\r
5194         "wires": [\r
5195             [\r
5196                 "3d40af5d.b5351",\r
5197                 "113bf6b.aca4d89",\r
5198                 "e3b325e.735f958",\r
5199                 "9a0e4d6a.9ad2e"\r
5200             ]\r
5201         ]\r
5202     },\r
5203     {\r
5204         "id": "9fca53b1.0733f",\r
5205         "type": "set",\r
5206         "name": "set prop.connectivity-domainA-uuid",\r
5207         "xml": "<set>\n<parameter name='uuid.connectivity-domainA-uuid' value=\"`$tmp.the-connectivity.connectivity-id`\" />\n\n\n",\r
5208         "comments": "",\r
5209         "x": 5082,\r
5210         "y": 4889,\r
5211         "z": "2902829f.18c74e",\r
5212         "wires": []\r
5213     },\r
5214     {\r
5215         "id": "fa5528e4.cedd58",\r
5216         "type": "comment",\r
5217         "name": "populate connectivity-A variable in the context map",\r
5218         "info": "",\r
5219         "comments": "",\r
5220         "x": 5089,\r
5221         "y": 4843,\r
5222         "z": "2902829f.18c74e",\r
5223         "wires": []\r
5224     },\r
5225     {\r
5226         "id": "9ff86b70.d2fcb",\r
5227         "type": "call",\r
5228         "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-find-maximum-used-tpn",\r
5229         "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-find-maximum-used-tpn' mode='sync' >\n\n",\r
5230         "comments": "",\r
5231         "outputs": 1,\r
5232         "x": 4887,\r
5233         "y": 6593,\r
5234         "z": "2902829f.18c74e",\r
5235         "wires": [\r
5236             []\r
5237         ]\r
5238     }\r
5239 ]