Support individual CLL deletion, and UNI removal from Ethernet Service, and
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / cloud_leased_line / GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-modify.json
1 [\r
2   {\r
3     "id": "d60c3cf9.321a6",\r
4     "type": "dgstart",\r
5     "name": "DGSTART",\r
6     "outputs": 1,\r
7     "x": 205.88333129882812,\r
8     "y": 156.88333129882812,\r
9     "z": "7062000.f761",\r
10     "wires": [\r
11       [\r
12         "cce5e3d9.59223"\r
13       ]\r
14     ]\r
15   },\r
16   {\r
17     "id": "cce5e3d9.59223",\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": 490.1690216064453,\r
26     "y": 218.12143993377686,\r
27     "z": "7062000.f761",\r
28     "wires": [\r
29       [\r
30         "73cbe8fd.7b7b"\r
31       ]\r
32     ]\r
33   },\r
34   {\r
35     "id": "73cbe8fd.7b7b",\r
36     "type": "method",\r
37     "name": "method cll-vnf-topology-operation-cll-modify",\r
38     "xml": "<method rpc='cll-vnf-topology-operation-cll-modify' mode='sync'>\n",\r
39     "comments": "",\r
40     "outputs": 1,\r
41     "x": 496.3119354248047,\r
42     "y": 302.88336181640625,\r
43     "z": "7062000.f761",\r
44     "wires": [\r
45       [\r
46         "b5475b4e.9dc8a"\r
47       ]\r
48     ]\r
49   },\r
50   {\r
51     "id": "b5475b4e.9dc8a",\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": 845.8833312988281,\r
58     "y": 361.8833312988281,\r
59     "z": "7062000.f761",\r
60     "wires": [\r
61       [\r
62         "bacceb8f.95926",\r
63         "e0024e9e.57e7f8",\r
64         "6d19a9bc.4fa958"\r
65       ]\r
66     ]\r
67   },\r
68   {\r
69     "id": "bacceb8f.95926",\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": 1147.2168273925781,\r
75     "y": 632.8136291503906,\r
76     "z": "7062000.f761",\r
77     "wires": []\r
78   },\r
79   {\r
80     "id": "e0024e9e.57e7f8",\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": 1168.6452941894531,\r
87     "y": 335.2166442871094,\r
88     "z": "7062000.f761",\r
89     "wires": [\r
90       [\r
91         "dc9a92d7.7dd0c",\r
92         "68404646.133ac8",\r
93         "f6dee010.98fcd"\r
94       ]\r
95     ]\r
96   },\r
97   {\r
98     "id": "dc9a92d7.7dd0c",\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": 1393.6452941894531,\r
105     "y": 193.21664428710938,\r
106     "z": "7062000.f761",\r
107     "wires": [\r
108       [\r
109         "d1be34ef.26139"\r
110       ]\r
111     ]\r
112   },\r
113   {\r
114     "id": "68404646.133ac8",\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": 1389.1362609863281,\r
121     "y": 262.7906799316406,\r
122     "z": "7062000.f761",\r
123     "wires": [\r
124       [\r
125         "c39ebb83.790b68"\r
126       ]\r
127     ]\r
128   },\r
129   {\r
130     "id": "f6dee010.98fcd",\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": 1377.6452941894531,\r
137     "y": 309.2166442871094,\r
138     "z": "7062000.f761",\r
139     "wires": [\r
140       [\r
141         "f8b91686.4a47a8"\r
142       ]\r
143     ]\r
144   },\r
145   {\r
146     "id": "6c16fe1b.61251",\r
147     "type": "comment",\r
148     "name": "new for TransportSlicing",\r
149     "info": "",\r
150     "comments": "",\r
151     "x": 1147.6452941894531,\r
152     "y": 223.21664428710938,\r
153     "z": "7062000.f761",\r
154     "wires": []\r
155   },\r
156   {\r
157     "id": "6d19a9bc.4fa958",\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": 1135.6452941894531,\r
164     "y": 275.2166442871094,\r
165     "z": "7062000.f761",\r
166     "wires": [\r
167       []\r
168     ]\r
169   },\r
170   {\r
171     "id": "d1be34ef.26139",\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": 1633.8833312988281,\r
178     "y": 189.88333129882812,\r
179     "z": "7062000.f761",\r
180     "wires": [\r
181       [\r
182         "74daedf5.b00d34",\r
183         "3ddd8ea0.9d48e2"\r
184       ]\r
185     ]\r
186   },\r
187   {\r
188     "id": "c39ebb83.790b68",\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": 1543.9457092285156,\r
194     "y": 265.74310302734375,\r
195     "z": "7062000.f761",\r
196     "wires": []\r
197   },\r
198   {\r
199     "id": "f8b91686.4a47a8",\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": 1547.8833312988281,\r
205     "y": 309.8833312988281,\r
206     "z": "7062000.f761",\r
207     "wires": []\r
208   },\r
209   {\r
210     "id": "74daedf5.b00d34",\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": 1838.8833312988281,\r
217     "y": 226.88333129882812,\r
218     "z": "7062000.f761",\r
219     "wires": [\r
220       [\r
221         "50897ba7.acdc24"\r
222       ]\r
223     ]\r
224   },\r
225   {\r
226     "id": "3ddd8ea0.9d48e2",\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": 1848.8833312988281,\r
233     "y": 153.88333129882812,\r
234     "z": "7062000.f761",\r
235     "wires": [\r
236       []\r
237     ]\r
238   },\r
239   {\r
240     "id": "50897ba7.acdc24",\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": 1831.8833312988281,\r
248     "y": 301.8833312988281,\r
249     "z": "7062000.f761",\r
250     "wires": [\r
251       [\r
252         "25219f6c.9cf818",\r
253         "166df7f7.8cb52",\r
254         "35f1defb.605572",\r
255         "f67d2f30.77ecd8",\r
256         "2530e84c.0abb78"\r
257       ]\r
258     ]\r
259   },\r
260   {\r
261     "id": "e3fc1b13.141158",\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": 2317.883331298828,\r
268     "y": 352.8833312988281,\r
269     "z": "7062000.f761",\r
270     "wires": [\r
271       [\r
272         "792e0cb6.295efc",\r
273         "9cda4258.33c028",\r
274         "8ec312be.acb358"\r
275       ]\r
276     ]\r
277   },\r
278   {\r
279     "id": "792e0cb6.295efc",\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": 2533.883331298828,\r
286     "y": 419.8833312988281,\r
287     "z": "7062000.f761",\r
288     "wires": [\r
289       [\r
290         "d2a1ae9f.45e878"\r
291       ]\r
292     ]\r
293   },\r
294   {\r
295     "id": "9cda4258.33c028",\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": 2534.374298095703,\r
302     "y": 319.4573059082031,\r
303     "z": "7062000.f761",\r
304     "wires": [\r
305       [\r
306         "5f00fc5b.612da4"\r
307       ]\r
308     ]\r
309   },\r
310   {\r
311     "id": "8ec312be.acb358",\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": 2529.883331298828,\r
318     "y": 368.8833312988281,\r
319     "z": "7062000.f761",\r
320     "wires": [\r
321       [\r
322         "24485e5a.4004d2"\r
323       ]\r
324     ]\r
325   },\r
326   {\r
327     "id": "25219f6c.9cf818",\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": 2034.8833312988281,\r
334     "y": 333.8833312988281,\r
335     "z": "7062000.f761",\r
336     "wires": [\r
337       [\r
338         "e97f59ea.8d55",\r
339         "e3fc1b13.141158",\r
340         "dca67cc5.30d2f8",\r
341         "ce64f5e6.94469"\r
342       ]\r
343     ]\r
344   },\r
345   {\r
346     "id": "e97f59ea.8d55",\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": 2314.883331298828,\r
352     "y": 271.8833312988281,\r
353     "z": "7062000.f761",\r
354     "wires": []\r
355   },\r
356   {\r
357     "id": "f67d2f30.77ecd8",\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": 2008.8833312988281,\r
363     "y": 283.8833312988281,\r
364     "z": "7062000.f761",\r
365     "wires": []\r
366   },\r
367   {\r
368     "id": "166df7f7.8cb52",\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": 2051.883331298828,\r
375     "y": 142.88333129882812,\r
376     "z": "7062000.f761",\r
377     "wires": [\r
378       []\r
379     ]\r
380   },\r
381   {\r
382     "id": "35f1defb.605572",\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": 2063.883331298828,\r
389     "y": 183.88333129882812,\r
390     "z": "7062000.f761",\r
391     "wires": [\r
392       []\r
393     ]\r
394   },\r
395   {\r
396     "id": "2302212a.18d7a6",\r
397     "type": "comment",\r
398     "name": "The following two nodes are for PCE",\r
399     "info": "",\r
400     "comments": "",\r
401     "x": 2088.883331298828,\r
402     "y": 95.88333129882812,\r
403     "z": "7062000.f761",\r
404     "wires": []\r
405   },\r
406   {\r
407     "id": "67aae728.5fece",\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": 2008.8833312988281,\r
413     "y": 229.88333129882812,\r
414     "z": "7062000.f761",\r
415     "wires": []\r
416   },\r
417   {\r
418     "id": "5f00fc5b.612da4",\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": 2712.883331298828,\r
424     "y": 321.8833312988281,\r
425     "z": "7062000.f761",\r
426     "wires": []\r
427   },\r
428   {\r
429     "id": "24485e5a.4004d2",\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": 2712.820831298828,\r
435     "y": 371.0235900878906,\r
436     "z": "7062000.f761",\r
437     "wires": []\r
438   },\r
439   {\r
440     "id": "d2a1ae9f.45e878",\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": 2714.820831298828,\r
447     "y": 422.0235900878906,\r
448     "z": "7062000.f761",\r
449     "wires": [\r
450       [\r
451         "61c50290.a54bf4"\r
452       ]\r
453     ]\r
454   },\r
455   {\r
456     "id": "61c50290.a54bf4",\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": 3007.820831298828,\r
463     "y": 369.0235900878906,\r
464     "z": "7062000.f761",\r
465     "wires": [\r
466       [\r
467         "d79412d7.a6c38",\r
468         "3f6fbc64.721af4",\r
469         "a6250e3f.f36fa"\r
470       ]\r
471     ]\r
472   },\r
473   {\r
474     "id": "3f6fbc64.721af4",\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": 3281.311798095703,\r
481     "y": 261.5975646972656,\r
482     "z": "7062000.f761",\r
483     "wires": [\r
484       [\r
485         "16afc6a3.6b5401"\r
486       ]\r
487     ]\r
488   },\r
489   {\r
490     "id": "16afc6a3.6b5401",\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": 3458.883331298828,\r
496     "y": 261.8833312988281,\r
497     "z": "7062000.f761",\r
498     "wires": []\r
499   },\r
500   {\r
501     "id": "a6250e3f.f36fa",\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": 3276.820831298828,\r
508     "y": 311.0235900878906,\r
509     "z": "7062000.f761",\r
510     "wires": [\r
511       [\r
512         "5cebea40.e205d4"\r
513       ]\r
514     ]\r
515   },\r
516   {\r
517     "id": "5cebea40.e205d4",\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": 3458.820831298828,\r
523     "y": 311.0235900878906,\r
524     "z": "7062000.f761",\r
525     "wires": []\r
526   },\r
527   {\r
528     "id": "d79412d7.a6c38",\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": 3280.820831298828,\r
535     "y": 362.0235900878906,\r
536     "z": "7062000.f761",\r
537     "wires": [\r
538       [\r
539         "9ae7a072.d1e518"\r
540       ]\r
541     ]\r
542   },\r
543   {\r
544     "id": "9ae7a072.d1e518",\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": 3460.820831298828,\r
551     "y": 362.0235900878906,\r
552     "z": "7062000.f761",\r
553     "wires": [\r
554       [\r
555         "360b8115.051b46"\r
556       ]\r
557     ]\r
558   },\r
559   {\r
560     "id": "360b8115.051b46",\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": 3026.883331298828,\r
567     "y": 496.8833312988281,\r
568     "z": "7062000.f761",\r
569     "wires": [\r
570       [\r
571         "28ab4f33.316c8",\r
572         "e49a7d12.f127b"\r
573       ]\r
574     ]\r
575   },\r
576   {\r
577     "id": "e49a7d12.f127b",\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": 3336.883331298828,\r
584     "y": 503.8833312988281,\r
585     "z": "7062000.f761",\r
586     "wires": [\r
587       []\r
588     ]\r
589   },\r
590   {\r
591     "id": "28ab4f33.316c8",\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": 3335.883331298828,\r
598     "y": 557.8833312988281,\r
599     "z": "7062000.f761",\r
600     "wires": [\r
601       [\r
602         "32ff3e84.f9f78a"\r
603       ]\r
604     ]\r
605   },\r
606   {\r
607     "id": "ac20a1c4.b5d88",\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": 4080.883331298828,\r
614     "y": 511.8833312988281,\r
615     "z": "7062000.f761",\r
616     "wires": [\r
617       [\r
618         "eb5b39ae.c0eb7"\r
619       ]\r
620     ]\r
621   },\r
622   {\r
623     "id": "eb5b39ae.c0eb7",\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": 4257.883209228516,\r
630     "y": 504.8832092285156,\r
631     "z": "7062000.f761",\r
632     "wires": [\r
633       [\r
634         "c3ea0a96.012838",\r
635         "42443b39.66d044"\r
636       ]\r
637     ]\r
638   },\r
639   {\r
640     "id": "32ff3e84.f9f78a",\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": 3499.883331298828,\r
647     "y": 483.8833312988281,\r
648     "z": "7062000.f761",\r
649     "wires": [\r
650       [\r
651         "6034bf74.a356a8",\r
652         "cf462c55.82"\r
653       ]\r
654     ]\r
655   },\r
656   {\r
657     "id": "6034bf74.a356a8",\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": 3780.883331298828,\r
664     "y": 439.8833312988281,\r
665     "z": "7062000.f761",\r
666     "wires": [\r
667       [\r
668         "6ceb7138.15694"\r
669       ]\r
670     ]\r
671   },\r
672   {\r
673     "id": "6ceb7138.15694",\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": 4042.883331298828,\r
680     "y": 439.8833312988281,\r
681     "z": "7062000.f761",\r
682     "wires": [\r
683       [\r
684         "ac20a1c4.b5d88"\r
685       ]\r
686     ]\r
687   },\r
688   {\r
689     "id": "c3ea0a96.012838",\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": 4500.883209228516,\r
695     "y": 461.8832092285156,\r
696     "z": "7062000.f761",\r
697     "wires": []\r
698   },\r
699   {\r
700     "id": "42443b39.66d044",\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": 4489.883209228516,\r
707     "y": 516.8832092285156,\r
708     "z": "7062000.f761",\r
709     "wires": [\r
710       [\r
711         "cb5892f8.a134a",\r
712         "3110dc42.56e8b4",\r
713         "b948b2e1.478978"\r
714       ]\r
715     ]\r
716   },\r
717   {\r
718     "id": "b948b2e1.478978",\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": 4742.883331298828,\r
725     "y": 402.8833312988281,\r
726     "z": "7062000.f761",\r
727     "wires": [\r
728       [\r
729         "f1bf9a6a.1a4ef8"\r
730       ]\r
731     ]\r
732   },\r
733   {\r
734     "id": "f1bf9a6a.1a4ef8",\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": 4891.454864501953,\r
740     "y": 403.1690979003906,\r
741     "z": "7062000.f761",\r
742     "wires": []\r
743   },\r
744   {\r
745     "id": "e719bcf6.a15758",\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": 4890.392364501953,\r
751     "y": 447.3093566894531,\r
752     "z": "7062000.f761",\r
753     "wires": []\r
754   },\r
755   {\r
756     "id": "3110dc42.56e8b4",\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": 4731.392364501953,\r
763     "y": 447.3093566894531,\r
764     "z": "7062000.f761",\r
765     "wires": [\r
766       [\r
767         "e719bcf6.a15758"\r
768       ]\r
769     ]\r
770   },\r
771   {\r
772     "id": "cb5892f8.a134a",\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": 4738.392364501953,\r
779     "y": 526.3093566894531,\r
780     "z": "7062000.f761",\r
781     "wires": [\r
782       [\r
783         "f905d5a0.4b001"\r
784       ]\r
785     ]\r
786   },\r
787   {\r
788     "id": "f905d5a0.4b001",\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": 4877.392364501953,\r
796     "y": 526.3093566894531,\r
797     "z": "7062000.f761",\r
798     "wires": [\r
799       [\r
800         "abc9ac08.900428",\r
801         "808b62f7.887bc"\r
802       ]\r
803     ]\r
804   },\r
805   {\r
806     "id": "abc9ac08.900428",\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": 5082.883331298828,\r
812     "y": 523.8833312988281,\r
813     "z": "7062000.f761",\r
814     "wires": []\r
815   },\r
816   {\r
817     "id": "808b62f7.887bc",\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": 5081.883331298828,\r
823     "y": 569.8833312988281,\r
824     "z": "7062000.f761",\r
825     "wires": []\r
826   },\r
827   {\r
828     "id": "cf462c55.82",\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": 3597.883331298828,\r
835     "y": 555.8833312988281,\r
836     "z": "7062000.f761",\r
837     "wires": [\r
838       [\r
839         "d512c83a.b4f08"\r
840       ]\r
841     ]\r
842   },\r
843   {\r
844     "id": "d512c83a.b4f08",\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": 3877.883331298828,\r
851     "y": 555.8833312988281,\r
852     "z": "7062000.f761",\r
853     "wires": [\r
854       [\r
855         "7f3fc2f9.da6f6c"\r
856       ]\r
857     ]\r
858   },\r
859   {\r
860     "id": "7f3fc2f9.da6f6c",\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": 2290.8834533691406,\r
867     "y": 808.8834533691406,\r
868     "z": "7062000.f761",\r
869     "wires": [\r
870       [\r
871         "c5194935.bd2228"\r
872       ]\r
873     ]\r
874   },\r
875   {\r
876     "id": "c5194935.bd2228",\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": 2467.883331298828,\r
883     "y": 801.8833312988281,\r
884     "z": "7062000.f761",\r
885     "wires": [\r
886       [\r
887         "d3179b9f.9873a8",\r
888         "b976f3f3.6f7998"\r
889       ]\r
890     ]\r
891   },\r
892   {\r
893     "id": "d3179b9f.9873a8",\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": 2710.883331298828,\r
899     "y": 758.8833312988281,\r
900     "z": "7062000.f761",\r
901     "wires": []\r
902   },\r
903   {\r
904     "id": "b976f3f3.6f7998",\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": 2699.883331298828,\r
911     "y": 813.8833312988281,\r
912     "z": "7062000.f761",\r
913     "wires": [\r
914       [\r
915         "78ac5925.ecf5a8",\r
916         "b7b22856.252df8",\r
917         "ac6d9ce2.b2e9e"\r
918       ]\r
919     ]\r
920   },\r
921   {\r
922     "id": "78ac5925.ecf5a8",\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": 2991.374298095703,\r
929     "y": 792.4573059082031,\r
930     "z": "7062000.f761",\r
931     "wires": [\r
932       [\r
933         "cd49934.02e89f"\r
934       ]\r
935     ]\r
936   },\r
937   {\r
938     "id": "b7b22856.252df8",\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": 2979.883331298828,\r
945     "y": 836.8833312988281,\r
946     "z": "7062000.f761",\r
947     "wires": [\r
948       [\r
949         "ed06d18.02143b"\r
950       ]\r
951     ]\r
952   },\r
953   {\r
954     "id": "cd49934.02e89f",\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": 3139.945831298828,\r
960     "y": 792.7430725097656,\r
961     "z": "7062000.f761",\r
962     "wires": []\r
963   },\r
964   {\r
965     "id": "ed06d18.02143b",\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": 3138.883331298828,\r
971     "y": 836.8833312988281,\r
972     "z": "7062000.f761",\r
973     "wires": []\r
974   },\r
975   {\r
976     "id": "ac6d9ce2.b2e9e",\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": 2986.883331298828,\r
983     "y": 915.8833312988281,\r
984     "z": "7062000.f761",\r
985     "wires": [\r
986       [\r
987         "87f4e9d.ba71598"\r
988       ]\r
989     ]\r
990   },\r
991   {\r
992     "id": "87f4e9d.ba71598",\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": 3125.883331298828,\r
1000     "y": 915.8833312988281,\r
1001     "z": "7062000.f761",\r
1002     "wires": [\r
1003       [\r
1004         "c2cb656b.4adff",\r
1005         "148d0b0c.712fa5",\r
1006         "d89221fb.e3072",\r
1007         "ea9aeb3f.7f8c98",\r
1008         "11e605d7.ecd0fa",\r
1009         "104f2b87.41fe14",\r
1010         "1a00d4a4.ff98a3",\r
1011         "59b35d49.e5c194",\r
1012         "52e7c1a.b628dc",\r
1013         "cdada9b0.2f3a48",\r
1014         "850e2800.badf2",\r
1015         "2b1064a0.eade7c",\r
1016         "a5bcbd5b.23b83",\r
1017         "23879b91.f9cdd4"\r
1018       ]\r
1019     ]\r
1020   },\r
1021   {\r
1022     "id": "f8061145.abbc7",\r
1023     "type": "execute",\r
1024     "name": "execute UUID generator for ethernet-service-name",\r
1025     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.ethernet-service-name\"/>\n",\r
1026     "comments": "",\r
1027     "outputs": 1,\r
1028     "x": 3439.883331298828,\r
1029     "y": 721.8833312988281,\r
1030     "z": "7062000.f761",\r
1031     "wires": [\r
1032       []\r
1033     ]\r
1034   },\r
1035   {\r
1036     "id": "c2cb656b.4adff",\r
1037     "type": "execute",\r
1038     "name": "execute UUID generator for otn-tunnel-name",\r
1039     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.otn-tunnel-name\"/>\n",\r
1040     "comments": "",\r
1041     "outputs": 1,\r
1042     "x": 3420.883331298828,\r
1043     "y": 771.8833312988281,\r
1044     "z": "7062000.f761",\r
1045     "wires": [\r
1046       []\r
1047     ]\r
1048   },\r
1049   {\r
1050     "id": "23879b91.f9cdd4",\r
1051     "type": "set",\r
1052     "name": "set new ethernet-service-name",\r
1053     "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
1054     "comments": "",\r
1055     "x": 3377.883331298828,\r
1056     "y": 816.8833312988281,\r
1057     "z": "7062000.f761",\r
1058     "wires": []\r
1059   },\r
1060   {\r
1061     "id": "148d0b0c.712fa5",\r
1062     "type": "set",\r
1063     "name": "set network-route-one",\r
1064     "xml": "<set>\n<parameter name='network-route-one' value=\"`$tmp.aai.logical-link.link-name`\" />\n\n\n",\r
1065     "comments": "",\r
1066     "x": 3352.883331298828,\r
1067     "y": 879.8833312988281,\r
1068     "z": "7062000.f761",\r
1069     "wires": []\r
1070   },\r
1071   {\r
1072     "id": "d89221fb.e3072",\r
1073     "type": "set",\r
1074     "name": "set network-route-two",\r
1075     "xml": "<set>\n<parameter name='network-route-two' value=\"`$tmp.aai.logical-link.link-name2`\" />\n\n\n",\r
1076     "comments": "",\r
1077     "x": 3353.883331298828,\r
1078     "y": 934.8833312988281,\r
1079     "z": "7062000.f761",\r
1080     "wires": []\r
1081   },\r
1082   {\r
1083     "id": "ea9aeb3f.7f8c98",\r
1084     "type": "save",\r
1085     "name": "get network-route-one from aai",\r
1086     "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
1087     "comments": "",\r
1088     "outputs": 1,\r
1089     "x": 3369.883331298828,\r
1090     "y": 982.8833312988281,\r
1091     "z": "7062000.f761",\r
1092     "wires": [\r
1093       [\r
1094         "842b0094.75a4a",\r
1095         "7eb2f3df.e44f04",\r
1096         "b07921bb.e3808"\r
1097       ]\r
1098     ]\r
1099   },\r
1100   {\r
1101     "id": "11e605d7.ecd0fa",\r
1102     "type": "save",\r
1103     "name": "get network-route-two from aai",\r
1104     "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
1105     "comments": "",\r
1106     "outputs": 1,\r
1107     "x": 3358.883331298828,\r
1108     "y": 1069.8832092285156,\r
1109     "z": "7062000.f761",\r
1110     "wires": [\r
1111       [\r
1112         "2d5fb508.bfab52",\r
1113         "cb29efc.c6f4b1",\r
1114         "61b86bd0.897d5c"\r
1115       ]\r
1116     ]\r
1117   },\r
1118   {\r
1119     "id": "842b0094.75a4a",\r
1120     "type": "not-found",\r
1121     "name": "not-found",\r
1122     "xml": "<outcome value='not-found'>\n",\r
1123     "comments": "",\r
1124     "outputs": 1,\r
1125     "x": 3570.883331298828,\r
1126     "y": 866.8833312988281,\r
1127     "z": "7062000.f761",\r
1128     "wires": [\r
1129       [\r
1130         "20684afd.b6d766"\r
1131       ]\r
1132     ]\r
1133   },\r
1134   {\r
1135     "id": "7eb2f3df.e44f04",\r
1136     "type": "failure",\r
1137     "name": "failure",\r
1138     "xml": "<outcome value='failure'>\n",\r
1139     "comments": "",\r
1140     "outputs": 1,\r
1141     "x": 3566.392364501953,\r
1142     "y": 916.3093566894531,\r
1143     "z": "7062000.f761",\r
1144     "wires": [\r
1145       [\r
1146         "d2041960.fe2c28"\r
1147       ]\r
1148     ]\r
1149   },\r
1150   {\r
1151     "id": "b07921bb.e3808",\r
1152     "type": "success",\r
1153     "name": "success",\r
1154     "xml": "<outcome value='success'>\n",\r
1155     "comments": "",\r
1156     "outputs": 1,\r
1157     "x": 3570.392364501953,\r
1158     "y": 969.3093566894531,\r
1159     "z": "7062000.f761",\r
1160     "wires": [\r
1161       [\r
1162         "f96f84b2.606d"\r
1163       ]\r
1164     ]\r
1165   },\r
1166   {\r
1167     "id": "20684afd.b6d766",\r
1168     "type": "returnFailure",\r
1169     "name": "return failure",\r
1170     "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
1171     "comments": "",\r
1172     "x": 3719.454864501953,\r
1173     "y": 866.1690979003906,\r
1174     "z": "7062000.f761",\r
1175     "wires": []\r
1176   },\r
1177   {\r
1178     "id": "d2041960.fe2c28",\r
1179     "type": "returnFailure",\r
1180     "name": "return failure",\r
1181     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1182     "comments": "",\r
1183     "x": 3709.392364501953,\r
1184     "y": 916.3093566894531,\r
1185     "z": "7062000.f761",\r
1186     "wires": []\r
1187   },\r
1188   {\r
1189     "id": "2d5fb508.bfab52",\r
1190     "type": "not-found",\r
1191     "name": "not-found",\r
1192     "xml": "<outcome value='not-found'>\n",\r
1193     "comments": "",\r
1194     "outputs": 1,\r
1195     "x": 3581.883331298828,\r
1196     "y": 1039.8832092285156,\r
1197     "z": "7062000.f761",\r
1198     "wires": [\r
1199       [\r
1200         "96baba9a.d0e19"\r
1201       ]\r
1202     ]\r
1203   },\r
1204   {\r
1205     "id": "cb29efc.c6f4b1",\r
1206     "type": "failure",\r
1207     "name": "failure",\r
1208     "xml": "<outcome value='failure'>\n",\r
1209     "comments": "",\r
1210     "outputs": 1,\r
1211     "x": 3577.392364501953,\r
1212     "y": 1089.3092346191406,\r
1213     "z": "7062000.f761",\r
1214     "wires": [\r
1215       [\r
1216         "1fb34f72.484a51"\r
1217       ]\r
1218     ]\r
1219   },\r
1220   {\r
1221     "id": "61b86bd0.897d5c",\r
1222     "type": "success",\r
1223     "name": "success",\r
1224     "xml": "<outcome value='success'>\n",\r
1225     "comments": "",\r
1226     "outputs": 1,\r
1227     "x": 3578.392364501953,\r
1228     "y": 1142.3092346191406,\r
1229     "z": "7062000.f761",\r
1230     "wires": [\r
1231       [\r
1232         "10c44aa8.1e2ead"\r
1233       ]\r
1234     ]\r
1235   },\r
1236   {\r
1237     "id": "96baba9a.d0e19",\r
1238     "type": "returnFailure",\r
1239     "name": "return failure",\r
1240     "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
1241     "comments": "",\r
1242     "x": 3730.454864501953,\r
1243     "y": 1039.1689758300781,\r
1244     "z": "7062000.f761",\r
1245     "wires": []\r
1246   },\r
1247   {\r
1248     "id": "1fb34f72.484a51",\r
1249     "type": "returnFailure",\r
1250     "name": "return failure",\r
1251     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1252     "comments": "",\r
1253     "x": 3720.392364501953,\r
1254     "y": 1089.3092346191406,\r
1255     "z": "7062000.f761",\r
1256     "wires": []\r
1257   },\r
1258   {\r
1259     "id": "f96f84b2.606d",\r
1260     "type": "block",\r
1261     "name": "block : atomic",\r
1262     "xml": "<block atomic=\"true\">",\r
1263     "atomic": "true",\r
1264     "outputs": 1,\r
1265     "x": 3731.883331298828,\r
1266     "y": 968.8833312988281,\r
1267     "z": "7062000.f761",\r
1268     "wires": [\r
1269       [\r
1270         "c276b776.1eb8a"\r
1271       ]\r
1272     ]\r
1273   },\r
1274   {\r
1275     "id": "10c44aa8.1e2ead",\r
1276     "type": "block",\r
1277     "name": "block : atomic",\r
1278     "xml": "<block atomic=\"true\">",\r
1279     "atomic": "true",\r
1280     "outputs": 1,\r
1281     "x": 3731.883331298828,\r
1282     "y": 1141.8832092285156,\r
1283     "z": "7062000.f761",\r
1284     "wires": [\r
1285       [\r
1286         "dfc4c0e1.407a7"\r
1287       ]\r
1288     ]\r
1289   },\r
1290   {\r
1291     "id": "c276b776.1eb8a",\r
1292     "type": "switchNode",\r
1293     "name": "switch nr type",\r
1294     "xml": "<switch test='`$tmp.aai.network-route-one.type`'>\n",\r
1295     "comments": "",\r
1296     "outputs": 1,\r
1297     "x": 3903.883331298828,\r
1298     "y": 968.8833312988281,\r
1299     "z": "7062000.f761",\r
1300     "wires": [\r
1301       [\r
1302         "680276dd.9e09b8",\r
1303         "fada4cff.fbd328"\r
1304       ]\r
1305     ]\r
1306   },\r
1307   {\r
1308     "id": "dfc4c0e1.407a7",\r
1309     "type": "switchNode",\r
1310     "name": "switch nr type",\r
1311     "xml": "<switch test='`$tmp.aai.network-route-two.type`'>\n",\r
1312     "comments": "",\r
1313     "outputs": 1,\r
1314     "x": 3904.883331298828,\r
1315     "y": 1141.8833312988281,\r
1316     "z": "7062000.f761",\r
1317     "wires": [\r
1318       [\r
1319         "1f020e0e.66975a",\r
1320         "a14ce01a.56f21"\r
1321       ]\r
1322     ]\r
1323   },\r
1324   {\r
1325     "id": "680276dd.9e09b8",\r
1326     "type": "outcome",\r
1327     "name": "ROOT",\r
1328     "xml": "<outcome value='ROOT'>\n",\r
1329     "comments": "",\r
1330     "outputs": 1,\r
1331     "x": 4079.883331298828,\r
1332     "y": 947.8833312988281,\r
1333     "z": "7062000.f761",\r
1334     "wires": [\r
1335       [\r
1336         "2d74202a.0b02c"\r
1337       ]\r
1338     ]\r
1339   },\r
1340   {\r
1341     "id": "fada4cff.fbd328",\r
1342     "type": "outcome",\r
1343     "name": "LEAF",\r
1344     "xml": "<outcome value='LEAF'>\n",\r
1345     "comments": "",\r
1346     "outputs": 1,\r
1347     "x": 4081.883331298828,\r
1348     "y": 1001.8833312988281,\r
1349     "z": "7062000.f761",\r
1350     "wires": [\r
1351       [\r
1352         "7e647400.994a6c"\r
1353       ]\r
1354     ]\r
1355   },\r
1356   {\r
1357     "id": "1f020e0e.66975a",\r
1358     "type": "outcome",\r
1359     "name": "ROOT",\r
1360     "xml": "<outcome value='ROOT'>\n",\r
1361     "comments": "",\r
1362     "outputs": 1,\r
1363     "x": 4080.883331298828,\r
1364     "y": 1111.8833312988281,\r
1365     "z": "7062000.f761",\r
1366     "wires": [\r
1367       [\r
1368         "45ecb3a3.4434cc"\r
1369       ]\r
1370     ]\r
1371   },\r
1372   {\r
1373     "id": "a14ce01a.56f21",\r
1374     "type": "outcome",\r
1375     "name": "LEAF",\r
1376     "xml": "<outcome value='LEAF'>\n",\r
1377     "comments": "",\r
1378     "outputs": 1,\r
1379     "x": 4082.883331298828,\r
1380     "y": 1165.8833312988281,\r
1381     "z": "7062000.f761",\r
1382     "wires": [\r
1383       [\r
1384         "c83b931a.caa288"\r
1385       ]\r
1386     ]\r
1387   },\r
1388   {\r
1389     "id": "698ac3d0.bab4ec",\r
1390     "type": "set",\r
1391     "name": "set network-route-ROOT",\r
1392     "xml": "<set>\n<parameter name='tmp.aai.network-route-ROOT.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
1393     "comments": "",\r
1394     "x": 4389.883331298828,\r
1395     "y": 899.8833312988281,\r
1396     "z": "7062000.f761",\r
1397     "wires": []\r
1398   },\r
1399   {\r
1400     "id": "d12533f5.293ec",\r
1401     "type": "set",\r
1402     "name": "set network-route-LEAF",\r
1403     "xml": "<set>\n<parameter name='tmp.aai.network-route-LEAF.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
1404     "comments": "",\r
1405     "x": 4382.883331298828,\r
1406     "y": 997.8833312988281,\r
1407     "z": "7062000.f761",\r
1408     "wires": []\r
1409   },\r
1410   {\r
1411     "id": "cfe2458d.e53598",\r
1412     "type": "set",\r
1413     "name": "set network-route-ROOT",\r
1414     "xml": "<set>\n<parameter name='tmp.aai.network-route-ROOT.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
1415     "comments": "",\r
1416     "x": 4382.883331298828,\r
1417     "y": 1084.8833312988281,\r
1418     "z": "7062000.f761",\r
1419     "wires": []\r
1420   },\r
1421   {\r
1422     "id": "e0154f38.db2ba",\r
1423     "type": "set",\r
1424     "name": "set network-route-LEAF",\r
1425     "xml": "<set>\n<parameter name='tmp.aai.network-route-LEAF.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
1426     "comments": "",\r
1427     "x": 4386.883331298828,\r
1428     "y": 1177.8833312988281,\r
1429     "z": "7062000.f761",\r
1430     "wires": []\r
1431   },\r
1432   {\r
1433     "id": "c5ef28c0.6623d",\r
1434     "type": "success",\r
1435     "name": "success",\r
1436     "xml": "<outcome value='success'>\n",\r
1437     "comments": "",\r
1438     "outputs": 1,\r
1439     "x": 3613.883331298828,\r
1440     "y": 1586.8833312988281,\r
1441     "z": "7062000.f761",\r
1442     "wires": [\r
1443       [\r
1444         "cf149009.40de5"\r
1445       ]\r
1446     ]\r
1447   },\r
1448   {\r
1449     "id": "892e385b.99fcd8",\r
1450     "type": "not-found",\r
1451     "name": "not-found",\r
1452     "xml": "<outcome value='not-found'>\n",\r
1453     "comments": "",\r
1454     "outputs": 1,\r
1455     "x": 3623.374298095703,\r
1456     "y": 1629.4573669433594,\r
1457     "z": "7062000.f761",\r
1458     "wires": [\r
1459       [\r
1460         "fcd9fb7.509ae08"\r
1461       ]\r
1462     ]\r
1463   },\r
1464   {\r
1465     "id": "a241b92b.410968",\r
1466     "type": "failure",\r
1467     "name": "failure",\r
1468     "xml": "<outcome value='failure'>\n",\r
1469     "comments": "",\r
1470     "outputs": 1,\r
1471     "x": 3611.883331298828,\r
1472     "y": 1675.8833312988281,\r
1473     "z": "7062000.f761",\r
1474     "wires": [\r
1475       [\r
1476         "3987c181.ee8c26"\r
1477       ]\r
1478     ]\r
1479   },\r
1480   {\r
1481     "id": "277d69d7.fb78d6",\r
1482     "type": "comment",\r
1483     "name": "Question?",\r
1484     "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
1485     "comments": "",\r
1486     "x": 3313.883331298828,\r
1487     "y": 1548.8833312988281,\r
1488     "z": "7062000.f761",\r
1489     "wires": []\r
1490   },\r
1491   {\r
1492     "id": "1a00d4a4.ff98a3",\r
1493     "type": "save",\r
1494     "name": "get p-interface-src from aai",\r
1495     "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
1496     "comments": "",\r
1497     "outputs": 1,\r
1498     "x": 3356.883331298828,\r
1499     "y": 1613.8833312988281,\r
1500     "z": "7062000.f761",\r
1501     "wires": [\r
1502       [\r
1503         "c5ef28c0.6623d",\r
1504         "892e385b.99fcd8",\r
1505         "a241b92b.410968"\r
1506       ]\r
1507     ]\r
1508   },\r
1509   {\r
1510     "id": "104f2b87.41fe14",\r
1511     "type": "execute",\r
1512     "name": "execute split tp-id to get pnf-name",\r
1513     "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
1514     "comments": "",\r
1515     "outputs": 1,\r
1516     "x": 3357.883331298828,\r
1517     "y": 1283.8833312988281,\r
1518     "z": "7062000.f761",\r
1519     "wires": [\r
1520       [\r
1521         "a533cbf2.9ff568",\r
1522         "84397dc4.6052e8"\r
1523       ]\r
1524     ]\r
1525   },\r
1526   {\r
1527     "id": "84397dc4.6052e8",\r
1528     "type": "failure",\r
1529     "name": "success",\r
1530     "xml": "<outcome value='success'>\n",\r
1531     "comments": "",\r
1532     "outputs": 1,\r
1533     "x": 3580.883331298828,\r
1534     "y": 1269.8833312988281,\r
1535     "z": "7062000.f761",\r
1536     "wires": [\r
1537       [\r
1538         "a3186923.403f7"\r
1539       ]\r
1540     ]\r
1541   },\r
1542   {\r
1543     "id": "a533cbf2.9ff568",\r
1544     "type": "failure",\r
1545     "name": "failure",\r
1546     "xml": "<outcome value='failure'>\n",\r
1547     "comments": "",\r
1548     "outputs": 1,\r
1549     "x": 3582.883331298828,\r
1550     "y": 1302.8833312988281,\r
1551     "z": "7062000.f761",\r
1552     "wires": [\r
1553       [\r
1554         "fb4a8c19.28b8c8"\r
1555       ]\r
1556     ]\r
1557   },\r
1558   {\r
1559     "id": "cf149009.40de5",\r
1560     "type": "block",\r
1561     "name": "block : atomic",\r
1562     "xml": "<block atomic=\"true\">",\r
1563     "atomic": "true",\r
1564     "outputs": 1,\r
1565     "x": 3786.549835205078,\r
1566     "y": 1585.8833312988281,\r
1567     "z": "7062000.f761",\r
1568     "wires": [\r
1569       [\r
1570         "d71c8cc2.44ee38",\r
1571         "eeee90c0.e5cea8"\r
1572       ]\r
1573     ]\r
1574   },\r
1575   {\r
1576     "id": "fcd9fb7.509ae08",\r
1577     "type": "returnFailure",\r
1578     "name": "return failure",\r
1579     "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
1580     "comments": "",\r
1581     "x": 3776.9457092285156,\r
1582     "y": 1632.7431030273438,\r
1583     "z": "7062000.f761",\r
1584     "wires": []\r
1585   },\r
1586   {\r
1587     "id": "3987c181.ee8c26",\r
1588     "type": "returnFailure",\r
1589     "name": "return failure",\r
1590     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1591     "comments": "",\r
1592     "x": 3780.883331298828,\r
1593     "y": 1676.8833312988281,\r
1594     "z": "7062000.f761",\r
1595     "wires": []\r
1596   },\r
1597   {\r
1598     "id": "d71c8cc2.44ee38",\r
1599     "type": "execute",\r
1600     "name": "execute split tp-id to get pnf-name",\r
1601     "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
1602     "comments": "",\r
1603     "outputs": 1,\r
1604     "x": 4050.883331298828,\r
1605     "y": 1569.8833312988281,\r
1606     "z": "7062000.f761",\r
1607     "wires": [\r
1608       [\r
1609         "245c145e.ebe6e4",\r
1610         "5de5cc75.c2e844"\r
1611       ]\r
1612     ]\r
1613   },\r
1614   {\r
1615     "id": "5de5cc75.c2e844",\r
1616     "type": "failure",\r
1617     "name": "success",\r
1618     "xml": "<outcome value='success'>\n",\r
1619     "comments": "",\r
1620     "outputs": 1,\r
1621     "x": 4273.883331298828,\r
1622     "y": 1524.8833312988281,\r
1623     "z": "7062000.f761",\r
1624     "wires": [\r
1625       [\r
1626         "a0f9be9b.313468"\r
1627       ]\r
1628     ]\r
1629   },\r
1630   {\r
1631     "id": "245c145e.ebe6e4",\r
1632     "type": "failure",\r
1633     "name": "failure",\r
1634     "xml": "<outcome value='failure'>\n",\r
1635     "comments": "",\r
1636     "outputs": 1,\r
1637     "x": 4275.883331298828,\r
1638     "y": 1588.8833312988281,\r
1639     "z": "7062000.f761",\r
1640     "wires": [\r
1641       [\r
1642         "911806e7.142508"\r
1643       ]\r
1644     ]\r
1645   },\r
1646   {\r
1647     "id": "911806e7.142508",\r
1648     "type": "returnFailure",\r
1649     "name": "return failure",\r
1650     "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
1651     "comments": "",\r
1652     "x": 4437.883331298828,\r
1653     "y": 1584.8833312988281,\r
1654     "z": "7062000.f761",\r
1655     "wires": []\r
1656   },\r
1657   {\r
1658     "id": "a0f9be9b.313468",\r
1659     "type": "block",\r
1660     "name": "block : atomic",\r
1661     "xml": "<block atomic=\"true\">",\r
1662     "atomic": "true",\r
1663     "outputs": 1,\r
1664     "x": 4438.883331298828,\r
1665     "y": 1521.8833312988281,\r
1666     "z": "7062000.f761",\r
1667     "wires": [\r
1668       [\r
1669         "e1f125c0.caa6f",\r
1670         "a1eca114.4be78"\r
1671       ]\r
1672     ]\r
1673   },\r
1674   {\r
1675     "id": "d95b965d.c926c",\r
1676     "type": "save",\r
1677     "name": "save connectivity resource in AAI",\r
1678     "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
1679     "comments": "",\r
1680     "outputs": 1,\r
1681     "x": 4052.883331298828,\r
1682     "y": 1728.8833312988281,\r
1683     "z": "7062000.f761",\r
1684     "wires": [\r
1685       []\r
1686     ]\r
1687   },\r
1688   {\r
1689     "id": "6b95fc34.5ad8b4",\r
1690     "type": "execute",\r
1691     "name": "execute UUID generator for connectivity domainA",\r
1692     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-domainA-uuid\"/>\n",\r
1693     "comments": "",\r
1694     "outputs": 1,\r
1695     "x": 4097.883331298828,\r
1696     "y": 1638.8833312988281,\r
1697     "z": "7062000.f761",\r
1698     "wires": [\r
1699       []\r
1700     ]\r
1701   },\r
1702   {\r
1703     "id": "8335544a.4f7eb",\r
1704     "type": "save",\r
1705     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
1706     "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
1707     "comments": "",\r
1708     "outputs": 1,\r
1709     "x": 4180.883331298828,\r
1710     "y": 1776.8833312988281,\r
1711     "z": "7062000.f761",\r
1712     "wires": [\r
1713       []\r
1714     ]\r
1715   },\r
1716   {\r
1717     "id": "fb4a8c19.28b8c8",\r
1718     "type": "returnFailure",\r
1719     "name": "return failure",\r
1720     "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
1721     "comments": "",\r
1722     "x": 3725.883331298828,\r
1723     "y": 1299.8833312988281,\r
1724     "z": "7062000.f761",\r
1725     "wires": []\r
1726   },\r
1727   {\r
1728     "id": "a3186923.403f7",\r
1729     "type": "block",\r
1730     "name": "block : atomic",\r
1731     "xml": "<block atomic=\"true\">",\r
1732     "atomic": "true",\r
1733     "outputs": 1,\r
1734     "x": 3728.883331298828,\r
1735     "y": 1262.8833312988281,\r
1736     "z": "7062000.f761",\r
1737     "wires": [\r
1738       [\r
1739         "df51c615.6dea38",\r
1740         "42564be7.1576fc"\r
1741       ]\r
1742     ]\r
1743   },\r
1744   {\r
1745     "id": "df51c615.6dea38",\r
1746     "type": "set",\r
1747     "name": "set pnf-name",\r
1748     "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
1749     "comments": "",\r
1750     "x": 3902.883331298828,\r
1751     "y": 1218.8833312988281,\r
1752     "z": "7062000.f761",\r
1753     "wires": []\r
1754   },\r
1755   {\r
1756     "id": "eeee90c0.e5cea8",\r
1757     "type": "for",\r
1758     "name": "for each relationship",\r
1759     "xml": "<for silentFailure='true' index='pividx' start='0' end='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship_length`' >\n",\r
1760     "comments": "",\r
1761     "outputs": 1,\r
1762     "x": 4004.883331298828,\r
1763     "y": 1853.8833312988281,\r
1764     "z": "7062000.f761",\r
1765     "wires": [\r
1766       [\r
1767         "1b697bac.74bf24"\r
1768       ]\r
1769     ]\r
1770   },\r
1771   {\r
1772     "id": "1b697bac.74bf24",\r
1773     "type": "switchNode",\r
1774     "name": "switch related-to",\r
1775     "xml": "<switch test='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].related-to`'>\n",\r
1776     "comments": "",\r
1777     "outputs": 1,\r
1778     "x": 4210.883331298828,\r
1779     "y": 1853.8833312988281,\r
1780     "z": "7062000.f761",\r
1781     "wires": [\r
1782       [\r
1783         "fad81e7.f76f06"\r
1784       ]\r
1785     ]\r
1786   },\r
1787   {\r
1788     "id": "fad81e7.f76f06",\r
1789     "type": "outcome",\r
1790     "name": "tunnel-termination-point",\r
1791     "xml": "<outcome value='tunnel-termination-point'>\n",\r
1792     "comments": "",\r
1793     "outputs": 1,\r
1794     "x": 4426.168975830078,\r
1795     "y": 1853.7051086425781,\r
1796     "z": "7062000.f761",\r
1797     "wires": [\r
1798       [\r
1799         "f6db1963.f8cc08"\r
1800       ]\r
1801     ]\r
1802   },\r
1803   {\r
1804     "id": "42564be7.1576fc",\r
1805     "type": "get-resource",\r
1806     "name": "get-resource src pnf",\r
1807     "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
1808     "comments": "",\r
1809     "outputs": 1,\r
1810     "x": 3917.883331298828,\r
1811     "y": 1329.8833312988281,\r
1812     "z": "7062000.f761",\r
1813     "wires": [\r
1814       [\r
1815         "3d26932b.7c3bc4",\r
1816         "11ea41e8.6fef1e",\r
1817         "60ff709f.49eb3"\r
1818       ]\r
1819     ]\r
1820   },\r
1821   {\r
1822     "id": "3d26932b.7c3bc4",\r
1823     "type": "success",\r
1824     "name": "success",\r
1825     "xml": "<outcome value='success'>\n",\r
1826     "comments": "",\r
1827     "outputs": 1,\r
1828     "x": 4113.383453369141,\r
1829     "y": 1281.8833312988281,\r
1830     "z": "7062000.f761",\r
1831     "wires": [\r
1832       [\r
1833         "e66646fd.ae97a8"\r
1834       ]\r
1835     ]\r
1836   },\r
1837   {\r
1838     "id": "11ea41e8.6fef1e",\r
1839     "type": "not-found",\r
1840     "name": "not-found",\r
1841     "xml": "<outcome value='not-found'>\n",\r
1842     "comments": "",\r
1843     "outputs": 1,\r
1844     "x": 4105.383453369141,\r
1845     "y": 1336.8833312988281,\r
1846     "z": "7062000.f761",\r
1847     "wires": [\r
1848       [\r
1849         "6bc38e9e.a8f668"\r
1850       ]\r
1851     ]\r
1852   },\r
1853   {\r
1854     "id": "60ff709f.49eb3",\r
1855     "type": "other",\r
1856     "name": "other",\r
1857     "xml": "<outcome value='Other'>\n",\r
1858     "comments": "",\r
1859     "outputs": 1,\r
1860     "x": 4110.383453369141,\r
1861     "y": 1393.8833312988281,\r
1862     "z": "7062000.f761",\r
1863     "wires": [\r
1864       [\r
1865         "1b2700d2.65979f"\r
1866       ]\r
1867     ]\r
1868   },\r
1869   {\r
1870     "id": "1b2700d2.65979f",\r
1871     "type": "returnFailure",\r
1872     "name": "return failure",\r
1873     "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
1874     "comments": "",\r
1875     "x": 4262.383453369141,\r
1876     "y": 1394.8833312988281,\r
1877     "z": "7062000.f761",\r
1878     "wires": []\r
1879   },\r
1880   {\r
1881     "id": "6bc38e9e.a8f668",\r
1882     "type": "returnFailure",\r
1883     "name": "return failure",\r
1884     "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
1885     "comments": "",\r
1886     "x": 4273.383453369141,\r
1887     "y": 1339.8833312988281,\r
1888     "z": "7062000.f761",\r
1889     "wires": []\r
1890   },\r
1891   {\r
1892     "id": "e66646fd.ae97a8",\r
1893     "type": "block",\r
1894     "name": "block",\r
1895     "xml": "<block>\n",\r
1896     "atomic": "false",\r
1897     "comments": "",\r
1898     "outputs": 1,\r
1899     "x": 4257.765777587891,\r
1900     "y": 1279.5390014648438,\r
1901     "z": "7062000.f761",\r
1902     "wires": [\r
1903       [\r
1904         "8c7c1f5.e4db1e"\r
1905       ]\r
1906     ]\r
1907   },\r
1908   {\r
1909     "id": "8c7c1f5.e4db1e",\r
1910     "type": "for",\r
1911     "name": "for each relationship",\r
1912     "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
1913     "comments": "",\r
1914     "outputs": 1,\r
1915     "x": 4441.883331298828,\r
1916     "y": 1293.8833312988281,\r
1917     "z": "7062000.f761",\r
1918     "wires": [\r
1919       [\r
1920         "9be30f1d.25d3a8"\r
1921       ]\r
1922     ]\r
1923   },\r
1924   {\r
1925     "id": "a1eca114.4be78",\r
1926     "type": "set",\r
1927     "name": "set ltpId",\r
1928     "xml": "<set>\n<parameter name='tmp.src.ltpId' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n",\r
1929     "comments": "",\r
1930     "x": 4608.883331298828,\r
1931     "y": 1479.8833312988281,\r
1932     "z": "7062000.f761",\r
1933     "wires": []\r
1934   },\r
1935   {\r
1936     "id": "e1f125c0.caa6f",\r
1937     "type": "set",\r
1938     "name": "set pnf-name",\r
1939     "xml": "<set>\n<parameter name='tmp.src.pnf-name' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n",\r
1940     "comments": "",\r
1941     "x": 4609.883331298828,\r
1942     "y": 1587.8833312988281,\r
1943     "z": "7062000.f761",\r
1944     "wires": []\r
1945   },\r
1946   {\r
1947     "id": "b9cba76c.d9c1f8",\r
1948     "type": "comment",\r
1949     "name": "TODO: FIXME",\r
1950     "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
1951     "comments": "",\r
1952     "x": 4610.883331298828,\r
1953     "y": 1536.8833312988281,\r
1954     "z": "7062000.f761",\r
1955     "wires": []\r
1956   },\r
1957   {\r
1958     "id": "f6db1963.f8cc08",\r
1959     "type": "block",\r
1960     "name": "block : atomic",\r
1961     "xml": "<block atomic=\"true\">",\r
1962     "atomic": "true",\r
1963     "outputs": 1,\r
1964     "x": 4633.000518798828,\r
1965     "y": 1854.2236633300781,\r
1966     "z": "7062000.f761",\r
1967     "wires": [\r
1968       [\r
1969         "7891783a.b17838",\r
1970         "d094659a.049558",\r
1971         "9c226fb0.3cc118"\r
1972       ]\r
1973     ]\r
1974   },\r
1975   {\r
1976     "id": "7891783a.b17838",\r
1977     "type": "set",\r
1978     "name": "set source ttp-id",\r
1979     "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
1980     "comments": "",\r
1981     "x": 4848.000518798828,\r
1982     "y": 1816.2236633300781,\r
1983     "z": "7062000.f761",\r
1984     "wires": []\r
1985   },\r
1986   {\r
1987     "id": "d094659a.049558",\r
1988     "type": "get-resource",\r
1989     "name": "get-resource src TTP",\r
1990     "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
1991     "comments": "",\r
1992     "outputs": 1,\r
1993     "x": 4845.000518798828,\r
1994     "y": 1855.2236633300781,\r
1995     "z": "7062000.f761",\r
1996     "wires": [\r
1997       [\r
1998         "7580173.08b9968"\r
1999       ]\r
2000     ]\r
2001   },\r
2002   {\r
2003     "id": "9c226fb0.3cc118",\r
2004     "type": "break",\r
2005     "name": "break",\r
2006     "xml": "<break>\n",\r
2007     "comments": "",\r
2008     "x": 4800.500518798828,\r
2009     "y": 1897.2236633300781,\r
2010     "z": "7062000.f761",\r
2011     "wires": []\r
2012   },\r
2013   {\r
2014     "id": "7580173.08b9968",\r
2015     "type": "success",\r
2016     "name": "success",\r
2017     "xml": "<outcome value='success'>\n",\r
2018     "comments": "",\r
2019     "outputs": 1,\r
2020     "x": 5025.500518798828,\r
2021     "y": 1854.2236633300781,\r
2022     "z": "7062000.f761",\r
2023     "wires": [\r
2024       [\r
2025         "cbf832f4.29b03"\r
2026       ]\r
2027     ]\r
2028   },\r
2029   {\r
2030     "id": "c301ea5d.736948",\r
2031     "type": "outcome",\r
2032     "name": "esr-thirdparty-sdnc",\r
2033     "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
2034     "comments": "",\r
2035     "outputs": 1,\r
2036     "x": 4839.883331298828,\r
2037     "y": 1297.8833312988281,\r
2038     "z": "7062000.f761",\r
2039     "wires": [\r
2040       [\r
2041         "82c12c36.ef82a"\r
2042       ]\r
2043     ]\r
2044   },\r
2045   {\r
2046     "id": "82c12c36.ef82a",\r
2047     "type": "block",\r
2048     "name": "block : atomic",\r
2049     "xml": "<block atomic=\"true\">",\r
2050     "atomic": "true",\r
2051     "outputs": 1,\r
2052     "x": 5016.883331298828,\r
2053     "y": 1289.8833312988281,\r
2054     "z": "7062000.f761",\r
2055     "wires": [\r
2056       [\r
2057         "99af67bd.f0a288",\r
2058         "27aaa5b6.e5d6a2"\r
2059       ]\r
2060     ]\r
2061   },\r
2062   {\r
2063     "id": "9be30f1d.25d3a8",\r
2064     "type": "switchNode",\r
2065     "name": "switch related-to",\r
2066     "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
2067     "comments": "",\r
2068     "outputs": 1,\r
2069     "x": 4636.883331298828,\r
2070     "y": 1293.8833312988281,\r
2071     "z": "7062000.f761",\r
2072     "wires": [\r
2073       [\r
2074         "c301ea5d.736948",\r
2075         "d642ceb0.6d61d8"\r
2076       ]\r
2077     ]\r
2078   },\r
2079   {\r
2080     "id": "d642ceb0.6d61d8",\r
2081     "type": "outcome",\r
2082     "name": "network-resource",\r
2083     "xml": "<outcome value='network-resource'>",\r
2084     "comments": "",\r
2085     "outputs": 1,\r
2086     "x": 4842.883331298828,\r
2087     "y": 1371.8833312988281,\r
2088     "z": "7062000.f761",\r
2089     "wires": [\r
2090       [\r
2091         "8d64b35.e02ce5"\r
2092       ]\r
2093     ]\r
2094   },\r
2095   {\r
2096     "id": "8d64b35.e02ce5",\r
2097     "type": "block",\r
2098     "name": "block : atomic",\r
2099     "xml": "<block atomic=\"true\">",\r
2100     "atomic": "true",\r
2101     "outputs": 1,\r
2102     "x": 5019.883331298828,\r
2103     "y": 1363.8833312988281,\r
2104     "z": "7062000.f761",\r
2105     "wires": [\r
2106       [\r
2107         "b7238960.567a78"\r
2108       ]\r
2109     ]\r
2110   },\r
2111   {\r
2112     "id": "cbf832f4.29b03",\r
2113     "type": "block",\r
2114     "name": "block : atomic",\r
2115     "xml": "<block atomic=\"true\">",\r
2116     "atomic": "true",\r
2117     "outputs": 1,\r
2118     "x": 5183.500518798828,\r
2119     "y": 1854.2236633300781,\r
2120     "z": "7062000.f761",\r
2121     "wires": [\r
2122       [\r
2123         "703f7e18.3396c8"\r
2124       ]\r
2125     ]\r
2126   },\r
2127   {\r
2128     "id": "703f7e18.3396c8",\r
2129     "type": "set",\r
2130     "name": "set source tunnel tp ip",\r
2131     "xml": "<set>\n<parameter name='source.tunnel-tp-id' value=\"`$tmp.aai.source-ttp.tunnel-tp-id`\" />\n",\r
2132     "comments": "",\r
2133     "x": 5390.500518798828,\r
2134     "y": 1854.2236633300781,\r
2135     "z": "7062000.f761",\r
2136     "wires": []\r
2137   },\r
2138   {\r
2139     "id": "27aaa5b6.e5d6a2",\r
2140     "type": "execute",\r
2141     "name": "get esr-thirdparty-sdnc",\r
2142     "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
2143     "comments": "",\r
2144     "outputs": 1,\r
2145     "x": 5224.883331298828,\r
2146     "y": 1296.8833312988281,\r
2147     "z": "7062000.f761",\r
2148     "wires": [\r
2149       [\r
2150         "5f4852b0.deaefc",\r
2151         "a3e152bc.1612f",\r
2152         "6a748238.68a734"\r
2153       ]\r
2154     ]\r
2155   },\r
2156   {\r
2157     "id": "99af67bd.f0a288",\r
2158     "type": "set",\r
2159     "name": "set esr-thirdparty-sdnc domainA id",\r
2160     "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
2161     "comments": "",\r
2162     "x": 5254.883331298828,\r
2163     "y": 1244.8833312988281,\r
2164     "z": "7062000.f761",\r
2165     "wires": []\r
2166   },\r
2167   {\r
2168     "id": "5f4852b0.deaefc",\r
2169     "type": "success",\r
2170     "name": "success",\r
2171     "xml": "<outcome value='success'>\n",\r
2172     "comments": "",\r
2173     "outputs": 1,\r
2174     "x": 5434.883331298828,\r
2175     "y": 1287.8833312988281,\r
2176     "z": "7062000.f761",\r
2177     "wires": [\r
2178       [\r
2179         "fce8f611.8c7338"\r
2180       ]\r
2181     ]\r
2182   },\r
2183   {\r
2184     "id": "a3e152bc.1612f",\r
2185     "type": "not-found",\r
2186     "name": "not-found",\r
2187     "xml": "<outcome value='not-found'>\n",\r
2188     "comments": "",\r
2189     "outputs": 1,\r
2190     "x": 5426.883331298828,\r
2191     "y": 1342.8833312988281,\r
2192     "z": "7062000.f761",\r
2193     "wires": [\r
2194       [\r
2195         "23b3b244.7d6476"\r
2196       ]\r
2197     ]\r
2198   },\r
2199   {\r
2200     "id": "6a748238.68a734",\r
2201     "type": "other",\r
2202     "name": "other",\r
2203     "xml": "<outcome value='Other'>\n",\r
2204     "comments": "",\r
2205     "outputs": 1,\r
2206     "x": 5431.883331298828,\r
2207     "y": 1399.8833312988281,\r
2208     "z": "7062000.f761",\r
2209     "wires": [\r
2210       [\r
2211         "a282f316.3a8968"\r
2212       ]\r
2213     ]\r
2214   },\r
2215   {\r
2216     "id": "a282f316.3a8968",\r
2217     "type": "returnFailure",\r
2218     "name": "return failure",\r
2219     "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
2220     "comments": "",\r
2221     "x": 5583.883331298828,\r
2222     "y": 1400.8833312988281,\r
2223     "z": "7062000.f761",\r
2224     "wires": []\r
2225   },\r
2226   {\r
2227     "id": "23b3b244.7d6476",\r
2228     "type": "returnFailure",\r
2229     "name": "return failure",\r
2230     "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
2231     "comments": "",\r
2232     "x": 5594.883331298828,\r
2233     "y": 1345.8833312988281,\r
2234     "z": "7062000.f761",\r
2235     "wires": []\r
2236   },\r
2237   {\r
2238     "id": "fce8f611.8c7338",\r
2239     "type": "block",\r
2240     "name": "block",\r
2241     "xml": "<block>\n",\r
2242     "atomic": "false",\r
2243     "comments": "",\r
2244     "outputs": 1,\r
2245     "x": 5579.265655517578,\r
2246     "y": 1285.5390014648438,\r
2247     "z": "7062000.f761",\r
2248     "wires": [\r
2249       [\r
2250         "a440aece.fb083"\r
2251       ]\r
2252     ]\r
2253   },\r
2254   {\r
2255     "id": "b7238960.567a78",\r
2256     "type": "set",\r
2257     "name": "set domainA ethernet layer network-id",\r
2258     "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
2259     "comments": "",\r
2260     "x": 5254.883331298828,\r
2261     "y": 1487.8833312988281,\r
2262     "z": "7062000.f761",\r
2263     "wires": []\r
2264   },\r
2265   {\r
2266     "id": "a440aece.fb083",\r
2267     "type": "set",\r
2268     "name": "set controller domainA data",\r
2269     "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
2270     "comments": "",\r
2271     "x": 5793.883331298828,\r
2272     "y": 1281.8833312988281,\r
2273     "z": "7062000.f761",\r
2274     "wires": []\r
2275   },\r
2276   {\r
2277     "id": "5b9ee810.250ef",\r
2278     "type": "set",\r
2279     "name": "set network-route-B",\r
2280     "xml": "<set>\n<parameter name='tmp.aai.network-route-B.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
2281     "comments": "",\r
2282     "x": 4377.883331298828,\r
2283     "y": 935.8833312988281,\r
2284     "z": "7062000.f761",\r
2285     "wires": []\r
2286   },\r
2287   {\r
2288     "id": "8e2d81c0.4fd7e8",\r
2289     "type": "set",\r
2290     "name": "set network-route-A",\r
2291     "xml": "<set>\n<parameter name='tmp.aai.network-route-A.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
2292     "comments": "",\r
2293     "x": 4368.883331298828,\r
2294     "y": 1033.8833312988281,\r
2295     "z": "7062000.f761",\r
2296     "wires": []\r
2297   },\r
2298   {\r
2299     "id": "2d74202a.0b02c",\r
2300     "type": "block",\r
2301     "name": "block",\r
2302     "xml": "<block>\n",\r
2303     "atomic": "false",\r
2304     "comments": "",\r
2305     "outputs": 1,\r
2306     "x": 4202.883331298828,\r
2307     "y": 941.8833312988281,\r
2308     "z": "7062000.f761",\r
2309     "wires": [\r
2310       [\r
2311         "698ac3d0.bab4ec",\r
2312         "5b9ee810.250ef"\r
2313       ]\r
2314     ]\r
2315   },\r
2316   {\r
2317     "id": "7e647400.994a6c",\r
2318     "type": "block",\r
2319     "name": "block",\r
2320     "xml": "<block>\n",\r
2321     "atomic": "false",\r
2322     "comments": "",\r
2323     "outputs": 1,\r
2324     "x": 4208.883331298828,\r
2325     "y": 1005.8833312988281,\r
2326     "z": "7062000.f761",\r
2327     "wires": [\r
2328       [\r
2329         "d12533f5.293ec",\r
2330         "8e2d81c0.4fd7e8"\r
2331       ]\r
2332     ]\r
2333   },\r
2334   {\r
2335     "id": "45ecb3a3.4434cc",\r
2336     "type": "block",\r
2337     "name": "block",\r
2338     "xml": "<block>\n",\r
2339     "atomic": "false",\r
2340     "comments": "",\r
2341     "outputs": 1,\r
2342     "x": 4208.883331298828,\r
2343     "y": 1111.8833312988281,\r
2344     "z": "7062000.f761",\r
2345     "wires": [\r
2346       [\r
2347         "cfe2458d.e53598",\r
2348         "1ea1c70f.8279e9"\r
2349       ]\r
2350     ]\r
2351   },\r
2352   {\r
2353     "id": "c83b931a.caa288",\r
2354     "type": "block",\r
2355     "name": "block",\r
2356     "xml": "<block>\n",\r
2357     "atomic": "false",\r
2358     "comments": "",\r
2359     "outputs": 1,\r
2360     "x": 4211.883331298828,\r
2361     "y": 1164.8833312988281,\r
2362     "z": "7062000.f761",\r
2363     "wires": [\r
2364       [\r
2365         "e0154f38.db2ba",\r
2366         "85671ae.a18b1e8"\r
2367       ]\r
2368     ]\r
2369   },\r
2370   {\r
2371     "id": "1ea1c70f.8279e9",\r
2372     "type": "set",\r
2373     "name": "set network-route-B",\r
2374     "xml": "<set>\n<parameter name='tmp.aai.network-route-B.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
2375     "comments": "",\r
2376     "x": 4368.883331298828,\r
2377     "y": 1124.8833312988281,\r
2378     "z": "7062000.f761",\r
2379     "wires": []\r
2380   },\r
2381   {\r
2382     "id": "85671ae.a18b1e8",\r
2383     "type": "set",\r
2384     "name": "set network-route-A",\r
2385     "xml": "<set>\n<parameter name='tmp.aai.network-route-A.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
2386     "comments": "",\r
2387     "x": 4371.883331298828,\r
2388     "y": 1215.8833312988281,\r
2389     "z": "7062000.f761",\r
2390     "wires": []\r
2391   },\r
2392   {\r
2393     "id": "7278edf2.b8b58c",\r
2394     "type": "block",\r
2395     "name": "block : atomic",\r
2396     "xml": "<block atomic=\"true\">",\r
2397     "atomic": "true",\r
2398     "outputs": 1,\r
2399     "x": 3743.883331298828,\r
2400     "y": 2425.883331298828,\r
2401     "z": "7062000.f761",\r
2402     "wires": [\r
2403       [\r
2404         "3fae525c.90658e",\r
2405         "13c312d5.234edd"\r
2406       ]\r
2407     ]\r
2408   },\r
2409   {\r
2410     "id": "2fa6509a.e12468",\r
2411     "type": "success",\r
2412     "name": "success",\r
2413     "xml": "<outcome value='success'>\n",\r
2414     "comments": "",\r
2415     "outputs": 1,\r
2416     "x": 3571.216827392578,\r
2417     "y": 2426.883331298828,\r
2418     "z": "7062000.f761",\r
2419     "wires": [\r
2420       [\r
2421         "7278edf2.b8b58c"\r
2422       ]\r
2423     ]\r
2424   },\r
2425   {\r
2426     "id": "2125c96e.09934e",\r
2427     "type": "not-found",\r
2428     "name": "not-found",\r
2429     "xml": "<outcome value='not-found'>\n",\r
2430     "comments": "",\r
2431     "outputs": 1,\r
2432     "x": 3580.707794189453,\r
2433     "y": 2469.4573669433594,\r
2434     "z": "7062000.f761",\r
2435     "wires": [\r
2436       [\r
2437         "68c9e27f.22495c"\r
2438       ]\r
2439     ]\r
2440   },\r
2441   {\r
2442     "id": "be5c9f7d.6c274",\r
2443     "type": "failure",\r
2444     "name": "failure",\r
2445     "xml": "<outcome value='failure'>\n",\r
2446     "comments": "",\r
2447     "outputs": 1,\r
2448     "x": 3569.216827392578,\r
2449     "y": 2515.883331298828,\r
2450     "z": "7062000.f761",\r
2451     "wires": [\r
2452       [\r
2453         "dc663a75.10e1e"\r
2454       ]\r
2455     ]\r
2456   },\r
2457   {\r
2458     "id": "68c9e27f.22495c",\r
2459     "type": "returnFailure",\r
2460     "name": "return failure",\r
2461     "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
2462     "comments": "",\r
2463     "x": 3734.2792053222656,\r
2464     "y": 2472.7431030273438,\r
2465     "z": "7062000.f761",\r
2466     "wires": []\r
2467   },\r
2468   {\r
2469     "id": "dc663a75.10e1e",\r
2470     "type": "returnFailure",\r
2471     "name": "return failure",\r
2472     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
2473     "comments": "",\r
2474     "x": 3738.216827392578,\r
2475     "y": 2516.883331298828,\r
2476     "z": "7062000.f761",\r
2477     "wires": []\r
2478   },\r
2479   {\r
2480     "id": "3fae525c.90658e",\r
2481     "type": "execute",\r
2482     "name": "execute split tp-id to get pnf-name",\r
2483     "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
2484     "comments": "",\r
2485     "outputs": 1,\r
2486     "x": 4030.216827392578,\r
2487     "y": 2429.8834533691406,\r
2488     "z": "7062000.f761",\r
2489     "wires": [\r
2490       [\r
2491         "f8506393.ef4d48",\r
2492         "ae1a7fe2.9ff988"\r
2493       ]\r
2494     ]\r
2495   },\r
2496   {\r
2497     "id": "ae1a7fe2.9ff988",\r
2498     "type": "failure",\r
2499     "name": "success",\r
2500     "xml": "<outcome value='success'>\n",\r
2501     "comments": "",\r
2502     "outputs": 1,\r
2503     "x": 4253.216827392578,\r
2504     "y": 2384.8834533691406,\r
2505     "z": "7062000.f761",\r
2506     "wires": [\r
2507       [\r
2508         "bd5252ed.d0e86"\r
2509       ]\r
2510     ]\r
2511   },\r
2512   {\r
2513     "id": "f8506393.ef4d48",\r
2514     "type": "failure",\r
2515     "name": "failure",\r
2516     "xml": "<outcome value='failure'>\n",\r
2517     "comments": "",\r
2518     "outputs": 1,\r
2519     "x": 4255.216827392578,\r
2520     "y": 2448.8834533691406,\r
2521     "z": "7062000.f761",\r
2522     "wires": [\r
2523       [\r
2524         "7b56fdc4.718894"\r
2525       ]\r
2526     ]\r
2527   },\r
2528   {\r
2529     "id": "7b56fdc4.718894",\r
2530     "type": "returnFailure",\r
2531     "name": "return failure",\r
2532     "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
2533     "comments": "",\r
2534     "x": 4414.216827392578,\r
2535     "y": 2467.8834533691406,\r
2536     "z": "7062000.f761",\r
2537     "wires": []\r
2538   },\r
2539   {\r
2540     "id": "bd5252ed.d0e86",\r
2541     "type": "block",\r
2542     "name": "block : atomic",\r
2543     "xml": "<block atomic=\"true\">",\r
2544     "atomic": "true",\r
2545     "outputs": 1,\r
2546     "x": 4418.216827392578,\r
2547     "y": 2381.8834533691406,\r
2548     "z": "7062000.f761",\r
2549     "wires": [\r
2550       [\r
2551         "a04df249.3edf9",\r
2552         "4445456b.4ef0dc"\r
2553       ]\r
2554     ]\r
2555   },\r
2556   {\r
2557     "id": "dfb0d610.c67228",\r
2558     "type": "save",\r
2559     "name": "save connectivity resource in AAI",\r
2560     "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
2561     "comments": "",\r
2562     "outputs": 1,\r
2563     "x": 4032.216827392578,\r
2564     "y": 2588.8834533691406,\r
2565     "z": "7062000.f761",\r
2566     "wires": [\r
2567       []\r
2568     ]\r
2569   },\r
2570   {\r
2571     "id": "a9b19647.ecdf6",\r
2572     "type": "execute",\r
2573     "name": "execute UUID generator for connectivity domainB",\r
2574     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainB-uuid\"/>\n",\r
2575     "comments": "",\r
2576     "outputs": 1,\r
2577     "x": 4077.216827392578,\r
2578     "y": 2498.8834533691406,\r
2579     "z": "7062000.f761",\r
2580     "wires": [\r
2581       []\r
2582     ]\r
2583   },\r
2584   {\r
2585     "id": "d1080dc6.5d411",\r
2586     "type": "save",\r
2587     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
2588     "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
2589     "comments": "",\r
2590     "outputs": 1,\r
2591     "x": 4159.216827392578,\r
2592     "y": 2653.8834533691406,\r
2593     "z": "7062000.f761",\r
2594     "wires": [\r
2595       []\r
2596     ]\r
2597   },\r
2598   {\r
2599     "id": "52e7c1a.b628dc",\r
2600     "type": "save",\r
2601     "name": "get p-interface-dst from aai",\r
2602     "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
2603     "comments": "",\r
2604     "outputs": 1,\r
2605     "x": 3343.216827392578,\r
2606     "y": 2461.883331298828,\r
2607     "z": "7062000.f761",\r
2608     "wires": [\r
2609       [\r
2610         "2fa6509a.e12468",\r
2611         "2125c96e.09934e",\r
2612         "be5c9f7d.6c274"\r
2613       ]\r
2614     ]\r
2615   },\r
2616   {\r
2617     "id": "534c4b07.5a4374",\r
2618     "type": "comment",\r
2619     "name": "Question?",\r
2620     "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
2621     "comments": "",\r
2622     "x": 3304.216827392578,\r
2623     "y": 2405.883331298828,\r
2624     "z": "7062000.f761",\r
2625     "wires": []\r
2626   },\r
2627   {\r
2628     "id": "59b35d49.e5c194",\r
2629     "type": "execute",\r
2630     "name": "execute split tp-id to get pnf-name",\r
2631     "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
2632     "comments": "",\r
2633     "outputs": 1,\r
2634     "x": 3361.216827392578,\r
2635     "y": 2124.8832092285156,\r
2636     "z": "7062000.f761",\r
2637     "wires": [\r
2638       [\r
2639         "8468812d.ab7d98",\r
2640         "832feae1.441b18"\r
2641       ]\r
2642     ]\r
2643   },\r
2644   {\r
2645     "id": "832feae1.441b18",\r
2646     "type": "failure",\r
2647     "name": "success",\r
2648     "xml": "<outcome value='success'>\n",\r
2649     "comments": "",\r
2650     "outputs": 1,\r
2651     "x": 3584.216827392578,\r
2652     "y": 2110.8832092285156,\r
2653     "z": "7062000.f761",\r
2654     "wires": [\r
2655       [\r
2656         "45b67ba7.081314"\r
2657       ]\r
2658     ]\r
2659   },\r
2660   {\r
2661     "id": "8468812d.ab7d98",\r
2662     "type": "failure",\r
2663     "name": "failure",\r
2664     "xml": "<outcome value='failure'>\n",\r
2665     "comments": "",\r
2666     "outputs": 1,\r
2667     "x": 3586.216827392578,\r
2668     "y": 2143.8832092285156,\r
2669     "z": "7062000.f761",\r
2670     "wires": [\r
2671       [\r
2672         "71974a85.bc9554"\r
2673       ]\r
2674     ]\r
2675   },\r
2676   {\r
2677     "id": "71974a85.bc9554",\r
2678     "type": "returnFailure",\r
2679     "name": "return failure",\r
2680     "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
2681     "comments": "",\r
2682     "x": 3729.216827392578,\r
2683     "y": 2140.8832092285156,\r
2684     "z": "7062000.f761",\r
2685     "wires": []\r
2686   },\r
2687   {\r
2688     "id": "45b67ba7.081314",\r
2689     "type": "block",\r
2690     "name": "block : atomic",\r
2691     "xml": "<block atomic=\"true\">",\r
2692     "atomic": "true",\r
2693     "outputs": 1,\r
2694     "x": 3732.216827392578,\r
2695     "y": 2103.8832092285156,\r
2696     "z": "7062000.f761",\r
2697     "wires": [\r
2698       [\r
2699         "10560f97.9ccdb",\r
2700         "fb974250.3eaa5"\r
2701       ]\r
2702     ]\r
2703   },\r
2704   {\r
2705     "id": "10560f97.9ccdb",\r
2706     "type": "set",\r
2707     "name": "set pnf-name",\r
2708     "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
2709     "comments": "",\r
2710     "x": 3926.216827392578,\r
2711     "y": 2106.883331298828,\r
2712     "z": "7062000.f761",\r
2713     "wires": []\r
2714   },\r
2715   {\r
2716     "id": "13c312d5.234edd",\r
2717     "type": "for",\r
2718     "name": "for each relationship",\r
2719     "xml": "<for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship_length`' >\n",\r
2720     "comments": "",\r
2721     "outputs": 1,\r
2722     "x": 3989.216827392578,\r
2723     "y": 2738.883331298828,\r
2724     "z": "7062000.f761",\r
2725     "wires": [\r
2726       [\r
2727         "4f9cbec5.496d9"\r
2728       ]\r
2729     ]\r
2730   },\r
2731   {\r
2732     "id": "4f9cbec5.496d9",\r
2733     "type": "switchNode",\r
2734     "name": "switch related-to",\r
2735     "xml": "<switch test='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].related-to`'>\n",\r
2736     "comments": "",\r
2737     "outputs": 1,\r
2738     "x": 4195.216827392578,\r
2739     "y": 2738.883331298828,\r
2740     "z": "7062000.f761",\r
2741     "wires": [\r
2742       [\r
2743         "b238117c.f6854"\r
2744       ]\r
2745     ]\r
2746   },\r
2747   {\r
2748     "id": "b238117c.f6854",\r
2749     "type": "outcome",\r
2750     "name": "tunnel-termination-point",\r
2751     "xml": "<outcome value='tunnel-termination-point'>\n",\r
2752     "comments": "",\r
2753     "outputs": 1,\r
2754     "x": 4412.502471923828,\r
2755     "y": 2737.705108642578,\r
2756     "z": "7062000.f761",\r
2757     "wires": [\r
2758       [\r
2759         "3bbc3c62.de1f1c"\r
2760       ]\r
2761     ]\r
2762   },\r
2763   {\r
2764     "id": "fb974250.3eaa5",\r
2765     "type": "get-resource",\r
2766     "name": "get-resource src pnf",\r
2767     "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
2768     "comments": "",\r
2769     "outputs": 1,\r
2770     "x": 3948.216827392578,\r
2771     "y": 2174.883331298828,\r
2772     "z": "7062000.f761",\r
2773     "wires": [\r
2774       [\r
2775         "8b8a9b87.c8a068",\r
2776         "46f3b355.657d1c",\r
2777         "789bb9ae.3c411"\r
2778       ]\r
2779     ]\r
2780   },\r
2781   {\r
2782     "id": "8b8a9b87.c8a068",\r
2783     "type": "success",\r
2784     "name": "success",\r
2785     "xml": "<outcome value='success'>\n",\r
2786     "comments": "",\r
2787     "outputs": 1,\r
2788     "x": 4143.716949462891,\r
2789     "y": 2126.883331298828,\r
2790     "z": "7062000.f761",\r
2791     "wires": [\r
2792       [\r
2793         "288864eb.075f34"\r
2794       ]\r
2795     ]\r
2796   },\r
2797   {\r
2798     "id": "46f3b355.657d1c",\r
2799     "type": "not-found",\r
2800     "name": "not-found",\r
2801     "xml": "<outcome value='not-found'>\n",\r
2802     "comments": "",\r
2803     "outputs": 1,\r
2804     "x": 4135.716949462891,\r
2805     "y": 2181.883331298828,\r
2806     "z": "7062000.f761",\r
2807     "wires": [\r
2808       [\r
2809         "f82ba322.6474e"\r
2810       ]\r
2811     ]\r
2812   },\r
2813   {\r
2814     "id": "789bb9ae.3c411",\r
2815     "type": "other",\r
2816     "name": "other",\r
2817     "xml": "<outcome value='Other'>\n",\r
2818     "comments": "",\r
2819     "outputs": 1,\r
2820     "x": 4140.716949462891,\r
2821     "y": 2238.883331298828,\r
2822     "z": "7062000.f761",\r
2823     "wires": [\r
2824       [\r
2825         "98f52488.0327b8"\r
2826       ]\r
2827     ]\r
2828   },\r
2829   {\r
2830     "id": "98f52488.0327b8",\r
2831     "type": "returnFailure",\r
2832     "name": "return failure",\r
2833     "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
2834     "comments": "",\r
2835     "x": 4292.716949462891,\r
2836     "y": 2239.883331298828,\r
2837     "z": "7062000.f761",\r
2838     "wires": []\r
2839   },\r
2840   {\r
2841     "id": "f82ba322.6474e",\r
2842     "type": "returnFailure",\r
2843     "name": "return failure",\r
2844     "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
2845     "comments": "",\r
2846     "x": 4303.716949462891,\r
2847     "y": 2184.883331298828,\r
2848     "z": "7062000.f761",\r
2849     "wires": []\r
2850   },\r
2851   {\r
2852     "id": "288864eb.075f34",\r
2853     "type": "block",\r
2854     "name": "block",\r
2855     "xml": "<block>\n",\r
2856     "atomic": "false",\r
2857     "comments": "",\r
2858     "outputs": 1,\r
2859     "x": 4288.099273681641,\r
2860     "y": 2124.5390014648438,\r
2861     "z": "7062000.f761",\r
2862     "wires": [\r
2863       [\r
2864         "ce45d16c.d5e628"\r
2865       ]\r
2866     ]\r
2867   },\r
2868   {\r
2869     "id": "a04df249.3edf9",\r
2870     "type": "set",\r
2871     "name": "set ltpId",\r
2872     "xml": "<set>\n<parameter name='tmp.dst.ltpId' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n",\r
2873     "comments": "",\r
2874     "x": 4588.216827392578,\r
2875     "y": 2342.8834533691406,\r
2876     "z": "7062000.f761",\r
2877     "wires": []\r
2878   },\r
2879   {\r
2880     "id": "4445456b.4ef0dc",\r
2881     "type": "set",\r
2882     "name": "set pnf-name",\r
2883     "xml": "<set>\n<parameter name='tmp.dst.pnf-name' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n",\r
2884     "comments": "",\r
2885     "x": 4589.216827392578,\r
2886     "y": 2447.8834533691406,\r
2887     "z": "7062000.f761",\r
2888     "wires": []\r
2889   },\r
2890   {\r
2891     "id": "c559d0ff.64e92",\r
2892     "type": "comment",\r
2893     "name": "TODO: FIXME",\r
2894     "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
2895     "comments": "",\r
2896     "x": 4584.216827392578,\r
2897     "y": 2396.8834533691406,\r
2898     "z": "7062000.f761",\r
2899     "wires": []\r
2900   },\r
2901   {\r
2902     "id": "3bbc3c62.de1f1c",\r
2903     "type": "block",\r
2904     "name": "block : atomic",\r
2905     "xml": "<block atomic=\"true\">",\r
2906     "atomic": "true",\r
2907     "outputs": 1,\r
2908     "x": 4619.334014892578,\r
2909     "y": 2727.2237854003906,\r
2910     "z": "7062000.f761",\r
2911     "wires": [\r
2912       [\r
2913         "f4fc0b3b.90cef8",\r
2914         "6738a6d1.eac328",\r
2915         "94eb5da4.00ce9"\r
2916       ]\r
2917     ]\r
2918   },\r
2919   {\r
2920     "id": "f4fc0b3b.90cef8",\r
2921     "type": "set",\r
2922     "name": "set destination ttp-id",\r
2923     "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
2924     "comments": "",\r
2925     "x": 4834.334014892578,\r
2926     "y": 2689.2237854003906,\r
2927     "z": "7062000.f761",\r
2928     "wires": []\r
2929   },\r
2930   {\r
2931     "id": "6738a6d1.eac328",\r
2932     "type": "get-resource",\r
2933     "name": "get-resource src TTP",\r
2934     "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
2935     "comments": "",\r
2936     "outputs": 1,\r
2937     "x": 4831.334014892578,\r
2938     "y": 2728.2237854003906,\r
2939     "z": "7062000.f761",\r
2940     "wires": [\r
2941       [\r
2942         "99dab506.61b3a8"\r
2943       ]\r
2944     ]\r
2945   },\r
2946   {\r
2947     "id": "94eb5da4.00ce9",\r
2948     "type": "break",\r
2949     "name": "break",\r
2950     "xml": "<break>\n",\r
2951     "comments": "",\r
2952     "x": 4786.834014892578,\r
2953     "y": 2770.2237854003906,\r
2954     "z": "7062000.f761",\r
2955     "wires": []\r
2956   },\r
2957   {\r
2958     "id": "99dab506.61b3a8",\r
2959     "type": "success",\r
2960     "name": "success",\r
2961     "xml": "<outcome value='success'>\n",\r
2962     "comments": "",\r
2963     "outputs": 1,\r
2964     "x": 5011.834014892578,\r
2965     "y": 2727.2237854003906,\r
2966     "z": "7062000.f761",\r
2967     "wires": [\r
2968       [\r
2969         "d09db1ae.3d50e8"\r
2970       ]\r
2971     ]\r
2972   },\r
2973   {\r
2974     "id": "d09db1ae.3d50e8",\r
2975     "type": "block",\r
2976     "name": "block : atomic",\r
2977     "xml": "<block atomic=\"true\">",\r
2978     "atomic": "true",\r
2979     "outputs": 1,\r
2980     "x": 5169.834014892578,\r
2981     "y": 2727.2237854003906,\r
2982     "z": "7062000.f761",\r
2983     "wires": [\r
2984       [\r
2985         "b4fea58e.4d08b"\r
2986       ]\r
2987     ]\r
2988   },\r
2989   {\r
2990     "id": "b4fea58e.4d08b",\r
2991     "type": "set",\r
2992     "name": "set destination tunnel tp ip",\r
2993     "xml": "<set>\n<parameter name='destination.tunnel-tp-id' value=\"`$tmp.aai.destination-ttp.tunnel-tp-id`\" />\n",\r
2994     "comments": "",\r
2995     "x": 5376.834014892578,\r
2996     "y": 2727.2237854003906,\r
2997     "z": "7062000.f761",\r
2998     "wires": []\r
2999   },\r
3000   {\r
3001     "id": "9cb60767.3dae68",\r
3002     "type": "outcome",\r
3003     "name": "esr-thirdparty-sdnc",\r
3004     "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
3005     "comments": "",\r
3006     "outputs": 1,\r
3007     "x": 4870.216827392578,\r
3008     "y": 2142.883331298828,\r
3009     "z": "7062000.f761",\r
3010     "wires": [\r
3011       [\r
3012         "20305f15.4fc8"\r
3013       ]\r
3014     ]\r
3015   },\r
3016   {\r
3017     "id": "20305f15.4fc8",\r
3018     "type": "block",\r
3019     "name": "block : atomic",\r
3020     "xml": "<block atomic=\"true\">",\r
3021     "atomic": "true",\r
3022     "outputs": 1,\r
3023     "x": 5047.216827392578,\r
3024     "y": 2134.883331298828,\r
3025     "z": "7062000.f761",\r
3026     "wires": [\r
3027       [\r
3028         "f06ad939.b3afb8",\r
3029         "eb592a74.9250f"\r
3030       ]\r
3031     ]\r
3032   },\r
3033   {\r
3034     "id": "ce45d16c.d5e628",\r
3035     "type": "for",\r
3036     "name": "for each relationship",\r
3037     "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",\r
3038     "comments": "",\r
3039     "outputs": 1,\r
3040     "x": 4472.216827392578,\r
3041     "y": 2138.883331298828,\r
3042     "z": "7062000.f761",\r
3043     "wires": [\r
3044       [\r
3045         "836b2028.73fa6"\r
3046       ]\r
3047     ]\r
3048   },\r
3049   {\r
3050     "id": "836b2028.73fa6",\r
3051     "type": "switchNode",\r
3052     "name": "switch related-to",\r
3053     "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",\r
3054     "comments": "",\r
3055     "outputs": 1,\r
3056     "x": 4667.216827392578,\r
3057     "y": 2138.883331298828,\r
3058     "z": "7062000.f761",\r
3059     "wires": [\r
3060       [\r
3061         "9cb60767.3dae68",\r
3062         "1e4a18fb.74350f"\r
3063       ]\r
3064     ]\r
3065   },\r
3066   {\r
3067     "id": "eb592a74.9250f",\r
3068     "type": "execute",\r
3069     "name": "get esr-thirdparty-sdnc",\r
3070     "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
3071     "comments": "",\r
3072     "outputs": 1,\r
3073     "x": 5255.216827392578,\r
3074     "y": 2141.883331298828,\r
3075     "z": "7062000.f761",\r
3076     "wires": [\r
3077       [\r
3078         "b94c1f46.28b1b8",\r
3079         "73a98c16.ea7094",\r
3080         "1e6cb9ce.e34866"\r
3081       ]\r
3082     ]\r
3083   },\r
3084   {\r
3085     "id": "4be3f63c.7d65d8",\r
3086     "type": "block",\r
3087     "name": "block : atomic",\r
3088     "xml": "<block atomic=\"true\">",\r
3089     "atomic": "true",\r
3090     "outputs": 1,\r
3091     "x": 5049.216827392578,\r
3092     "y": 2207.883331298828,\r
3093     "z": "7062000.f761",\r
3094     "wires": [\r
3095       [\r
3096         "573bcde0.7ae984"\r
3097       ]\r
3098     ]\r
3099   },\r
3100   {\r
3101     "id": "1e4a18fb.74350f",\r
3102     "type": "outcome",\r
3103     "name": "network-resource",\r
3104     "xml": "<outcome value='network-resource'>",\r
3105     "comments": "",\r
3106     "outputs": 1,\r
3107     "x": 4872.216827392578,\r
3108     "y": 2215.883331298828,\r
3109     "z": "7062000.f761",\r
3110     "wires": [\r
3111       [\r
3112         "4be3f63c.7d65d8"\r
3113       ]\r
3114     ]\r
3115   },\r
3116   {\r
3117     "id": "f06ad939.b3afb8",\r
3118     "type": "set",\r
3119     "name": "set esr-thirdparty-sdnc domainB id",\r
3120     "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
3121     "comments": "",\r
3122     "x": 5285.216827392578,\r
3123     "y": 2089.883331298828,\r
3124     "z": "7062000.f761",\r
3125     "wires": []\r
3126   },\r
3127   {\r
3128     "id": "573bcde0.7ae984",\r
3129     "type": "set",\r
3130     "name": "set domainB ethernet layer network-id",\r
3131     "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
3132     "comments": "",\r
3133     "x": 5284.216827392578,\r
3134     "y": 2331.883331298828,\r
3135     "z": "7062000.f761",\r
3136     "wires": []\r
3137   },\r
3138   {\r
3139     "id": "b94c1f46.28b1b8",\r
3140     "type": "success",\r
3141     "name": "success",\r
3142     "xml": "<outcome value='success'>\n",\r
3143     "comments": "",\r
3144     "outputs": 1,\r
3145     "x": 5465.216827392578,\r
3146     "y": 2132.883331298828,\r
3147     "z": "7062000.f761",\r
3148     "wires": [\r
3149       [\r
3150         "9cca84a4.69e27"\r
3151       ]\r
3152     ]\r
3153   },\r
3154   {\r
3155     "id": "73a98c16.ea7094",\r
3156     "type": "not-found",\r
3157     "name": "not-found",\r
3158     "xml": "<outcome value='not-found'>\n",\r
3159     "comments": "",\r
3160     "outputs": 1,\r
3161     "x": 5457.216827392578,\r
3162     "y": 2187.883331298828,\r
3163     "z": "7062000.f761",\r
3164     "wires": [\r
3165       [\r
3166         "e1e079f9.7a9848"\r
3167       ]\r
3168     ]\r
3169   },\r
3170   {\r
3171     "id": "1e6cb9ce.e34866",\r
3172     "type": "other",\r
3173     "name": "other",\r
3174     "xml": "<outcome value='Other'>\n",\r
3175     "comments": "",\r
3176     "outputs": 1,\r
3177     "x": 5462.216827392578,\r
3178     "y": 2244.883331298828,\r
3179     "z": "7062000.f761",\r
3180     "wires": [\r
3181       [\r
3182         "9609b4db.95e4f"\r
3183       ]\r
3184     ]\r
3185   },\r
3186   {\r
3187     "id": "9609b4db.95e4f",\r
3188     "type": "returnFailure",\r
3189     "name": "return failure",\r
3190     "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
3191     "comments": "",\r
3192     "x": 5614.216827392578,\r
3193     "y": 2245.883331298828,\r
3194     "z": "7062000.f761",\r
3195     "wires": []\r
3196   },\r
3197   {\r
3198     "id": "e1e079f9.7a9848",\r
3199     "type": "returnFailure",\r
3200     "name": "return failure",\r
3201     "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
3202     "comments": "",\r
3203     "x": 5625.216827392578,\r
3204     "y": 2190.883331298828,\r
3205     "z": "7062000.f761",\r
3206     "wires": []\r
3207   },\r
3208   {\r
3209     "id": "9cca84a4.69e27",\r
3210     "type": "block",\r
3211     "name": "block",\r
3212     "xml": "<block>\n",\r
3213     "atomic": "false",\r
3214     "comments": "",\r
3215     "outputs": 1,\r
3216     "x": 5609.599151611328,\r
3217     "y": 2130.5390014648438,\r
3218     "z": "7062000.f761",\r
3219     "wires": [\r
3220       [\r
3221         "b8027aff.eb46b"\r
3222       ]\r
3223     ]\r
3224   },\r
3225   {\r
3226     "id": "b8027aff.eb46b",\r
3227     "type": "set",\r
3228     "name": "set controller domainB data",\r
3229     "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
3230     "comments": "",\r
3231     "x": 5824.216827392578,\r
3232     "y": 2126.883331298828,\r
3233     "z": "7062000.f761",\r
3234     "wires": []\r
3235   },\r
3236   {\r
3237     "id": "cdada9b0.2f3a48",\r
3238     "type": "set",\r
3239     "name": "set LEAF stuff",\r
3240     "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
3241     "comments": "",\r
3242     "x": 3322.883331298828,\r
3243     "y": 1736.8833312988281,\r
3244     "z": "7062000.f761",\r
3245     "wires": []\r
3246   },\r
3247   {\r
3248     "id": "95e31216.278c48",\r
3249     "type": "comment",\r
3250     "name": "This is it (should be)",\r
3251     "info": "",\r
3252     "comments": "",\r
3253     "x": 4544.883331298828,\r
3254     "y": 1019.8833312988281,\r
3255     "z": "7062000.f761",\r
3256     "wires": []\r
3257   },\r
3258   {\r
3259     "id": "e1b848f1.cea8f8",\r
3260     "type": "comment",\r
3261     "name": "This is it (should be)",\r
3262     "info": "",\r
3263     "comments": "",\r
3264     "x": 4536.883331298828,\r
3265     "y": 1109.8833312988281,\r
3266     "z": "7062000.f761",\r
3267     "wires": []\r
3268   },\r
3269   {\r
3270     "id": "850e2800.badf2",\r
3271     "type": "set",\r
3272     "name": "set ROOT stuff",\r
3273     "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
3274     "comments": "",\r
3275     "x": 3303.883331298828,\r
3276     "y": 2592.883331298828,\r
3277     "z": "7062000.f761",\r
3278     "wires": []\r
3279   },\r
3280   {\r
3281     "id": "2b1064a0.eade7c",\r
3282     "type": "call",\r
3283     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-logic",\r
3284     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-logic' mode='sync' >\n\n",\r
3285     "comments": "",\r
3286     "outputs": 1,\r
3287     "x": 3454.883331298828,\r
3288     "y": 2840.883331298828,\r
3289     "z": "7062000.f761",\r
3290     "wires": [\r
3291       []\r
3292     ]\r
3293   },\r
3294   {\r
3295     "id": "a5bcbd5b.23b83",\r
3296     "type": "switchNode",\r
3297     "name": "switch found-middle-man?",\r
3298     "xml": "<switch test='`$found-middle-man`'>\n",\r
3299     "comments": "",\r
3300     "outputs": 1,\r
3301     "x": 3331.883331298828,\r
3302     "y": 2950.883331298828,\r
3303     "z": "7062000.f761",\r
3304     "wires": [\r
3305       [\r
3306         "6b05a347.83dffc",\r
3307         "734dd518.f869ec"\r
3308       ]\r
3309     ]\r
3310   },\r
3311   {\r
3312     "id": "6b05a347.83dffc",\r
3313     "type": "outcomeFalse",\r
3314     "name": "false",\r
3315     "xml": "<outcome value='false'>\n",\r
3316     "comments": "",\r
3317     "outputs": 1,\r
3318     "x": 3515.883331298828,\r
3319     "y": 2929.883331298828,\r
3320     "z": "7062000.f761",\r
3321     "wires": [\r
3322       [\r
3323         "81013cf2.231a08"\r
3324       ]\r
3325     ]\r
3326   },\r
3327   {\r
3328     "id": "734dd518.f869ec",\r
3329     "type": "outcomeTrue",\r
3330     "name": "true",\r
3331     "xml": "<outcome value='true'>\n",\r
3332     "comments": "",\r
3333     "outputs": 1,\r
3334     "x": 3051.883331298828,\r
3335     "y": 4515.883331298828,\r
3336     "z": "7062000.f761",\r
3337     "wires": [\r
3338       [\r
3339         "adcb6448.ea7478"\r
3340       ]\r
3341     ]\r
3342   },\r
3343   {\r
3344     "id": "68da37f9.05cc18",\r
3345     "type": "block",\r
3346     "name": "block : atomic",\r
3347     "xml": "<block atomic='true'>",\r
3348     "atomic": "true",\r
3349     "comments": "",\r
3350     "outputs": 1,\r
3351     "x": 3562.883331298828,\r
3352     "y": 5100.883331298828,\r
3353     "z": "7062000.f761",\r
3354     "wires": [\r
3355       [\r
3356         "d849eb29.b778b",\r
3357         "fb71ca0a.fe8928",\r
3358         "c01640bb.f526e8",\r
3359         "298d7f45.2553b",\r
3360         "4ebb86dc.a0713"\r
3361       ]\r
3362     ]\r
3363   },\r
3364   {\r
3365     "id": "81013cf2.231a08",\r
3366     "type": "block",\r
3367     "name": "block : atomic",\r
3368     "xml": "<block atomic='true'>",\r
3369     "atomic": "true",\r
3370     "comments": "",\r
3371     "outputs": 1,\r
3372     "x": 6634.883331298828,\r
3373     "y": 2959.883331298828,\r
3374     "z": "7062000.f761",\r
3375     "wires": [\r
3376       [\r
3377         "8a2aea1.11dcc18",\r
3378         "f98cf202.f36e28",\r
3379         "90c516f3.625c7",\r
3380         "2f838a6e.450ff6",\r
3381         "1aed0e7e.f8efea",\r
3382         "c314ffe6.755b68",\r
3383         "92f41cb.d6037e",\r
3384         "1663311a.25772f",\r
3385         "12533815.a962b",\r
3386         "110e6104.d57bd7",\r
3387         "9037ac75.0bc238",\r
3388         "3017f19.9b8270e",\r
3389         "b384a7be.8178a",\r
3390         "bc57a86f.472ff",\r
3391         "ca7cd34b.bc2bf",\r
3392         "139339a2.2c6a06",\r
3393         "3b830a4d.e803be",\r
3394         "9ce39c8b.582fa",\r
3395         "79c8e0a2.e2d0f"\r
3396       ]\r
3397     ]\r
3398   },\r
3399   {\r
3400     "id": "12533815.a962b",\r
3401     "type": "execute",\r
3402     "name": "execute UUID generator for connectivity domainB",\r
3403     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainB-uuid\"/>\n",\r
3404     "comments": "",\r
3405     "outputs": 1,\r
3406     "x": 6945.883331298828,\r
3407     "y": 3314.883331298828,\r
3408     "z": "7062000.f761",\r
3409     "wires": [\r
3410       []\r
3411     ]\r
3412   },\r
3413   {\r
3414     "id": "8a2aea1.11dcc18",\r
3415     "type": "save",\r
3416     "name": "save connectivity resource in AAI",\r
3417     "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
3418     "comments": "",\r
3419     "outputs": 1,\r
3420     "x": 6899.883331298828,\r
3421     "y": 3412.883331298828,\r
3422     "z": "7062000.f761",\r
3423     "wires": [\r
3424       []\r
3425     ]\r
3426   },\r
3427   {\r
3428     "id": "f98cf202.f36e28",\r
3429     "type": "save",\r
3430     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
3431     "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
3432     "comments": "",\r
3433     "outputs": 1,\r
3434     "x": 7035.883331298828,\r
3435     "y": 3459.883331298828,\r
3436     "z": "7062000.f761",\r
3437     "wires": [\r
3438       []\r
3439     ]\r
3440   },\r
3441   {\r
3442     "id": "c27f6f12.2b7db",\r
3443     "type": "comment",\r
3444     "name": "Create ROOT connectivity",\r
3445     "info": "",\r
3446     "comments": "",\r
3447     "x": 6866.883331298828,\r
3448     "y": 3263.883331298828,\r
3449     "z": "7062000.f761",\r
3450     "wires": []\r
3451   },\r
3452   {\r
3453     "id": "c8ec9937.7e8ac",\r
3454     "type": "comment",\r
3455     "name": "create middle man connectivity and ...",\r
3456     "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
3457     "comments": "",\r
3458     "x": 7392.883331298828,\r
3459     "y": 3754.883331298828,\r
3460     "z": "7062000.f761",\r
3461     "wires": []\r
3462   },\r
3463   {\r
3464     "id": "90c516f3.625c7",\r
3465     "type": "execute",\r
3466     "name": "execute UUID generator for connectivity middle-man",\r
3467     "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
3468     "comments": "",\r
3469     "outputs": 1,\r
3470     "x": 6956.883331298828,\r
3471     "y": 3793.883331298828,\r
3472     "z": "7062000.f761",\r
3473     "wires": [\r
3474       []\r
3475     ]\r
3476   },\r
3477   {\r
3478     "id": "2f838a6e.450ff6",\r
3479     "type": "save",\r
3480     "name": "save connectivity resource in AAI",\r
3481     "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
3482     "comments": "",\r
3483     "outputs": 1,\r
3484     "x": 6904.883331298828,\r
3485     "y": 3844.883331298828,\r
3486     "z": "7062000.f761",\r
3487     "wires": [\r
3488       []\r
3489     ]\r
3490   },\r
3491   {\r
3492     "id": "1aed0e7e.f8efea",\r
3493     "type": "save",\r
3494     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
3495     "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
3496     "comments": "",\r
3497     "outputs": 1,\r
3498     "x": 7040.883331298828,\r
3499     "y": 3891.883331298828,\r
3500     "z": "7062000.f761",\r
3501     "wires": [\r
3502       []\r
3503     ]\r
3504   },\r
3505   {\r
3506     "id": "26cc918c.53f13e",\r
3507     "type": "comment",\r
3508     "name": "Create MIDDLE-MAN connectivity",\r
3509     "info": "",\r
3510     "comments": "",\r
3511     "x": 6897.883331298828,\r
3512     "y": 3753.883331298828,\r
3513     "z": "7062000.f761",\r
3514     "wires": []\r
3515   },\r
3516   {\r
3517     "id": "4f7a1677.0cc04",\r
3518     "type": "block",\r
3519     "name": "block : atomic",\r
3520     "xml": "<block atomic='true'>",\r
3521     "atomic": "true",\r
3522     "comments": "",\r
3523     "outputs": 1,\r
3524     "x": 7327.883331298828,\r
3525     "y": 3950.883331298828,\r
3526     "z": "7062000.f761",\r
3527     "wires": [\r
3528       []\r
3529     ]\r
3530   },\r
3531   {\r
3532     "id": "c314ffe6.755b68",\r
3533     "type": "save",\r
3534     "name": "get middle-man connectivity from aai",\r
3535     "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
3536     "comments": "",\r
3537     "outputs": 1,\r
3538     "x": 6918.883331298828,\r
3539     "y": 3997.883331298828,\r
3540     "z": "7062000.f761",\r
3541     "wires": [\r
3542       [\r
3543         "b94a6109.4587b8",\r
3544         "244569e0.e8b39e",\r
3545         "f408fad5.acd5c"\r
3546       ]\r
3547     ]\r
3548   },\r
3549   {\r
3550     "id": "b94a6109.4587b8",\r
3551     "type": "success",\r
3552     "name": "success",\r
3553     "xml": "<outcome value='success'>\n",\r
3554     "comments": "",\r
3555     "outputs": 1,\r
3556     "x": 7165.883331298828,\r
3557     "y": 3951.883331298828,\r
3558     "z": "7062000.f761",\r
3559     "wires": [\r
3560       [\r
3561         "4f7a1677.0cc04"\r
3562       ]\r
3563     ]\r
3564   },\r
3565   {\r
3566     "id": "244569e0.e8b39e",\r
3567     "type": "not-found",\r
3568     "name": "not-found",\r
3569     "xml": "<outcome value='not-found'>\n",\r
3570     "comments": "",\r
3571     "outputs": 1,\r
3572     "x": 7166.374298095703,\r
3573     "y": 3997.4573669433594,\r
3574     "z": "7062000.f761",\r
3575     "wires": [\r
3576       [\r
3577         "c4e6aa20.1e07c8"\r
3578       ]\r
3579     ]\r
3580   },\r
3581   {\r
3582     "id": "f408fad5.acd5c",\r
3583     "type": "failure",\r
3584     "name": "failure",\r
3585     "xml": "<outcome value='failure'>\n",\r
3586     "comments": "",\r
3587     "outputs": 1,\r
3588     "x": 7163.883331298828,\r
3589     "y": 4040.883331298828,\r
3590     "z": "7062000.f761",\r
3591     "wires": [\r
3592       [\r
3593         "5ee0d1d0.ddd63"\r
3594       ]\r
3595     ]\r
3596   },\r
3597   {\r
3598     "id": "c4e6aa20.1e07c8",\r
3599     "type": "returnFailure",\r
3600     "name": "return failure",\r
3601     "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
3602     "comments": "",\r
3603     "x": 7328.945709228516,\r
3604     "y": 3997.7431030273438,\r
3605     "z": "7062000.f761",\r
3606     "wires": []\r
3607   },\r
3608   {\r
3609     "id": "5ee0d1d0.ddd63",\r
3610     "type": "returnFailure",\r
3611     "name": "return failure",\r
3612     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
3613     "comments": "",\r
3614     "x": 7332.883331298828,\r
3615     "y": 4041.883331298828,\r
3616     "z": "7062000.f761",\r
3617     "wires": []\r
3618   },\r
3619   {\r
3620     "id": "ca7cd34b.bc2bf",\r
3621     "type": "save",\r
3622     "name": "save middle-man-conn relationship to connectivity-LEAF, in AAI",\r
3623     "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
3624     "comments": "",\r
3625     "outputs": 1,\r
3626     "x": 6975.883331298828,\r
3627     "y": 4276.883331298828,\r
3628     "z": "7062000.f761",\r
3629     "wires": [\r
3630       []\r
3631     ]\r
3632   },\r
3633   {\r
3634     "id": "139339a2.2c6a06",\r
3635     "type": "save",\r
3636     "name": "save middle-man-conn relationship to connectivity-ROOT, in AAI",\r
3637     "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
3638     "comments": "",\r
3639     "outputs": 1,\r
3640     "x": 6978.883331298828,\r
3641     "y": 4321.883331298828,\r
3642     "z": "7062000.f761",\r
3643     "wires": [\r
3644       []\r
3645     ]\r
3646   },\r
3647   {\r
3648     "id": "9ce39c8b.582fa",\r
3649     "type": "save",\r
3650     "name": "save middle-man-conn relationship to UNI-LEAF, in AAI",\r
3651     "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
3652     "comments": "",\r
3653     "outputs": 1,\r
3654     "x": 6967.883331298828,\r
3655     "y": 4112.883331298828,\r
3656     "z": "7062000.f761",\r
3657     "wires": [\r
3658       []\r
3659     ]\r
3660   },\r
3661   {\r
3662     "id": "79c8e0a2.e2d0f",\r
3663     "type": "save",\r
3664     "name": "save middle-man-conn relationship to UNI-ROOT, in AAI",\r
3665     "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
3666     "comments": "",\r
3667     "outputs": 1,\r
3668     "x": 6969.883331298828,\r
3669     "y": 4159.883331298828,\r
3670     "z": "7062000.f761",\r
3671     "wires": [\r
3672       []\r
3673     ]\r
3674   },\r
3675   {\r
3676     "id": "a0361928.318ac8",\r
3677     "type": "comment",\r
3678     "name": "The following two will be done in F1",\r
3679     "info": "",\r
3680     "comments": "",\r
3681     "x": 6891.883331298828,\r
3682     "y": 4229.883331298828,\r
3683     "z": "7062000.f761",\r
3684     "wires": []\r
3685   },\r
3686   {\r
3687     "id": "d342acdf.02b8f",\r
3688     "type": "save",\r
3689     "name": "save middle-man-conn relationship to UNI-LEAF, in AAI",\r
3690     "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
3691     "comments": "",\r
3692     "outputs": 1,\r
3693     "x": 4521.883087158203,\r
3694     "y": 5380.883331298828,\r
3695     "z": "7062000.f761",\r
3696     "wires": [\r
3697       []\r
3698     ]\r
3699   },\r
3700   {\r
3701     "id": "d849eb29.b778b",\r
3702     "type": "switchNode",\r
3703     "name": "switch no-pce-call",\r
3704     "xml": "<switch test='`$no-pce-call`'>\n",\r
3705     "comments": "",\r
3706     "outputs": 1,\r
3707     "x": 3777.883331298828,\r
3708     "y": 5081.883331298828,\r
3709     "z": "7062000.f761",\r
3710     "wires": [\r
3711       [\r
3712         "ef9ce74a.0aa3e",\r
3713         "75834f94.5997b"\r
3714       ]\r
3715     ]\r
3716   },\r
3717   {\r
3718     "id": "75834f94.5997b",\r
3719     "type": "outcomeFalse",\r
3720     "name": "false",\r
3721     "xml": "<outcome value='false'>\n",\r
3722     "comments": "",\r
3723     "outputs": 1,\r
3724     "x": 3949.883331298828,\r
3725     "y": 5078.883331298828,\r
3726     "z": "7062000.f761",\r
3727     "wires": [\r
3728       [\r
3729         "f997d531.6d1e2"\r
3730       ]\r
3731     ]\r
3732   },\r
3733   {\r
3734     "id": "ef9ce74a.0aa3e",\r
3735     "type": "outcomeFalse",\r
3736     "name": "true",\r
3737     "xml": "<outcome value='true'>\n",\r
3738     "comments": "",\r
3739     "outputs": 1,\r
3740     "x": 3901.883331298828,\r
3741     "y": 5925.883331298828,\r
3742     "z": "7062000.f761",\r
3743     "wires": [\r
3744       [\r
3745         "7f678eb1.f9d898"\r
3746       ]\r
3747     ]\r
3748   },\r
3749   {\r
3750     "id": "94fb7d78.dd39a8",\r
3751     "type": "comment",\r
3752     "name": "1 --> PCE is needed",\r
3753     "info": "",\r
3754     "comments": "",\r
3755     "x": 3962.883331298828,\r
3756     "y": 5048.883331298828,\r
3757     "z": "7062000.f761",\r
3758     "wires": []\r
3759   },\r
3760   {\r
3761     "id": "d898a291.dc858",\r
3762     "type": "comment",\r
3763     "name": "2 --> no need to call PCE",\r
3764     "info": "",\r
3765     "comments": "",\r
3766     "x": 3972.883331298828,\r
3767     "y": 5883.883331298828,\r
3768     "z": "7062000.f761",\r
3769     "wires": []\r
3770   },\r
3771   {\r
3772     "id": "92f41cb.d6037e",\r
3773     "type": "call",\r
3774     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-F1",\r
3775     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1' mode='sync' >\n\n",\r
3776     "comments": "",\r
3777     "outputs": 1,\r
3778     "x": 6975.883331298828,\r
3779     "y": 4385.883331298828,\r
3780     "z": "7062000.f761",\r
3781     "wires": [\r
3782       []\r
3783     ]\r
3784   },\r
3785   {\r
3786     "id": "f997d531.6d1e2",\r
3787     "type": "block",\r
3788     "name": "block : atomic",\r
3789     "xml": "<block atomic='true'>",\r
3790     "atomic": "true",\r
3791     "comments": "",\r
3792     "outputs": 1,\r
3793     "x": 4125.883331298828,\r
3794     "y": 5080.883331298828,\r
3795     "z": "7062000.f761",\r
3796     "wires": [\r
3797       [\r
3798         "baabeea4.9ec638",\r
3799         "fd2de0c3.4119c8",\r
3800         "7962decb.29a4b8",\r
3801         "1df2ddf.d8fc4a2",\r
3802         "bb9baf34.d0edd",\r
3803         "983065a0.b74e08",\r
3804         "d342acdf.02b8f"\r
3805       ]\r
3806     ]\r
3807   },\r
3808   {\r
3809     "id": "4b2297b2.c2986",\r
3810     "type": "comment",\r
3811     "name": "Use the middle-man-conn.eth-srv-name for the LEAF connectivity's eth srv name",\r
3812     "info": "",\r
3813     "comments": "",\r
3814     "x": 5569.883087158203,\r
3815     "y": 5005.883331298828,\r
3816     "z": "7062000.f761",\r
3817     "wires": []\r
3818   },\r
3819   {\r
3820     "id": "baabeea4.9ec638",\r
3821     "type": "call",\r
3822     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-F1",\r
3823     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1' mode='sync' >\n\n",\r
3824     "comments": "",\r
3825     "outputs": 1,\r
3826     "x": 4516.883087158203,\r
3827     "y": 5683.883331298828,\r
3828     "z": "7062000.f761",\r
3829     "wires": [\r
3830       []\r
3831     ]\r
3832   },\r
3833   {\r
3834     "id": "1663311a.25772f",\r
3835     "type": "save",\r
3836     "name": "save connectivityB relationship to UNI-ROOT, in AAI",\r
3837     "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
3838     "comments": "",\r
3839     "outputs": 1,\r
3840     "x": 6951.883331298828,\r
3841     "y": 3653.883331298828,\r
3842     "z": "7062000.f761",\r
3843     "wires": [\r
3844       []\r
3845     ]\r
3846   },\r
3847   {\r
3848     "id": "ac7755ab.b0ef2",\r
3849     "type": "save",\r
3850     "name": "save connectivityA relationship to UNI-LEAF, in AAI",\r
3851     "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
3852     "comments": "",\r
3853     "outputs": 1,\r
3854     "x": 3435.883331298828,\r
3855     "y": 1842.8833312988281,\r
3856     "z": "7062000.f761",\r
3857     "wires": [\r
3858       []\r
3859     ]\r
3860   },\r
3861   {\r
3862     "id": "2976ed1.40d8712",\r
3863     "type": "save",\r
3864     "name": "save LEAF UNI in AAI",\r
3865     "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
3866     "comments": "",\r
3867     "outputs": 1,\r
3868     "x": 3342.883331298828,\r
3869     "y": 1789.8833312988281,\r
3870     "z": "7062000.f761",\r
3871     "wires": [\r
3872       []\r
3873     ]\r
3874   },\r
3875   {\r
3876     "id": "7c3bd1f7.b32788",\r
3877     "type": "set",\r
3878     "name": "set prop.connectivity-domainB-uuid=tmp.ROOT.uni-p-interface-long",\r
3879     "xml": "<set>\n<parameter name='prop.connectivity-domainB-uuid' value=\"`$tmp.ROOT.uni-p-interface-long`\" />\n",\r
3880     "comments": "",\r
3881     "x": 7001.883331298828,\r
3882     "y": 3356.883331298828,\r
3883     "z": "7062000.f761",\r
3884     "wires": []\r
3885   },\r
3886   {\r
3887     "id": "110e6104.d57bd7",\r
3888     "type": "execute",\r
3889     "name": "execute UUID generator for connectivity domainA",\r
3890     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-domainA-uuid\"/>\n",\r
3891     "comments": "",\r
3892     "outputs": 1,\r
3893     "x": 6948.883331298828,\r
3894     "y": 2944.883331298828,\r
3895     "z": "7062000.f761",\r
3896     "wires": [\r
3897       []\r
3898     ]\r
3899   },\r
3900   {\r
3901     "id": "9037ac75.0bc238",\r
3902     "type": "save",\r
3903     "name": "save connectivity resource in AAI",\r
3904     "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
3905     "comments": "",\r
3906     "outputs": 1,\r
3907     "x": 6896.883331298828,\r
3908     "y": 2992.883331298828,\r
3909     "z": "7062000.f761",\r
3910     "wires": [\r
3911       []\r
3912     ]\r
3913   },\r
3914   {\r
3915     "id": "3017f19.9b8270e",\r
3916     "type": "save",\r
3917     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
3918     "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
3919     "comments": "",\r
3920     "outputs": 1,\r
3921     "x": 7024.883331298828,\r
3922     "y": 3039.883331298828,\r
3923     "z": "7062000.f761",\r
3924     "wires": [\r
3925       []\r
3926     ]\r
3927   },\r
3928   {\r
3929     "id": "2b4caca8.ebe43c",\r
3930     "type": "comment",\r
3931     "name": "Create LEAF connectivity",\r
3932     "info": "",\r
3933     "comments": "",\r
3934     "x": 6861.883331298828,\r
3935     "y": 2902.883331298828,\r
3936     "z": "7062000.f761",\r
3937     "wires": []\r
3938   },\r
3939   {\r
3940     "id": "b384a7be.8178a",\r
3941     "type": "save",\r
3942     "name": "save LEAF UNI in AAI",\r
3943     "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<parameter name='data-source' value='`$gfp`' />",\r
3944     "comments": "",\r
3945     "outputs": 1,\r
3946     "x": 6858.883331298828,\r
3947     "y": 3130.883331298828,\r
3948     "z": "7062000.f761",\r
3949     "wires": [\r
3950       []\r
3951     ]\r
3952   },\r
3953   {\r
3954     "id": "bc57a86f.472ff",\r
3955     "type": "save",\r
3956     "name": "save connectivityA relationship to UNI-LEAF, in AAI",\r
3957     "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
3958     "comments": "",\r
3959     "outputs": 1,\r
3960     "x": 6951.883331298828,\r
3961     "y": 3183.883331298828,\r
3962     "z": "7062000.f761",\r
3963     "wires": [\r
3964       []\r
3965     ]\r
3966   },\r
3967   {\r
3968     "id": "a5d38ce2.eac838",\r
3969     "type": "comment",\r
3970     "name": "Create LEAF UNI",\r
3971     "info": "",\r
3972     "comments": "",\r
3973     "x": 6842.883331298828,\r
3974     "y": 3086.883331298828,\r
3975     "z": "7062000.f761",\r
3976     "wires": []\r
3977   },\r
3978   {\r
3979     "id": "232bd10a.a8b54e",\r
3980     "type": "comment",\r
3981     "name": "Create ROOT UNI",\r
3982     "info": "",\r
3983     "comments": "",\r
3984     "x": 6848.883331298828,\r
3985     "y": 3536.883331298828,\r
3986     "z": "7062000.f761",\r
3987     "wires": []\r
3988   },\r
3989   {\r
3990     "id": "1df2ddf.d8fc4a2",\r
3991     "type": "save",\r
3992     "name": "save LEAF UNI in AAI",\r
3993     "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<parameter name='data-source' value='`$gfp`' />\n",\r
3994     "comments": "",\r
3995     "outputs": 1,\r
3996     "x": 4438.883087158203,\r
3997     "y": 5013.883331298828,\r
3998     "z": "7062000.f761",\r
3999     "wires": [\r
4000       []\r
4001     ]\r
4002   },\r
4003   {\r
4004     "id": "5696f41b.05cf84",\r
4005     "type": "comment",\r
4006     "name": "Create LEAF UNI",\r
4007     "info": "",\r
4008     "comments": "",\r
4009     "x": 4422.883087158203,\r
4010     "y": 4969.883331298828,\r
4011     "z": "7062000.f761",\r
4012     "wires": []\r
4013   },\r
4014   {\r
4015     "id": "462a954a.4cebb4",\r
4016     "type": "comment",\r
4017     "name": "Create LEAF connectivity",\r
4018     "info": "",\r
4019     "comments": "",\r
4020     "x": 5169.883087158203,\r
4021     "y": 5000.883331298828,\r
4022     "z": "7062000.f761",\r
4023     "wires": []\r
4024   },\r
4025   {\r
4026     "id": "5bab7896.e13d9",\r
4027     "type": "execute",\r
4028     "name": "execute UUID generator for connectivity domainA",\r
4029     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-domainA-uuid\"/>\n",\r
4030     "comments": "",\r
4031     "outputs": 1,\r
4032     "x": 5256.883087158203,\r
4033     "y": 5042.883331298828,\r
4034     "z": "7062000.f761",\r
4035     "wires": [\r
4036       []\r
4037     ]\r
4038   },\r
4039   {\r
4040     "id": "ec708b2b.d3c6e",\r
4041     "type": "save",\r
4042     "name": "save connectivity resource in AAI",\r
4043     "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
4044     "comments": "",\r
4045     "outputs": 1,\r
4046     "x": 5204.883087158203,\r
4047     "y": 5090.883331298828,\r
4048     "z": "7062000.f761",\r
4049     "wires": [\r
4050       []\r
4051     ]\r
4052   },\r
4053   {\r
4054     "id": "dea6b450.126ae",\r
4055     "type": "save",\r
4056     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
4057     "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
4058     "comments": "",\r
4059     "outputs": 1,\r
4060     "x": 5332.883087158203,\r
4061     "y": 5137.883331298828,\r
4062     "z": "7062000.f761",\r
4063     "wires": [\r
4064       []\r
4065     ]\r
4066   },\r
4067   {\r
4068     "id": "983065a0.b74e08",\r
4069     "type": "save",\r
4070     "name": "save connectivityA relationship to UNI-LEAF, in AAI",\r
4071     "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
4072     "comments": "",\r
4073     "outputs": 1,\r
4074     "x": 4509.883087158203,\r
4075     "y": 5422.883331298828,\r
4076     "z": "7062000.f761",\r
4077     "wires": [\r
4078       []\r
4079     ]\r
4080   },\r
4081   {\r
4082     "id": "e263a78e.c8cba",\r
4083     "type": "comment",\r
4084     "name": "populate connectivity-B variable in the context map",\r
4085     "info": "",\r
4086     "comments": "",\r
4087     "x": 4492.883087158203,\r
4088     "y": 5484.883331298828,\r
4089     "z": "7062000.f761",\r
4090     "wires": []\r
4091   },\r
4092   {\r
4093     "id": "fd2de0c3.4119c8",\r
4094     "type": "call",\r
4095     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-ROOT-conn",\r
4096     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-ROOT-conn' mode='sync' >\n\n",\r
4097     "comments": "",\r
4098     "outputs": 1,\r
4099     "x": 4603.883087158203,\r
4100     "y": 5526.883331298828,\r
4101     "z": "7062000.f761",\r
4102     "wires": [\r
4103       []\r
4104     ]\r
4105   },\r
4106   {\r
4107     "id": "631f5baa.6a836c",\r
4108     "type": "set",\r
4109     "name": "set prop.connectivity-domainB-uuid",\r
4110     "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
4111     "comments": "",\r
4112     "x": 5051.883087158203,\r
4113     "y": 5579.883331298828,\r
4114     "z": "7062000.f761",\r
4115     "wires": []\r
4116   },\r
4117   {\r
4118     "id": "4505fb5a.3099fc",\r
4119     "type": "save",\r
4120     "name": "save middle-man-conn relationship to UNI-LEAF, in AAI",\r
4121     "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
4122     "comments": "",\r
4123     "outputs": 1,\r
4124     "x": 4361.883087158203,\r
4125     "y": 6277.883331298828,\r
4126     "z": "7062000.f761",\r
4127     "wires": [\r
4128       []\r
4129     ]\r
4130   },\r
4131   {\r
4132     "id": "78bf173f.567498",\r
4133     "type": "save",\r
4134     "name": "save LEAF UNI in AAI",\r
4135     "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<parameter name='data-source' value='`$gfp`' />\n",\r
4136     "comments": "",\r
4137     "outputs": 1,\r
4138     "x": 4294.883087158203,\r
4139     "y": 6231.883331298828,\r
4140     "z": "7062000.f761",\r
4141     "wires": [\r
4142       []\r
4143     ]\r
4144   },\r
4145   {\r
4146     "id": "79075338.970b1c",\r
4147     "type": "comment",\r
4148     "name": "Create LEAF UNI",\r
4149     "info": "",\r
4150     "comments": "",\r
4151     "x": 4243.883087158203,\r
4152     "y": 6182.883331298828,\r
4153     "z": "7062000.f761",\r
4154     "wires": []\r
4155   },\r
4156   {\r
4157     "id": "552d64d8.079684",\r
4158     "type": "save",\r
4159     "name": "save the-connectivity relationship to UNI-LEAF, in AAI",\r
4160     "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
4161     "comments": "",\r
4162     "outputs": 1,\r
4163     "x": 5026.883331298828,\r
4164     "y": 6388.883331298828,\r
4165     "z": "7062000.f761",\r
4166     "wires": [\r
4167       []\r
4168     ]\r
4169   },\r
4170   {\r
4171     "id": "7962decb.29a4b8",\r
4172     "type": "switchNode",\r
4173     "name": "switch found-root-connectivity",\r
4174     "xml": "\n<switch test=\"`$found-root-connectivity`\">\n\n",\r
4175     "comments": "",\r
4176     "outputs": 1,\r
4177     "x": 4430.883087158203,\r
4178     "y": 5583.883331298828,\r
4179     "z": "7062000.f761",\r
4180     "wires": [\r
4181       [\r
4182         "a8868823.64a65",\r
4183         "f3d79a89.da5f"\r
4184       ]\r
4185     ]\r
4186   },\r
4187   {\r
4188     "id": "a8868823.64a65",\r
4189     "type": "outcomeTrue",\r
4190     "name": "true",\r
4191     "xml": "<outcome value='true'>\n",\r
4192     "comments": "",\r
4193     "outputs": 1,\r
4194     "x": 4641.883087158203,\r
4195     "y": 5583.883331298828,\r
4196     "z": "7062000.f761",\r
4197     "wires": [\r
4198       [\r
4199         "8c7e9ec3.edd538"\r
4200       ]\r
4201     ]\r
4202   },\r
4203   {\r
4204     "id": "8c7e9ec3.edd538",\r
4205     "type": "block",\r
4206     "name": "block : atomic",\r
4207     "xml": "<block atomic='true'>",\r
4208     "atomic": "true",\r
4209     "comments": "",\r
4210     "outputs": 1,\r
4211     "x": 4797.883087158203,\r
4212     "y": 5579.883331298828,\r
4213     "z": "7062000.f761",\r
4214     "wires": [\r
4215       [\r
4216         "631f5baa.6a836c",\r
4217         "e719db8e.3b76c8",\r
4218         "63d85a3d.4103fc"\r
4219       ]\r
4220     ]\r
4221   },\r
4222   {\r
4223     "id": "f3d79a89.da5f",\r
4224     "type": "outcomeFalse",\r
4225     "name": "false",\r
4226     "xml": "<outcome value='false'>\n",\r
4227     "comments": "",\r
4228     "outputs": 1,\r
4229     "x": 4637.883087158203,\r
4230     "y": 5631.883331298828,\r
4231     "z": "7062000.f761",\r
4232     "wires": [\r
4233       [\r
4234         "c9509718.d9f2e8"\r
4235       ]\r
4236     ]\r
4237   },\r
4238   {\r
4239     "id": "c9509718.d9f2e8",\r
4240     "type": "returnFailure",\r
4241     "name": "return failure",\r
4242     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='Root Connectivity was not found' />\n",\r
4243     "comments": "",\r
4244     "x": 4785.883087158203,\r
4245     "y": 5626.883331298828,\r
4246     "z": "7062000.f761",\r
4247     "wires": []\r
4248   },\r
4249   {\r
4250     "id": "10f1aa00.faee3e",\r
4251     "type": "save",\r
4252     "name": "save middle-man-conn relationship to connectivity-LEAF, in AAI",\r
4253     "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
4254     "comments": "",\r
4255     "outputs": 1,\r
4256     "x": 5293.883087158203,\r
4257     "y": 5208.883331298828,\r
4258     "z": "7062000.f761",\r
4259     "wires": [\r
4260       []\r
4261     ]\r
4262   },\r
4263   {\r
4264     "id": "dca67cc5.30d2f8",\r
4265     "type": "execute",\r
4266     "name": "execute UUID generator for ethernet-service-name",\r
4267     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.ethernet-service-name\"/>\n",\r
4268     "comments": "",\r
4269     "outputs": 1,\r
4270     "x": 2460.883331298828,\r
4271     "y": 167.88333129882812,\r
4272     "z": "7062000.f761",\r
4273     "wires": [\r
4274       []\r
4275     ]\r
4276   },\r
4277   {\r
4278     "id": "ce64f5e6.94469",\r
4279     "type": "set",\r
4280     "name": "set new ethernet-service-name",\r
4281     "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
4282     "comments": "",\r
4283     "x": 2394.883331298828,\r
4284     "y": 203.88333129882812,\r
4285     "z": "7062000.f761",\r
4286     "wires": []\r
4287   },\r
4288   {\r
4289     "id": "10c1b340.47f61d",\r
4290     "type": "comment",\r
4291     "name": "The following two nodes are to make sure all connectivities for an E-Tree have same etht-srv-name",\r
4292     "info": "",\r
4293     "comments": "",\r
4294     "x": 2579.883331298828,\r
4295     "y": 130.88333129882812,\r
4296     "z": "7062000.f761",\r
4297     "wires": []\r
4298   },\r
4299   {\r
4300     "id": "7299a42e.833c84",\r
4301     "type": "set",\r
4302     "name": "set current-provider-id and current-cvlan-id",\r
4303     "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
4304     "comments": "",\r
4305     "x": 4328.883087158203,\r
4306     "y": 6343.883331298828,\r
4307     "z": "7062000.f761",\r
4308     "wires": []\r
4309   },\r
4310   {\r
4311     "id": "14b14bf.2fcb6b4",\r
4312     "type": "call",\r
4313     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-connectivity",\r
4314     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-connectivity' mode='sync' >\n\n",\r
4315     "comments": "",\r
4316     "outputs": 1,\r
4317     "x": 4461.883087158203,\r
4318     "y": 6391.883331298828,\r
4319     "z": "7062000.f761",\r
4320     "wires": [\r
4321       []\r
4322     ]\r
4323   },\r
4324   {\r
4325     "id": "787fc902.6b8688",\r
4326     "type": "switchNode",\r
4327     "name": "switch found-connectivity?",\r
4328     "xml": "\n<switch test=\"`$found-connectivity`\">\n\n",\r
4329     "comments": "",\r
4330     "outputs": 1,\r
4331     "x": 4280.883087158203,\r
4332     "y": 6449.883331298828,\r
4333     "z": "7062000.f761",\r
4334     "wires": [\r
4335       [\r
4336         "17a7dc18.0b8f9c",\r
4337         "f762f.a378f1d18"\r
4338       ]\r
4339     ]\r
4340   },\r
4341   {\r
4342     "id": "17a7dc18.0b8f9c",\r
4343     "type": "outcomeFalse",\r
4344     "name": "false",\r
4345     "xml": "<outcome value='false'>\n",\r
4346     "comments": "",\r
4347     "outputs": 1,\r
4348     "x": 4473.883087158203,\r
4349     "y": 6450.883331298828,\r
4350     "z": "7062000.f761",\r
4351     "wires": [\r
4352       [\r
4353         "22a4f0b9.5cc3f"\r
4354       ]\r
4355     ]\r
4356   },\r
4357   {\r
4358     "id": "22a4f0b9.5cc3f",\r
4359     "type": "returnFailure",\r
4360     "name": "return failure",\r
4361     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='Connectivity should have been created' />\n",\r
4362     "comments": "",\r
4363     "x": 4629.883087158203,\r
4364     "y": 6447.883331298828,\r
4365     "z": "7062000.f761",\r
4366     "wires": []\r
4367   },\r
4368   {\r
4369     "id": "f762f.a378f1d18",\r
4370     "type": "outcomeTrue",\r
4371     "name": "true",\r
4372     "xml": "<outcome value='true'>\n",\r
4373     "comments": "",\r
4374     "outputs": 1,\r
4375     "x": 4477.883087158203,\r
4376     "y": 6494.883331298828,\r
4377     "z": "7062000.f761",\r
4378     "wires": [\r
4379       [\r
4380         "82673a8f.5388f"\r
4381       ]\r
4382     ]\r
4383   },\r
4384   {\r
4385     "id": "82673a8f.5388f",\r
4386     "type": "block",\r
4387     "name": "block",\r
4388     "xml": "<block>\n",\r
4389     "atomic": "false",\r
4390     "comments": "",\r
4391     "outputs": 1,\r
4392     "x": 4616.883087158203,\r
4393     "y": 6489.883331298828,\r
4394     "z": "7062000.f761",\r
4395     "wires": [\r
4396       [\r
4397         "552d64d8.079684",\r
4398         "b152a028.0e0e48",\r
4399         "df3932b1.5cfd1",\r
4400         "dd853f0d.c675b",\r
4401         "6a2f520.9e626b",\r
4402         "4ac1ad89.6ecd0c",\r
4403         "5a7c34be.0eee64",\r
4404         "f8b3148.1a90a68",\r
4405         "506cbb81.2befbc",\r
4406         "e29af13.61a371",\r
4407         "1a8fecd4.39509b",\r
4408         "2374b67.d3b424a"\r
4409       ]\r
4410     ]\r
4411   },\r
4412   {\r
4413     "id": "5a7c34be.0eee64",\r
4414     "type": "save",\r
4415     "name": "get all-vpn-bindings from aai",\r
4416     "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
4417     "comments": "",\r
4418     "outputs": 1,\r
4419     "x": 4813.883087158203,\r
4420     "y": 7168.883331298828,\r
4421     "z": "7062000.f761",\r
4422     "wires": [\r
4423       [\r
4424         "8d3fe228.0e9ab8",\r
4425         "92f94e1c.33687",\r
4426         "710bd5c.e65692c"\r
4427       ]\r
4428     ]\r
4429   },\r
4430   {\r
4431     "id": "8d3fe228.0e9ab8",\r
4432     "type": "success",\r
4433     "name": "success",\r
4434     "xml": "<outcome value='success'>\n",\r
4435     "comments": "",\r
4436     "outputs": 1,\r
4437     "x": 5018.883087158203,\r
4438     "y": 7165.883331298828,\r
4439     "z": "7062000.f761",\r
4440     "wires": [\r
4441       [\r
4442         "867b5387.a77e68"\r
4443       ]\r
4444     ]\r
4445   },\r
4446   {\r
4447     "id": "92f94e1c.33687",\r
4448     "type": "not-found",\r
4449     "name": "not-found",\r
4450     "xml": "<outcome value='not-found'>\n",\r
4451     "comments": "",\r
4452     "outputs": 1,\r
4453     "x": 5002.374053955078,\r
4454     "y": 7227.457366943359,\r
4455     "z": "7062000.f761",\r
4456     "wires": [\r
4457       [\r
4458         "32a9210e.f5a66e"\r
4459       ]\r
4460     ]\r
4461   },\r
4462   {\r
4463     "id": "710bd5c.e65692c",\r
4464     "type": "failure",\r
4465     "name": "failure",\r
4466     "xml": "<outcome value='failure'>\n",\r
4467     "comments": "",\r
4468     "outputs": 1,\r
4469     "x": 4999.883087158203,\r
4470     "y": 7270.883331298828,\r
4471     "z": "7062000.f761",\r
4472     "wires": [\r
4473       [\r
4474         "5f13dad2.143724"\r
4475       ]\r
4476     ]\r
4477   },\r
4478   {\r
4479     "id": "867b5387.a77e68",\r
4480     "type": "block",\r
4481     "name": "block : atomic",\r
4482     "xml": "<block atomic=\"true\">",\r
4483     "atomic": "true",\r
4484     "outputs": 1,\r
4485     "x": 5186.883331298828,\r
4486     "y": 7160.883331298828,\r
4487     "z": "7062000.f761",\r
4488     "wires": [\r
4489       [\r
4490         "a6483ec8.fd095"\r
4491       ]\r
4492     ]\r
4493   },\r
4494   {\r
4495     "id": "32a9210e.f5a66e",\r
4496     "type": "returnFailure",\r
4497     "name": "return failure",\r
4498     "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
4499     "comments": "",\r
4500     "x": 5164.945465087891,\r
4501     "y": 7227.743103027344,\r
4502     "z": "7062000.f761",\r
4503     "wires": []\r
4504   },\r
4505   {\r
4506     "id": "5f13dad2.143724",\r
4507     "type": "returnFailure",\r
4508     "name": "return failure",\r
4509     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
4510     "comments": "",\r
4511     "x": 5166.883087158203,\r
4512     "y": 7269.883331298828,\r
4513     "z": "7062000.f761",\r
4514     "wires": []\r
4515   },\r
4516   {\r
4517     "id": "a6483ec8.fd095",\r
4518     "type": "for",\r
4519     "name": "for vpnidx in all-vpn-bindings",\r
4520     "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",\r
4521     "comments": "",\r
4522     "outputs": 1,\r
4523     "x": 5421.883087158203,\r
4524     "y": 7176.883331298828,\r
4525     "z": "7062000.f761",\r
4526     "wires": [\r
4527       [\r
4528         "2bfd9e0f.b0b65a"\r
4529       ]\r
4530     ]\r
4531   },\r
4532   {\r
4533     "id": "2bfd9e0f.b0b65a",\r
4534     "type": "block",\r
4535     "name": "block : atomic",\r
4536     "xml": "<block atomic='true'>",\r
4537     "atomic": "true",\r
4538     "comments": "",\r
4539     "outputs": 1,\r
4540     "x": 5658.883087158203,\r
4541     "y": 7172.883331298828,\r
4542     "z": "7062000.f761",\r
4543     "wires": [\r
4544       [\r
4545         "f7d1e8ad.4dc7b8"\r
4546       ]\r
4547     ]\r
4548   },\r
4549   {\r
4550     "id": "58dab986.f5f5a",\r
4551     "type": "switchNode",\r
4552     "name": "switch vpnuuid is for this slice",\r
4553     "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
4554     "comments": "",\r
4555     "outputs": 1,\r
4556     "x": 5925.883087158203,\r
4557     "y": 7138.883331298828,\r
4558     "z": "7062000.f761",\r
4559     "wires": [\r
4560       [\r
4561         "25d3132f.f14084",\r
4562         "88844ebd.a9a5b"\r
4563       ]\r
4564     ]\r
4565   },\r
4566   {\r
4567     "id": "25d3132f.f14084",\r
4568     "type": "outcomeTrue",\r
4569     "name": "true",\r
4570     "xml": "<outcome value='true'>\n",\r
4571     "comments": "",\r
4572     "outputs": 1,\r
4573     "x": 6106.883087158203,\r
4574     "y": 7164.883331298828,\r
4575     "z": "7062000.f761",\r
4576     "wires": [\r
4577       [\r
4578         "f7d1e8ad.4dc7b8"\r
4579       ]\r
4580     ]\r
4581   },\r
4582   {\r
4583     "id": "88844ebd.a9a5b",\r
4584     "type": "outcomeFalse",\r
4585     "name": "false",\r
4586     "xml": "<outcome value='false'>\n",\r
4587     "comments": "",\r
4588     "outputs": 1,\r
4589     "x": 6105.883087158203,\r
4590     "y": 7117.883331298828,\r
4591     "z": "7062000.f761",\r
4592     "wires": [\r
4593       []\r
4594     ]\r
4595   },\r
4596   {\r
4597     "id": "f7d1e8ad.4dc7b8",\r
4598     "type": "block",\r
4599     "name": "block : atomic",\r
4600     "xml": "<block atomic='true'>",\r
4601     "atomic": "true",\r
4602     "comments": "",\r
4603     "outputs": 1,\r
4604     "x": 4849.883087158203,\r
4605     "y": 7439.883331298828,\r
4606     "z": "7062000.f761",\r
4607     "wires": [\r
4608       [\r
4609         "a21574dc.7f1048"\r
4610       ]\r
4611     ]\r
4612   },\r
4613   {\r
4614     "id": "da2d189.a0c85e8",\r
4615     "type": "set",\r
4616     "name": "set tmp.aai.the-vpn-binding",\r
4617     "xml": "<set>\n<parameter name='tmp.aai.the-vpn-binding.' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].`\" />\n",\r
4618     "comments": "",\r
4619     "x": 5698.883087158203,\r
4620     "y": 7344.883331298828,\r
4621     "z": "7062000.f761",\r
4622     "wires": []\r
4623   },\r
4624   {\r
4625     "id": "9ec2c103.e591",\r
4626     "type": "comment",\r
4627     "name": "find all OTNs that have srcTtpOtnLayer and increase their bandwidth",\r
4628     "info": "",\r
4629     "comments": "",\r
4630     "x": 4911.883087158203,\r
4631     "y": 7115.883331298828,\r
4632     "z": "7062000.f761",\r
4633     "wires": []\r
4634   },\r
4635   {\r
4636     "id": "4ac1ad89.6ecd0c",\r
4637     "type": "set",\r
4638     "name": "set srcTtp OTN layer",\r
4639     "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
4640     "comments": "",\r
4641     "x": 4795.883087158203,\r
4642     "y": 6964.883331298828,\r
4643     "z": "7062000.f761",\r
4644     "wires": []\r
4645   },\r
4646   {\r
4647     "id": "2add06b4.24634a",\r
4648     "type": "switchNode",\r
4649     "name": "switch provider-id domainA",\r
4650     "xml": "<switch test='`$allNetworksList.network-resource[$netwidx].provider-id == $param-prefix-domainA-pnfName[2]`'>\n",\r
4651     "comments": "",\r
4652     "outputs": 1,\r
4653     "x": 5140.883087158203,\r
4654     "y": 6795.883331298828,\r
4655     "z": "7062000.f761",\r
4656     "wires": [\r
4657       [\r
4658         "a410e22f.bcf42"\r
4659       ]\r
4660     ]\r
4661   },\r
4662   {\r
4663     "id": "a410e22f.bcf42",\r
4664     "type": "outcomeTrue",\r
4665     "name": "true",\r
4666     "xml": "<outcome value='true'>\n",\r
4667     "comments": "",\r
4668     "outputs": 1,\r
4669     "x": 5360.883087158203,\r
4670     "y": 6801.883331298828,\r
4671     "z": "7062000.f761",\r
4672     "wires": [\r
4673       [\r
4674         "22269296.bf623e"\r
4675       ]\r
4676     ]\r
4677   },\r
4678   {\r
4679     "id": "22269296.bf623e",\r
4680     "type": "switchNode",\r
4681     "name": "switch te-topo-id",\r
4682     "xml": "<switch test='`$allNetworksList.network-resource[$netwidx].te-topo-id != $param-prefix-domainA-pnfName[6]`'>\n",\r
4683     "comments": "",\r
4684     "outputs": 1,\r
4685     "x": 5545.883087158203,\r
4686     "y": 6800.883331298828,\r
4687     "z": "7062000.f761",\r
4688     "wires": [\r
4689       [\r
4690         "66b1e6be.5824e"\r
4691       ]\r
4692     ]\r
4693   },\r
4694   {\r
4695     "id": "66b1e6be.5824e",\r
4696     "type": "outcomeTrue",\r
4697     "name": "true",\r
4698     "xml": "<outcome value='true'>\n",\r
4699     "comments": "",\r
4700     "outputs": 1,\r
4701     "x": 5737.883087158203,\r
4702     "y": 6803.883331298828,\r
4703     "z": "7062000.f761",\r
4704     "wires": [\r
4705       [\r
4706         "19dd27ef.ab039"\r
4707       ]\r
4708     ]\r
4709   },\r
4710   {\r
4711     "id": "19dd27ef.ab039",\r
4712     "type": "set",\r
4713     "name": "set otnTopoIdSrc",\r
4714     "xml": "<set>\n<parameter name='otnTopoIdSrc' value='`$allNetworksList.network-resource[$netwidx].te-topo-id`' />\n",\r
4715     "comments": "",\r
4716     "x": 5946.883087158203,\r
4717     "y": 6801.883331298828,\r
4718     "z": "7062000.f761",\r
4719     "wires": []\r
4720   },\r
4721   {\r
4722     "id": "f8b3148.1a90a68",\r
4723     "type": "for",\r
4724     "name": "for netwidx..allNetworksList_length",\r
4725     "xml": "<for index='netwidx' start='0' end='`$allNetworksList.network-resource_length`' >",\r
4726     "comments": "",\r
4727     "outputs": 1,\r
4728     "x": 4847.883087158203,\r
4729     "y": 6789.883331298828,\r
4730     "z": "7062000.f761",\r
4731     "wires": [\r
4732       [\r
4733         "2add06b4.24634a"\r
4734       ]\r
4735     ]\r
4736   },\r
4737   {\r
4738     "id": "df3932b1.5cfd1",\r
4739     "type": "get-resource",\r
4740     "name": "get-resource network-resources-list",\r
4741     "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
4742     "comments": "",\r
4743     "outputs": 1,\r
4744     "x": 4855.883087158203,\r
4745     "y": 6682.883331298828,\r
4746     "z": "7062000.f761",\r
4747     "wires": [\r
4748       [\r
4749         "6d632da3.ca2994",\r
4750         "65bd7037.bc9ea",\r
4751         "29b67365.cad774"\r
4752       ]\r
4753     ]\r
4754   },\r
4755   {\r
4756     "id": "6d632da3.ca2994",\r
4757     "type": "success",\r
4758     "name": "success",\r
4759     "xml": "<outcome value='success'>\n",\r
4760     "comments": "",\r
4761     "outputs": 1,\r
4762     "x": 5091.883087158203,\r
4763     "y": 6665.883331298828,\r
4764     "z": "7062000.f761",\r
4765     "wires": [\r
4766       []\r
4767     ]\r
4768   },\r
4769   {\r
4770     "id": "65bd7037.bc9ea",\r
4771     "type": "other",\r
4772     "name": "other",\r
4773     "xml": "<outcome value='Other'>\n",\r
4774     "comments": "",\r
4775     "outputs": 1,\r
4776     "x": 5088.883087158203,\r
4777     "y": 6706.883331298828,\r
4778     "z": "7062000.f761",\r
4779     "wires": [\r
4780       []\r
4781     ]\r
4782   },\r
4783   {\r
4784     "id": "29b67365.cad774",\r
4785     "type": "not-found",\r
4786     "name": "not-found",\r
4787     "xml": "<outcome value='not-found'>\n",\r
4788     "comments": "",\r
4789     "outputs": 1,\r
4790     "x": 5102.883087158203,\r
4791     "y": 6746.883331298828,\r
4792     "z": "7062000.f761",\r
4793     "wires": [\r
4794       []\r
4795     ]\r
4796   },\r
4797   {\r
4798     "id": "dd853f0d.c675b",\r
4799     "type": "set",\r
4800     "name": "unset parameters",\r
4801     "xml": "<set>\n<parameter name='tmp.pce-src-node.' value='' />\n",\r
4802     "comments": "",\r
4803     "x": 4791.883087158203,\r
4804     "y": 6841.883331298828,\r
4805     "z": "7062000.f761",\r
4806     "wires": []\r
4807   },\r
4808   {\r
4809     "id": "6a2f520.9e626b",\r
4810     "type": "set",\r
4811     "name": "set tmp.pce-src-node",\r
4812     "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
4813     "comments": "",\r
4814     "x": 4799.883087158203,\r
4815     "y": 6899.883331298828,\r
4816     "z": "7062000.f761",\r
4817     "wires": []\r
4818   },\r
4819   {\r
4820     "id": "b152a028.0e0e48",\r
4821     "type": "set",\r
4822     "name": "unset parameters",\r
4823     "xml": "<set>\n<parameter name='allNetworksList.' value='' />\n",\r
4824     "comments": "",\r
4825     "x": 4804.883087158203,\r
4826     "y": 6639.883331298828,\r
4827     "z": "7062000.f761",\r
4828     "wires": []\r
4829   },\r
4830   {\r
4831     "id": "3d7b7763.09cfd",\r
4832     "type": "comment",\r
4833     "name": "The following section is to find srcTtp OTN layer (its long name)",\r
4834     "info": "The following section is to find srcTtp OTN layer (its long name)",\r
4835     "comments": "",\r
4836     "x": 4919.883087158203,\r
4837     "y": 6591.883331298828,\r
4838     "z": "7062000.f761",\r
4839     "wires": []\r
4840   },\r
4841   {\r
4842     "id": "a21574dc.7f1048",\r
4843     "type": "switchNode",\r
4844     "name": "switch ops-note is srcTtpOtnLayer",\r
4845     "xml": "<switch test=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].ops-note == $tmp.srcTtpOtnLayer `\">\n\n",\r
4846     "comments": "",\r
4847     "outputs": 1,\r
4848     "x": 5092.883087158203,\r
4849     "y": 7436.883331298828,\r
4850     "z": "7062000.f761",\r
4851     "wires": [\r
4852       [\r
4853         "b03df3ba.8ce8d8",\r
4854         "c15c4a9f.54e778"\r
4855       ]\r
4856     ]\r
4857   },\r
4858   {\r
4859     "id": "b03df3ba.8ce8d8",\r
4860     "type": "outcomeTrue",\r
4861     "name": "true",\r
4862     "xml": "<outcome value='true'>\n",\r
4863     "comments": "",\r
4864     "outputs": 1,\r
4865     "x": 5321.883087158203,\r
4866     "y": 7413.883331298828,\r
4867     "z": "7062000.f761",\r
4868     "wires": [\r
4869       [\r
4870         "b68c7fcf.24567"\r
4871       ]\r
4872     ]\r
4873   },\r
4874   {\r
4875     "id": "c15c4a9f.54e778",\r
4876     "type": "outcomeFalse",\r
4877     "name": "false",\r
4878     "xml": "<outcome value='false'>\n",\r
4879     "comments": "",\r
4880     "outputs": 1,\r
4881     "x": 5321.883087158203,\r
4882     "y": 7462.883331298828,\r
4883     "z": "7062000.f761",\r
4884     "wires": [\r
4885       []\r
4886     ]\r
4887   },\r
4888   {\r
4889     "id": "b68c7fcf.24567",\r
4890     "type": "block",\r
4891     "name": "block : atomic",\r
4892     "xml": "<block atomic='true'>",\r
4893     "atomic": "true",\r
4894     "comments": "",\r
4895     "outputs": 1,\r
4896     "x": 5482.883087158203,\r
4897     "y": 7418.883331298828,\r
4898     "z": "7062000.f761",\r
4899     "wires": [\r
4900       [\r
4901         "57615513.3c37ac",\r
4902         "da2d189.a0c85e8",\r
4903         "aa5be19c.b28bd"\r
4904       ]\r
4905     ]\r
4906   },\r
4907   {\r
4908     "id": "41927c2c.53b90c",\r
4909     "type": "comment",\r
4910     "name": "increase the bw of the-vpn-binding and change status to modified",\r
4911     "info": "increase the bw of the-vpn-binding\nchange status to modified\n",\r
4912     "comments": "",\r
4913     "x": 5826.883087158203,\r
4914     "y": 7398.883331298828,\r
4915     "z": "7062000.f761",\r
4916     "wires": []\r
4917   },\r
4918   {\r
4919     "id": "aa5be19c.b28bd",\r
4920     "type": "save",\r
4921     "name": "update vpn-binding otnIdx resource (aka. OTN) in AAI",\r
4922     "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
4923     "comments": "",\r
4924     "outputs": 1,\r
4925     "x": 5796.883087158203,\r
4926     "y": 7458.883331298828,\r
4927     "z": "7062000.f761",\r
4928     "wires": [\r
4929       []\r
4930     ]\r
4931   },\r
4932   {\r
4933     "id": "57615513.3c37ac",\r
4934     "type": "set",\r
4935     "name": "unset tmp.aai.the-vpn-binding",\r
4936     "xml": "<set>\n<parameter name='tmp.aai.the-vpn-binding.' value=\"\" />\n",\r
4937     "comments": "",\r
4938     "x": 5703.883087158203,\r
4939     "y": 7286.883331298828,\r
4940     "z": "7062000.f761",\r
4941     "wires": []\r
4942   },\r
4943   {\r
4944     "id": "7f678eb1.f9d898",\r
4945     "type": "block",\r
4946     "name": "block : atomic",\r
4947     "xml": "<block atomic='true'>",\r
4948     "atomic": "true",\r
4949     "comments": "",\r
4950     "outputs": 1,\r
4951     "x": 4053.883331298828,\r
4952     "y": 5924.883331298828,\r
4953     "z": "7062000.f761",\r
4954     "wires": [\r
4955       [\r
4956         "78bf173f.567498",\r
4957         "7299a42e.833c84",\r
4958         "14b14bf.2fcb6b4",\r
4959         "787fc902.6b8688",\r
4960         "4505fb5a.3099fc"\r
4961       ]\r
4962     ]\r
4963   },\r
4964   {\r
4965     "id": "950e3220.8c6648",\r
4966     "type": "set",\r
4967     "name": "unset otnTopoIdSrc",\r
4968     "xml": "<set>\n<parameter name='otnTopoIdSrc' value='' />\n",\r
4969     "comments": "",\r
4970     "x": 4796.883087158203,\r
4971     "y": 6739.883331298828,\r
4972     "z": "7062000.f761",\r
4973     "wires": []\r
4974   },\r
4975   {\r
4976     "id": "506cbb81.2befbc",\r
4977     "type": "save",\r
4978     "name": "update connectivity resource in AAI",\r
4979     "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
4980     "comments": "",\r
4981     "outputs": 1,\r
4982     "x": 4919.883331298828,\r
4983     "y": 6469.883331298828,\r
4984     "z": "7062000.f761",\r
4985     "wires": [\r
4986       []\r
4987     ]\r
4988   },\r
4989   {\r
4990     "id": "ce6bcae6.279bf",\r
4991     "type": "comment",\r
4992     "name": "Update the existing eth-srv by adding the new LEAF UNI into its list of endpoints",\r
4993     "info": "Update the existing eth-srv by adding the new LEAF UNI into its list of endpoints",\r
4994     "comments": "",\r
4995     "x": 5056.883331298828,\r
4996     "y": 6419.883331298828,\r
4997     "z": "7062000.f761",\r
4998     "wires": []\r
4999   },\r
5000   {\r
5001     "id": "3b830a4d.e803be",\r
5002     "type": "save",\r
5003     "name": "save ROOT UNI in AAI",\r
5004     "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<parameter name='data-source' value='`$gfp`' />\n",\r
5005     "comments": "",\r
5006     "outputs": 1,\r
5007     "x": 6864.883331298828,\r
5008     "y": 3595.883331298828,\r
5009     "z": "7062000.f761",\r
5010     "wires": [\r
5011       []\r
5012     ]\r
5013   },\r
5014   {\r
5015     "id": "debea5ca.c5efb8",\r
5016     "type": "comment",\r
5017     "name": "NOT NEEDED ANYMORE?",\r
5018     "info": "",\r
5019     "comments": "",\r
5020     "x": 4070.883331298828,\r
5021     "y": 1820.8833312988281,\r
5022     "z": "7062000.f761",\r
5023     "wires": []\r
5024   },\r
5025   {\r
5026     "id": "dcf5d1.89c23a3",\r
5027     "type": "comment",\r
5028     "name": "NOT NEEDED ANYMORE?",\r
5029     "info": "",\r
5030     "comments": "",\r
5031     "x": 4048.883331298828,\r
5032     "y": 2690.883331298828,\r
5033     "z": "7062000.f761",\r
5034     "wires": []\r
5035   },\r
5036   {\r
5037     "id": "3dc14de7.91d75a",\r
5038     "type": "comment",\r
5039     "name": "TEMPORARY REMOVING THE FOLLOWING TWO NODES",\r
5040     "info": "",\r
5041     "comments": "",\r
5042     "x": 6855.883331298828,\r
5043     "y": 4062.883331298828,\r
5044     "z": "7062000.f761",\r
5045     "wires": []\r
5046   },\r
5047   {\r
5048     "id": "2530e84c.0abb78",\r
5049     "type": "call",\r
5050     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-F1-activate",\r
5051     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1-activate' mode='sync' >\n\n",\r
5052     "comments": "",\r
5053     "outputs": 1,\r
5054     "x": 3560.883331298828,\r
5055     "y": 6064.883331298828,\r
5056     "z": "7062000.f761",\r
5057     "wires": [\r
5058       []\r
5059     ]\r
5060   },\r
5061   {\r
5062     "id": "fb71ca0a.fe8928",\r
5063     "type": "set",\r
5064     "name": "set current-provider-id and current-cvlan-id",\r
5065     "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
5066     "comments": "",\r
5067     "x": 3771.883331298828,\r
5068     "y": 4941.883331298828,\r
5069     "z": "7062000.f761",\r
5070     "wires": []\r
5071   },\r
5072   {\r
5073     "id": "c01640bb.f526e8",\r
5074     "type": "call",\r
5075     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-connectivity",\r
5076     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-connectivity' mode='sync' >\n\n",\r
5077     "comments": "",\r
5078     "outputs": 1,\r
5079     "x": 3904.883331298828,\r
5080     "y": 4989.883331298828,\r
5081     "z": "7062000.f761",\r
5082     "wires": [\r
5083       []\r
5084     ]\r
5085   },\r
5086   {\r
5087     "id": "bb9baf34.d0edd",\r
5088     "type": "switchNode",\r
5089     "name": "switch found-connectivity?",\r
5090     "xml": "\n<switch test=\"`$found-connectivity`\">\n\n",\r
5091     "comments": "",\r
5092     "outputs": 1,\r
5093     "x": 4449.883087158203,\r
5094     "y": 5069.883331298828,\r
5095     "z": "7062000.f761",\r
5096     "wires": [\r
5097       [\r
5098         "9b70cfc4.c55e3",\r
5099         "fdbb8f8a.783248"\r
5100       ]\r
5101     ]\r
5102   },\r
5103   {\r
5104     "id": "9b70cfc4.c55e3",\r
5105     "type": "outcomeFalse",\r
5106     "name": "false",\r
5107     "xml": "<outcome value='false'>\n",\r
5108     "comments": "",\r
5109     "outputs": 1,\r
5110     "x": 4642.883087158203,\r
5111     "y": 5070.883331298828,\r
5112     "z": "7062000.f761",\r
5113     "wires": [\r
5114       [\r
5115         "c1e58440.70184"\r
5116       ]\r
5117     ]\r
5118   },\r
5119   {\r
5120     "id": "fdbb8f8a.783248",\r
5121     "type": "outcomeTrue",\r
5122     "name": "true",\r
5123     "xml": "<outcome value='true'>\n",\r
5124     "comments": "",\r
5125     "outputs": 1,\r
5126     "x": 4646.883087158203,\r
5127     "y": 5114.883331298828,\r
5128     "z": "7062000.f761",\r
5129     "wires": [\r
5130       [\r
5131         "75c1affe.0ddba8"\r
5132       ]\r
5133     ]\r
5134   },\r
5135   {\r
5136     "id": "75c1affe.0ddba8",\r
5137     "type": "block",\r
5138     "name": "block : atomic",\r
5139     "xml": "<block atomic='true'>",\r
5140     "atomic": "true",\r
5141     "comments": "",\r
5142     "outputs": 1,\r
5143     "x": 4785.883087158203,\r
5144     "y": 5109.883331298828,\r
5145     "z": "7062000.f761",\r
5146     "wires": [\r
5147       [\r
5148         "4c2b44d5.f7301c",\r
5149         "6ccb98db.74d4e8",\r
5150         "d416487a.185998"\r
5151       ]\r
5152     ]\r
5153   },\r
5154   {\r
5155     "id": "c1e58440.70184",\r
5156     "type": "block",\r
5157     "name": "block : atomic",\r
5158     "xml": "<block atomic='true'>",\r
5159     "atomic": "true",\r
5160     "comments": "",\r
5161     "outputs": 1,\r
5162     "x": 4785.883087158203,\r
5163     "y": 5066.883331298828,\r
5164     "z": "7062000.f761",\r
5165     "wires": [\r
5166       [\r
5167         "5bab7896.e13d9",\r
5168         "ec708b2b.d3c6e",\r
5169         "dea6b450.126ae",\r
5170         "10f1aa00.faee3e"\r
5171       ]\r
5172     ]\r
5173   },\r
5174   {\r
5175     "id": "4c2b44d5.f7301c",\r
5176     "type": "set",\r
5177     "name": "set prop.connectivity-domainA-uuid",\r
5178     "xml": "<set>\n<parameter name='uuid.connectivity-domainA-uuid' value=\"`$tmp.the-connectivity.connectivity-id`\" />\n\n\n",\r
5179     "comments": "",\r
5180     "x": 5179.883087158203,\r
5181     "y": 5360.883331298828,\r
5182     "z": "7062000.f761",\r
5183     "wires": []\r
5184   },\r
5185   {\r
5186     "id": "eb20f196.54125",\r
5187     "type": "comment",\r
5188     "name": "populate connectivity-A variable in the context map",\r
5189     "info": "",\r
5190     "comments": "",\r
5191     "x": 5186.883087158203,\r
5192     "y": 5314.883331298828,\r
5193     "z": "7062000.f761",\r
5194     "wires": []\r
5195   },\r
5196   {\r
5197     "id": "e29af13.61a371",\r
5198     "type": "call",\r
5199     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-find-maximum-used-tpn",\r
5200     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-find-maximum-used-tpn' mode='sync' >\n\n",\r
5201     "comments": "",\r
5202     "outputs": 1,\r
5203     "x": 4984.883087158203,\r
5204     "y": 7064.883331298828,\r
5205     "z": "7062000.f761",\r
5206     "wires": [\r
5207       []\r
5208     ]\r
5209   },\r
5210   {\r
5211     "id": "6ccb98db.74d4e8",\r
5212     "type": "save",\r
5213     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
5214     "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/' + $tmp.the-connectivity.connectivity-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=\"`$tmp.the-connectivity.connectivity-id`\" />\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
5215     "comments": "",\r
5216     "outputs": 1,\r
5217     "x": 5298.883087158203,\r
5218     "y": 5413.883331298828,\r
5219     "z": "7062000.f761",\r
5220     "wires": [\r
5221       []\r
5222     ]\r
5223   },\r
5224   {\r
5225     "id": "e719db8e.3b76c8",\r
5226     "type": "save",\r
5227     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
5228     "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/' + $tmp.aai.ROOT.connectivity.connectivity-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=\"`$tmp.aai.ROOT.connectivity.connectivity-id`\" />\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
5229     "comments": "",\r
5230     "outputs": 1,\r
5231     "x": 5180.883087158203,\r
5232     "y": 5631.883331298828,\r
5233     "z": "7062000.f761",\r
5234     "wires": [\r
5235       []\r
5236     ]\r
5237   },\r
5238   {\r
5239     "id": "d1afb38c.0141a8",\r
5240     "type": "comment",\r
5241     "name": "Update ROOT UNI's bw",\r
5242     "info": "",\r
5243     "comments": "",\r
5244     "x": 3735.883331298828,\r
5245     "y": 4539.883331298828,\r
5246     "z": "7062000.f761",\r
5247     "wires": []\r
5248   },\r
5249   {\r
5250     "id": "42d36cb1.4fa424",\r
5251     "type": "save",\r
5252     "name": "update ROOT UNI in AAI",\r
5253     "xml": "<update 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='data-source' value='`$tmp.newbw`' />\n",\r
5254     "comments": "",\r
5255     "outputs": 1,\r
5256     "x": 4069.883331298828,\r
5257     "y": 4722.883331298828,\r
5258     "z": "7062000.f761",\r
5259     "wires": [\r
5260       []\r
5261     ]\r
5262   },\r
5263   {\r
5264     "id": "298d7f45.2553b",\r
5265     "type": "save",\r
5266     "name": "get root uni from aai",\r
5267     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"uni\"\n\t    key=\"uni.id = $tmp.ROOT.uni-p-interface-long\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.rootuni\" >\n",\r
5268     "comments": "",\r
5269     "outputs": 1,\r
5270     "x": 3681.883331298828,\r
5271     "y": 4589.883331298828,\r
5272     "z": "7062000.f761",\r
5273     "wires": [\r
5274       [\r
5275         "9ef5d43.2b0bca8",\r
5276         "3ef07e30.e6e7da",\r
5277         "f6dffd82.1f8af"\r
5278       ]\r
5279     ]\r
5280   },\r
5281   {\r
5282     "id": "3ef07e30.e6e7da",\r
5283     "type": "not-found",\r
5284     "name": "not-found",\r
5285     "xml": "<outcome value='not-found'>\n",\r
5286     "comments": "",\r
5287     "outputs": 1,\r
5288     "x": 3909.374298095703,\r
5289     "y": 4562.457305908203,\r
5290     "z": "7062000.f761",\r
5291     "wires": [\r
5292       [\r
5293         "afd7cfee.d60a88"\r
5294       ]\r
5295     ]\r
5296   },\r
5297   {\r
5298     "id": "f6dffd82.1f8af",\r
5299     "type": "failure",\r
5300     "name": "failure",\r
5301     "xml": "<outcome value='failure'>\n",\r
5302     "comments": "",\r
5303     "outputs": 1,\r
5304     "x": 3904.883331298828,\r
5305     "y": 4606.883270263672,\r
5306     "z": "7062000.f761",\r
5307     "wires": [\r
5308       [\r
5309         "718ca986.9a7a48"\r
5310       ]\r
5311     ]\r
5312   },\r
5313   {\r
5314     "id": "afd7cfee.d60a88",\r
5315     "type": "returnFailure",\r
5316     "name": "return failure",\r
5317     "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
5318     "comments": "",\r
5319     "x": 4071.945831298828,\r
5320     "y": 4561.743011474609,\r
5321     "z": "7062000.f761",\r
5322     "wires": []\r
5323   },\r
5324   {\r
5325     "id": "718ca986.9a7a48",\r
5326     "type": "returnFailure",\r
5327     "name": "return failure",\r
5328     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
5329     "comments": "",\r
5330     "x": 4072.883331298828,\r
5331     "y": 4606.883270263672,\r
5332     "z": "7062000.f761",\r
5333     "wires": []\r
5334   },\r
5335   {\r
5336     "id": "bbe16e71.3e09e8",\r
5337     "type": "block",\r
5338     "name": "block : atomic",\r
5339     "xml": "<block atomic=\"true\">",\r
5340     "atomic": "true",\r
5341     "outputs": 1,\r
5342     "x": 3857.883331298828,\r
5343     "y": 4679.883331298828,\r
5344     "z": "7062000.f761",\r
5345     "wires": [\r
5346       [\r
5347         "2abf34d.6a0b3cc",\r
5348         "42d36cb1.4fa424"\r
5349       ]\r
5350     ]\r
5351   },\r
5352   {\r
5353     "id": "9ef5d43.2b0bca8",\r
5354     "type": "success",\r
5355     "name": "success",\r
5356     "xml": "<outcome value='success'>\n",\r
5357     "comments": "",\r
5358     "outputs": 1,\r
5359     "x": 3688.883331298828,\r
5360     "y": 4679.883331298828,\r
5361     "z": "7062000.f761",\r
5362     "wires": [\r
5363       [\r
5364         "bbe16e71.3e09e8"\r
5365       ]\r
5366     ]\r
5367   },\r
5368   {\r
5369     "id": "2abf34d.6a0b3cc",\r
5370     "type": "set",\r
5371     "name": "set new bw",\r
5372     "xml": "<set>\n<parameter name='tmp.newbw' value='`$tmp.aai.rootuni.data-source + $gfp`' />\n",\r
5373     "comments": "",\r
5374     "x": 4046.883331298828,\r
5375     "y": 4671.883331298828,\r
5376     "z": "7062000.f761",\r
5377     "wires": []\r
5378   },\r
5379   {\r
5380     "id": "4ebb86dc.a0713",\r
5381     "type": "save",\r
5382     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
5383     "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/' + $middle-man-conn.connectivity-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=\"`$middle-man-conn.connectivity-id`\" />\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
5384     "comments": "",\r
5385     "outputs": 1,\r
5386     "x": 3879.883331298828,\r
5387     "y": 4817.883331298828,\r
5388     "z": "7062000.f761",\r
5389     "wires": [\r
5390       []\r
5391     ]\r
5392   },\r
5393   {\r
5394     "id": "e230ac3e.9cb188",\r
5395     "type": "comment",\r
5396     "name": "We are doing modify but middle man does not exist ==> it is definitely a new logical link",\r
5397     "info": "",\r
5398     "comments": "",\r
5399     "x": 3662.883331298828,\r
5400     "y": 2900.883331298828,\r
5401     "z": "7062000.f761",\r
5402     "wires": []\r
5403   },\r
5404   {\r
5405     "id": "3d29417.d2eee3e",\r
5406     "type": "comment",\r
5407     "name": "We are doing modify and middle man exists, check if LEAF UNI already exists in AAI or not. If yes, consider the possible bw change. If it does not, then it is a new link needs to be added",\r
5408     "info": "",\r
5409     "comments": "",\r
5410     "x": 3517.883331298828,\r
5411     "y": 4467.883331298828,\r
5412     "z": "7062000.f761",\r
5413     "wires": []\r
5414   },\r
5415   {\r
5416     "id": "c01a7bbf.331a48",\r
5417     "type": "exists",\r
5418     "name": "exists LEAF UNI",\r
5419     "xml": "<exists plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' key='uni.id = $tmp.LEAF.uni-p-interface-long'>\n",\r
5420     "comments": "",\r
5421     "outputs": 1,\r
5422     "x": 3290.883331298828,\r
5423     "y": 4735.883331298828,\r
5424     "z": "7062000.f761",\r
5425     "wires": [\r
5426       [\r
5427         "19c2896c.95fdb7",\r
5428         "cde01ebb.100c6"\r
5429       ]\r
5430     ]\r
5431   },\r
5432   {\r
5433     "id": "adcb6448.ea7478",\r
5434     "type": "block",\r
5435     "name": "block",\r
5436     "xml": "<block>\n",\r
5437     "atomic": "false",\r
5438     "comments": "",\r
5439     "outputs": 1,\r
5440     "x": 3122.883331298828,\r
5441     "y": 4738.883331298828,\r
5442     "z": "7062000.f761",\r
5443     "wires": [\r
5444       [\r
5445         "c01a7bbf.331a48"\r
5446       ]\r
5447     ]\r
5448   },\r
5449   {\r
5450     "id": "cde01ebb.100c6",\r
5451     "type": "outcomeFalse",\r
5452     "name": "false",\r
5453     "xml": "<outcome value='false'>\n",\r
5454     "comments": "",\r
5455     "outputs": 1,\r
5456     "x": 3453.883331298828,\r
5457     "y": 4754.883331298828,\r
5458     "z": "7062000.f761",\r
5459     "wires": [\r
5460       [\r
5461         "68da37f9.05cc18"\r
5462       ]\r
5463     ]\r
5464   },\r
5465   {\r
5466     "id": "19c2896c.95fdb7",\r
5467     "type": "outcomeTrue",\r
5468     "name": "true",\r
5469     "xml": "<outcome value='true'>\n",\r
5470     "comments": "",\r
5471     "outputs": 1,\r
5472     "x": 3489.883331298828,\r
5473     "y": 3361.883331298828,\r
5474     "z": "7062000.f761",\r
5475     "wires": [\r
5476       [\r
5477         "b19d09a1.5b2a5"\r
5478       ]\r
5479     ]\r
5480   },\r
5481   {\r
5482     "id": "e9cce0c6.04cdf8",\r
5483     "type": "switchNode",\r
5484     "name": "switch leafuni.data-source == gfp",\r
5485     "xml": "<switch test='`$tmp.aai.leafuni.data-source == $gfp`'>\n",\r
5486     "comments": "",\r
5487     "outputs": 1,\r
5488     "x": 3805.883331298828,\r
5489     "y": 3413.883331298828,\r
5490     "z": "7062000.f761",\r
5491     "wires": [\r
5492       [\r
5493         "24dd4d51.dc7852",\r
5494         "a81116be.6c3738"\r
5495       ]\r
5496     ]\r
5497   },\r
5498   {\r
5499     "id": "24dd4d51.dc7852",\r
5500     "type": "outcomeTrue",\r
5501     "name": "true",\r
5502     "xml": "<outcome value='true'>\n",\r
5503     "comments": "",\r
5504     "outputs": 1,\r
5505     "x": 4010.883331298828,\r
5506     "y": 3409.883331298828,\r
5507     "z": "7062000.f761",\r
5508     "wires": [\r
5509       []\r
5510     ]\r
5511   },\r
5512   {\r
5513     "id": "a81116be.6c3738",\r
5514     "type": "outcomeFalse",\r
5515     "name": "false",\r
5516     "xml": "<outcome value='false'>\n",\r
5517     "comments": "",\r
5518     "outputs": 1,\r
5519     "x": 4012.883331298828,\r
5520     "y": 3459.883331298828,\r
5521     "z": "7062000.f761",\r
5522     "wires": [\r
5523       [\r
5524         "29997430.010c94"\r
5525       ]\r
5526     ]\r
5527   },\r
5528   {\r
5529     "id": "29997430.010c94",\r
5530     "type": "block",\r
5531     "name": "block : atomic",\r
5532     "xml": "<block atomic=\"true\">",\r
5533     "atomic": "true",\r
5534     "outputs": 1,\r
5535     "x": 4168.883331298828,\r
5536     "y": 3465.883331298828,\r
5537     "z": "7062000.f761",\r
5538     "wires": [\r
5539       [\r
5540         "f4475341.93d378",\r
5541         "4264dea0.b43bb8",\r
5542         "5f09d2da.19bfa4",\r
5543         "c71fd59.dfc0428"\r
5544       ]\r
5545     ]\r
5546   },\r
5547   {\r
5548     "id": "f4475341.93d378",\r
5549     "type": "set",\r
5550     "name": "set bwModified",\r
5551     "xml": "<set>\n<parameter name='bwModified' value=\"true\" />\n\n\n",\r
5552     "comments": "",\r
5553     "x": 4394.883575439453,\r
5554     "y": 3206.883331298828,\r
5555     "z": "7062000.f761",\r
5556     "wires": []\r
5557   },\r
5558   {\r
5559     "id": "5f1f0cb4.e46a84",\r
5560     "type": "block",\r
5561     "name": "block : atomic",\r
5562     "xml": "<block atomic=\"true\">",\r
5563     "atomic": "true",\r
5564     "outputs": 1,\r
5565     "x": 4926.883056640625,\r
5566     "y": 4293.88330078125,\r
5567     "z": "7062000.f761",\r
5568     "wires": [\r
5569       [\r
5570         "293be2f2.0d66a6",\r
5571         "898be63d.63497"\r
5572       ]\r
5573     ]\r
5574   },\r
5575   {\r
5576     "id": "898be63d.63497",\r
5577     "type": "set",\r
5578     "name": "unset tmp.aai.vpn-binding",\r
5579     "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",\r
5580     "comments": "",\r
5581     "x": 5128.8828125,\r
5582     "y": 4260.88330078125,\r
5583     "z": "7062000.f761",\r
5584     "wires": []\r
5585   },\r
5586   {\r
5587     "id": "853d7a8b.2e02f",\r
5588     "type": "returnFailure",\r
5589     "name": "return failure",\r
5590     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
5591     "comments": "",\r
5592     "x": 4812.88330078125,\r
5593     "y": 4470.883056640625,\r
5594     "z": "7062000.f761",\r
5595     "wires": []\r
5596   },\r
5597   {\r
5598     "id": "1915e47b.7ebf64",\r
5599     "type": "returnFailure",\r
5600     "name": "return failure",\r
5601     "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
5602     "comments": "",\r
5603     "x": 4809.9454345703125,\r
5604     "y": 4419.743072509766,\r
5605     "z": "7062000.f761",\r
5606     "wires": []\r
5607   },\r
5608   {\r
5609     "id": "caf66330.b1b298",\r
5610     "type": "for",\r
5611     "name": "for each relationship",\r
5612     "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.the-connectivity.relationship-list.relationship_length`' >\n",\r
5613     "comments": "",\r
5614     "outputs": 1,\r
5615     "x": 4392.883056640625,\r
5616     "y": 4293.88330078125,\r
5617     "z": "7062000.f761",\r
5618     "wires": [\r
5619       [\r
5620         "ee97b865.b6783"\r
5621       ]\r
5622     ]\r
5623   },\r
5624   {\r
5625     "id": "ee97b865.b6783",\r
5626     "type": "switchNode",\r
5627     "name": "switch related-to",\r
5628     "xml": "<switch test='`$tmp.the-connectivity.relationship-list.relationship[$cridx].related-to`'>\n",\r
5629     "comments": "",\r
5630     "outputs": 1,\r
5631     "x": 4597.883056640625,\r
5632     "y": 4293.88330078125,\r
5633     "z": "7062000.f761",\r
5634     "wires": [\r
5635       [\r
5636         "c8ca8353.4e5678"\r
5637       ]\r
5638     ]\r
5639   },\r
5640   {\r
5641     "id": "c8ca8353.4e5678",\r
5642     "type": "outcome",\r
5643     "name": "vpn-binding",\r
5644     "xml": "<outcome value='vpn-binding'>\n",\r
5645     "comments": "",\r
5646     "outputs": 1,\r
5647     "x": 4763.883056640625,\r
5648     "y": 4293.88330078125,\r
5649     "z": "7062000.f761",\r
5650     "wires": [\r
5651       [\r
5652         "5f1f0cb4.e46a84"\r
5653       ]\r
5654     ]\r
5655   },\r
5656   {\r
5657     "id": "293be2f2.0d66a6",\r
5658     "type": "save",\r
5659     "name": "get vpn-binding from aai",\r
5660     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\"\n\t    key=\"vpn-binding.vpn-id = $tmp.the-connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-binding\" >\n",\r
5661     "comments": "",\r
5662     "outputs": 1,\r
5663     "x": 4435.883056640625,\r
5664     "y": 4371.88330078125,\r
5665     "z": "7062000.f761",\r
5666     "wires": [\r
5667       [\r
5668         "82c1720.e28a61",\r
5669         "745eb7b1.5e824",\r
5670         "fa83b701.248a2"\r
5671       ]\r
5672     ]\r
5673   },\r
5674   {\r
5675     "id": "82c1720.e28a61",\r
5676     "type": "success",\r
5677     "name": "success",\r
5678     "xml": "<outcome value='success'>\n",\r
5679     "comments": "",\r
5680     "outputs": 1,\r
5681     "x": 4646.883056640625,\r
5682     "y": 4373.88330078125,\r
5683     "z": "7062000.f761",\r
5684     "wires": [\r
5685       [\r
5686         "74de082.69b8bf8"\r
5687       ]\r
5688     ]\r
5689   },\r
5690   {\r
5691     "id": "745eb7b1.5e824",\r
5692     "type": "not-found",\r
5693     "name": "not-found",\r
5694     "xml": "<outcome value='not-found'>\n",\r
5695     "comments": "",\r
5696     "outputs": 1,\r
5697     "x": 4647.3740234375,\r
5698     "y": 4419.457336425781,\r
5699     "z": "7062000.f761",\r
5700     "wires": [\r
5701       [\r
5702         "1915e47b.7ebf64"\r
5703       ]\r
5704     ]\r
5705   },\r
5706   {\r
5707     "id": "fa83b701.248a2",\r
5708     "type": "failure",\r
5709     "name": "failure",\r
5710     "xml": "<outcome value='failure'>\n",\r
5711     "comments": "",\r
5712     "outputs": 1,\r
5713     "x": 4644.883056640625,\r
5714     "y": 4462.88330078125,\r
5715     "z": "7062000.f761",\r
5716     "wires": [\r
5717       [\r
5718         "853d7a8b.2e02f"\r
5719       ]\r
5720     ]\r
5721   },\r
5722   {\r
5723     "id": "b19d09a1.5b2a5",\r
5724     "type": "save",\r
5725     "name": "get LEAF uni from aai",\r
5726     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"uni\"\n\t    key=\"uni.id = $tmp.LEAF.uni-p-interface-long\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.leafuni\" >\n",\r
5727     "comments": "",\r
5728     "outputs": 1,\r
5729     "x": 3679.883331298828,\r
5730     "y": 3256.883331298828,\r
5731     "z": "7062000.f761",\r
5732     "wires": [\r
5733       [\r
5734         "9b46823e.72756",\r
5735         "35aaafce.bf5cc8",\r
5736         "d1f12cfb.14a2c8"\r
5737       ]\r
5738     ]\r
5739   },\r
5740   {\r
5741     "id": "35aaafce.bf5cc8",\r
5742     "type": "not-found",\r
5743     "name": "not-found",\r
5744     "xml": "<outcome value='not-found'>\n",\r
5745     "comments": "",\r
5746     "outputs": 1,\r
5747     "x": 3907.374298095703,\r
5748     "y": 3229.457305908203,\r
5749     "z": "7062000.f761",\r
5750     "wires": [\r
5751       [\r
5752         "c379ee48.9a04a"\r
5753       ]\r
5754     ]\r
5755   },\r
5756   {\r
5757     "id": "d1f12cfb.14a2c8",\r
5758     "type": "failure",\r
5759     "name": "failure",\r
5760     "xml": "<outcome value='failure'>\n",\r
5761     "comments": "",\r
5762     "outputs": 1,\r
5763     "x": 3902.883331298828,\r
5764     "y": 3273.883270263672,\r
5765     "z": "7062000.f761",\r
5766     "wires": [\r
5767       [\r
5768         "7e073ce5.e1fbec"\r
5769       ]\r
5770     ]\r
5771   },\r
5772   {\r
5773     "id": "c379ee48.9a04a",\r
5774     "type": "returnFailure",\r
5775     "name": "return failure",\r
5776     "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
5777     "comments": "",\r
5778     "x": 4069.945831298828,\r
5779     "y": 3228.7430114746094,\r
5780     "z": "7062000.f761",\r
5781     "wires": []\r
5782   },\r
5783   {\r
5784     "id": "7e073ce5.e1fbec",\r
5785     "type": "returnFailure",\r
5786     "name": "return failure",\r
5787     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
5788     "comments": "",\r
5789     "x": 4070.883331298828,\r
5790     "y": 3273.883270263672,\r
5791     "z": "7062000.f761",\r
5792     "wires": []\r
5793   },\r
5794   {\r
5795     "id": "9b46823e.72756",\r
5796     "type": "success",\r
5797     "name": "success",\r
5798     "xml": "<outcome value='success'>\n",\r
5799     "comments": "",\r
5800     "outputs": 1,\r
5801     "x": 3914.883331298828,\r
5802     "y": 3323.883331298828,\r
5803     "z": "7062000.f761",\r
5804     "wires": [\r
5805       [\r
5806         "e9cce0c6.04cdf8"\r
5807       ]\r
5808     ]\r
5809   },\r
5810   {\r
5811     "id": "715dcd2e.3d9a6c",\r
5812     "type": "comment",\r
5813     "name": "Find LEAF and ROOT connectivity, then find vpn-bindings of each. adjust bw",\r
5814     "info": "",\r
5815     "comments": "",\r
5816     "x": 3804.7666625976562,\r
5817     "y": 3514.7666625976562,\r
5818     "z": "7062000.f761",\r
5819     "wires": []\r
5820   },\r
5821   {\r
5822     "id": "b78f20d3.5b466",\r
5823     "type": "set",\r
5824     "name": "set current-provider-id and current-cvlan-id",\r
5825     "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
5826     "comments": "",\r
5827     "x": 3819.483428955078,\r
5828     "y": 3866.566680908203,\r
5829     "z": "7062000.f761",\r
5830     "wires": []\r
5831   },\r
5832   {\r
5833     "id": "9e72dea1.067a48",\r
5834     "type": "call",\r
5835     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-connectivity",\r
5836     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-connectivity' mode='sync' >\n\n",\r
5837     "comments": "",\r
5838     "outputs": 1,\r
5839     "x": 3957.483428955078,\r
5840     "y": 3924.566680908203,\r
5841     "z": "7062000.f761",\r
5842     "wires": [\r
5843       []\r
5844     ]\r
5845   },\r
5846   {\r
5847     "id": "4264dea0.b43bb8",\r
5848     "type": "block",\r
5849     "name": "block : atomic",\r
5850     "xml": "<block atomic=\"true\">",\r
5851     "atomic": "true",\r
5852     "outputs": 1,\r
5853     "x": 3535.483428955078,\r
5854     "y": 3605.966583251953,\r
5855     "z": "7062000.f761",\r
5856     "wires": [\r
5857       [\r
5858         "ea9a5f5d.8f9bf8",\r
5859         "1c248a70.8f6db6",\r
5860         "1f0e75d7.8b5a2a"\r
5861       ]\r
5862     ]\r
5863   },\r
5864   {\r
5865     "id": "d32411c9.b56a18",\r
5866     "type": "switchNode",\r
5867     "name": "switch found-connectivity?",\r
5868     "xml": "\n<switch test=\"`$found-connectivity`\">\n\n",\r
5869     "comments": "",\r
5870     "outputs": 1,\r
5871     "x": 3776.483428955078,\r
5872     "y": 4034.366729736328,\r
5873     "z": "7062000.f761",\r
5874     "wires": [\r
5875       [\r
5876         "e283eb67.9ec4b",\r
5877         "f5e18bc8.e6b668"\r
5878       ]\r
5879     ]\r
5880   },\r
5881   {\r
5882     "id": "e283eb67.9ec4b",\r
5883     "type": "outcomeFalse",\r
5884     "name": "false",\r
5885     "xml": "<outcome value='false'>\n",\r
5886     "comments": "",\r
5887     "outputs": 1,\r
5888     "x": 3969.483428955078,\r
5889     "y": 4035.366729736328,\r
5890     "z": "7062000.f761",\r
5891     "wires": [\r
5892       [\r
5893         "ead422bf.e71108"\r
5894       ]\r
5895     ]\r
5896   },\r
5897   {\r
5898     "id": "f5e18bc8.e6b668",\r
5899     "type": "outcomeTrue",\r
5900     "name": "true",\r
5901     "xml": "<outcome value='true'>\n",\r
5902     "comments": "",\r
5903     "outputs": 1,\r
5904     "x": 3973.483428955078,\r
5905     "y": 4079.366729736328,\r
5906     "z": "7062000.f761",\r
5907     "wires": [\r
5908       [\r
5909         "c6dc9f70.44622"\r
5910       ]\r
5911     ]\r
5912   },\r
5913   {\r
5914     "id": "c6dc9f70.44622",\r
5915     "type": "block",\r
5916     "name": "block : atomic",\r
5917     "xml": "<block atomic='true'>",\r
5918     "atomic": "true",\r
5919     "comments": "",\r
5920     "outputs": 1,\r
5921     "x": 4112.483428955078,\r
5922     "y": 4074.366729736328,\r
5923     "z": "7062000.f761",\r
5924     "wires": [\r
5925       [\r
5926         "caf66330.b1b298"\r
5927       ]\r
5928     ]\r
5929   },\r
5930   {\r
5931     "id": "ead422bf.e71108",\r
5932     "type": "returnFailure",\r
5933     "name": "return failure",\r
5934     "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=\"LEAF CONN DOES NOT EXIST BUT IT SHOULD BE.\" />\n\n",\r
5935     "comments": "",\r
5936     "x": 4113.483428955078,\r
5937     "y": 4031.566680908203,\r
5938     "z": "7062000.f761",\r
5939     "wires": []\r
5940   },\r
5941   {\r
5942     "id": "5f09d2da.19bfa4",\r
5943     "type": "switchNode",\r
5944     "name": "switch leafuni.data-source > gfp",\r
5945     "xml": "<switch test='`$tmp.aai.leafuni.data-source > $gfp`'>\n",\r
5946     "comments": "",\r
5947     "outputs": 1,\r
5948     "x": 4428.600372314453,\r
5949     "y": 3463.166778564453,\r
5950     "z": "7062000.f761",\r
5951     "wires": [\r
5952       [\r
5953         "d442302c.ca32e",\r
5954         "7bb1b9a.4551dc8"\r
5955       ]\r
5956     ]\r
5957   },\r
5958   {\r
5959     "id": "d442302c.ca32e",\r
5960     "type": "outcomeTrue",\r
5961     "name": "true",\r
5962     "xml": "<outcome value='true'>\n",\r
5963     "comments": "",\r
5964     "outputs": 1,\r
5965     "x": 4627.767364501953,\r
5966     "y": 3529.766632080078,\r
5967     "z": "7062000.f761",\r
5968     "wires": [\r
5969       [\r
5970         "7e28b551.d4ae3c"\r
5971       ]\r
5972     ]\r
5973   },\r
5974   {\r
5975     "id": "7bb1b9a.4551dc8",\r
5976     "type": "outcomeFalse",\r
5977     "name": "false",\r
5978     "xml": "<outcome value='false'>\n",\r
5979     "comments": "",\r
5980     "outputs": 1,\r
5981     "x": 4649.767364501953,\r
5982     "y": 3374.766632080078,\r
5983     "z": "7062000.f761",\r
5984     "wires": [\r
5985       [\r
5986         "ff62768e.03d4d"\r
5987       ]\r
5988     ]\r
5989   },\r
5990   {\r
5991     "id": "c71fd59.dfc0428",\r
5992     "type": "save",\r
5993     "name": "update LEAF UNI in AAI",\r
5994     "xml": "<update 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<parameter name='data-source' value='`$gfp`' />\n",\r
5995     "comments": "",\r
5996     "outputs": 1,\r
5997     "x": 4427.600372314453,\r
5998     "y": 3318.366729736328,\r
5999     "z": "7062000.f761",\r
6000     "wires": [\r
6001       []\r
6002     ]\r
6003   },\r
6004   {\r
6005     "id": "5004b561.86b324",\r
6006     "type": "comment",\r
6007     "name": "update LEAF UNI with the new bw",\r
6008     "info": "",\r
6009     "comments": "",\r
6010     "x": 4443.767364501953,\r
6011     "y": 3271.766632080078,\r
6012     "z": "7062000.f761",\r
6013     "wires": []\r
6014   },\r
6015   {\r
6016     "id": "3679700e.bfb9b8",\r
6017     "type": "comment",\r
6018     "name": "Update ROOT UNI's bw",\r
6019     "info": "",\r
6020     "comments": "",\r
6021     "x": 5112.533966064453,\r
6022     "y": 3248.766632080078,\r
6023     "z": "7062000.f761",\r
6024     "wires": []\r
6025   },\r
6026   {\r
6027     "id": "180c72db.e0ca25",\r
6028     "type": "save",\r
6029     "name": "update ROOT UNI in AAI",\r
6030     "xml": "<update 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='data-source' value='`$tmp.newbw`' />\n",\r
6031     "comments": "",\r
6032     "outputs": 1,\r
6033     "x": 5714.533966064453,\r
6034     "y": 3353.766632080078,\r
6035     "z": "7062000.f761",\r
6036     "wires": [\r
6037       []\r
6038     ]\r
6039   },\r
6040   {\r
6041     "id": "eaf2956b.f5da68",\r
6042     "type": "save",\r
6043     "name": "get root uni from aai",\r
6044     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"uni\"\n\t    key=\"uni.id = $tmp.ROOT.uni-p-interface-long\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.rootuni\" >\n",\r
6045     "comments": "",\r
6046     "outputs": 1,\r
6047     "x": 5104.533721923828,\r
6048     "y": 3294.766632080078,\r
6049     "z": "7062000.f761",\r
6050     "wires": [\r
6051       [\r
6052         "94b5c3f.97615c",\r
6053         "5f9fd4c2.f09244",\r
6054         "be126d8d.81e41"\r
6055       ]\r
6056     ]\r
6057   },\r
6058   {\r
6059     "id": "5f9fd4c2.f09244",\r
6060     "type": "not-found",\r
6061     "name": "not-found",\r
6062     "xml": "<outcome value='not-found'>\n",\r
6063     "comments": "",\r
6064     "outputs": 1,\r
6065     "x": 5332.024688720703,\r
6066     "y": 3267.340606689453,\r
6067     "z": "7062000.f761",\r
6068     "wires": [\r
6069       [\r
6070         "7b864f73.0d50b8"\r
6071       ]\r
6072     ]\r
6073   },\r
6074   {\r
6075     "id": "be126d8d.81e41",\r
6076     "type": "failure",\r
6077     "name": "failure",\r
6078     "xml": "<outcome value='failure'>\n",\r
6079     "comments": "",\r
6080     "outputs": 1,\r
6081     "x": 5327.533721923828,\r
6082     "y": 3311.766571044922,\r
6083     "z": "7062000.f761",\r
6084     "wires": [\r
6085       [\r
6086         "20abe4f.26a359c"\r
6087       ]\r
6088     ]\r
6089   },\r
6090   {\r
6091     "id": "7b864f73.0d50b8",\r
6092     "type": "returnFailure",\r
6093     "name": "return failure",\r
6094     "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
6095     "comments": "",\r
6096     "x": 5494.596221923828,\r
6097     "y": 3266.6263122558594,\r
6098     "z": "7062000.f761",\r
6099     "wires": []\r
6100   },\r
6101   {\r
6102     "id": "20abe4f.26a359c",\r
6103     "type": "returnFailure",\r
6104     "name": "return failure",\r
6105     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
6106     "comments": "",\r
6107     "x": 5495.533721923828,\r
6108     "y": 3311.766571044922,\r
6109     "z": "7062000.f761",\r
6110     "wires": []\r
6111   },\r
6112   {\r
6113     "id": "cd6b80d0.dac0d8",\r
6114     "type": "block",\r
6115     "name": "block : atomic",\r
6116     "xml": "<block atomic=\"true\">",\r
6117     "atomic": "true",\r
6118     "outputs": 1,\r
6119     "x": 5492.533721923828,\r
6120     "y": 3361.766632080078,\r
6121     "z": "7062000.f761",\r
6122     "wires": [\r
6123       [\r
6124         "c08f6988.b1e668",\r
6125         "180c72db.e0ca25"\r
6126       ]\r
6127     ]\r
6128   },\r
6129   {\r
6130     "id": "94b5c3f.97615c",\r
6131     "type": "success",\r
6132     "name": "success",\r
6133     "xml": "<outcome value='success'>\n",\r
6134     "comments": "",\r
6135     "outputs": 1,\r
6136     "x": 5323.533721923828,\r
6137     "y": 3361.766632080078,\r
6138     "z": "7062000.f761",\r
6139     "wires": [\r
6140       [\r
6141         "cd6b80d0.dac0d8"\r
6142       ]\r
6143     ]\r
6144   },\r
6145   {\r
6146     "id": "c08f6988.b1e668",\r
6147     "type": "set",\r
6148     "name": "set new bw",\r
6149     "xml": "<set>\n<parameter name='tmp.newbw' value='`$tmp.aai.rootuni.data-source + $tmp.delta`' />\n",\r
6150     "comments": "",\r
6151     "x": 5674.534454345703,\r
6152     "y": 3303.766632080078,\r
6153     "z": "7062000.f761",\r
6154     "wires": []\r
6155   },\r
6156   {\r
6157     "id": "96b13181.04b1f8",\r
6158     "type": "comment",\r
6159     "name": "bw+ has increased ",\r
6160     "info": "",\r
6161     "comments": "",\r
6162     "x": 4641.766662597656,\r
6163     "y": 3336.7666625976562,\r
6164     "z": "7062000.f761",\r
6165     "wires": []\r
6166   },\r
6167   {\r
6168     "id": "a39bd08a.5e567",\r
6169     "type": "comment",\r
6170     "name": "bw- has decreased",\r
6171     "info": "",\r
6172     "comments": "",\r
6173     "x": 4640.600372314453,\r
6174     "y": 3493.566680908203,\r
6175     "z": "7062000.f761",\r
6176     "wires": []\r
6177   },\r
6178   {\r
6179     "id": "ca05c492.e4ea9",\r
6180     "type": "comment",\r
6181     "name": "Update ROOT UNI's bw",\r
6182     "info": "",\r
6183     "comments": "",\r
6184     "x": 5089.600372314453,\r
6185     "y": 3451.566680908203,\r
6186     "z": "7062000.f761",\r
6187     "wires": []\r
6188   },\r
6189   {\r
6190     "id": "6af65c6b.88b2a4",\r
6191     "type": "save",\r
6192     "name": "update ROOT UNI in AAI",\r
6193     "xml": "<update 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='data-source' value='`$tmp.newbw`' />\n",\r
6194     "comments": "",\r
6195     "outputs": 1,\r
6196     "x": 5691.600372314453,\r
6197     "y": 3556.566680908203,\r
6198     "z": "7062000.f761",\r
6199     "wires": [\r
6200       []\r
6201     ]\r
6202   },\r
6203   {\r
6204     "id": "e7dc732b.754658",\r
6205     "type": "save",\r
6206     "name": "get root uni from aai",\r
6207     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"uni\"\n\t    key=\"uni.id = $tmp.ROOT.uni-p-interface-long\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.rootuni\" >\n",\r
6208     "comments": "",\r
6209     "outputs": 1,\r
6210     "x": 5081.600128173828,\r
6211     "y": 3497.566680908203,\r
6212     "z": "7062000.f761",\r
6213     "wires": [\r
6214       [\r
6215         "5192fc04.bc79ac",\r
6216         "9675a219.e39ec8",\r
6217         "491e7a3e.fd6efc"\r
6218       ]\r
6219     ]\r
6220   },\r
6221   {\r
6222     "id": "9675a219.e39ec8",\r
6223     "type": "not-found",\r
6224     "name": "not-found",\r
6225     "xml": "<outcome value='not-found'>\n",\r
6226     "comments": "",\r
6227     "outputs": 1,\r
6228     "x": 5309.091094970703,\r
6229     "y": 3470.140655517578,\r
6230     "z": "7062000.f761",\r
6231     "wires": [\r
6232       [\r
6233         "9eb1719c.df987"\r
6234       ]\r
6235     ]\r
6236   },\r
6237   {\r
6238     "id": "491e7a3e.fd6efc",\r
6239     "type": "failure",\r
6240     "name": "failure",\r
6241     "xml": "<outcome value='failure'>\n",\r
6242     "comments": "",\r
6243     "outputs": 1,\r
6244     "x": 5304.600128173828,\r
6245     "y": 3514.566619873047,\r
6246     "z": "7062000.f761",\r
6247     "wires": [\r
6248       [\r
6249         "73d5ba80.efe18c"\r
6250       ]\r
6251     ]\r
6252   },\r
6253   {\r
6254     "id": "9eb1719c.df987",\r
6255     "type": "returnFailure",\r
6256     "name": "return failure",\r
6257     "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
6258     "comments": "",\r
6259     "x": 5471.662628173828,\r
6260     "y": 3469.4263610839844,\r
6261     "z": "7062000.f761",\r
6262     "wires": []\r
6263   },\r
6264   {\r
6265     "id": "73d5ba80.efe18c",\r
6266     "type": "returnFailure",\r
6267     "name": "return failure",\r
6268     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
6269     "comments": "",\r
6270     "x": 5472.600128173828,\r
6271     "y": 3514.566619873047,\r
6272     "z": "7062000.f761",\r
6273     "wires": []\r
6274   },\r
6275   {\r
6276     "id": "49e14e2.90e413",\r
6277     "type": "block",\r
6278     "name": "block : atomic",\r
6279     "xml": "<block atomic=\"true\">",\r
6280     "atomic": "true",\r
6281     "outputs": 1,\r
6282     "x": 5469.600128173828,\r
6283     "y": 3564.566680908203,\r
6284     "z": "7062000.f761",\r
6285     "wires": [\r
6286       [\r
6287         "fc162869.747088",\r
6288         "6af65c6b.88b2a4"\r
6289       ]\r
6290     ]\r
6291   },\r
6292   {\r
6293     "id": "5192fc04.bc79ac",\r
6294     "type": "success",\r
6295     "name": "success",\r
6296     "xml": "<outcome value='success'>\n",\r
6297     "comments": "",\r
6298     "outputs": 1,\r
6299     "x": 5300.600128173828,\r
6300     "y": 3564.566680908203,\r
6301     "z": "7062000.f761",\r
6302     "wires": [\r
6303       [\r
6304         "49e14e2.90e413"\r
6305       ]\r
6306     ]\r
6307   },\r
6308   {\r
6309     "id": "fc162869.747088",\r
6310     "type": "set",\r
6311     "name": "set new bw",\r
6312     "xml": "<set>\n<parameter name='tmp.newbw' value='`$tmp.aai.rootuni.data-source - $tmp.delta`' />\n",\r
6313     "comments": "",\r
6314     "x": 5651.600860595703,\r
6315     "y": 3506.566680908203,\r
6316     "z": "7062000.f761",\r
6317     "wires": []\r
6318   },\r
6319   {\r
6320     "id": "af7611a6.c24d8",\r
6321     "type": "set",\r
6322     "name": "set delta",\r
6323     "xml": "<set>\n<parameter name='tmp.delta' value='`$tmp.aai.leafuni.data-source - $gfp`' />\n<parameter name='tmp.realdelta' value='`$gfp - $tmp.aai.leafuni.data-source`' />\n<parameter name='tmp.isBwIncreased' value='false' />\n\n\n",\r
6324     "comments": "",\r
6325     "x": 5006.600128173828,\r
6326     "y": 3410.566680908203,\r
6327     "z": "7062000.f761",\r
6328     "wires": []\r
6329   },\r
6330   {\r
6331     "id": "7e28b551.d4ae3c",\r
6332     "type": "block",\r
6333     "name": "block",\r
6334     "xml": "<block>\n",\r
6335     "atomic": "false",\r
6336     "comments": "",\r
6337     "outputs": 1,\r
6338     "x": 4799.766662597656,\r
6339     "y": 3518.7666625976562,\r
6340     "z": "7062000.f761",\r
6341     "wires": [\r
6342       [\r
6343         "af7611a6.c24d8",\r
6344         "e7dc732b.754658"\r
6345       ]\r
6346     ]\r
6347   },\r
6348   {\r
6349     "id": "ff62768e.03d4d",\r
6350     "type": "block",\r
6351     "name": "block",\r
6352     "xml": "<block>\n",\r
6353     "atomic": "false",\r
6354     "comments": "",\r
6355     "outputs": 1,\r
6356     "x": 4820.500030517578,\r
6357     "y": 3345.566680908203,\r
6358     "z": "7062000.f761",\r
6359     "wires": [\r
6360       [\r
6361         "d835bd5d.93ef8",\r
6362         "eaf2956b.f5da68"\r
6363       ]\r
6364     ]\r
6365   },\r
6366   {\r
6367     "id": "d835bd5d.93ef8",\r
6368     "type": "set",\r
6369     "name": "set delta",\r
6370     "xml": "<set>\n<parameter name='tmp.delta' value='`$gfp - $tmp.aai.leafuni.data-source`' />\n<parameter name='tmp.realdelta' value='`$gfp - $tmp.aai.leafuni.data-source`' />\n<parameter name='tmp.isBwIncreased' value='true' />\n",\r
6371     "comments": "",\r
6372     "x": 5019.333526611328,\r
6373     "y": 3163.366729736328,\r
6374     "z": "7062000.f761",\r
6375     "wires": []\r
6376   },\r
6377   {\r
6378     "id": "2025b954.4fbac6",\r
6379     "type": "comment",\r
6380     "name": "Update ROOT UNI's bw",\r
6381     "info": "",\r
6382     "comments": "",\r
6383     "x": 4414.649932861328,\r
6384     "y": 3418.566680908203,\r
6385     "z": "7062000.f761",\r
6386     "wires": []\r
6387   },\r
6388   {\r
6389     "id": "976feb0e.893a98",\r
6390     "type": "call",\r
6391     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-ROOT-conn",\r
6392     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-ROOT-conn' mode='sync' >\n\n",\r
6393     "comments": "",\r
6394     "outputs": 1,\r
6395     "x": 3916.9833984375,\r
6396     "y": 4197.3671875,\r
6397     "z": "7062000.f761",\r
6398     "wires": [\r
6399       []\r
6400     ]\r
6401   },\r
6402   {\r
6403     "id": "a99b9bcd.cfe81",\r
6404     "type": "switchNode",\r
6405     "name": "switch found-root-connectivity",\r
6406     "xml": "\n<switch test=\"`$found-root-connectivity`\">\n\n",\r
6407     "comments": "",\r
6408     "outputs": 1,\r
6409     "x": 3751.9833984375,\r
6410     "y": 4269.567138671875,\r
6411     "z": "7062000.f761",\r
6412     "wires": [\r
6413       [\r
6414         "98f48307.654f08",\r
6415         "d531b9e1.8374e"\r
6416       ]\r
6417     ]\r
6418   },\r
6419   {\r
6420     "id": "98f48307.654f08",\r
6421     "type": "outcomeTrue",\r
6422     "name": "true",\r
6423     "xml": "<outcome value='true'>\n",\r
6424     "comments": "",\r
6425     "outputs": 1,\r
6426     "x": 3962.9833984375,\r
6427     "y": 4269.567138671875,\r
6428     "z": "7062000.f761",\r
6429     "wires": [\r
6430       [\r
6431         "c74f3bbd.636d88"\r
6432       ]\r
6433     ]\r
6434   },\r
6435   {\r
6436     "id": "d531b9e1.8374e",\r
6437     "type": "outcomeFalse",\r
6438     "name": "false",\r
6439     "xml": "<outcome value='false'>\n",\r
6440     "comments": "",\r
6441     "outputs": 1,\r
6442     "x": 3958.9833984375,\r
6443     "y": 4317.567138671875,\r
6444     "z": "7062000.f761",\r
6445     "wires": [\r
6446       [\r
6447         "7e7563eb.7c66dc"\r
6448       ]\r
6449     ]\r
6450   },\r
6451   {\r
6452     "id": "c74f3bbd.636d88",\r
6453     "type": "block",\r
6454     "name": "block : atomic",\r
6455     "xml": "<block atomic='true'>",\r
6456     "atomic": "true",\r
6457     "comments": "",\r
6458     "outputs": 1,\r
6459     "x": 4118.9833984375,\r
6460     "y": 4265.567138671875,\r
6461     "z": "7062000.f761",\r
6462     "wires": [\r
6463       [\r
6464         "6a777147.b443f8"\r
6465       ]\r
6466     ]\r
6467   },\r
6468   {\r
6469     "id": "7e7563eb.7c66dc",\r
6470     "type": "returnFailure",\r
6471     "name": "return failure",\r
6472     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='Root Connectivity was not found but it should have been!' />\n",\r
6473     "comments": "",\r
6474     "x": 4106.9833984375,\r
6475     "y": 4312.567138671875,\r
6476     "z": "7062000.f761",\r
6477     "wires": []\r
6478   },\r
6479   {\r
6480     "id": "d69512d3.73027",\r
6481     "type": "block",\r
6482     "name": "block : atomic",\r
6483     "xml": "<block atomic=\"true\">",\r
6484     "atomic": "true",\r
6485     "outputs": 1,\r
6486     "x": 4959.949493408203,\r
6487     "y": 4579.765899658203,\r
6488     "z": "7062000.f761",\r
6489     "wires": [\r
6490       [\r
6491         "cae5635c.9a1e2",\r
6492         "6f0b5fb4.a1fb4"\r
6493       ]\r
6494     ]\r
6495   },\r
6496   {\r
6497     "id": "6f0b5fb4.a1fb4",\r
6498     "type": "set",\r
6499     "name": "unset tmp.aai.vpn-binding",\r
6500     "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",\r
6501     "comments": "",\r
6502     "x": 5202.949737548828,\r
6503     "y": 4548.765899658203,\r
6504     "z": "7062000.f761",\r
6505     "wires": []\r
6506   },\r
6507   {\r
6508     "id": "e903ccd1.487f98",\r
6509     "type": "block",\r
6510     "name": "block : atomic",\r
6511     "xml": "<block atomic=\"true\">",\r
6512     "atomic": "true",\r
6513     "outputs": 1,\r
6514     "x": 4819.949493408203,\r
6515     "y": 4689.765899658203,\r
6516     "z": "7062000.f761",\r
6517     "wires": [\r
6518       [\r
6519         "e80670f4.672e68"\r
6520       ]\r
6521     ]\r
6522   },\r
6523   {\r
6524     "id": "c7ea39a3.498988",\r
6525     "type": "returnFailure",\r
6526     "name": "return failure",\r
6527     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
6528     "comments": "",\r
6529     "x": 4807.949737548828,\r
6530     "y": 4782.766143798828,\r
6531     "z": "7062000.f761",\r
6532     "wires": []\r
6533   },\r
6534   {\r
6535     "id": "3f0dd5a.ea39aaa",\r
6536     "type": "returnFailure",\r
6537     "name": "return failure",\r
6538     "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
6539     "comments": "",\r
6540     "x": 4810.011871337891,\r
6541     "y": 4737.625671386719,\r
6542     "z": "7062000.f761",\r
6543     "wires": []\r
6544   },\r
6545   {\r
6546     "id": "6a777147.b443f8",\r
6547     "type": "for",\r
6548     "name": "for each relationship",\r
6549     "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.ROOT.connectivity.relationship-list.relationship_length`' >\n",\r
6550     "comments": "",\r
6551     "outputs": 1,\r
6552     "x": 4425.949493408203,\r
6553     "y": 4579.765899658203,\r
6554     "z": "7062000.f761",\r
6555     "wires": [\r
6556       [\r
6557         "b25b3b22.1646d"\r
6558       ]\r
6559     ]\r
6560   },\r
6561   {\r
6562     "id": "b25b3b22.1646d",\r
6563     "type": "switchNode",\r
6564     "name": "switch related-to",\r
6565     "xml": "<switch test='`$tmp.aai.ROOT.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",\r
6566     "comments": "",\r
6567     "outputs": 1,\r
6568     "x": 4630.949493408203,\r
6569     "y": 4579.765899658203,\r
6570     "z": "7062000.f761",\r
6571     "wires": [\r
6572       [\r
6573         "e858f590.02822"\r
6574       ]\r
6575     ]\r
6576   },\r
6577   {\r
6578     "id": "e858f590.02822",\r
6579     "type": "outcome",\r
6580     "name": "vpn-binding",\r
6581     "xml": "<outcome value='vpn-binding'>\n",\r
6582     "comments": "",\r
6583     "outputs": 1,\r
6584     "x": 4796.949493408203,\r
6585     "y": 4579.765899658203,\r
6586     "z": "7062000.f761",\r
6587     "wires": [\r
6588       [\r
6589         "d69512d3.73027"\r
6590       ]\r
6591     ]\r
6592   },\r
6593   {\r
6594     "id": "cae5635c.9a1e2",\r
6595     "type": "save",\r
6596     "name": "get vpn-binding from aai",\r
6597     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\"\n\t    key=\"vpn-binding.vpn-id = $tmp.aai.ROOT.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-binding\" >\n",\r
6598     "comments": "",\r
6599     "outputs": 1,\r
6600     "x": 4435.949493408203,\r
6601     "y": 4689.765899658203,\r
6602     "z": "7062000.f761",\r
6603     "wires": [\r
6604       [\r
6605         "a8297a32.4725f",\r
6606         "102b4f2b.1cfcf9",\r
6607         "6f0b5913.92db28"\r
6608       ]\r
6609     ]\r
6610   },\r
6611   {\r
6612     "id": "a8297a32.4725f",\r
6613     "type": "success",\r
6614     "name": "success",\r
6615     "xml": "<outcome value='success'>\n",\r
6616     "comments": "",\r
6617     "outputs": 1,\r
6618     "x": 4646.949493408203,\r
6619     "y": 4691.765899658203,\r
6620     "z": "7062000.f761",\r
6621     "wires": [\r
6622       [\r
6623         "e903ccd1.487f98"\r
6624       ]\r
6625     ]\r
6626   },\r
6627   {\r
6628     "id": "102b4f2b.1cfcf9",\r
6629     "type": "not-found",\r
6630     "name": "not-found",\r
6631     "xml": "<outcome value='not-found'>\n",\r
6632     "comments": "",\r
6633     "outputs": 1,\r
6634     "x": 4647.440460205078,\r
6635     "y": 4737.339935302734,\r
6636     "z": "7062000.f761",\r
6637     "wires": [\r
6638       [\r
6639         "3f0dd5a.ea39aaa"\r
6640       ]\r
6641     ]\r
6642   },\r
6643   {\r
6644     "id": "6f0b5913.92db28",\r
6645     "type": "failure",\r
6646     "name": "failure",\r
6647     "xml": "<outcome value='failure'>\n",\r
6648     "comments": "",\r
6649     "outputs": 1,\r
6650     "x": 4644.949493408203,\r
6651     "y": 4780.765899658203,\r
6652     "z": "7062000.f761",\r
6653     "wires": [\r
6654       [\r
6655         "c7ea39a3.498988"\r
6656       ]\r
6657     ]\r
6658   },\r
6659   {\r
6660     "id": "e8e91e40.c50e3",\r
6661     "type": "comment",\r
6662     "name": "Temporary skipping this check - to support multiple instances in one slice",\r
6663     "info": "",\r
6664     "comments": "",\r
6665     "x": 6055.766387939453,\r
6666     "y": 7078.966827392578,\r
6667     "z": "7062000.f761",\r
6668     "wires": []\r
6669   },\r
6670   {\r
6671     "id": "12a072b1.a1936d",\r
6672     "type": "comment",\r
6673     "name": "find all OTNs that have srcTtpOtnLayer and increase their bandwidth",\r
6674     "info": "",\r
6675     "comments": "",\r
6676     "x": 5324.2333984375,\r
6677     "y": 4310.16650390625,\r
6678     "z": "7062000.f761",\r
6679     "wires": []\r
6680   },\r
6681   {\r
6682     "id": "74de082.69b8bf8",\r
6683     "type": "block",\r
6684     "name": "block : atomic",\r
6685     "xml": "<block atomic='true'>",\r
6686     "atomic": "true",\r
6687     "comments": "",\r
6688     "outputs": 1,\r
6689     "x": 4826.233642578125,\r
6690     "y": 4376.16650390625,\r
6691     "z": "7062000.f761",\r
6692     "wires": [\r
6693       []\r
6694     ]\r
6695   },\r
6696   {\r
6697     "id": "ac63c59c.83048",\r
6698     "type": "switchNode",\r
6699     "name": "switch ops-note is srcTtpOtnLayer",\r
6700     "xml": "<switch test=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].ops-note == $tmp.srcTtpOtnLayer `\">\n\n",\r
6701     "comments": "",\r
6702     "outputs": 1,\r
6703     "x": 5357.2333984375,\r
6704     "y": 4378.16650390625,\r
6705     "z": "7062000.f761",\r
6706     "wires": [\r
6707       [\r
6708         "e6f065d2.aee8e",\r
6709         "6b430222.42764c"\r
6710       ]\r
6711     ]\r
6712   },\r
6713   {\r
6714     "id": "e6f065d2.aee8e",\r
6715     "type": "outcomeTrue",\r
6716     "name": "true",\r
6717     "xml": "<outcome value='true'>\n",\r
6718     "comments": "",\r
6719     "outputs": 1,\r
6720     "x": 5482.2333984375,\r
6721     "y": 4276.166259765625,\r
6722     "z": "7062000.f761",\r
6723     "wires": [\r
6724       [\r
6725         "3f51a421.f29684"\r
6726       ]\r
6727     ]\r
6728   },\r
6729   {\r
6730     "id": "6b430222.42764c",\r
6731     "type": "outcomeFalse",\r
6732     "name": "false",\r
6733     "xml": "<outcome value='false'>\n",\r
6734     "comments": "",\r
6735     "outputs": 1,\r
6736     "x": 5601.233428955078,\r
6737     "y": 4350.166290283203,\r
6738     "z": "7062000.f761",\r
6739     "wires": [\r
6740       []\r
6741     ]\r
6742   },\r
6743   {\r
6744     "id": "b946186b.4be33",\r
6745     "type": "set",\r
6746     "name": "set srcTtp OTN layer",\r
6747     "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
6748     "comments": "",\r
6749     "x": 4569.916534423828,\r
6750     "y": 3921.883331298828,\r
6751     "z": "7062000.f761",\r
6752     "wires": []\r
6753   },\r
6754   {\r
6755     "id": "402f3aa1.dbe4cc",\r
6756     "type": "switchNode",\r
6757     "name": "switch provider-id domainA",\r
6758     "xml": "<switch test='`$allNetworksList.network-resource[$netwidx].provider-id == $param-prefix-domainA-pnfName[2]`'>\n",\r
6759     "comments": "",\r
6760     "outputs": 1,\r
6761     "x": 4914.916534423828,\r
6762     "y": 3783.883331298828,\r
6763     "z": "7062000.f761",\r
6764     "wires": [\r
6765       [\r
6766         "a579376d.bc3"\r
6767       ]\r
6768     ]\r
6769   },\r
6770   {\r
6771     "id": "d26cf0c5.68acc",\r
6772     "type": "for",\r
6773     "name": "for netwidx..allNetworksList_length",\r
6774     "xml": "<for index='netwidx' start='0' end='`$allNetworksList.network-resource_length`' >",\r
6775     "comments": "",\r
6776     "outputs": 1,\r
6777     "x": 4621.916534423828,\r
6778     "y": 3777.883331298828,\r
6779     "z": "7062000.f761",\r
6780     "wires": [\r
6781       [\r
6782         "402f3aa1.dbe4cc"\r
6783       ]\r
6784     ]\r
6785   },\r
6786   {\r
6787     "id": "e2cb41dc.f4c8f8",\r
6788     "type": "not-found",\r
6789     "name": "not-found",\r
6790     "xml": "<outcome value='not-found'>\n",\r
6791     "comments": "",\r
6792     "outputs": 1,\r
6793     "x": 4876.916534423828,\r
6794     "y": 3734.883331298828,\r
6795     "z": "7062000.f761",\r
6796     "wires": [\r
6797       []\r
6798     ]\r
6799   },\r
6800   {\r
6801     "id": "72812dae.8552e4",\r
6802     "type": "set",\r
6803     "name": "unset parameters",\r
6804     "xml": "<set>\n<parameter name='tmp.pce-src-node.' value='' />\n",\r
6805     "comments": "",\r
6806     "x": 4565.916534423828,\r
6807     "y": 3829.883331298828,\r
6808     "z": "7062000.f761",\r
6809     "wires": []\r
6810   },\r
6811   {\r
6812     "id": "82192f60.51b328",\r
6813     "type": "set",\r
6814     "name": "set tmp.pce-src-node",\r
6815     "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
6816     "comments": "",\r
6817     "x": 4573.916534423828,\r
6818     "y": 3874.883331298828,\r
6819     "z": "7062000.f761",\r
6820     "wires": []\r
6821   },\r
6822   {\r
6823     "id": "37b8f0e0.bc121",\r
6824     "type": "set",\r
6825     "name": "unset otnTopoIdSrc",\r
6826     "xml": "<set>\n<parameter name='otnTopoIdSrc' value='' />\n",\r
6827     "comments": "",\r
6828     "x": 4570.916534423828,\r
6829     "y": 3727.883331298828,\r
6830     "z": "7062000.f761",\r
6831     "wires": []\r
6832   },\r
6833   {\r
6834     "id": "a579376d.bc3",\r
6835     "type": "outcomeTrue",\r
6836     "name": "true",\r
6837     "xml": "<outcome value='true'>\n",\r
6838     "comments": "",\r
6839     "outputs": 1,\r
6840     "x": 4823.916534423828,\r
6841     "y": 3851.883331298828,\r
6842     "z": "7062000.f761",\r
6843     "wires": [\r
6844       [\r
6845         "bcbc46d8.da70d8"\r
6846       ]\r
6847     ]\r
6848   },\r
6849   {\r
6850     "id": "bcbc46d8.da70d8",\r
6851     "type": "switchNode",\r
6852     "name": "switch te-topo-id",\r
6853     "xml": "<switch test='`$allNetworksList.network-resource[$netwidx].te-topo-id != $param-prefix-domainA-pnfName[6]`'>\n",\r
6854     "comments": "",\r
6855     "outputs": 1,\r
6856     "x": 5008.916534423828,\r
6857     "y": 3850.883331298828,\r
6858     "z": "7062000.f761",\r
6859     "wires": [\r
6860       [\r
6861         "df0e838b.1a8"\r
6862       ]\r
6863     ]\r
6864   },\r
6865   {\r
6866     "id": "df0e838b.1a8",\r
6867     "type": "outcomeTrue",\r
6868     "name": "true",\r
6869     "xml": "<outcome value='true'>\n",\r
6870     "comments": "",\r
6871     "outputs": 1,\r
6872     "x": 5200.916534423828,\r
6873     "y": 3853.883331298828,\r
6874     "z": "7062000.f761",\r
6875     "wires": [\r
6876       [\r
6877         "b552c813.211c2"\r
6878       ]\r
6879     ]\r
6880   },\r
6881   {\r
6882     "id": "b552c813.211c2",\r
6883     "type": "set",\r
6884     "name": "set otnTopoIdSrc",\r
6885     "xml": "<set>\n<parameter name='otnTopoIdSrc' value='`$allNetworksList.network-resource[$netwidx].te-topo-id`' />\n",\r
6886     "comments": "",\r
6887     "x": 5372.916534423828,\r
6888     "y": 3849.883331298828,\r
6889     "z": "7062000.f761",\r
6890     "wires": []\r
6891   },\r
6892   {\r
6893     "id": "9806e019.ad2a",\r
6894     "type": "call",\r
6895     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-find-maximum-used-tpn",\r
6896     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-find-maximum-used-tpn' mode='sync' >\n\n",\r
6897     "comments": "",\r
6898     "outputs": 1,\r
6899     "x": 4748.916534423828,\r
6900     "y": 3964.883331298828,\r
6901     "z": "7062000.f761",\r
6902     "wires": [\r
6903       []\r
6904     ]\r
6905   },\r
6906   {\r
6907     "id": "ea9a5f5d.8f9bf8",\r
6908     "type": "block",\r
6909     "name": "block",\r
6910     "xml": "<block>\n",\r
6911     "atomic": "false",\r
6912     "comments": "",\r
6913     "outputs": 1,\r
6914     "x": 4265.916534423828,\r
6915     "y": 3749.883331298828,\r
6916     "z": "7062000.f761",\r
6917     "wires": [\r
6918       [\r
6919         "4c3bbf42.6f3d68",\r
6920         "e37c29b1.ce632",\r
6921         "72812dae.8552e4",\r
6922         "82192f60.51b328",\r
6923         "b946186b.4be33",\r
6924         "d26cf0c5.68acc",\r
6925         "9806e019.ad2a"\r
6926       ]\r
6927     ]\r
6928   },\r
6929   {\r
6930     "id": "805d495b.3d6b18",\r
6931     "type": "comment",\r
6932     "name": "The following section is to find srcTtp OTN layer (its long name)",\r
6933     "info": "The following section is to find srcTtp OTN layer (its long name)",\r
6934     "comments": "",\r
6935     "x": 4250.916534423828,\r
6936     "y": 3683.883331298828,\r
6937     "z": "7062000.f761",\r
6938     "wires": []\r
6939   },\r
6940   {\r
6941     "id": "e37c29b1.ce632",\r
6942     "type": "get-resource",\r
6943     "name": "get-resource network-resources-list",\r
6944     "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
6945     "comments": "",\r
6946     "outputs": 1,\r
6947     "x": 4629.916534423828,\r
6948     "y": 3670.883331298828,\r
6949     "z": "7062000.f761",\r
6950     "wires": [\r
6951       [\r
6952         "942a4caf.d868d8",\r
6953         "8905a79d.0fb76",\r
6954         "e2cb41dc.f4c8f8"\r
6955       ]\r
6956     ]\r
6957   },\r
6958   {\r
6959     "id": "942a4caf.d868d8",\r
6960     "type": "success",\r
6961     "name": "success",\r
6962     "xml": "<outcome value='success'>\n",\r
6963     "comments": "",\r
6964     "outputs": 1,\r
6965     "x": 4865.916534423828,\r
6966     "y": 3653.883331298828,\r
6967     "z": "7062000.f761",\r
6968     "wires": [\r
6969       []\r
6970     ]\r
6971   },\r
6972   {\r
6973     "id": "8905a79d.0fb76",\r
6974     "type": "other",\r
6975     "name": "other",\r
6976     "xml": "<outcome value='Other'>\n",\r
6977     "comments": "",\r
6978     "outputs": 1,\r
6979     "x": 4862.916534423828,\r
6980     "y": 3694.883331298828,\r
6981     "z": "7062000.f761",\r
6982     "wires": [\r
6983       []\r
6984     ]\r
6985   },\r
6986   {\r
6987     "id": "4c3bbf42.6f3d68",\r
6988     "type": "set",\r
6989     "name": "unset parameters",\r
6990     "xml": "<set>\n<parameter name='allNetworksList.' value='' />\n",\r
6991     "comments": "",\r
6992     "x": 4578.916534423828,\r
6993     "y": 3627.883331298828,\r
6994     "z": "7062000.f761",\r
6995     "wires": []\r
6996   },\r
6997   {\r
6998     "id": "94da922f.c01d98",\r
6999     "type": "comment",\r
7000     "name": "find all OTNs that have srcTtpOtnLayer and increase their bandwidth",\r
7001     "info": "",\r
7002     "comments": "",\r
7003     "x": 5308.316436767578,\r
7004     "y": 4677.283233642578,\r
7005     "z": "7062000.f761",\r
7006     "wires": []\r
7007   },\r
7008   {\r
7009     "id": "e80670f4.672e68",\r
7010     "type": "block",\r
7011     "name": "block : atomic",\r
7012     "xml": "<block atomic='true'>",\r
7013     "atomic": "true",\r
7014     "comments": "",\r
7015     "outputs": 1,\r
7016     "x": 5097.316436767578,\r
7017     "y": 4739.283233642578,\r
7018     "z": "7062000.f761",\r
7019     "wires": [\r
7020       [\r
7021         "ed69a679.8ddb2"\r
7022       ]\r
7023     ]\r
7024   },\r
7025   {\r
7026     "id": "ed69a679.8ddb2",\r
7027     "type": "switchNode",\r
7028     "name": "switch ops-note is srcTtpOtnLayer",\r
7029     "xml": "<switch test=\"`$tmp.aai.vpn-binding.ops-note == $tmp.srcTtpOtnLayer `\">\n\n",\r
7030     "comments": "",\r
7031     "outputs": 1,\r
7032     "x": 5341.316436767578,\r
7033     "y": 4745.283233642578,\r
7034     "z": "7062000.f761",\r
7035     "wires": [\r
7036       [\r
7037         "90bf5e35.d23788",\r
7038         "6659c466.b510dc"\r
7039       ]\r
7040     ]\r
7041   },\r
7042   {\r
7043     "id": "90bf5e35.d23788",\r
7044     "type": "outcomeTrue",\r
7045     "name": "true",\r
7046     "xml": "<outcome value='true'>\n",\r
7047     "comments": "",\r
7048     "outputs": 1,\r
7049     "x": 5572.316436767578,\r
7050     "y": 4723.283233642578,\r
7051     "z": "7062000.f761",\r
7052     "wires": [\r
7053       [\r
7054         "5ef895fb.b1bf7c"\r
7055       ]\r
7056     ]\r
7057   },\r
7058   {\r
7059     "id": "6659c466.b510dc",\r
7060     "type": "outcomeFalse",\r
7061     "name": "false",\r
7062     "xml": "<outcome value='false'>\n",\r
7063     "comments": "",\r
7064     "outputs": 1,\r
7065     "x": 5577.316436767578,\r
7066     "y": 4790.283233642578,\r
7067     "z": "7062000.f761",\r
7068     "wires": [\r
7069       []\r
7070     ]\r
7071   },\r
7072   {\r
7073     "id": "ef985380.75ae68",\r
7074     "type": "switchNode",\r
7075     "name": "switch tmp.isBwIncreased",\r
7076     "xml": "<switch test=\"`$tmp.isBwIncreased`\">\n\n",\r
7077     "comments": "",\r
7078     "outputs": 1,\r
7079     "x": 5826.2001953125,\r
7080     "y": 4287.965576171875,\r
7081     "z": "7062000.f761",\r
7082     "wires": [\r
7083       [\r
7084         "76a7bc4a.dd01dc",\r
7085         "c64cf61b.17568"\r
7086       ]\r
7087     ]\r
7088   },\r
7089   {\r
7090     "id": "76a7bc4a.dd01dc",\r
7091     "type": "outcomeTrue",\r
7092     "name": "true",\r
7093     "xml": "<outcome value='true'>\n",\r
7094     "comments": "",\r
7095     "outputs": 1,\r
7096     "x": 5981.200225830078,\r
7097     "y": 4215.965850830078,\r
7098     "z": "7062000.f761",\r
7099     "wires": [\r
7100       [\r
7101         "79b64e60.35626"\r
7102       ]\r
7103     ]\r
7104   },\r
7105   {\r
7106     "id": "c64cf61b.17568",\r
7107     "type": "outcomeFalse",\r
7108     "name": "false",\r
7109     "xml": "<outcome value='false'>\n",\r
7110     "comments": "",\r
7111     "outputs": 1,\r
7112     "x": 5982.200225830078,\r
7113     "y": 4348.965850830078,\r
7114     "z": "7062000.f761",\r
7115     "wires": [\r
7116       [\r
7117         "d1f760ec.7590a"\r
7118       ]\r
7119     ]\r
7120   },\r
7121   {\r
7122     "id": "79b64e60.35626",\r
7123     "type": "block",\r
7124     "name": "block : atomic",\r
7125     "xml": "<block atomic='true'>",\r
7126     "atomic": "true",\r
7127     "comments": "",\r
7128     "outputs": 1,\r
7129     "x": 6126.200225830078,\r
7130     "y": 4215.966094970703,\r
7131     "z": "7062000.f761",\r
7132     "wires": [\r
7133       [\r
7134         "a1fc801a.8dde7",\r
7135         "f7199aa1.5a0618"\r
7136       ]\r
7137     ]\r
7138   },\r
7139   {\r
7140     "id": "a1fc801a.8dde7",\r
7141     "type": "save",\r
7142     "name": "update vpn-binding otnIdx resource (aka. OTN) in AAI",\r
7143     "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='`$tmp.aai.the-vpn-binding.vpn-name`' />\n<parameter name='customer-vpn-id' value='`$newToBeUsedMaxtpn`' />\n<parameter name='route-distinguisher' value='`$tmp.aai.the-vpn-binding.route-distinguisher + $tmp.delta`' />\n<parameter name='operational-status' value='Modified' />\n\n",\r
7144     "comments": "",\r
7145     "outputs": 1,\r
7146     "x": 6419.200225830078,\r
7147     "y": 4193.965850830078,\r
7148     "z": "7062000.f761",\r
7149     "wires": [\r
7150       []\r
7151     ]\r
7152   },\r
7153   {\r
7154     "id": "f7199aa1.5a0618",\r
7155     "type": "save",\r
7156     "name": "update connectivity resource in AAI",\r
7157     "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<!--<parameter name='bandwidth-profile-name' value='`$gfp`' />-->\n<!--<parameter name='cir' value='`$gfp *1000000`' />-->\n<!--<parameter name='eir' value='`$gfp *1000000`' />-->\n",\r
7158     "comments": "",\r
7159     "outputs": 1,\r
7160     "x": 6370.850128173828,\r
7161     "y": 4241.282745361328,\r
7162     "z": "7062000.f761",\r
7163     "wires": [\r
7164       []\r
7165     ]\r
7166   },\r
7167   {\r
7168     "id": "598a3c97.c62cd4",\r
7169     "type": "comment",\r
7170     "name": "increase the bw of the-vpn-binding and change status to modified",\r
7171     "info": "increase the bw of the-vpn-binding\nchange status to modified\n",\r
7172     "comments": "",\r
7173     "x": 6443.200225830078,\r
7174     "y": 4154.965850830078,\r
7175     "z": "7062000.f761",\r
7176     "wires": []\r
7177   },\r
7178   {\r
7179     "id": "d1f760ec.7590a",\r
7180     "type": "block",\r
7181     "name": "block : atomic",\r
7182     "xml": "<block atomic='true'>",\r
7183     "atomic": "true",\r
7184     "comments": "",\r
7185     "outputs": 1,\r
7186     "x": 6138.200225830078,\r
7187     "y": 4347.966094970703,\r
7188     "z": "7062000.f761",\r
7189     "wires": [\r
7190       [\r
7191         "e43682b5.56552",\r
7192         "8aed809d.a72bd8"\r
7193       ]\r
7194     ]\r
7195   },\r
7196   {\r
7197     "id": "e43682b5.56552",\r
7198     "type": "save",\r
7199     "name": "update the-vpn-binding otnIdx resource (aka. OTN) in AAI",\r
7200     "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='`$tmp.aai.the-vpn-binding.vpn-name`' />\n<parameter name='customer-vpn-id' value='`$newToBeUsedMaxtpn`' />\n<parameter name='route-distinguisher' value='`$tmp.aai.the-vpn-binding.route-distinguisher - $tmp.delta`' />\n<parameter name='operational-status' value='Modified' />\n\n",\r
7201     "comments": "",\r
7202     "outputs": 1,\r
7203     "x": 6431.200225830078,\r
7204     "y": 4325.965850830078,\r
7205     "z": "7062000.f761",\r
7206     "wires": [\r
7207       []\r
7208     ]\r
7209   },\r
7210   {\r
7211     "id": "8aed809d.a72bd8",\r
7212     "type": "save",\r
7213     "name": "update connectivity resource in AAI",\r
7214     "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<!--<parameter name='bandwidth-profile-name' value='`$gfp`' />-->\n<!--<parameter name='cir' value='`$gfp *1000000`' />-->\n<!--<parameter name='eir' value='`$gfp *1000000`' />-->\n",\r
7215     "comments": "",\r
7216     "outputs": 1,\r
7217     "x": 6382.850128173828,\r
7218     "y": 4373.282745361328,\r
7219     "z": "7062000.f761",\r
7220     "wires": [\r
7221       []\r
7222     ]\r
7223   },\r
7224   {\r
7225     "id": "3a2ab7c7.d2dab8",\r
7226     "type": "comment",\r
7227     "name": "decrease the bw of the-vpn-binding and change status to modified",\r
7228     "info": "decrease the bw of the-vpn-binding\nchange status to modified\n",\r
7229     "comments": "",\r
7230     "x": 6455.200225830078,\r
7231     "y": 4286.965850830078,\r
7232     "z": "7062000.f761",\r
7233     "wires": []\r
7234   },\r
7235   {\r
7236     "id": "5ef895fb.b1bf7c",\r
7237     "type": "switchNode",\r
7238     "name": "switch tmp.isBwIncreased",\r
7239     "xml": "<switch test=\"`$tmp.isBwIncreased`\">\n\n",\r
7240     "comments": "",\r
7241     "outputs": 1,\r
7242     "x": 5777.433135986328,\r
7243     "y": 4730.166534423828,\r
7244     "z": "7062000.f761",\r
7245     "wires": [\r
7246       [\r
7247         "3e55897.59031f6",\r
7248         "a1d97b4a.208e4"\r
7249       ]\r
7250     ]\r
7251   },\r
7252   {\r
7253     "id": "3e55897.59031f6",\r
7254     "type": "outcomeTrue",\r
7255     "name": "true",\r
7256     "xml": "<outcome value='true'>\n",\r
7257     "comments": "",\r
7258     "outputs": 1,\r
7259     "x": 5972.433135986328,\r
7260     "y": 4658.166534423828,\r
7261     "z": "7062000.f761",\r
7262     "wires": [\r
7263       [\r
7264         "1661a8d0.f6d65f"\r
7265       ]\r
7266     ]\r
7267   },\r
7268   {\r
7269     "id": "a1d97b4a.208e4",\r
7270     "type": "outcomeFalse",\r
7271     "name": "false",\r
7272     "xml": "<outcome value='false'>\n",\r
7273     "comments": "",\r
7274     "outputs": 1,\r
7275     "x": 5973.433135986328,\r
7276     "y": 4791.166534423828,\r
7277     "z": "7062000.f761",\r
7278     "wires": [\r
7279       [\r
7280         "5810f31a.0a9ed4"\r
7281       ]\r
7282     ]\r
7283   },\r
7284   {\r
7285     "id": "1661a8d0.f6d65f",\r
7286     "type": "block",\r
7287     "name": "block : atomic",\r
7288     "xml": "<block atomic='true'>",\r
7289     "atomic": "true",\r
7290     "comments": "",\r
7291     "outputs": 1,\r
7292     "x": 6117.433135986328,\r
7293     "y": 4658.166778564453,\r
7294     "z": "7062000.f761",\r
7295     "wires": [\r
7296       [\r
7297         "da6580ac.af986",\r
7298         "ee810baa.63495"\r
7299       ]\r
7300     ]\r
7301   },\r
7302   {\r
7303     "id": "da6580ac.af986",\r
7304     "type": "save",\r
7305     "name": "update vpn-binding otnIdx resource (aka. OTN) in AAI",\r
7306     "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-binding.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-binding.vpn-name`' />\n<parameter name='customer-vpn-id' value='`$newToBeUsedMaxtpn`' />\n<parameter name='route-distinguisher' value='`$tmp.aai.vpn-binding.route-distinguisher + $tmp.delta`' />\n<parameter name='operational-status' value='Modified' />\n",\r
7307     "comments": "",\r
7308     "outputs": 1,\r
7309     "x": 6410.433135986328,\r
7310     "y": 4636.166534423828,\r
7311     "z": "7062000.f761",\r
7312     "wires": [\r
7313       []\r
7314     ]\r
7315   },\r
7316   {\r
7317     "id": "ee810baa.63495",\r
7318     "type": "save",\r
7319     "name": "update connectivity resource in AAI",\r
7320     "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<!--<parameter name='bandwidth-profile-name' value='`$gfp`' />-->\n<!--<parameter name='cir' value='`$gfp *1000000`' />-->\n<!--<parameter name='eir' value='`$gfp *1000000`' />-->\n",\r
7321     "comments": "",\r
7322     "outputs": 1,\r
7323     "x": 6362.083038330078,\r
7324     "y": 4683.483428955078,\r
7325     "z": "7062000.f761",\r
7326     "wires": [\r
7327       []\r
7328     ]\r
7329   },\r
7330   {\r
7331     "id": "87cf660.a2b3f18",\r
7332     "type": "comment",\r
7333     "name": "increase the bw of the-vpn-binding and change status to modified",\r
7334     "info": "increase the bw of the-vpn-binding\nchange status to modified\n",\r
7335     "comments": "",\r
7336     "x": 6434.433135986328,\r
7337     "y": 4597.166534423828,\r
7338     "z": "7062000.f761",\r
7339     "wires": []\r
7340   },\r
7341   {\r
7342     "id": "5810f31a.0a9ed4",\r
7343     "type": "block",\r
7344     "name": "block : atomic",\r
7345     "xml": "<block atomic='true'>",\r
7346     "atomic": "true",\r
7347     "comments": "",\r
7348     "outputs": 1,\r
7349     "x": 6129.433135986328,\r
7350     "y": 4790.166778564453,\r
7351     "z": "7062000.f761",\r
7352     "wires": [\r
7353       [\r
7354         "80c260b2.6af7a",\r
7355         "9a874787.276bd"\r
7356       ]\r
7357     ]\r
7358   },\r
7359   {\r
7360     "id": "80c260b2.6af7a",\r
7361     "type": "save",\r
7362     "name": "update vpn-binding otnIdx resource (aka. OTN) in AAI",\r
7363     "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-binding.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-binding.vpn-name`' />\n<parameter name='customer-vpn-id' value='`$newToBeUsedMaxtpn`' />\n<parameter name='route-distinguisher' value='`$tmp.aai.vpn-binding.route-distinguisher - $tmp.delta`' />\n<parameter name='operational-status' value='Modified' />\n",\r
7364     "comments": "",\r
7365     "outputs": 1,\r
7366     "x": 6422.433135986328,\r
7367     "y": 4768.166534423828,\r
7368     "z": "7062000.f761",\r
7369     "wires": [\r
7370       []\r
7371     ]\r
7372   },\r
7373   {\r
7374     "id": "9a874787.276bd",\r
7375     "type": "save",\r
7376     "name": "update connectivity resource in AAI",\r
7377     "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<!--<parameter name='bandwidth-profile-name' value='`$gfp`' />-->\n<!--<parameter name='cir' value='`$gfp *1000000`' />-->\n<!--<parameter name='eir' value='`$gfp *1000000`' />-->\n",\r
7378     "comments": "",\r
7379     "outputs": 1,\r
7380     "x": 6374.083038330078,\r
7381     "y": 4815.483428955078,\r
7382     "z": "7062000.f761",\r
7383     "wires": [\r
7384       []\r
7385     ]\r
7386   },\r
7387   {\r
7388     "id": "815fc293.94d2f8",\r
7389     "type": "comment",\r
7390     "name": "decrease the bw of the-vpn-binding and change status to modified",\r
7391     "info": "decrease the bw of the-vpn-binding\nchange status to modified\n",\r
7392     "comments": "",\r
7393     "x": 6446.433135986328,\r
7394     "y": 4729.166534423828,\r
7395     "z": "7062000.f761",\r
7396     "wires": []\r
7397   },\r
7398   {\r
7399     "id": "a537e9a.90f0c98",\r
7400     "type": "comment",\r
7401     "name": "Update connectivity status to modified",\r
7402     "info": "",\r
7403     "comments": "",\r
7404     "x": 5185.283233642578,\r
7405     "y": 5470.366729736328,\r
7406     "z": "7062000.f761",\r
7407     "wires": []\r
7408   },\r
7409   {\r
7410     "id": "d416487a.185998",\r
7411     "type": "save",\r
7412     "name": "update connectivity resource in AAI",\r
7413     "xml": "<update 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='operational-status' value='Modified' />\n",\r
7414     "comments": "",\r
7415     "outputs": 1,\r
7416     "x": 5183.066436767578,\r
7417     "y": 5510.566925048828,\r
7418     "z": "7062000.f761",\r
7419     "wires": [\r
7420       []\r
7421     ]\r
7422   },\r
7423   {\r
7424     "id": "7898de27.66a698",\r
7425     "type": "comment",\r
7426     "name": "Update connectivity status to modified",\r
7427     "info": "",\r
7428     "comments": "",\r
7429     "x": 5058.316680908203,\r
7430     "y": 5695.049835205078,\r
7431     "z": "7062000.f761",\r
7432     "wires": []\r
7433   },\r
7434   {\r
7435     "id": "63d85a3d.4103fc",\r
7436     "type": "save",\r
7437     "name": "update connectivity resource in AAI",\r
7438     "xml": "<update 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='operational-status' value='Modified' />\n",\r
7439     "comments": "",\r
7440     "outputs": 1,\r
7441     "x": 5056.099884033203,\r
7442     "y": 5735.250030517578,\r
7443     "z": "7062000.f761",\r
7444     "wires": [\r
7445       []\r
7446     ]\r
7447   },\r
7448   {\r
7449     "id": "105ea6a7.242f79",\r
7450     "type": "call",\r
7451     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-ROOT-conn",\r
7452     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-ROOT-conn' mode='sync' >\n\n",\r
7453     "comments": "",\r
7454     "outputs": 1,\r
7455     "x": 5160.433135986328,\r
7456     "y": 6178.166534423828,\r
7457     "z": "7062000.f761",\r
7458     "wires": [\r
7459       []\r
7460     ]\r
7461   },\r
7462   {\r
7463     "id": "8f43e7c7.1c41b8",\r
7464     "type": "switchNode",\r
7465     "name": "switch found-root-connectivity",\r
7466     "xml": "\n<switch test=\"`$found-root-connectivity`\">\n\n",\r
7467     "comments": "",\r
7468     "outputs": 1,\r
7469     "x": 4987.433135986328,\r
7470     "y": 6235.166534423828,\r
7471     "z": "7062000.f761",\r
7472     "wires": [\r
7473       [\r
7474         "4e0d7b1b.4cc2ec",\r
7475         "609ed3b9.40f534"\r
7476       ]\r
7477     ]\r
7478   },\r
7479   {\r
7480     "id": "4e0d7b1b.4cc2ec",\r
7481     "type": "outcomeTrue",\r
7482     "name": "true",\r
7483     "xml": "<outcome value='true'>\n",\r
7484     "comments": "",\r
7485     "outputs": 1,\r
7486     "x": 5198.433135986328,\r
7487     "y": 6235.166534423828,\r
7488     "z": "7062000.f761",\r
7489     "wires": [\r
7490       [\r
7491         "c2d7112c.1b117"\r
7492       ]\r
7493     ]\r
7494   },\r
7495   {\r
7496     "id": "609ed3b9.40f534",\r
7497     "type": "outcomeFalse",\r
7498     "name": "false",\r
7499     "xml": "<outcome value='false'>\n",\r
7500     "comments": "",\r
7501     "outputs": 1,\r
7502     "x": 5194.433135986328,\r
7503     "y": 6283.166534423828,\r
7504     "z": "7062000.f761",\r
7505     "wires": [\r
7506       [\r
7507         "fd4c4e47.075cf8"\r
7508       ]\r
7509     ]\r
7510   },\r
7511   {\r
7512     "id": "c2d7112c.1b117",\r
7513     "type": "block",\r
7514     "name": "block : atomic",\r
7515     "xml": "<block atomic='true'>",\r
7516     "atomic": "true",\r
7517     "comments": "",\r
7518     "outputs": 1,\r
7519     "x": 5354.433135986328,\r
7520     "y": 6231.166534423828,\r
7521     "z": "7062000.f761",\r
7522     "wires": [\r
7523       [\r
7524         "c4eacefe.2b5518",\r
7525         "773bf221.e0586c",\r
7526         "f38f117c.80c7b8"\r
7527       ]\r
7528     ]\r
7529   },\r
7530   {\r
7531     "id": "fd4c4e47.075cf8",\r
7532     "type": "returnFailure",\r
7533     "name": "return failure",\r
7534     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='Root Connectivity was not found' />\n",\r
7535     "comments": "",\r
7536     "x": 5342.433135986328,\r
7537     "y": 6278.166534423828,\r
7538     "z": "7062000.f761",\r
7539     "wires": []\r
7540   },\r
7541   {\r
7542     "id": "a5cbc756.e321b8",\r
7543     "type": "comment",\r
7544     "name": "Update connectivity status to modified",\r
7545     "info": "",\r
7546     "comments": "",\r
7547     "x": 5620.316925048828,\r
7548     "y": 6331.049835205078,\r
7549     "z": "7062000.f761",\r
7550     "wires": []\r
7551   },\r
7552   {\r
7553     "id": "f38f117c.80c7b8",\r
7554     "type": "save",\r
7555     "name": "update connectivity resource in AAI",\r
7556     "xml": "<update 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='operational-status' value='Modified' />\n",\r
7557     "comments": "",\r
7558     "outputs": 1,\r
7559     "x": 5618.100128173828,\r
7560     "y": 6371.250030517578,\r
7561     "z": "7062000.f761",\r
7562     "wires": [\r
7563       []\r
7564     ]\r
7565   },\r
7566   {\r
7567     "id": "773bf221.e0586c",\r
7568     "type": "save",\r
7569     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
7570     "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/' + $tmp.aai.ROOT.connectivity.connectivity-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=\"`$tmp.aai.ROOT.connectivity.connectivity-id`\" />\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
7571     "comments": "",\r
7572     "outputs": 1,\r
7573     "x": 5737.433135986328,\r
7574     "y": 6283.166534423828,\r
7575     "z": "7062000.f761",\r
7576     "wires": [\r
7577       []\r
7578     ]\r
7579   },\r
7580   {\r
7581     "id": "c4eacefe.2b5518",\r
7582     "type": "set",\r
7583     "name": "set prop.connectivity-domainB-uuid",\r
7584     "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
7585     "comments": "",\r
7586     "x": 5608.433135986328,\r
7587     "y": 6231.166534423828,\r
7588     "z": "7062000.f761",\r
7589     "wires": []\r
7590   },\r
7591   {\r
7592     "id": "5ff4d90f.61eca8",\r
7593     "type": "comment",\r
7594     "name": "populate connectivity-B variable in the context map",\r
7595     "info": "",\r
7596     "comments": "",\r
7597     "x": 5049.433135986328,\r
7598     "y": 6136.166534423828,\r
7599     "z": "7062000.f761",\r
7600     "wires": []\r
7601   },\r
7602   {\r
7603     "id": "1a8fecd4.39509b",\r
7604     "type": "block",\r
7605     "name": "block",\r
7606     "xml": "<block>\n",\r
7607     "atomic": "false",\r
7608     "comments": "",\r
7609     "outputs": 1,\r
7610     "x": 4756.766143798828,\r
7611     "y": 6218.166534423828,\r
7612     "z": "7062000.f761",\r
7613     "wires": [\r
7614       [\r
7615         "105ea6a7.242f79",\r
7616         "8f43e7c7.1c41b8"\r
7617       ]\r
7618     ]\r
7619   },\r
7620   {\r
7621     "id": "2374b67.d3b424a",\r
7622     "type": "save",\r
7623     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
7624     "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/' + $tmp.the-connectivity.connectivity-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=\"`$tmp.the-connectivity.connectivity-id`\" />\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
7625     "comments": "",\r
7626     "outputs": 1,\r
7627     "x": 5035.516632080078,\r
7628     "y": 6533.166534423828,\r
7629     "z": "7062000.f761",\r
7630     "wires": [\r
7631       []\r
7632     ]\r
7633   },\r
7634   {\r
7635     "id": "5d1aa304.0ec964",\r
7636     "type": "comment",\r
7637     "name": "TODO: BUG -- DONE",\r
7638     "info": "momkene connectivity haye vasati ke dummy hastand ham\nvpn-binding dashte bashand ke too in path involve hast pas\nbayad bw aan niz update shavad.",\r
7639     "comments": "",\r
7640     "x": 3740.8837890625,\r
7641     "y": 3809.88330078125,\r
7642     "z": "7062000.f761",\r
7643     "wires": []\r
7644   },\r
7645   {\r
7646     "id": "1c248a70.8f6db6",\r
7647     "type": "save",\r
7648     "name": "get all-vpn-bindings from aai",\r
7649     "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
7650     "comments": "",\r
7651     "outputs": 1,\r
7652     "x": 4493.4169921875,\r
7653     "y": 4084,\r
7654     "z": "7062000.f761",\r
7655     "wires": [\r
7656       [\r
7657         "e8d15ab4.54c49",\r
7658         "20b8f97c.98322e",\r
7659         "6302d7c5.b6ebe8"\r
7660       ]\r
7661     ]\r
7662   },\r
7663   {\r
7664     "id": "3d05d16c.2a1566",\r
7665     "type": "comment",\r
7666     "name": "find all OTNs that have srcTtpOtnLayer and increase their bandwidth",\r
7667     "info": "",\r
7668     "comments": "",\r
7669     "x": 4595.4169921875,\r
7670     "y": 4049,\r
7671     "z": "7062000.f761",\r
7672     "wires": []\r
7673   },\r
7674   {\r
7675     "id": "e8d15ab4.54c49",\r
7676     "type": "success",\r
7677     "name": "success",\r
7678     "xml": "<outcome value='success'>\n",\r
7679     "comments": "",\r
7680     "outputs": 1,\r
7681     "x": 4698.4169921875,\r
7682     "y": 4081,\r
7683     "z": "7062000.f761",\r
7684     "wires": [\r
7685       [\r
7686         "7ec23daa.6a0bc4"\r
7687       ]\r
7688     ]\r
7689   },\r
7690   {\r
7691     "id": "20b8f97c.98322e",\r
7692     "type": "not-found",\r
7693     "name": "not-found",\r
7694     "xml": "<outcome value='not-found'>\n",\r
7695     "comments": "",\r
7696     "outputs": 1,\r
7697     "x": 4681.907958984375,\r
7698     "y": 4142.574035644531,\r
7699     "z": "7062000.f761",\r
7700     "wires": [\r
7701       [\r
7702         "36ba2eea.c2f3b2"\r
7703       ]\r
7704     ]\r
7705   },\r
7706   {\r
7707     "id": "6302d7c5.b6ebe8",\r
7708     "type": "failure",\r
7709     "name": "failure",\r
7710     "xml": "<outcome value='failure'>\n",\r
7711     "comments": "",\r
7712     "outputs": 1,\r
7713     "x": 4679.4169921875,\r
7714     "y": 4186,\r
7715     "z": "7062000.f761",\r
7716     "wires": [\r
7717       [\r
7718         "949d59bf.9e67a"\r
7719       ]\r
7720     ]\r
7721   },\r
7722   {\r
7723     "id": "7ec23daa.6a0bc4",\r
7724     "type": "block",\r
7725     "name": "block : atomic",\r
7726     "xml": "<block atomic=\"true\">",\r
7727     "atomic": "true",\r
7728     "outputs": 1,\r
7729     "x": 4866.417236328125,\r
7730     "y": 4076,\r
7731     "z": "7062000.f761",\r
7732     "wires": [\r
7733       [\r
7734         "df77d6a9.222ef"\r
7735       ]\r
7736     ]\r
7737   },\r
7738   {\r
7739     "id": "36ba2eea.c2f3b2",\r
7740     "type": "returnFailure",\r
7741     "name": "return failure",\r
7742     "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
7743     "comments": "",\r
7744     "x": 4844.4793701171875,\r
7745     "y": 4142.859771728516,\r
7746     "z": "7062000.f761",\r
7747     "wires": []\r
7748   },\r
7749   {\r
7750     "id": "949d59bf.9e67a",\r
7751     "type": "returnFailure",\r
7752     "name": "return failure",\r
7753     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
7754     "comments": "",\r
7755     "x": 4846.4169921875,\r
7756     "y": 4185,\r
7757     "z": "7062000.f761",\r
7758     "wires": []\r
7759   },\r
7760   {\r
7761     "id": "df77d6a9.222ef",\r
7762     "type": "for",\r
7763     "name": "for vpnidx in all-vpn-bindings",\r
7764     "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",\r
7765     "comments": "",\r
7766     "outputs": 1,\r
7767     "x": 5104.417236328125,\r
7768     "y": 4081,\r
7769     "z": "7062000.f761",\r
7770     "wires": [\r
7771       [\r
7772         "abc8ebdb.52f0a8"\r
7773       ]\r
7774     ]\r
7775   },\r
7776   {\r
7777     "id": "abc8ebdb.52f0a8",\r
7778     "type": "block",\r
7779     "name": "block : atomic",\r
7780     "xml": "<block atomic='true'>",\r
7781     "atomic": "true",\r
7782     "comments": "",\r
7783     "outputs": 1,\r
7784     "x": 5338.4169921875,\r
7785     "y": 4088,\r
7786     "z": "7062000.f761",\r
7787     "wires": [\r
7788       [\r
7789         "ac63c59c.83048"\r
7790       ]\r
7791     ]\r
7792   },\r
7793   {\r
7794     "id": "1f0e75d7.8b5a2a",\r
7795     "type": "set",\r
7796     "name": "unset tmp.aai.all-vpn-bindings",\r
7797     "xml": "<set>\n<parameter name='tmp.aai.all-vpn-bindings.' value='' />\n",\r
7798     "comments": "",\r
7799     "x": 4472.11669921875,\r
7800     "y": 4010,\r
7801     "z": "7062000.f761",\r
7802     "wires": []\r
7803   },\r
7804   {\r
7805     "id": "bffd072f.5e512",\r
7806     "type": "for",\r
7807     "name": "for each relationship",\r
7808     "xml": "<for silentFailure='true' index='vpnbridx' start='0' end='`$tmp.aai.the-vpn-binding.relationship-list.relationship_length`' >\n",\r
7809     "comments": "",\r
7810     "outputs": 1,\r
7811     "x": 5755.2666015625,\r
7812     "y": 4098.5830078125,\r
7813     "z": "7062000.f761",\r
7814     "wires": [\r
7815       [\r
7816         "f3f61fe0.c57dd"\r
7817       ]\r
7818     ]\r
7819   },\r
7820   {\r
7821     "id": "f3f61fe0.c57dd",\r
7822     "type": "switchNode",\r
7823     "name": "switch related-to",\r
7824     "xml": "<switch test='`$tmp.aai.the-vpn-binding.relationship-list.relationship[$vpnbridx].related-to`'>\n",\r
7825     "comments": "",\r
7826     "outputs": 1,\r
7827     "x": 5947.2666015625,\r
7828     "y": 4087.583251953125,\r
7829     "z": "7062000.f761",\r
7830     "wires": [\r
7831       [\r
7832         "8cedd329.3f3c9"\r
7833       ]\r
7834     ]\r
7835   },\r
7836   {\r
7837     "id": "8cedd329.3f3c9",\r
7838     "type": "outcome",\r
7839     "name": "connectivity",\r
7840     "xml": "<outcome value='connectivity'>\n",\r
7841     "comments": "",\r
7842     "outputs": 1,\r
7843     "x": 6129.2666015625,\r
7844     "y": 4066.583251953125,\r
7845     "z": "7062000.f761",\r
7846     "wires": [\r
7847       [\r
7848         "86e0777f.9370f"\r
7849       ]\r
7850     ]\r
7851   },\r
7852   {\r
7853     "id": "86e0777f.9370f",\r
7854     "type": "block",\r
7855     "name": "block : atomic",\r
7856     "xml": "<block atomic=\"true\">",\r
7857     "atomic": "true",\r
7858     "outputs": 1,\r
7859     "x": 6291.2666015625,\r
7860     "y": 4055.583251953125,\r
7861     "z": "7062000.f761",\r
7862     "wires": [\r
7863       [\r
7864         "869c4324.9670f",\r
7865         "bbb484a7.96add8"\r
7866       ]\r
7867     ]\r
7868   },\r
7869   {\r
7870     "id": "869c4324.9670f",\r
7871     "type": "set",\r
7872     "name": "unset tmp.the-connectivity",\r
7873     "xml": "<set>\n<parameter name='tmp.the-connectivity.' value='' />\n",\r
7874     "comments": "",\r
7875     "x": 6488.2666015625,\r
7876     "y": 3984.583251953125,\r
7877     "z": "7062000.f761",\r
7878     "wires": []\r
7879   },\r
7880   {\r
7881     "id": "3f51a421.f29684",\r
7882     "type": "block",\r
7883     "name": "block : atomic",\r
7884     "xml": "<block atomic='true'>",\r
7885     "atomic": "true",\r
7886     "comments": "",\r
7887     "outputs": 1,\r
7888     "x": 5609.216796875,\r
7889     "y": 4214.582763671875,\r
7890     "z": "7062000.f761",\r
7891     "wires": [\r
7892       [\r
7893         "ef985380.75ae68",\r
7894         "bffd072f.5e512",\r
7895         "bbf89c4c.2b2c98",\r
7896         "55e59a7f.53654c"\r
7897       ]\r
7898     ]\r
7899   },\r
7900   {\r
7901     "id": "bbf89c4c.2b2c98",\r
7902     "type": "set",\r
7903     "name": "unset tmp.aai.the-vpn-binding",\r
7904     "xml": "<set>\n<parameter name='tmp.aai.the-vpn-binding.' value=\"\" />\n",\r
7905     "comments": "",\r
7906     "x": 5793.783203125,\r
7907     "y": 3988.800048828125,\r
7908     "z": "7062000.f761",\r
7909     "wires": []\r
7910   },\r
7911   {\r
7912     "id": "55e59a7f.53654c",\r
7913     "type": "set",\r
7914     "name": "set tmp.aai.the-vpn-binding",\r
7915     "xml": "<set>\n<parameter name='tmp.aai.the-vpn-binding.' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].`\" />\n",\r
7916     "comments": "",\r
7917     "x": 5785.783203125,\r
7918     "y": 4037.800048828125,\r
7919     "z": "7062000.f761",\r
7920     "wires": []\r
7921   },\r
7922   {\r
7923     "id": "bbb484a7.96add8",\r
7924     "type": "set",\r
7925     "name": "set tmp.the-connectivity",\r
7926     "xml": "<set>\n<parameter name='tmp.the-connectivity.' value='`$tmp.aai.the-vpn-binding.relationship-list.relationship[$vpnbridx].relationship-data[0].relationship-value`' />\n",\r
7927     "comments": "",\r
7928     "x": 6485.7333984375,\r
7929     "y": 4083.800048828125,\r
7930     "z": "7062000.f761",\r
7931     "wires": []\r
7932   }\r
7933 ]