Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / cloud_leased_line / GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-create-clean.json
1 [\r
2   {\r
3     "id": "760c3032.024ec8",\r
4     "type": "dgstart",\r
5     "name": "DGSTART",\r
6     "outputs": 1,\r
7     "x": 176.56666564941406,\r
8     "y": 129.56666564941406,\r
9     "z": "c7b9cd35.bfac88",\r
10     "wires": [\r
11       [\r
12         "5c65c97e.4fcce"\r
13       ]\r
14     ]\r
15   },\r
16   {\r
17     "id": "5c65c97e.4fcce",\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": 460.85235595703125,\r
26     "y": 190.8047742843628,\r
27     "z": "c7b9cd35.bfac88",\r
28     "wires": [\r
29       [\r
30         "f52e4a2.8e9b7b8"\r
31       ]\r
32     ]\r
33   },\r
34   {\r
35     "id": "f52e4a2.8e9b7b8",\r
36     "type": "method",\r
37     "name": "method cll-vnf-topology-operation-cll-create-clean",\r
38     "xml": "<method rpc='cll-vnf-topology-operation-cll-create-clean' mode='sync'>\n",\r
39     "comments": "",\r
40     "outputs": 1,\r
41     "x": 466.9952697753906,\r
42     "y": 275.5666961669922,\r
43     "z": "c7b9cd35.bfac88",\r
44     "wires": [\r
45       [\r
46         "f52145b6.00f26"\r
47       ]\r
48     ]\r
49   },\r
50   {\r
51     "id": "f52145b6.00f26",\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": 816.5666656494141,\r
58     "y": 334.56666564941406,\r
59     "z": "c7b9cd35.bfac88",\r
60     "wires": [\r
61       [\r
62         "b781570d.1bdc6",\r
63         "a3b9d436.7cd37",\r
64         "916ad2e4.da3bd"\r
65       ]\r
66     ]\r
67   },\r
68   {\r
69     "id": "b781570d.1bdc6",\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": 1117.900161743164,\r
75     "y": 605.4969635009766,\r
76     "z": "c7b9cd35.bfac88",\r
77     "wires": []\r
78   },\r
79   {\r
80     "id": "a3b9d436.7cd37",\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": 1139.328628540039,\r
87     "y": 307.8999786376953,\r
88     "z": "c7b9cd35.bfac88",\r
89     "wires": [\r
90       [\r
91         "a44b76d8.232f78",\r
92         "2fc87770.5a98b8",\r
93         "d48f40d3.37656"\r
94       ]\r
95     ]\r
96   },\r
97   {\r
98     "id": "a44b76d8.232f78",\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": 1364.328628540039,\r
105     "y": 165.8999786376953,\r
106     "z": "c7b9cd35.bfac88",\r
107     "wires": [\r
108       [\r
109         "a9f7ac5b.dc2e28"\r
110       ]\r
111     ]\r
112   },\r
113   {\r
114     "id": "2fc87770.5a98b8",\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": 1359.819595336914,\r
121     "y": 235.47401428222656,\r
122     "z": "c7b9cd35.bfac88",\r
123     "wires": [\r
124       [\r
125         "87351fcb.5849e"\r
126       ]\r
127     ]\r
128   },\r
129   {\r
130     "id": "d48f40d3.37656",\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": 1348.328628540039,\r
137     "y": 281.8999786376953,\r
138     "z": "c7b9cd35.bfac88",\r
139     "wires": [\r
140       [\r
141         "81b461.b8b3eba"\r
142       ]\r
143     ]\r
144   },\r
145   {\r
146     "id": "ed4dfd16.f55a8",\r
147     "type": "comment",\r
148     "name": "new for TransportSlicing",\r
149     "info": "",\r
150     "comments": "",\r
151     "x": 1118.328628540039,\r
152     "y": 195.8999786376953,\r
153     "z": "c7b9cd35.bfac88",\r
154     "wires": []\r
155   },\r
156   {\r
157     "id": "916ad2e4.da3bd",\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": 1106.328628540039,\r
164     "y": 247.8999786376953,\r
165     "z": "c7b9cd35.bfac88",\r
166     "wires": [\r
167       []\r
168     ]\r
169   },\r
170   {\r
171     "id": "a9f7ac5b.dc2e28",\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": 1604.566665649414,\r
178     "y": 162.56666564941406,\r
179     "z": "c7b9cd35.bfac88",\r
180     "wires": [\r
181       [\r
182         "9413aaeb.d092f",\r
183         "4243f2e3.377954"\r
184       ]\r
185     ]\r
186   },\r
187   {\r
188     "id": "87351fcb.5849e",\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": 1514.6290435791016,\r
194     "y": 238.4264373779297,\r
195     "z": "c7b9cd35.bfac88",\r
196     "wires": []\r
197   },\r
198   {\r
199     "id": "81b461.b8b3eba",\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": 1518.566665649414,\r
205     "y": 282.56666564941406,\r
206     "z": "c7b9cd35.bfac88",\r
207     "wires": []\r
208   },\r
209   {\r
210     "id": "9413aaeb.d092f",\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": 1809.566665649414,\r
217     "y": 199.56666564941406,\r
218     "z": "c7b9cd35.bfac88",\r
219     "wires": [\r
220       [\r
221         "41ee935e.7af694"\r
222       ]\r
223     ]\r
224   },\r
225   {\r
226     "id": "4243f2e3.377954",\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": 1819.566665649414,\r
233     "y": 126.56666564941406,\r
234     "z": "c7b9cd35.bfac88",\r
235     "wires": [\r
236       []\r
237     ]\r
238   },\r
239   {\r
240     "id": "41ee935e.7af694",\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": 1802.566665649414,\r
248     "y": 274.56666564941406,\r
249     "z": "c7b9cd35.bfac88",\r
250     "wires": [\r
251       [\r
252         "48c9f8b7.accfc",\r
253         "4b70868c.ca77",\r
254         "33568fb6.bac76",\r
255         "ed1c5832.299138",\r
256         "629500a0.f350c"\r
257       ]\r
258     ]\r
259   },\r
260   {\r
261     "id": "911385ff.dcfb6",\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": 2288.566665649414,\r
268     "y": 325.56666564941406,\r
269     "z": "c7b9cd35.bfac88",\r
270     "wires": [\r
271       [\r
272         "7bf84f8a.19dac",\r
273         "e93a24fd.89bb98",\r
274         "b3019feb.2307b"\r
275       ]\r
276     ]\r
277   },\r
278   {\r
279     "id": "7bf84f8a.19dac",\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": 2504.566665649414,\r
286     "y": 392.56666564941406,\r
287     "z": "c7b9cd35.bfac88",\r
288     "wires": [\r
289       [\r
290         "28ff285d.675018"\r
291       ]\r
292     ]\r
293   },\r
294   {\r
295     "id": "e93a24fd.89bb98",\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": 2505.057632446289,\r
302     "y": 292.14064025878906,\r
303     "z": "c7b9cd35.bfac88",\r
304     "wires": [\r
305       [\r
306         "4ef0e01e.f3cdf"\r
307       ]\r
308     ]\r
309   },\r
310   {\r
311     "id": "b3019feb.2307b",\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": 2500.566665649414,\r
318     "y": 341.56666564941406,\r
319     "z": "c7b9cd35.bfac88",\r
320     "wires": [\r
321       [\r
322         "2913a1dc.ae6786"\r
323       ]\r
324     ]\r
325   },\r
326   {\r
327     "id": "48c9f8b7.accfc",\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": 2005.566665649414,\r
334     "y": 306.56666564941406,\r
335     "z": "c7b9cd35.bfac88",\r
336     "wires": [\r
337       [\r
338         "8b66b4b0.d208d8",\r
339         "911385ff.dcfb6",\r
340         "79257077.5f1ff8",\r
341         "8a55fb57.dfc438"\r
342       ]\r
343     ]\r
344   },\r
345   {\r
346     "id": "8b66b4b0.d208d8",\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": 2285.566665649414,\r
352     "y": 244.56666564941406,\r
353     "z": "c7b9cd35.bfac88",\r
354     "wires": []\r
355   },\r
356   {\r
357     "id": "ed1c5832.299138",\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": 1979.566665649414,\r
363     "y": 256.56666564941406,\r
364     "z": "c7b9cd35.bfac88",\r
365     "wires": []\r
366   },\r
367   {\r
368     "id": "4b70868c.ca77",\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/v25/network/pnfs?depth=0' depth = 0\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopopnfs\" >",\r
372     "comments": "",\r
373     "outputs": 1,\r
374     "x": 2022.566665649414,\r
375     "y": 115.56666564941406,\r
376     "z": "c7b9cd35.bfac88",\r
377     "wires": [\r
378       []\r
379     ]\r
380   },\r
381   {\r
382     "id": "33568fb6.bac76",\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/v25/network/logical-links?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopologicalLinks\" >",\r
386     "comments": "",\r
387     "outputs": 1,\r
388     "x": 2034.566665649414,\r
389     "y": 156.56666564941406,\r
390     "z": "c7b9cd35.bfac88",\r
391     "wires": [\r
392       []\r
393     ]\r
394   },\r
395   {\r
396     "id": "2a477cee.98364c",\r
397     "type": "comment",\r
398     "name": "The following two nodes are for PCE",\r
399     "info": "",\r
400     "comments": "",\r
401     "x": 2059.566665649414,\r
402     "y": 68.56666564941406,\r
403     "z": "c7b9cd35.bfac88",\r
404     "wires": []\r
405   },\r
406   {\r
407     "id": "11e969ea.04e966",\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": 1979.566665649414,\r
413     "y": 202.56666564941406,\r
414     "z": "c7b9cd35.bfac88",\r
415     "wires": []\r
416   },\r
417   {\r
418     "id": "4ef0e01e.f3cdf",\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": 2683.566665649414,\r
424     "y": 294.56666564941406,\r
425     "z": "c7b9cd35.bfac88",\r
426     "wires": []\r
427   },\r
428   {\r
429     "id": "2913a1dc.ae6786",\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": 2683.504165649414,\r
435     "y": 343.70692443847656,\r
436     "z": "c7b9cd35.bfac88",\r
437     "wires": []\r
438   },\r
439   {\r
440     "id": "28ff285d.675018",\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": 2685.504165649414,\r
447     "y": 394.70692443847656,\r
448     "z": "c7b9cd35.bfac88",\r
449     "wires": [\r
450       [\r
451         "ef99d74f.4057d"\r
452       ]\r
453     ]\r
454   },\r
455   {\r
456     "id": "ef99d74f.4057d",\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": 2978.504165649414,\r
463     "y": 341.70692443847656,\r
464     "z": "c7b9cd35.bfac88",\r
465     "wires": [\r
466       [\r
467         "e456d5f.a155828",\r
468         "7848fc63.19f06c",\r
469         "64a94fba.40e7a"\r
470       ]\r
471     ]\r
472   },\r
473   {\r
474     "id": "7848fc63.19f06c",\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.995101928711,\r
481     "y": 74.28089904785156,\r
482     "z": "c7b9cd35.bfac88",\r
483     "wires": [\r
484       [\r
485         "afcd1c40.b768f"\r
486       ]\r
487     ]\r
488   },\r
489   {\r
490     "id": "afcd1c40.b768f",\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": 3459.566635131836,\r
496     "y": 74.56666564941406,\r
497     "z": "c7b9cd35.bfac88",\r
498     "wires": []\r
499   },\r
500   {\r
501     "id": "64a94fba.40e7a",\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": 3277.504135131836,\r
508     "y": 123.70692443847656,\r
509     "z": "c7b9cd35.bfac88",\r
510     "wires": [\r
511       [\r
512         "9649b9cd.238c78"\r
513       ]\r
514     ]\r
515   },\r
516   {\r
517     "id": "9649b9cd.238c78",\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": 3459.504135131836,\r
523     "y": 123.70692443847656,\r
524     "z": "c7b9cd35.bfac88",\r
525     "wires": []\r
526   },\r
527   {\r
528     "id": "e456d5f.a155828",\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": 3281.504135131836,\r
535     "y": 174.70692443847656,\r
536     "z": "c7b9cd35.bfac88",\r
537     "wires": [\r
538       [\r
539         "8fd753ef.f9f648"\r
540       ]\r
541     ]\r
542   },\r
543   {\r
544     "id": "8fd753ef.f9f648",\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": 3461.504135131836,\r
551     "y": 174.70692443847656,\r
552     "z": "c7b9cd35.bfac88",\r
553     "wires": [\r
554       [\r
555         "f37cd8dc.622f28"\r
556       ]\r
557     ]\r
558   },\r
559   {\r
560     "id": "f37cd8dc.622f28",\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": 2997.566665649414,\r
567     "y": 469.56666564941406,\r
568     "z": "c7b9cd35.bfac88",\r
569     "wires": [\r
570       [\r
571         "d8de60b.2b55ea",\r
572         "6b2e15a0.33589c"\r
573       ]\r
574     ]\r
575   },\r
576   {\r
577     "id": "6b2e15a0.33589c",\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": 3337.566635131836,\r
584     "y": 316.56666564941406,\r
585     "z": "c7b9cd35.bfac88",\r
586     "wires": [\r
587       []\r
588     ]\r
589   },\r
590   {\r
591     "id": "d8de60b.2b55ea",\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": 3336.566635131836,\r
598     "y": 370.56666564941406,\r
599     "z": "c7b9cd35.bfac88",\r
600     "wires": [\r
601       [\r
602         "41425976.6167f8"\r
603       ]\r
604     ]\r
605   },\r
606   {\r
607     "id": "d54e5594.aff43",\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": 4081.566635131836,\r
614     "y": 324.56666564941406,\r
615     "z": "c7b9cd35.bfac88",\r
616     "wires": [\r
617       [\r
618         "20569ac4.3ebdd6"\r
619       ]\r
620     ]\r
621   },\r
622   {\r
623     "id": "20569ac4.3ebdd6",\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": 4258.566513061523,\r
630     "y": 317.56654357910156,\r
631     "z": "c7b9cd35.bfac88",\r
632     "wires": [\r
633       [\r
634         "f7578f2.98aaff",\r
635         "fec27249.f43818"\r
636       ]\r
637     ]\r
638   },\r
639   {\r
640     "id": "41425976.6167f8",\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": 3500.566635131836,\r
647     "y": 296.56666564941406,\r
648     "z": "c7b9cd35.bfac88",\r
649     "wires": [\r
650       [\r
651         "bf1caed6.dba4d",\r
652         "7892547.06584ac"\r
653       ]\r
654     ]\r
655   },\r
656   {\r
657     "id": "bf1caed6.dba4d",\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": 3781.566635131836,\r
664     "y": 252.56666564941406,\r
665     "z": "c7b9cd35.bfac88",\r
666     "wires": [\r
667       [\r
668         "37857fb8.f82a48"\r
669       ]\r
670     ]\r
671   },\r
672   {\r
673     "id": "37857fb8.f82a48",\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": 4043.566635131836,\r
680     "y": 252.56666564941406,\r
681     "z": "c7b9cd35.bfac88",\r
682     "wires": [\r
683       [\r
684         "d54e5594.aff43"\r
685       ]\r
686     ]\r
687   },\r
688   {\r
689     "id": "f7578f2.98aaff",\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": 4501.566513061523,\r
695     "y": 274.56654357910156,\r
696     "z": "c7b9cd35.bfac88",\r
697     "wires": []\r
698   },\r
699   {\r
700     "id": "fec27249.f43818",\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": 4490.566513061523,\r
707     "y": 329.56654357910156,\r
708     "z": "c7b9cd35.bfac88",\r
709     "wires": [\r
710       [\r
711         "7d11439b.9c402c",\r
712         "1159889c.e4b977",\r
713         "672fe755.7cac68"\r
714       ]\r
715     ]\r
716   },\r
717   {\r
718     "id": "672fe755.7cac68",\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": 4741.566879272461,\r
725     "y": 270.56666564941406,\r
726     "z": "c7b9cd35.bfac88",\r
727     "wires": [\r
728       [\r
729         "8e6a85a9.42bd58"\r
730       ]\r
731     ]\r
732   },\r
733   {\r
734     "id": "8e6a85a9.42bd58",\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": 4890.138412475586,\r
740     "y": 270.85243225097656,\r
741     "z": "c7b9cd35.bfac88",\r
742     "wires": []\r
743   },\r
744   {\r
745     "id": "d22f2789.6a3cb",\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": 4889.075912475586,\r
751     "y": 314.99269104003906,\r
752     "z": "c7b9cd35.bfac88",\r
753     "wires": []\r
754   },\r
755   {\r
756     "id": "1159889c.e4b977",\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": 4730.075912475586,\r
763     "y": 314.99269104003906,\r
764     "z": "c7b9cd35.bfac88",\r
765     "wires": [\r
766       [\r
767         "d22f2789.6a3cb"\r
768       ]\r
769     ]\r
770   },\r
771   {\r
772     "id": "7d11439b.9c402c",\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": 4737.075912475586,\r
779     "y": 393.99269104003906,\r
780     "z": "c7b9cd35.bfac88",\r
781     "wires": [\r
782       [\r
783         "1927fc16.6351c4"\r
784       ]\r
785     ]\r
786   },\r
787   {\r
788     "id": "1927fc16.6351c4",\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": 4876.075912475586,\r
796     "y": 393.99269104003906,\r
797     "z": "c7b9cd35.bfac88",\r
798     "wires": [\r
799       [\r
800         "4ec1a8d7.67b3c8",\r
801         "4af48fa4.c20fa"\r
802       ]\r
803     ]\r
804   },\r
805   {\r
806     "id": "4ec1a8d7.67b3c8",\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": 5081.566879272461,\r
812     "y": 391.56666564941406,\r
813     "z": "c7b9cd35.bfac88",\r
814     "wires": []\r
815   },\r
816   {\r
817     "id": "4af48fa4.c20fa",\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": 5080.566879272461,\r
823     "y": 437.56666564941406,\r
824     "z": "c7b9cd35.bfac88",\r
825     "wires": []\r
826   },\r
827   {\r
828     "id": "7892547.06584ac",\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": 3598.566635131836,\r
835     "y": 368.56666564941406,\r
836     "z": "c7b9cd35.bfac88",\r
837     "wires": [\r
838       [\r
839         "ea9b4d5b.2a42f8"\r
840       ]\r
841     ]\r
842   },\r
843   {\r
844     "id": "ea9b4d5b.2a42f8",\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": 3878.566635131836,\r
851     "y": 368.56666564941406,\r
852     "z": "c7b9cd35.bfac88",\r
853     "wires": [\r
854       [\r
855         "476ea684.13443"\r
856       ]\r
857     ]\r
858   },\r
859   {\r
860     "id": "476ea684.13443",\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": 2261.5667877197266,\r
867     "y": 781.5667877197266,\r
868     "z": "c7b9cd35.bfac88",\r
869     "wires": [\r
870       [\r
871         "c7ca0b2.bde93f8"\r
872       ]\r
873     ]\r
874   },\r
875   {\r
876     "id": "c7ca0b2.bde93f8",\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": 2438.566665649414,\r
883     "y": 774.5666656494141,\r
884     "z": "c7b9cd35.bfac88",\r
885     "wires": [\r
886       [\r
887         "86b11ccc.07eb1",\r
888         "5c684ea4.22866"\r
889       ]\r
890     ]\r
891   },\r
892   {\r
893     "id": "86b11ccc.07eb1",\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": 2681.566665649414,\r
899     "y": 731.5666656494141,\r
900     "z": "c7b9cd35.bfac88",\r
901     "wires": []\r
902   },\r
903   {\r
904     "id": "5c684ea4.22866",\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": 2670.566665649414,\r
911     "y": 786.5666656494141,\r
912     "z": "c7b9cd35.bfac88",\r
913     "wires": [\r
914       [\r
915         "2c2754a5.0b7c2c",\r
916         "9ab044d8.9332",\r
917         "6aa476a7.c1db08"\r
918       ]\r
919     ]\r
920   },\r
921   {\r
922     "id": "2c2754a5.0b7c2c",\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": 2962.057632446289,\r
929     "y": 765.1406402587891,\r
930     "z": "c7b9cd35.bfac88",\r
931     "wires": [\r
932       [\r
933         "606104a3.7d17dc"\r
934       ]\r
935     ]\r
936   },\r
937   {\r
938     "id": "9ab044d8.9332",\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": 2950.566665649414,\r
945     "y": 809.5666656494141,\r
946     "z": "c7b9cd35.bfac88",\r
947     "wires": [\r
948       [\r
949         "187a718c.4bcdf6"\r
950       ]\r
951     ]\r
952   },\r
953   {\r
954     "id": "606104a3.7d17dc",\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": 3110.629165649414,\r
960     "y": 765.4264068603516,\r
961     "z": "c7b9cd35.bfac88",\r
962     "wires": []\r
963   },\r
964   {\r
965     "id": "187a718c.4bcdf6",\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": 3109.566665649414,\r
971     "y": 809.5666656494141,\r
972     "z": "c7b9cd35.bfac88",\r
973     "wires": []\r
974   },\r
975   {\r
976     "id": "6aa476a7.c1db08",\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": 2957.566665649414,\r
983     "y": 888.5666656494141,\r
984     "z": "c7b9cd35.bfac88",\r
985     "wires": [\r
986       [\r
987         "9fd32ca0.d84048"\r
988       ]\r
989     ]\r
990   },\r
991   {\r
992     "id": "9fd32ca0.d84048",\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": 3096.566665649414,\r
1000     "y": 888.5666656494141,\r
1001     "z": "c7b9cd35.bfac88",\r
1002     "wires": [\r
1003       [\r
1004         "7a7db7d4.95d8d",\r
1005         "95e88e5b.59dc68",\r
1006         "ccbad682.f9f6e",\r
1007         "51c5f691.62046",\r
1008         "c524ae07.05ca4",\r
1009         "573995f0.c3e824",\r
1010         "40c97410.34efdc",\r
1011         "3ceacdf9.dad772",\r
1012         "37ff3aef.9a54ee",\r
1013         "a62852b2.29136",\r
1014         "e4c9b14e.e493e",\r
1015         "a5e91f89.51e28",\r
1016         "6a1545ce.c6f074",\r
1017         "fcc163b9.6d6e2",\r
1018         "c9e93381.966988",\r
1019         "5fc9799.82ba788",\r
1020         "7ebd6769.0b5428",\r
1021         "9fbb56ee.c43378",\r
1022         "387e5bde.fd50e4",\r
1023         "a78822a6.5321b",\r
1024         "a4c94b0b.1b4718"\r
1025       ]\r
1026     ]\r
1027   },\r
1028   {\r
1029     "id": "8a5fb9f9.eee92",\r
1030     "type": "execute",\r
1031     "name": "execute UUID generator for ethernet-service-name",\r
1032     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.ethernet-service-name\"/>\n",\r
1033     "comments": "",\r
1034     "outputs": 1,\r
1035     "x": 3445.566665649414,\r
1036     "y": 422.56663513183594,\r
1037     "z": "c7b9cd35.bfac88",\r
1038     "wires": [\r
1039       []\r
1040     ]\r
1041   },\r
1042   {\r
1043     "id": "7a7db7d4.95d8d",\r
1044     "type": "execute",\r
1045     "name": "execute UUID generator for otn-tunnel-name",\r
1046     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.otn-tunnel-name\"/>\n",\r
1047     "comments": "",\r
1048     "outputs": 1,\r
1049     "x": 3426.566604614258,\r
1050     "y": 501.56663513183594,\r
1051     "z": "c7b9cd35.bfac88",\r
1052     "wires": [\r
1053       []\r
1054     ]\r
1055   },\r
1056   {\r
1057     "id": "fcc163b9.6d6e2",\r
1058     "type": "set",\r
1059     "name": "set new ethernet-service-name",\r
1060     "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
1061     "comments": "",\r
1062     "x": 3383.566604614258,\r
1063     "y": 546.5666351318359,\r
1064     "z": "c7b9cd35.bfac88",\r
1065     "wires": []\r
1066   },\r
1067   {\r
1068     "id": "95e88e5b.59dc68",\r
1069     "type": "set",\r
1070     "name": "set network-route-one",\r
1071     "xml": "<set>\n<parameter name='network-route-one' value=\"`$tmp.aai.logical-link.link-name`\" />\n\n\n",\r
1072     "comments": "",\r
1073     "x": 3348.566635131836,\r
1074     "y": 600.5666351318359,\r
1075     "z": "c7b9cd35.bfac88",\r
1076     "wires": []\r
1077   },\r
1078   {\r
1079     "id": "ccbad682.f9f6e",\r
1080     "type": "set",\r
1081     "name": "set network-route-two",\r
1082     "xml": "<set>\n<parameter name='network-route-two' value=\"`$tmp.aai.logical-link.link-name2`\" />\n\n\n",\r
1083     "comments": "",\r
1084     "x": 3349.566635131836,\r
1085     "y": 655.5666351318359,\r
1086     "z": "c7b9cd35.bfac88",\r
1087     "wires": []\r
1088   },\r
1089   {\r
1090     "id": "51c5f691.62046",\r
1091     "type": "save",\r
1092     "name": "get network-route-one from aai",\r
1093     "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
1094     "comments": "",\r
1095     "outputs": 1,\r
1096     "x": 3347.566635131836,\r
1097     "y": 919.5666351318359,\r
1098     "z": "c7b9cd35.bfac88",\r
1099     "wires": [\r
1100       [\r
1101         "ab7d525c.39024",\r
1102         "e9514e17.b4663",\r
1103         "e95aa54a.0cb1c8"\r
1104       ]\r
1105     ]\r
1106   },\r
1107   {\r
1108     "id": "c524ae07.05ca4",\r
1109     "type": "save",\r
1110     "name": "get network-route-two from aai",\r
1111     "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
1112     "comments": "",\r
1113     "outputs": 1,\r
1114     "x": 3342.566635131836,\r
1115     "y": 980.5665130615234,\r
1116     "z": "c7b9cd35.bfac88",\r
1117     "wires": [\r
1118       [\r
1119         "ba38cd77.3ddd8",\r
1120         "3fe85825.5036d",\r
1121         "4b77c928.b0503"\r
1122       ]\r
1123     ]\r
1124   },\r
1125   {\r
1126     "id": "ab7d525c.39024",\r
1127     "type": "not-found",\r
1128     "name": "not-found",\r
1129     "xml": "<outcome value='not-found'>\n",\r
1130     "comments": "",\r
1131     "outputs": 1,\r
1132     "x": 3658.566635131836,\r
1133     "y": 690.5666351318359,\r
1134     "z": "c7b9cd35.bfac88",\r
1135     "wires": [\r
1136       [\r
1137         "a41dfa2.144c608"\r
1138       ]\r
1139     ]\r
1140   },\r
1141   {\r
1142     "id": "e9514e17.b4663",\r
1143     "type": "failure",\r
1144     "name": "failure",\r
1145     "xml": "<outcome value='failure'>\n",\r
1146     "comments": "",\r
1147     "outputs": 1,\r
1148     "x": 3654.075668334961,\r
1149     "y": 739.9926605224609,\r
1150     "z": "c7b9cd35.bfac88",\r
1151     "wires": [\r
1152       [\r
1153         "88fea61b.80803"\r
1154       ]\r
1155     ]\r
1156   },\r
1157   {\r
1158     "id": "e95aa54a.0cb1c8",\r
1159     "type": "success",\r
1160     "name": "success",\r
1161     "xml": "<outcome value='success'>\n",\r
1162     "comments": "",\r
1163     "outputs": 1,\r
1164     "x": 3658.075668334961,\r
1165     "y": 792.9926605224609,\r
1166     "z": "c7b9cd35.bfac88",\r
1167     "wires": [\r
1168       [\r
1169         "5f495b77.8e475c"\r
1170       ]\r
1171     ]\r
1172   },\r
1173   {\r
1174     "id": "a41dfa2.144c608",\r
1175     "type": "returnFailure",\r
1176     "name": "return failure",\r
1177     "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
1178     "comments": "",\r
1179     "x": 3807.138168334961,\r
1180     "y": 689.8524017333984,\r
1181     "z": "c7b9cd35.bfac88",\r
1182     "wires": []\r
1183   },\r
1184   {\r
1185     "id": "88fea61b.80803",\r
1186     "type": "returnFailure",\r
1187     "name": "return failure",\r
1188     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1189     "comments": "",\r
1190     "x": 3797.075668334961,\r
1191     "y": 739.9926605224609,\r
1192     "z": "c7b9cd35.bfac88",\r
1193     "wires": []\r
1194   },\r
1195   {\r
1196     "id": "ba38cd77.3ddd8",\r
1197     "type": "not-found",\r
1198     "name": "not-found",\r
1199     "xml": "<outcome value='not-found'>\n",\r
1200     "comments": "",\r
1201     "outputs": 1,\r
1202     "x": 3620.566604614258,\r
1203     "y": 880.5664825439453,\r
1204     "z": "c7b9cd35.bfac88",\r
1205     "wires": [\r
1206       [\r
1207         "5d8c160b.0c4ea8"\r
1208       ]\r
1209     ]\r
1210   },\r
1211   {\r
1212     "id": "3fe85825.5036d",\r
1213     "type": "failure",\r
1214     "name": "failure",\r
1215     "xml": "<outcome value='failure'>\n",\r
1216     "comments": "",\r
1217     "outputs": 1,\r
1218     "x": 3616.075668334961,\r
1219     "y": 922.9925384521484,\r
1220     "z": "c7b9cd35.bfac88",\r
1221     "wires": [\r
1222       [\r
1223         "b6433621.de36a"\r
1224       ]\r
1225     ]\r
1226   },\r
1227   {\r
1228     "id": "4b77c928.b0503",\r
1229     "type": "success",\r
1230     "name": "success",\r
1231     "xml": "<outcome value='success'>\n",\r
1232     "comments": "",\r
1233     "outputs": 1,\r
1234     "x": 3617.075668334961,\r
1235     "y": 975.9925384521484,\r
1236     "z": "c7b9cd35.bfac88",\r
1237     "wires": [\r
1238       [\r
1239         "999aafa8.043a8"\r
1240       ]\r
1241     ]\r
1242   },\r
1243   {\r
1244     "id": "5d8c160b.0c4ea8",\r
1245     "type": "returnFailure",\r
1246     "name": "return failure",\r
1247     "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
1248     "comments": "",\r
1249     "x": 3769.138137817383,\r
1250     "y": 879.8522491455078,\r
1251     "z": "c7b9cd35.bfac88",\r
1252     "wires": []\r
1253   },\r
1254   {\r
1255     "id": "b6433621.de36a",\r
1256     "type": "returnFailure",\r
1257     "name": "return failure",\r
1258     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1259     "comments": "",\r
1260     "x": 3759.075668334961,\r
1261     "y": 922.9925384521484,\r
1262     "z": "c7b9cd35.bfac88",\r
1263     "wires": []\r
1264   },\r
1265   {\r
1266     "id": "5f495b77.8e475c",\r
1267     "type": "block",\r
1268     "name": "block : atomic",\r
1269     "xml": "<block atomic=\"true\">",\r
1270     "atomic": "true",\r
1271     "outputs": 1,\r
1272     "x": 3819.566635131836,\r
1273     "y": 792.5666351318359,\r
1274     "z": "c7b9cd35.bfac88",\r
1275     "wires": [\r
1276       [\r
1277         "f4d50ce3.687d98"\r
1278       ]\r
1279     ]\r
1280   },\r
1281   {\r
1282     "id": "999aafa8.043a8",\r
1283     "type": "block",\r
1284     "name": "block : atomic",\r
1285     "xml": "<block atomic=\"true\">",\r
1286     "atomic": "true",\r
1287     "outputs": 1,\r
1288     "x": 3770.566635131836,\r
1289     "y": 975.5665130615234,\r
1290     "z": "c7b9cd35.bfac88",\r
1291     "wires": [\r
1292       [\r
1293         "6c0d4a32.4f3524"\r
1294       ]\r
1295     ]\r
1296   },\r
1297   {\r
1298     "id": "f4d50ce3.687d98",\r
1299     "type": "switchNode",\r
1300     "name": "switch nr type",\r
1301     "xml": "<switch test='`$tmp.aai.network-route-one.type`'>\n",\r
1302     "comments": "",\r
1303     "outputs": 1,\r
1304     "x": 3994.566635131836,\r
1305     "y": 766.5666351318359,\r
1306     "z": "c7b9cd35.bfac88",\r
1307     "wires": [\r
1308       [\r
1309         "e8eddbb7.6cfbd",\r
1310         "54846c0d.33a74c",\r
1311         "b03ebc69.8e68d8"\r
1312       ]\r
1313     ]\r
1314   },\r
1315   {\r
1316     "id": "6c0d4a32.4f3524",\r
1317     "type": "switchNode",\r
1318     "name": "switch nr type",\r
1319     "xml": "<switch test='`$tmp.aai.network-route-two.type`'>\n",\r
1320     "comments": "",\r
1321     "outputs": 1,\r
1322     "x": 3954.566635131836,\r
1323     "y": 883.5666351318359,\r
1324     "z": "c7b9cd35.bfac88",\r
1325     "wires": [\r
1326       [\r
1327         "4f37a3d1.2e362c",\r
1328         "efd815b8.8e6db8",\r
1329         "65095290.735c7c"\r
1330       ]\r
1331     ]\r
1332   },\r
1333   {\r
1334     "id": "e8eddbb7.6cfbd",\r
1335     "type": "outcome",\r
1336     "name": "ROOT",\r
1337     "xml": "<outcome value='ROOT'>\n",\r
1338     "comments": "",\r
1339     "outputs": 1,\r
1340     "x": 4116.566635131836,\r
1341     "y": 551.5666351318359,\r
1342     "z": "c7b9cd35.bfac88",\r
1343     "wires": [\r
1344       [\r
1345         "c7edad0e.b216"\r
1346       ]\r
1347     ]\r
1348   },\r
1349   {\r
1350     "id": "54846c0d.33a74c",\r
1351     "type": "outcome",\r
1352     "name": "LEAF",\r
1353     "xml": "<outcome value='LEAF'>\n",\r
1354     "comments": "",\r
1355     "outputs": 1,\r
1356     "x": 4118.566635131836,\r
1357     "y": 605.5666351318359,\r
1358     "z": "c7b9cd35.bfac88",\r
1359     "wires": [\r
1360       [\r
1361         "d5f61daa.4b4388"\r
1362       ]\r
1363     ]\r
1364   },\r
1365   {\r
1366     "id": "4f37a3d1.2e362c",\r
1367     "type": "outcome",\r
1368     "name": "ROOT",\r
1369     "xml": "<outcome value='ROOT'>\n",\r
1370     "comments": "",\r
1371     "outputs": 1,\r
1372     "x": 4135.566665649414,\r
1373     "y": 821.5666656494141,\r
1374     "z": "c7b9cd35.bfac88",\r
1375     "wires": [\r
1376       [\r
1377         "81e90993.f1d9a8"\r
1378       ]\r
1379     ]\r
1380   },\r
1381   {\r
1382     "id": "efd815b8.8e6db8",\r
1383     "type": "outcome",\r
1384     "name": "LEAF",\r
1385     "xml": "<outcome value='LEAF'>\n",\r
1386     "comments": "",\r
1387     "outputs": 1,\r
1388     "x": 4137.566665649414,\r
1389     "y": 875.5666656494141,\r
1390     "z": "c7b9cd35.bfac88",\r
1391     "wires": [\r
1392       [\r
1393         "da2103e1.15169"\r
1394       ]\r
1395     ]\r
1396   },\r
1397   {\r
1398     "id": "f5d37541.2d47c8",\r
1399     "type": "set",\r
1400     "name": "set network-route-ROOT",\r
1401     "xml": "<set>\n<parameter name='tmp.aai.network-route-ROOT.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
1402     "comments": "",\r
1403     "x": 4426.566635131836,\r
1404     "y": 503.56663513183594,\r
1405     "z": "c7b9cd35.bfac88",\r
1406     "wires": []\r
1407   },\r
1408   {\r
1409     "id": "2bfe954c.51473a",\r
1410     "type": "set",\r
1411     "name": "set network-route-LEAF",\r
1412     "xml": "<set>\n<parameter name='tmp.aai.network-route-LEAF.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
1413     "comments": "",\r
1414     "x": 4419.566635131836,\r
1415     "y": 601.5666351318359,\r
1416     "z": "c7b9cd35.bfac88",\r
1417     "wires": []\r
1418   },\r
1419   {\r
1420     "id": "9391f162.46d07",\r
1421     "type": "set",\r
1422     "name": "set network-route-ROOT",\r
1423     "xml": "<set>\n<parameter name='tmp.aai.network-route-ROOT.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
1424     "comments": "",\r
1425     "x": 4437.566665649414,\r
1426     "y": 794.5666656494141,\r
1427     "z": "c7b9cd35.bfac88",\r
1428     "wires": []\r
1429   },\r
1430   {\r
1431     "id": "8da0410.b4be6c",\r
1432     "type": "set",\r
1433     "name": "set network-route-LEAF",\r
1434     "xml": "<set>\n<parameter name='tmp.aai.network-route-LEAF.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
1435     "comments": "",\r
1436     "x": 4441.566665649414,\r
1437     "y": 887.5666656494141,\r
1438     "z": "c7b9cd35.bfac88",\r
1439     "wires": []\r
1440   },\r
1441   {\r
1442     "id": "c685a00a.7f3668",\r
1443     "type": "success",\r
1444     "name": "success",\r
1445     "xml": "<outcome value='success'>\n",\r
1446     "comments": "",\r
1447     "outputs": 1,\r
1448     "x": 3584.566665649414,\r
1449     "y": 1559.566665649414,\r
1450     "z": "c7b9cd35.bfac88",\r
1451     "wires": [\r
1452       [\r
1453         "3e8c64de.c5d6ac"\r
1454       ]\r
1455     ]\r
1456   },\r
1457   {\r
1458     "id": "c307eb50.c4efc",\r
1459     "type": "not-found",\r
1460     "name": "not-found",\r
1461     "xml": "<outcome value='not-found'>\n",\r
1462     "comments": "",\r
1463     "outputs": 1,\r
1464     "x": 3594.057632446289,\r
1465     "y": 1602.1407012939453,\r
1466     "z": "c7b9cd35.bfac88",\r
1467     "wires": [\r
1468       [\r
1469         "a457c21e.dc24c"\r
1470       ]\r
1471     ]\r
1472   },\r
1473   {\r
1474     "id": "fe413554.38fd68",\r
1475     "type": "failure",\r
1476     "name": "failure",\r
1477     "xml": "<outcome value='failure'>\n",\r
1478     "comments": "",\r
1479     "outputs": 1,\r
1480     "x": 3582.566665649414,\r
1481     "y": 1648.566665649414,\r
1482     "z": "c7b9cd35.bfac88",\r
1483     "wires": [\r
1484       [\r
1485         "f7393df4.54a488"\r
1486       ]\r
1487     ]\r
1488   },\r
1489   {\r
1490     "id": "940c17a9.af2df",\r
1491     "type": "comment",\r
1492     "name": "Question?",\r
1493     "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
1494     "comments": "",\r
1495     "x": 3284.566665649414,\r
1496     "y": 1521.566665649414,\r
1497     "z": "c7b9cd35.bfac88",\r
1498     "wires": []\r
1499   },\r
1500   {\r
1501     "id": "40c97410.34efdc",\r
1502     "type": "save",\r
1503     "name": "get p-interface-src from aai",\r
1504     "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
1505     "comments": "",\r
1506     "outputs": 1,\r
1507     "x": 3327.566665649414,\r
1508     "y": 1586.566665649414,\r
1509     "z": "c7b9cd35.bfac88",\r
1510     "wires": [\r
1511       [\r
1512         "c685a00a.7f3668",\r
1513         "c307eb50.c4efc",\r
1514         "fe413554.38fd68"\r
1515       ]\r
1516     ]\r
1517   },\r
1518   {\r
1519     "id": "573995f0.c3e824",\r
1520     "type": "execute",\r
1521     "name": "execute split tp-id to get pnf-name",\r
1522     "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
1523     "comments": "",\r
1524     "outputs": 1,\r
1525     "x": 3328.566665649414,\r
1526     "y": 1256.566665649414,\r
1527     "z": "c7b9cd35.bfac88",\r
1528     "wires": [\r
1529       [\r
1530         "ce053797.967e5",\r
1531         "1d8318a4.118f1f"\r
1532       ]\r
1533     ]\r
1534   },\r
1535   {\r
1536     "id": "1d8318a4.118f1f",\r
1537     "type": "failure",\r
1538     "name": "success",\r
1539     "xml": "<outcome value='success'>\n",\r
1540     "comments": "",\r
1541     "outputs": 1,\r
1542     "x": 3549.566635131836,\r
1543     "y": 1309.566635131836,\r
1544     "z": "c7b9cd35.bfac88",\r
1545     "wires": [\r
1546       [\r
1547         "d7acba72.b8d088"\r
1548       ]\r
1549     ]\r
1550   },\r
1551   {\r
1552     "id": "ce053797.967e5",\r
1553     "type": "failure",\r
1554     "name": "failure",\r
1555     "xml": "<outcome value='failure'>\n",\r
1556     "comments": "",\r
1557     "outputs": 1,\r
1558     "x": 3551.566635131836,\r
1559     "y": 1342.566635131836,\r
1560     "z": "c7b9cd35.bfac88",\r
1561     "wires": [\r
1562       [\r
1563         "b936608f.415c9"\r
1564       ]\r
1565     ]\r
1566   },\r
1567   {\r
1568     "id": "3e8c64de.c5d6ac",\r
1569     "type": "block",\r
1570     "name": "block : atomic",\r
1571     "xml": "<block atomic=\"true\">",\r
1572     "atomic": "true",\r
1573     "outputs": 1,\r
1574     "x": 3757.233169555664,\r
1575     "y": 1558.566665649414,\r
1576     "z": "c7b9cd35.bfac88",\r
1577     "wires": [\r
1578       [\r
1579         "61a62886.979d9",\r
1580         "69747a1f.4d36a4"\r
1581       ]\r
1582     ]\r
1583   },\r
1584   {\r
1585     "id": "a457c21e.dc24c",\r
1586     "type": "returnFailure",\r
1587     "name": "return failure",\r
1588     "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
1589     "comments": "",\r
1590     "x": 3747.6290435791016,\r
1591     "y": 1605.4264373779297,\r
1592     "z": "c7b9cd35.bfac88",\r
1593     "wires": []\r
1594   },\r
1595   {\r
1596     "id": "f7393df4.54a488",\r
1597     "type": "returnFailure",\r
1598     "name": "return failure",\r
1599     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1600     "comments": "",\r
1601     "x": 3751.566665649414,\r
1602     "y": 1649.566665649414,\r
1603     "z": "c7b9cd35.bfac88",\r
1604     "wires": []\r
1605   },\r
1606   {\r
1607     "id": "61a62886.979d9",\r
1608     "type": "execute",\r
1609     "name": "execute split tp-id to get pnf-name",\r
1610     "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
1611     "comments": "",\r
1612     "outputs": 1,\r
1613     "x": 4021.566665649414,\r
1614     "y": 1542.566665649414,\r
1615     "z": "c7b9cd35.bfac88",\r
1616     "wires": [\r
1617       [\r
1618         "d27c3919.e4f1e8",\r
1619         "744ce69a.cd2cd"\r
1620       ]\r
1621     ]\r
1622   },\r
1623   {\r
1624     "id": "744ce69a.cd2cd",\r
1625     "type": "failure",\r
1626     "name": "success",\r
1627     "xml": "<outcome value='success'>\n",\r
1628     "comments": "",\r
1629     "outputs": 1,\r
1630     "x": 4244.566665649414,\r
1631     "y": 1497.566665649414,\r
1632     "z": "c7b9cd35.bfac88",\r
1633     "wires": [\r
1634       [\r
1635         "d24d75df.899958"\r
1636       ]\r
1637     ]\r
1638   },\r
1639   {\r
1640     "id": "d27c3919.e4f1e8",\r
1641     "type": "failure",\r
1642     "name": "failure",\r
1643     "xml": "<outcome value='failure'>\n",\r
1644     "comments": "",\r
1645     "outputs": 1,\r
1646     "x": 4246.566665649414,\r
1647     "y": 1561.566665649414,\r
1648     "z": "c7b9cd35.bfac88",\r
1649     "wires": [\r
1650       [\r
1651         "195cae09.6a270a"\r
1652       ]\r
1653     ]\r
1654   },\r
1655   {\r
1656     "id": "195cae09.6a270a",\r
1657     "type": "returnFailure",\r
1658     "name": "return failure",\r
1659     "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
1660     "comments": "",\r
1661     "x": 4408.566665649414,\r
1662     "y": 1557.566665649414,\r
1663     "z": "c7b9cd35.bfac88",\r
1664     "wires": []\r
1665   },\r
1666   {\r
1667     "id": "d24d75df.899958",\r
1668     "type": "block",\r
1669     "name": "block : atomic",\r
1670     "xml": "<block atomic=\"true\">",\r
1671     "atomic": "true",\r
1672     "outputs": 1,\r
1673     "x": 4409.566665649414,\r
1674     "y": 1494.566665649414,\r
1675     "z": "c7b9cd35.bfac88",\r
1676     "wires": [\r
1677       [\r
1678         "64761578.742944",\r
1679         "545ae19b.2a1238"\r
1680       ]\r
1681     ]\r
1682   },\r
1683   {\r
1684     "id": "b936608f.415c9",\r
1685     "type": "returnFailure",\r
1686     "name": "return failure",\r
1687     "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
1688     "comments": "",\r
1689     "x": 3694.566635131836,\r
1690     "y": 1339.566635131836,\r
1691     "z": "c7b9cd35.bfac88",\r
1692     "wires": []\r
1693   },\r
1694   {\r
1695     "id": "d7acba72.b8d088",\r
1696     "type": "block",\r
1697     "name": "block : atomic",\r
1698     "xml": "<block atomic=\"true\">",\r
1699     "atomic": "true",\r
1700     "outputs": 1,\r
1701     "x": 3697.566635131836,\r
1702     "y": 1302.566635131836,\r
1703     "z": "c7b9cd35.bfac88",\r
1704     "wires": [\r
1705       [\r
1706         "66afead4.578fec",\r
1707         "d914a00d.43d42"\r
1708       ]\r
1709     ]\r
1710   },\r
1711   {\r
1712     "id": "66afead4.578fec",\r
1713     "type": "set",\r
1714     "name": "set pnf-name",\r
1715     "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
1716     "comments": "",\r
1717     "x": 3871.566635131836,\r
1718     "y": 1258.566635131836,\r
1719     "z": "c7b9cd35.bfac88",\r
1720     "wires": []\r
1721   },\r
1722   {\r
1723     "id": "69747a1f.4d36a4",\r
1724     "type": "for",\r
1725     "name": "for each relationship",\r
1726     "xml": "<for silentFailure='true' index='pividx' start='0' end='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship_length`' >\n",\r
1727     "comments": "",\r
1728     "outputs": 1,\r
1729     "x": 3970.566635131836,\r
1730     "y": 1652.566635131836,\r
1731     "z": "c7b9cd35.bfac88",\r
1732     "wires": [\r
1733       [\r
1734         "6692ad9d.63a244"\r
1735       ]\r
1736     ]\r
1737   },\r
1738   {\r
1739     "id": "6692ad9d.63a244",\r
1740     "type": "switchNode",\r
1741     "name": "switch related-to",\r
1742     "xml": "<switch test='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].related-to`'>\n",\r
1743     "comments": "",\r
1744     "outputs": 1,\r
1745     "x": 4176.566635131836,\r
1746     "y": 1652.566635131836,\r
1747     "z": "c7b9cd35.bfac88",\r
1748     "wires": [\r
1749       [\r
1750         "efeaf290.376e48"\r
1751       ]\r
1752     ]\r
1753   },\r
1754   {\r
1755     "id": "efeaf290.376e48",\r
1756     "type": "outcome",\r
1757     "name": "tunnel-termination-point",\r
1758     "xml": "<outcome value='tunnel-termination-point'>\n",\r
1759     "comments": "",\r
1760     "outputs": 1,\r
1761     "x": 4391.852279663086,\r
1762     "y": 1652.388412475586,\r
1763     "z": "c7b9cd35.bfac88",\r
1764     "wires": [\r
1765       [\r
1766         "9388038d.e5f508"\r
1767       ]\r
1768     ]\r
1769   },\r
1770   {\r
1771     "id": "d914a00d.43d42",\r
1772     "type": "get-resource",\r
1773     "name": "get-resource src pnf",\r
1774     "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
1775     "comments": "",\r
1776     "outputs": 1,\r
1777     "x": 3886.566635131836,\r
1778     "y": 1369.566635131836,\r
1779     "z": "c7b9cd35.bfac88",\r
1780     "wires": [\r
1781       [\r
1782         "3150a2ed.678f16",\r
1783         "5769f8b6.da962",\r
1784         "c8b63edf.598bb8"\r
1785       ]\r
1786     ]\r
1787   },\r
1788   {\r
1789     "id": "3150a2ed.678f16",\r
1790     "type": "success",\r
1791     "name": "success",\r
1792     "xml": "<outcome value='success'>\n",\r
1793     "comments": "",\r
1794     "outputs": 1,\r
1795     "x": 4082.0667572021484,\r
1796     "y": 1321.566635131836,\r
1797     "z": "c7b9cd35.bfac88",\r
1798     "wires": [\r
1799       [\r
1800         "47f6939a.0cca7c"\r
1801       ]\r
1802     ]\r
1803   },\r
1804   {\r
1805     "id": "5769f8b6.da962",\r
1806     "type": "not-found",\r
1807     "name": "not-found",\r
1808     "xml": "<outcome value='not-found'>\n",\r
1809     "comments": "",\r
1810     "outputs": 1,\r
1811     "x": 4074.0667572021484,\r
1812     "y": 1376.566635131836,\r
1813     "z": "c7b9cd35.bfac88",\r
1814     "wires": [\r
1815       [\r
1816         "dfce5624.4d0e8"\r
1817       ]\r
1818     ]\r
1819   },\r
1820   {\r
1821     "id": "c8b63edf.598bb8",\r
1822     "type": "other",\r
1823     "name": "other",\r
1824     "xml": "<outcome value='Other'>\n",\r
1825     "comments": "",\r
1826     "outputs": 1,\r
1827     "x": 4079.0667572021484,\r
1828     "y": 1433.566635131836,\r
1829     "z": "c7b9cd35.bfac88",\r
1830     "wires": [\r
1831       [\r
1832         "16d53904.a69817"\r
1833       ]\r
1834     ]\r
1835   },\r
1836   {\r
1837     "id": "16d53904.a69817",\r
1838     "type": "returnFailure",\r
1839     "name": "return failure",\r
1840     "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
1841     "comments": "",\r
1842     "x": 4231.066757202148,\r
1843     "y": 1434.566635131836,\r
1844     "z": "c7b9cd35.bfac88",\r
1845     "wires": []\r
1846   },\r
1847   {\r
1848     "id": "dfce5624.4d0e8",\r
1849     "type": "returnFailure",\r
1850     "name": "return failure",\r
1851     "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
1852     "comments": "",\r
1853     "x": 4242.066757202148,\r
1854     "y": 1379.566635131836,\r
1855     "z": "c7b9cd35.bfac88",\r
1856     "wires": []\r
1857   },\r
1858   {\r
1859     "id": "47f6939a.0cca7c",\r
1860     "type": "block",\r
1861     "name": "block",\r
1862     "xml": "<block>\n",\r
1863     "atomic": "false",\r
1864     "comments": "",\r
1865     "outputs": 1,\r
1866     "x": 4226.449081420898,\r
1867     "y": 1319.2223052978516,\r
1868     "z": "c7b9cd35.bfac88",\r
1869     "wires": [\r
1870       [\r
1871         "57719ed2.829e5"\r
1872       ]\r
1873     ]\r
1874   },\r
1875   {\r
1876     "id": "57719ed2.829e5",\r
1877     "type": "for",\r
1878     "name": "for each relationship",\r
1879     "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
1880     "comments": "",\r
1881     "outputs": 1,\r
1882     "x": 4410.566635131836,\r
1883     "y": 1333.566635131836,\r
1884     "z": "c7b9cd35.bfac88",\r
1885     "wires": [\r
1886       [\r
1887         "8b55301b.b943a8"\r
1888       ]\r
1889     ]\r
1890   },\r
1891   {\r
1892     "id": "545ae19b.2a1238",\r
1893     "type": "set",\r
1894     "name": "set ltpId",\r
1895     "xml": "<set>\n<parameter name='tmp.src.ltpId' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n",\r
1896     "comments": "",\r
1897     "x": 4579.566665649414,\r
1898     "y": 1452.566665649414,\r
1899     "z": "c7b9cd35.bfac88",\r
1900     "wires": []\r
1901   },\r
1902   {\r
1903     "id": "64761578.742944",\r
1904     "type": "set",\r
1905     "name": "set pnf-name",\r
1906     "xml": "<set>\n<parameter name='tmp.src.pnf-name' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n",\r
1907     "comments": "",\r
1908     "x": 4580.566665649414,\r
1909     "y": 1560.566665649414,\r
1910     "z": "c7b9cd35.bfac88",\r
1911     "wires": []\r
1912   },\r
1913   {\r
1914     "id": "3bbb3a78.1e825e",\r
1915     "type": "comment",\r
1916     "name": "TODO: FIXME",\r
1917     "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
1918     "comments": "",\r
1919     "x": 4581.566665649414,\r
1920     "y": 1509.566665649414,\r
1921     "z": "c7b9cd35.bfac88",\r
1922     "wires": []\r
1923   },\r
1924   {\r
1925     "id": "9388038d.e5f508",\r
1926     "type": "block",\r
1927     "name": "block : atomic",\r
1928     "xml": "<block atomic=\"true\">",\r
1929     "atomic": "true",\r
1930     "outputs": 1,\r
1931     "x": 4598.683822631836,\r
1932     "y": 1652.906967163086,\r
1933     "z": "c7b9cd35.bfac88",\r
1934     "wires": [\r
1935       [\r
1936         "13805827.ade3d",\r
1937         "a9502d93.1e2b78",\r
1938         "a1b1941b.f9c738"\r
1939       ]\r
1940     ]\r
1941   },\r
1942   {\r
1943     "id": "13805827.ade3d",\r
1944     "type": "set",\r
1945     "name": "set source ttp-id",\r
1946     "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
1947     "comments": "",\r
1948     "x": 4813.683822631836,\r
1949     "y": 1614.906967163086,\r
1950     "z": "c7b9cd35.bfac88",\r
1951     "wires": []\r
1952   },\r
1953   {\r
1954     "id": "a9502d93.1e2b78",\r
1955     "type": "get-resource",\r
1956     "name": "get-resource src TTP",\r
1957     "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
1958     "comments": "",\r
1959     "outputs": 1,\r
1960     "x": 4810.683822631836,\r
1961     "y": 1653.906967163086,\r
1962     "z": "c7b9cd35.bfac88",\r
1963     "wires": [\r
1964       [\r
1965         "b0dee9b7.4f5918"\r
1966       ]\r
1967     ]\r
1968   },\r
1969   {\r
1970     "id": "a1b1941b.f9c738",\r
1971     "type": "break",\r
1972     "name": "break",\r
1973     "xml": "<break>\n",\r
1974     "comments": "",\r
1975     "x": 4766.183822631836,\r
1976     "y": 1695.906967163086,\r
1977     "z": "c7b9cd35.bfac88",\r
1978     "wires": []\r
1979   },\r
1980   {\r
1981     "id": "b0dee9b7.4f5918",\r
1982     "type": "success",\r
1983     "name": "success",\r
1984     "xml": "<outcome value='success'>\n",\r
1985     "comments": "",\r
1986     "outputs": 1,\r
1987     "x": 4991.183822631836,\r
1988     "y": 1652.906967163086,\r
1989     "z": "c7b9cd35.bfac88",\r
1990     "wires": [\r
1991       [\r
1992         "915aa3e1.c4697"\r
1993       ]\r
1994     ]\r
1995   },\r
1996   {\r
1997     "id": "25f4a2bf.12e7a6",\r
1998     "type": "outcome",\r
1999     "name": "esr-thirdparty-sdnc",\r
2000     "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
2001     "comments": "",\r
2002     "outputs": 1,\r
2003     "x": 4810.566665649414,\r
2004     "y": 1270.566665649414,\r
2005     "z": "c7b9cd35.bfac88",\r
2006     "wires": [\r
2007       [\r
2008         "5118de9a.01dd88"\r
2009       ]\r
2010     ]\r
2011   },\r
2012   {\r
2013     "id": "5118de9a.01dd88",\r
2014     "type": "block",\r
2015     "name": "block : atomic",\r
2016     "xml": "<block atomic=\"true\">",\r
2017     "atomic": "true",\r
2018     "outputs": 1,\r
2019     "x": 4987.566665649414,\r
2020     "y": 1262.566665649414,\r
2021     "z": "c7b9cd35.bfac88",\r
2022     "wires": [\r
2023       [\r
2024         "94a9a0f9.c59e58",\r
2025         "85408268.2c3368"\r
2026       ]\r
2027     ]\r
2028   },\r
2029   {\r
2030     "id": "8b55301b.b943a8",\r
2031     "type": "switchNode",\r
2032     "name": "switch related-to",\r
2033     "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
2034     "comments": "",\r
2035     "outputs": 1,\r
2036     "x": 4605.566635131836,\r
2037     "y": 1333.566635131836,\r
2038     "z": "c7b9cd35.bfac88",\r
2039     "wires": [\r
2040       [\r
2041         "25f4a2bf.12e7a6",\r
2042         "95e8d812.cc8ca8"\r
2043       ]\r
2044     ]\r
2045   },\r
2046   {\r
2047     "id": "95e8d812.cc8ca8",\r
2048     "type": "outcome",\r
2049     "name": "network-resource",\r
2050     "xml": "<outcome value='network-resource'>",\r
2051     "comments": "",\r
2052     "outputs": 1,\r
2053     "x": 4813.566665649414,\r
2054     "y": 1344.566665649414,\r
2055     "z": "c7b9cd35.bfac88",\r
2056     "wires": [\r
2057       [\r
2058         "f38eef5.12b7d1"\r
2059       ]\r
2060     ]\r
2061   },\r
2062   {\r
2063     "id": "f38eef5.12b7d1",\r
2064     "type": "block",\r
2065     "name": "block : atomic",\r
2066     "xml": "<block atomic=\"true\">",\r
2067     "atomic": "true",\r
2068     "outputs": 1,\r
2069     "x": 4990.566665649414,\r
2070     "y": 1336.566665649414,\r
2071     "z": "c7b9cd35.bfac88",\r
2072     "wires": [\r
2073       [\r
2074         "c816565f.10d5d"\r
2075       ]\r
2076     ]\r
2077   },\r
2078   {\r
2079     "id": "915aa3e1.c4697",\r
2080     "type": "block",\r
2081     "name": "block : atomic",\r
2082     "xml": "<block atomic=\"true\">",\r
2083     "atomic": "true",\r
2084     "outputs": 1,\r
2085     "x": 5149.183822631836,\r
2086     "y": 1652.906967163086,\r
2087     "z": "c7b9cd35.bfac88",\r
2088     "wires": [\r
2089       [\r
2090         "6c003d6.b17f944"\r
2091       ]\r
2092     ]\r
2093   },\r
2094   {\r
2095     "id": "6c003d6.b17f944",\r
2096     "type": "set",\r
2097     "name": "set source tunnel tp ip",\r
2098     "xml": "<set>\n<parameter name='source.tunnel-tp-id' value=\"`$tmp.aai.source-ttp.tunnel-tp-id`\" />\n",\r
2099     "comments": "",\r
2100     "x": 5356.183822631836,\r
2101     "y": 1652.906967163086,\r
2102     "z": "c7b9cd35.bfac88",\r
2103     "wires": []\r
2104   },\r
2105   {\r
2106     "id": "85408268.2c3368",\r
2107     "type": "execute",\r
2108     "name": "get esr-thirdparty-sdnc",\r
2109     "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
2110     "comments": "",\r
2111     "outputs": 1,\r
2112     "x": 5195.566665649414,\r
2113     "y": 1269.566665649414,\r
2114     "z": "c7b9cd35.bfac88",\r
2115     "wires": [\r
2116       [\r
2117         "53b236d8.1b02c",\r
2118         "4083b24b.fff034",\r
2119         "39446af.e663d96"\r
2120       ]\r
2121     ]\r
2122   },\r
2123   {\r
2124     "id": "94a9a0f9.c59e58",\r
2125     "type": "set",\r
2126     "name": "set esr-thirdparty-sdnc domainA id",\r
2127     "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
2128     "comments": "",\r
2129     "x": 5225.566665649414,\r
2130     "y": 1217.566665649414,\r
2131     "z": "c7b9cd35.bfac88",\r
2132     "wires": []\r
2133   },\r
2134   {\r
2135     "id": "53b236d8.1b02c",\r
2136     "type": "success",\r
2137     "name": "success",\r
2138     "xml": "<outcome value='success'>\n",\r
2139     "comments": "",\r
2140     "outputs": 1,\r
2141     "x": 5405.566665649414,\r
2142     "y": 1260.566665649414,\r
2143     "z": "c7b9cd35.bfac88",\r
2144     "wires": [\r
2145       [\r
2146         "85a67c1c.71be78"\r
2147       ]\r
2148     ]\r
2149   },\r
2150   {\r
2151     "id": "4083b24b.fff034",\r
2152     "type": "not-found",\r
2153     "name": "not-found",\r
2154     "xml": "<outcome value='not-found'>\n",\r
2155     "comments": "",\r
2156     "outputs": 1,\r
2157     "x": 5397.566665649414,\r
2158     "y": 1315.566665649414,\r
2159     "z": "c7b9cd35.bfac88",\r
2160     "wires": [\r
2161       [\r
2162         "ef1cd568.ee18"\r
2163       ]\r
2164     ]\r
2165   },\r
2166   {\r
2167     "id": "39446af.e663d96",\r
2168     "type": "other",\r
2169     "name": "other",\r
2170     "xml": "<outcome value='Other'>\n",\r
2171     "comments": "",\r
2172     "outputs": 1,\r
2173     "x": 5402.566665649414,\r
2174     "y": 1372.566665649414,\r
2175     "z": "c7b9cd35.bfac88",\r
2176     "wires": [\r
2177       [\r
2178         "9b4ff565.a53cd"\r
2179       ]\r
2180     ]\r
2181   },\r
2182   {\r
2183     "id": "9b4ff565.a53cd",\r
2184     "type": "returnFailure",\r
2185     "name": "return failure",\r
2186     "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
2187     "comments": "",\r
2188     "x": 5554.566665649414,\r
2189     "y": 1373.566665649414,\r
2190     "z": "c7b9cd35.bfac88",\r
2191     "wires": []\r
2192   },\r
2193   {\r
2194     "id": "ef1cd568.ee18",\r
2195     "type": "returnFailure",\r
2196     "name": "return failure",\r
2197     "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
2198     "comments": "",\r
2199     "x": 5565.566665649414,\r
2200     "y": 1318.566665649414,\r
2201     "z": "c7b9cd35.bfac88",\r
2202     "wires": []\r
2203   },\r
2204   {\r
2205     "id": "85a67c1c.71be78",\r
2206     "type": "block",\r
2207     "name": "block",\r
2208     "xml": "<block>\n",\r
2209     "atomic": "false",\r
2210     "comments": "",\r
2211     "outputs": 1,\r
2212     "x": 5549.948989868164,\r
2213     "y": 1258.2223358154297,\r
2214     "z": "c7b9cd35.bfac88",\r
2215     "wires": [\r
2216       [\r
2217         "53e9aeb2.242928"\r
2218       ]\r
2219     ]\r
2220   },\r
2221   {\r
2222     "id": "c816565f.10d5d",\r
2223     "type": "set",\r
2224     "name": "set domainA ethernet layer network-id",\r
2225     "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
2226     "comments": "",\r
2227     "x": 5225.566665649414,\r
2228     "y": 1460.566665649414,\r
2229     "z": "c7b9cd35.bfac88",\r
2230     "wires": []\r
2231   },\r
2232   {\r
2233     "id": "53e9aeb2.242928",\r
2234     "type": "set",\r
2235     "name": "set controller domainA data",\r
2236     "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
2237     "comments": "",\r
2238     "x": 5764.566665649414,\r
2239     "y": 1254.566665649414,\r
2240     "z": "c7b9cd35.bfac88",\r
2241     "wires": []\r
2242   },\r
2243   {\r
2244     "id": "bd4af2f9.e804e",\r
2245     "type": "set",\r
2246     "name": "set network-route-B",\r
2247     "xml": "<set>\n<parameter name='tmp.aai.network-route-B.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
2248     "comments": "",\r
2249     "x": 4414.566635131836,\r
2250     "y": 539.5666351318359,\r
2251     "z": "c7b9cd35.bfac88",\r
2252     "wires": []\r
2253   },\r
2254   {\r
2255     "id": "ff102e0b.75a238",\r
2256     "type": "set",\r
2257     "name": "set network-route-A",\r
2258     "xml": "<set>\n<parameter name='tmp.aai.network-route-A.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
2259     "comments": "",\r
2260     "x": 4405.566635131836,\r
2261     "y": 637.5666351318359,\r
2262     "z": "c7b9cd35.bfac88",\r
2263     "wires": []\r
2264   },\r
2265   {\r
2266     "id": "c7edad0e.b216",\r
2267     "type": "block",\r
2268     "name": "block",\r
2269     "xml": "<block>\n",\r
2270     "atomic": "false",\r
2271     "comments": "",\r
2272     "outputs": 1,\r
2273     "x": 4239.566635131836,\r
2274     "y": 545.5666351318359,\r
2275     "z": "c7b9cd35.bfac88",\r
2276     "wires": [\r
2277       [\r
2278         "f5d37541.2d47c8",\r
2279         "bd4af2f9.e804e"\r
2280       ]\r
2281     ]\r
2282   },\r
2283   {\r
2284     "id": "d5f61daa.4b4388",\r
2285     "type": "block",\r
2286     "name": "block",\r
2287     "xml": "<block>\n",\r
2288     "atomic": "false",\r
2289     "comments": "",\r
2290     "outputs": 1,\r
2291     "x": 4245.566635131836,\r
2292     "y": 609.5666351318359,\r
2293     "z": "c7b9cd35.bfac88",\r
2294     "wires": [\r
2295       [\r
2296         "2bfe954c.51473a",\r
2297         "ff102e0b.75a238"\r
2298       ]\r
2299     ]\r
2300   },\r
2301   {\r
2302     "id": "81e90993.f1d9a8",\r
2303     "type": "block",\r
2304     "name": "block",\r
2305     "xml": "<block>\n",\r
2306     "atomic": "false",\r
2307     "comments": "",\r
2308     "outputs": 1,\r
2309     "x": 4263.566665649414,\r
2310     "y": 821.5666656494141,\r
2311     "z": "c7b9cd35.bfac88",\r
2312     "wires": [\r
2313       [\r
2314         "9391f162.46d07",\r
2315         "cb81a4f3.d6156"\r
2316       ]\r
2317     ]\r
2318   },\r
2319   {\r
2320     "id": "da2103e1.15169",\r
2321     "type": "block",\r
2322     "name": "block",\r
2323     "xml": "<block>\n",\r
2324     "atomic": "false",\r
2325     "comments": "",\r
2326     "outputs": 1,\r
2327     "x": 4266.566665649414,\r
2328     "y": 874.5666656494141,\r
2329     "z": "c7b9cd35.bfac88",\r
2330     "wires": [\r
2331       [\r
2332         "8da0410.b4be6c",\r
2333         "e6103926.96cb88"\r
2334       ]\r
2335     ]\r
2336   },\r
2337   {\r
2338     "id": "cb81a4f3.d6156",\r
2339     "type": "set",\r
2340     "name": "set network-route-B",\r
2341     "xml": "<set>\n<parameter name='tmp.aai.network-route-B.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
2342     "comments": "",\r
2343     "x": 4423.566665649414,\r
2344     "y": 834.5666656494141,\r
2345     "z": "c7b9cd35.bfac88",\r
2346     "wires": []\r
2347   },\r
2348   {\r
2349     "id": "e6103926.96cb88",\r
2350     "type": "set",\r
2351     "name": "set network-route-A",\r
2352     "xml": "<set>\n<parameter name='tmp.aai.network-route-A.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
2353     "comments": "",\r
2354     "x": 4426.566665649414,\r
2355     "y": 925.5666656494141,\r
2356     "z": "c7b9cd35.bfac88",\r
2357     "wires": []\r
2358   },\r
2359   {\r
2360     "id": "9fb68dad.7c92d",\r
2361     "type": "block",\r
2362     "name": "block : atomic",\r
2363     "xml": "<block atomic=\"true\">",\r
2364     "atomic": "true",\r
2365     "outputs": 1,\r
2366     "x": 3718.566635131836,\r
2367     "y": 2052.566635131836,\r
2368     "z": "c7b9cd35.bfac88",\r
2369     "wires": [\r
2370       [\r
2371         "931d0e50.a84728",\r
2372         "4385be6.d4f41c"\r
2373       ]\r
2374     ]\r
2375   },\r
2376   {\r
2377     "id": "62a0ff40.3fa718",\r
2378     "type": "success",\r
2379     "name": "success",\r
2380     "xml": "<outcome value='success'>\n",\r
2381     "comments": "",\r
2382     "outputs": 1,\r
2383     "x": 3545.900131225586,\r
2384     "y": 2053.566635131836,\r
2385     "z": "c7b9cd35.bfac88",\r
2386     "wires": [\r
2387       [\r
2388         "9fb68dad.7c92d"\r
2389       ]\r
2390     ]\r
2391   },\r
2392   {\r
2393     "id": "a9db3cf5.8c98a8",\r
2394     "type": "not-found",\r
2395     "name": "not-found",\r
2396     "xml": "<outcome value='not-found'>\n",\r
2397     "comments": "",\r
2398     "outputs": 1,\r
2399     "x": 3555.391098022461,\r
2400     "y": 2096.140670776367,\r
2401     "z": "c7b9cd35.bfac88",\r
2402     "wires": [\r
2403       [\r
2404         "b1d5af05.b8b6a"\r
2405       ]\r
2406     ]\r
2407   },\r
2408   {\r
2409     "id": "e64b0ffd.d5764",\r
2410     "type": "failure",\r
2411     "name": "failure",\r
2412     "xml": "<outcome value='failure'>\n",\r
2413     "comments": "",\r
2414     "outputs": 1,\r
2415     "x": 3543.900131225586,\r
2416     "y": 2142.566635131836,\r
2417     "z": "c7b9cd35.bfac88",\r
2418     "wires": [\r
2419       [\r
2420         "c5461a06.0ba95"\r
2421       ]\r
2422     ]\r
2423   },\r
2424   {\r
2425     "id": "b1d5af05.b8b6a",\r
2426     "type": "returnFailure",\r
2427     "name": "return failure",\r
2428     "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
2429     "comments": "",\r
2430     "x": 3708.9625091552734,\r
2431     "y": 2099.4264068603516,\r
2432     "z": "c7b9cd35.bfac88",\r
2433     "wires": []\r
2434   },\r
2435   {\r
2436     "id": "c5461a06.0ba95",\r
2437     "type": "returnFailure",\r
2438     "name": "return failure",\r
2439     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
2440     "comments": "",\r
2441     "x": 3712.900131225586,\r
2442     "y": 2143.566635131836,\r
2443     "z": "c7b9cd35.bfac88",\r
2444     "wires": []\r
2445   },\r
2446   {\r
2447     "id": "931d0e50.a84728",\r
2448     "type": "execute",\r
2449     "name": "execute split tp-id to get pnf-name",\r
2450     "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
2451     "comments": "",\r
2452     "outputs": 1,\r
2453     "x": 4004.900131225586,\r
2454     "y": 2056.5667572021484,\r
2455     "z": "c7b9cd35.bfac88",\r
2456     "wires": [\r
2457       [\r
2458         "ff2f7e35.94528",\r
2459         "ccece71a.073de8"\r
2460       ]\r
2461     ]\r
2462   },\r
2463   {\r
2464     "id": "ccece71a.073de8",\r
2465     "type": "failure",\r
2466     "name": "success",\r
2467     "xml": "<outcome value='success'>\n",\r
2468     "comments": "",\r
2469     "outputs": 1,\r
2470     "x": 4227.900131225586,\r
2471     "y": 2011.5667572021484,\r
2472     "z": "c7b9cd35.bfac88",\r
2473     "wires": [\r
2474       [\r
2475         "c18c40eb.b59cb8"\r
2476       ]\r
2477     ]\r
2478   },\r
2479   {\r
2480     "id": "ff2f7e35.94528",\r
2481     "type": "failure",\r
2482     "name": "failure",\r
2483     "xml": "<outcome value='failure'>\n",\r
2484     "comments": "",\r
2485     "outputs": 1,\r
2486     "x": 4229.900131225586,\r
2487     "y": 2075.5667572021484,\r
2488     "z": "c7b9cd35.bfac88",\r
2489     "wires": [\r
2490       [\r
2491         "a47e6ec9.683da"\r
2492       ]\r
2493     ]\r
2494   },\r
2495   {\r
2496     "id": "a47e6ec9.683da",\r
2497     "type": "returnFailure",\r
2498     "name": "return failure",\r
2499     "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
2500     "comments": "",\r
2501     "x": 4388.900131225586,\r
2502     "y": 2094.5667572021484,\r
2503     "z": "c7b9cd35.bfac88",\r
2504     "wires": []\r
2505   },\r
2506   {\r
2507     "id": "c18c40eb.b59cb8",\r
2508     "type": "block",\r
2509     "name": "block : atomic",\r
2510     "xml": "<block atomic=\"true\">",\r
2511     "atomic": "true",\r
2512     "outputs": 1,\r
2513     "x": 4392.900131225586,\r
2514     "y": 2008.5667572021484,\r
2515     "z": "c7b9cd35.bfac88",\r
2516     "wires": [\r
2517       [\r
2518         "50191e6c.286e58",\r
2519         "e564295c.7502a8"\r
2520       ]\r
2521     ]\r
2522   },\r
2523   {\r
2524     "id": "37ff3aef.9a54ee",\r
2525     "type": "save",\r
2526     "name": "get p-interface-dst from aai",\r
2527     "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
2528     "comments": "",\r
2529     "outputs": 1,\r
2530     "x": 3317.900131225586,\r
2531     "y": 2088.566635131836,\r
2532     "z": "c7b9cd35.bfac88",\r
2533     "wires": [\r
2534       [\r
2535         "62a0ff40.3fa718",\r
2536         "a9db3cf5.8c98a8",\r
2537         "e64b0ffd.d5764"\r
2538       ]\r
2539     ]\r
2540   },\r
2541   {\r
2542     "id": "e2a5ba2c.d267c",\r
2543     "type": "comment",\r
2544     "name": "Question?",\r
2545     "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
2546     "comments": "",\r
2547     "x": 3278.900131225586,\r
2548     "y": 2032.566635131836,\r
2549     "z": "c7b9cd35.bfac88",\r
2550     "wires": []\r
2551   },\r
2552   {\r
2553     "id": "3ceacdf9.dad772",\r
2554     "type": "execute",\r
2555     "name": "execute split tp-id to get pnf-name",\r
2556     "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
2557     "comments": "",\r
2558     "outputs": 1,\r
2559     "x": 3337.900131225586,\r
2560     "y": 1828.566635131836,\r
2561     "z": "c7b9cd35.bfac88",\r
2562     "wires": [\r
2563       [\r
2564         "fc191473.db2cb8",\r
2565         "44d4fd2b.8896cc"\r
2566       ]\r
2567     ]\r
2568   },\r
2569   {\r
2570     "id": "44d4fd2b.8896cc",\r
2571     "type": "failure",\r
2572     "name": "success",\r
2573     "xml": "<outcome value='success'>\n",\r
2574     "comments": "",\r
2575     "outputs": 1,\r
2576     "x": 3560.900131225586,\r
2577     "y": 1814.566635131836,\r
2578     "z": "c7b9cd35.bfac88",\r
2579     "wires": [\r
2580       [\r
2581         "e4dd083d.cd18f8"\r
2582       ]\r
2583     ]\r
2584   },\r
2585   {\r
2586     "id": "fc191473.db2cb8",\r
2587     "type": "failure",\r
2588     "name": "failure",\r
2589     "xml": "<outcome value='failure'>\n",\r
2590     "comments": "",\r
2591     "outputs": 1,\r
2592     "x": 3562.900131225586,\r
2593     "y": 1847.566635131836,\r
2594     "z": "c7b9cd35.bfac88",\r
2595     "wires": [\r
2596       [\r
2597         "28eac456.f04cbc"\r
2598       ]\r
2599     ]\r
2600   },\r
2601   {\r
2602     "id": "28eac456.f04cbc",\r
2603     "type": "returnFailure",\r
2604     "name": "return failure",\r
2605     "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
2606     "comments": "",\r
2607     "x": 3705.900131225586,\r
2608     "y": 1844.566635131836,\r
2609     "z": "c7b9cd35.bfac88",\r
2610     "wires": []\r
2611   },\r
2612   {\r
2613     "id": "e4dd083d.cd18f8",\r
2614     "type": "block",\r
2615     "name": "block : atomic",\r
2616     "xml": "<block atomic=\"true\">",\r
2617     "atomic": "true",\r
2618     "outputs": 1,\r
2619     "x": 3708.900131225586,\r
2620     "y": 1807.566635131836,\r
2621     "z": "c7b9cd35.bfac88",\r
2622     "wires": [\r
2623       [\r
2624         "c8368cdf.b15f18",\r
2625         "26325ab5.37c516"\r
2626       ]\r
2627     ]\r
2628   },\r
2629   {\r
2630     "id": "c8368cdf.b15f18",\r
2631     "type": "set",\r
2632     "name": "set pnf-name",\r
2633     "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
2634     "comments": "",\r
2635     "x": 3902.900131225586,\r
2636     "y": 1810.5667572021484,\r
2637     "z": "c7b9cd35.bfac88",\r
2638     "wires": []\r
2639   },\r
2640   {\r
2641     "id": "4385be6.d4f41c",\r
2642     "type": "for",\r
2643     "name": "for each relationship",\r
2644     "xml": "<for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship_length`' >\n",\r
2645     "comments": "",\r
2646     "outputs": 1,\r
2647     "x": 3955.900100708008,\r
2648     "y": 2179.566604614258,\r
2649     "z": "c7b9cd35.bfac88",\r
2650     "wires": [\r
2651       [\r
2652         "ab5afaa2.b8a2e"\r
2653       ]\r
2654     ]\r
2655   },\r
2656   {\r
2657     "id": "ab5afaa2.b8a2e",\r
2658     "type": "switchNode",\r
2659     "name": "switch related-to",\r
2660     "xml": "<switch test='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].related-to`'>\n",\r
2661     "comments": "",\r
2662     "outputs": 1,\r
2663     "x": 4161.900100708008,\r
2664     "y": 2179.566604614258,\r
2665     "z": "c7b9cd35.bfac88",\r
2666     "wires": [\r
2667       [\r
2668         "8b90a37d.df48a8"\r
2669       ]\r
2670     ]\r
2671   },\r
2672   {\r
2673     "id": "8b90a37d.df48a8",\r
2674     "type": "outcome",\r
2675     "name": "tunnel-termination-point",\r
2676     "xml": "<outcome value='tunnel-termination-point'>\n",\r
2677     "comments": "",\r
2678     "outputs": 1,\r
2679     "x": 4379.185745239258,\r
2680     "y": 2178.388381958008,\r
2681     "z": "c7b9cd35.bfac88",\r
2682     "wires": [\r
2683       [\r
2684         "9497250f.2d9438"\r
2685       ]\r
2686     ]\r
2687   },\r
2688   {\r
2689     "id": "26325ab5.37c516",\r
2690     "type": "get-resource",\r
2691     "name": "get-resource src pnf",\r
2692     "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
2693     "comments": "",\r
2694     "outputs": 1,\r
2695     "x": 3924.900131225586,\r
2696     "y": 1878.5667572021484,\r
2697     "z": "c7b9cd35.bfac88",\r
2698     "wires": [\r
2699       [\r
2700         "572475c6.9df474",\r
2701         "8a4bcee9.a6e838",\r
2702         "52414e68.698aa8"\r
2703       ]\r
2704     ]\r
2705   },\r
2706   {\r
2707     "id": "572475c6.9df474",\r
2708     "type": "success",\r
2709     "name": "success",\r
2710     "xml": "<outcome value='success'>\n",\r
2711     "comments": "",\r
2712     "outputs": 1,\r
2713     "x": 4120.400253295898,\r
2714     "y": 1830.5667572021484,\r
2715     "z": "c7b9cd35.bfac88",\r
2716     "wires": [\r
2717       [\r
2718         "cc04a6ba.577058"\r
2719       ]\r
2720     ]\r
2721   },\r
2722   {\r
2723     "id": "8a4bcee9.a6e838",\r
2724     "type": "not-found",\r
2725     "name": "not-found",\r
2726     "xml": "<outcome value='not-found'>\n",\r
2727     "comments": "",\r
2728     "outputs": 1,\r
2729     "x": 4112.400253295898,\r
2730     "y": 1885.5667572021484,\r
2731     "z": "c7b9cd35.bfac88",\r
2732     "wires": [\r
2733       [\r
2734         "5bcad340.b7a94c"\r
2735       ]\r
2736     ]\r
2737   },\r
2738   {\r
2739     "id": "52414e68.698aa8",\r
2740     "type": "other",\r
2741     "name": "other",\r
2742     "xml": "<outcome value='Other'>\n",\r
2743     "comments": "",\r
2744     "outputs": 1,\r
2745     "x": 4117.400253295898,\r
2746     "y": 1942.5667572021484,\r
2747     "z": "c7b9cd35.bfac88",\r
2748     "wires": [\r
2749       [\r
2750         "78c91f5c.6a81a"\r
2751       ]\r
2752     ]\r
2753   },\r
2754   {\r
2755     "id": "78c91f5c.6a81a",\r
2756     "type": "returnFailure",\r
2757     "name": "return failure",\r
2758     "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
2759     "comments": "",\r
2760     "x": 4269.400253295898,\r
2761     "y": 1943.5667572021484,\r
2762     "z": "c7b9cd35.bfac88",\r
2763     "wires": []\r
2764   },\r
2765   {\r
2766     "id": "5bcad340.b7a94c",\r
2767     "type": "returnFailure",\r
2768     "name": "return failure",\r
2769     "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
2770     "comments": "",\r
2771     "x": 4280.400253295898,\r
2772     "y": 1888.5667572021484,\r
2773     "z": "c7b9cd35.bfac88",\r
2774     "wires": []\r
2775   },\r
2776   {\r
2777     "id": "cc04a6ba.577058",\r
2778     "type": "block",\r
2779     "name": "block",\r
2780     "xml": "<block>\n",\r
2781     "atomic": "false",\r
2782     "comments": "",\r
2783     "outputs": 1,\r
2784     "x": 4264.782577514648,\r
2785     "y": 1828.222427368164,\r
2786     "z": "c7b9cd35.bfac88",\r
2787     "wires": [\r
2788       [\r
2789         "b056f70a.5ef0e"\r
2790       ]\r
2791     ]\r
2792   },\r
2793   {\r
2794     "id": "50191e6c.286e58",\r
2795     "type": "set",\r
2796     "name": "set ltpId",\r
2797     "xml": "<set>\n<parameter name='tmp.dst.ltpId' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n",\r
2798     "comments": "",\r
2799     "x": 4562.900131225586,\r
2800     "y": 1969.5667572021484,\r
2801     "z": "c7b9cd35.bfac88",\r
2802     "wires": []\r
2803   },\r
2804   {\r
2805     "id": "e564295c.7502a8",\r
2806     "type": "set",\r
2807     "name": "set pnf-name",\r
2808     "xml": "<set>\n<parameter name='tmp.dst.pnf-name' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n",\r
2809     "comments": "",\r
2810     "x": 4563.900131225586,\r
2811     "y": 2074.5667572021484,\r
2812     "z": "c7b9cd35.bfac88",\r
2813     "wires": []\r
2814   },\r
2815   {\r
2816     "id": "4a5f1f34.b170c",\r
2817     "type": "comment",\r
2818     "name": "TODO: FIXME",\r
2819     "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
2820     "comments": "",\r
2821     "x": 4558.900131225586,\r
2822     "y": 2023.5667572021484,\r
2823     "z": "c7b9cd35.bfac88",\r
2824     "wires": []\r
2825   },\r
2826   {\r
2827     "id": "9497250f.2d9438",\r
2828     "type": "block",\r
2829     "name": "block : atomic",\r
2830     "xml": "<block atomic=\"true\">",\r
2831     "atomic": "true",\r
2832     "outputs": 1,\r
2833     "x": 4586.017288208008,\r
2834     "y": 2167.9070587158203,\r
2835     "z": "c7b9cd35.bfac88",\r
2836     "wires": [\r
2837       [\r
2838         "dc5203d6.63ee88",\r
2839         "bfaf928b.d789b",\r
2840         "75ef4dfa.4963fc"\r
2841       ]\r
2842     ]\r
2843   },\r
2844   {\r
2845     "id": "dc5203d6.63ee88",\r
2846     "type": "set",\r
2847     "name": "set destination ttp-id",\r
2848     "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
2849     "comments": "",\r
2850     "x": 4801.017288208008,\r
2851     "y": 2129.9070587158203,\r
2852     "z": "c7b9cd35.bfac88",\r
2853     "wires": []\r
2854   },\r
2855   {\r
2856     "id": "bfaf928b.d789b",\r
2857     "type": "get-resource",\r
2858     "name": "get-resource src TTP",\r
2859     "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
2860     "comments": "",\r
2861     "outputs": 1,\r
2862     "x": 4798.017288208008,\r
2863     "y": 2168.9070587158203,\r
2864     "z": "c7b9cd35.bfac88",\r
2865     "wires": [\r
2866       [\r
2867         "6dd4b7bc.60078"\r
2868       ]\r
2869     ]\r
2870   },\r
2871   {\r
2872     "id": "75ef4dfa.4963fc",\r
2873     "type": "break",\r
2874     "name": "break",\r
2875     "xml": "<break>\n",\r
2876     "comments": "",\r
2877     "x": 4753.517288208008,\r
2878     "y": 2210.9070587158203,\r
2879     "z": "c7b9cd35.bfac88",\r
2880     "wires": []\r
2881   },\r
2882   {\r
2883     "id": "6dd4b7bc.60078",\r
2884     "type": "success",\r
2885     "name": "success",\r
2886     "xml": "<outcome value='success'>\n",\r
2887     "comments": "",\r
2888     "outputs": 1,\r
2889     "x": 4978.517288208008,\r
2890     "y": 2167.9070587158203,\r
2891     "z": "c7b9cd35.bfac88",\r
2892     "wires": [\r
2893       [\r
2894         "f825fb77.fb7bc8"\r
2895       ]\r
2896     ]\r
2897   },\r
2898   {\r
2899     "id": "f825fb77.fb7bc8",\r
2900     "type": "block",\r
2901     "name": "block : atomic",\r
2902     "xml": "<block atomic=\"true\">",\r
2903     "atomic": "true",\r
2904     "outputs": 1,\r
2905     "x": 5136.517288208008,\r
2906     "y": 2167.9070587158203,\r
2907     "z": "c7b9cd35.bfac88",\r
2908     "wires": [\r
2909       [\r
2910         "aa2ab587.72eca"\r
2911       ]\r
2912     ]\r
2913   },\r
2914   {\r
2915     "id": "aa2ab587.72eca",\r
2916     "type": "set",\r
2917     "name": "set destination tunnel tp ip",\r
2918     "xml": "<set>\n<parameter name='destination.tunnel-tp-id' value=\"`$tmp.aai.destination-ttp.tunnel-tp-id`\" />\n",\r
2919     "comments": "",\r
2920     "x": 5343.517288208008,\r
2921     "y": 2167.9070587158203,\r
2922     "z": "c7b9cd35.bfac88",\r
2923     "wires": []\r
2924   },\r
2925   {\r
2926     "id": "5ec77bbd.698654",\r
2927     "type": "outcome",\r
2928     "name": "esr-thirdparty-sdnc",\r
2929     "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
2930     "comments": "",\r
2931     "outputs": 1,\r
2932     "x": 4846.900131225586,\r
2933     "y": 1846.5667572021484,\r
2934     "z": "c7b9cd35.bfac88",\r
2935     "wires": [\r
2936       [\r
2937         "ef66532c.d6746"\r
2938       ]\r
2939     ]\r
2940   },\r
2941   {\r
2942     "id": "ef66532c.d6746",\r
2943     "type": "block",\r
2944     "name": "block : atomic",\r
2945     "xml": "<block atomic=\"true\">",\r
2946     "atomic": "true",\r
2947     "outputs": 1,\r
2948     "x": 5023.900131225586,\r
2949     "y": 1838.5667572021484,\r
2950     "z": "c7b9cd35.bfac88",\r
2951     "wires": [\r
2952       [\r
2953         "f7a2f11b.7a291",\r
2954         "d2b30e12.01e548"\r
2955       ]\r
2956     ]\r
2957   },\r
2958   {\r
2959     "id": "b056f70a.5ef0e",\r
2960     "type": "for",\r
2961     "name": "for each relationship",\r
2962     "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",\r
2963     "comments": "",\r
2964     "outputs": 1,\r
2965     "x": 4448.900131225586,\r
2966     "y": 1842.5667572021484,\r
2967     "z": "c7b9cd35.bfac88",\r
2968     "wires": [\r
2969       [\r
2970         "658c9b9.fce64e4"\r
2971       ]\r
2972     ]\r
2973   },\r
2974   {\r
2975     "id": "658c9b9.fce64e4",\r
2976     "type": "switchNode",\r
2977     "name": "switch related-to",\r
2978     "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",\r
2979     "comments": "",\r
2980     "outputs": 1,\r
2981     "x": 4643.900131225586,\r
2982     "y": 1842.5667572021484,\r
2983     "z": "c7b9cd35.bfac88",\r
2984     "wires": [\r
2985       [\r
2986         "5ec77bbd.698654",\r
2987         "d91be682.fd9ed8"\r
2988       ]\r
2989     ]\r
2990   },\r
2991   {\r
2992     "id": "d2b30e12.01e548",\r
2993     "type": "execute",\r
2994     "name": "get esr-thirdparty-sdnc",\r
2995     "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
2996     "comments": "",\r
2997     "outputs": 1,\r
2998     "x": 5231.900131225586,\r
2999     "y": 1845.5667572021484,\r
3000     "z": "c7b9cd35.bfac88",\r
3001     "wires": [\r
3002       [\r
3003         "5cd3941f.991a64",\r
3004         "72be6080.49369",\r
3005         "27b21fad.3c3a98"\r
3006       ]\r
3007     ]\r
3008   },\r
3009   {\r
3010     "id": "a895224b.6a3d58",\r
3011     "type": "block",\r
3012     "name": "block : atomic",\r
3013     "xml": "<block atomic=\"true\">",\r
3014     "atomic": "true",\r
3015     "outputs": 1,\r
3016     "x": 5025.900131225586,\r
3017     "y": 1911.5667572021484,\r
3018     "z": "c7b9cd35.bfac88",\r
3019     "wires": [\r
3020       [\r
3021         "de5c0fa7.2ddfe8"\r
3022       ]\r
3023     ]\r
3024   },\r
3025   {\r
3026     "id": "d91be682.fd9ed8",\r
3027     "type": "outcome",\r
3028     "name": "network-resource",\r
3029     "xml": "<outcome value='network-resource'>",\r
3030     "comments": "",\r
3031     "outputs": 1,\r
3032     "x": 4848.900131225586,\r
3033     "y": 1919.5667572021484,\r
3034     "z": "c7b9cd35.bfac88",\r
3035     "wires": [\r
3036       [\r
3037         "a895224b.6a3d58"\r
3038       ]\r
3039     ]\r
3040   },\r
3041   {\r
3042     "id": "f7a2f11b.7a291",\r
3043     "type": "set",\r
3044     "name": "set esr-thirdparty-sdnc domainB id",\r
3045     "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
3046     "comments": "",\r
3047     "x": 5261.900131225586,\r
3048     "y": 1793.5667572021484,\r
3049     "z": "c7b9cd35.bfac88",\r
3050     "wires": []\r
3051   },\r
3052   {\r
3053     "id": "de5c0fa7.2ddfe8",\r
3054     "type": "set",\r
3055     "name": "set domainB ethernet layer network-id",\r
3056     "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
3057     "comments": "",\r
3058     "x": 5260.900131225586,\r
3059     "y": 2035.5667572021484,\r
3060     "z": "c7b9cd35.bfac88",\r
3061     "wires": []\r
3062   },\r
3063   {\r
3064     "id": "5cd3941f.991a64",\r
3065     "type": "success",\r
3066     "name": "success",\r
3067     "xml": "<outcome value='success'>\n",\r
3068     "comments": "",\r
3069     "outputs": 1,\r
3070     "x": 5441.900131225586,\r
3071     "y": 1836.5667572021484,\r
3072     "z": "c7b9cd35.bfac88",\r
3073     "wires": [\r
3074       [\r
3075         "2d963acb.7812d6"\r
3076       ]\r
3077     ]\r
3078   },\r
3079   {\r
3080     "id": "72be6080.49369",\r
3081     "type": "not-found",\r
3082     "name": "not-found",\r
3083     "xml": "<outcome value='not-found'>\n",\r
3084     "comments": "",\r
3085     "outputs": 1,\r
3086     "x": 5433.900131225586,\r
3087     "y": 1891.5667572021484,\r
3088     "z": "c7b9cd35.bfac88",\r
3089     "wires": [\r
3090       [\r
3091         "7809e6f0.3ba7a"\r
3092       ]\r
3093     ]\r
3094   },\r
3095   {\r
3096     "id": "27b21fad.3c3a98",\r
3097     "type": "other",\r
3098     "name": "other",\r
3099     "xml": "<outcome value='Other'>\n",\r
3100     "comments": "",\r
3101     "outputs": 1,\r
3102     "x": 5438.900131225586,\r
3103     "y": 1948.5667572021484,\r
3104     "z": "c7b9cd35.bfac88",\r
3105     "wires": [\r
3106       [\r
3107         "76fc1345.ebf534"\r
3108       ]\r
3109     ]\r
3110   },\r
3111   {\r
3112     "id": "76fc1345.ebf534",\r
3113     "type": "returnFailure",\r
3114     "name": "return failure",\r
3115     "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
3116     "comments": "",\r
3117     "x": 5590.900131225586,\r
3118     "y": 1949.5667572021484,\r
3119     "z": "c7b9cd35.bfac88",\r
3120     "wires": []\r
3121   },\r
3122   {\r
3123     "id": "7809e6f0.3ba7a",\r
3124     "type": "returnFailure",\r
3125     "name": "return failure",\r
3126     "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
3127     "comments": "",\r
3128     "x": 5601.900131225586,\r
3129     "y": 1894.5667572021484,\r
3130     "z": "c7b9cd35.bfac88",\r
3131     "wires": []\r
3132   },\r
3133   {\r
3134     "id": "2d963acb.7812d6",\r
3135     "type": "block",\r
3136     "name": "block",\r
3137     "xml": "<block>\n",\r
3138     "atomic": "false",\r
3139     "comments": "",\r
3140     "outputs": 1,\r
3141     "x": 5586.282455444336,\r
3142     "y": 1834.222427368164,\r
3143     "z": "c7b9cd35.bfac88",\r
3144     "wires": [\r
3145       [\r
3146         "3e96d581.6be972"\r
3147       ]\r
3148     ]\r
3149   },\r
3150   {\r
3151     "id": "3e96d581.6be972",\r
3152     "type": "set",\r
3153     "name": "set controller domainB data",\r
3154     "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
3155     "comments": "",\r
3156     "x": 5800.900131225586,\r
3157     "y": 1830.5667572021484,\r
3158     "z": "c7b9cd35.bfac88",\r
3159     "wires": []\r
3160   },\r
3161   {\r
3162     "id": "a62852b2.29136",\r
3163     "type": "set",\r
3164     "name": "set LEAF stuff",\r
3165     "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 + '-' + $tmp.aai.network-route-A.logical-interface-id`\" />\n<parameter name='tmp.LEAF.uni-tp-id' value=\"`$tmp.src.ltpId`\" />\n",\r
3166     "comments": "",\r
3167     "x": 3285.566635131836,\r
3168     "y": 1649.566635131836,\r
3169     "z": "c7b9cd35.bfac88",\r
3170     "wires": []\r
3171   },\r
3172   {\r
3173     "id": "906a6d5d.cfc198",\r
3174     "type": "comment",\r
3175     "name": "This is it (should be)",\r
3176     "info": "",\r
3177     "comments": "",\r
3178     "x": 4581.566635131836,\r
3179     "y": 623.5666351318359,\r
3180     "z": "c7b9cd35.bfac88",\r
3181     "wires": []\r
3182   },\r
3183   {\r
3184     "id": "c5fcfc8e.70af78",\r
3185     "type": "comment",\r
3186     "name": "This is it (should be)",\r
3187     "info": "",\r
3188     "comments": "",\r
3189     "x": 4591.566665649414,\r
3190     "y": 819.5666656494141,\r
3191     "z": "c7b9cd35.bfac88",\r
3192     "wires": []\r
3193   },\r
3194   {\r
3195     "id": "e4c9b14e.e493e",\r
3196     "type": "set",\r
3197     "name": "set ROOT stuff",\r
3198     "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 + '-' + $tmp.aai.network-route-B.logical-interface-id`\" />\n<parameter name='tmp.ROOT.uni-tp-id' value=\"`$tmp.dst.ltpId`\" />\n",\r
3199     "comments": "",\r
3200     "x": 3288.566604614258,\r
3201     "y": 2157.566604614258,\r
3202     "z": "c7b9cd35.bfac88",\r
3203     "wires": []\r
3204   },\r
3205   {\r
3206     "id": "a5e91f89.51e28",\r
3207     "type": "call",\r
3208     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-logic",\r
3209     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-logic' mode='sync' >\n\n",\r
3210     "comments": "",\r
3211     "outputs": 1,\r
3212     "x": 3425.566665649414,\r
3213     "y": 2813.566665649414,\r
3214     "z": "c7b9cd35.bfac88",\r
3215     "wires": [\r
3216       []\r
3217     ]\r
3218   },\r
3219   {\r
3220     "id": "6a1545ce.c6f074",\r
3221     "type": "switchNode",\r
3222     "name": "switch found-middle-man?",\r
3223     "xml": "<switch test='`$found-middle-man`'>\n",\r
3224     "comments": "",\r
3225     "outputs": 1,\r
3226     "x": 3302.566665649414,\r
3227     "y": 2923.566665649414,\r
3228     "z": "c7b9cd35.bfac88",\r
3229     "wires": [\r
3230       [\r
3231         "2a58524.cf6ab2e",\r
3232         "b22f43e3.b228e"\r
3233       ]\r
3234     ]\r
3235   },\r
3236   {\r
3237     "id": "2a58524.cf6ab2e",\r
3238     "type": "outcomeFalse",\r
3239     "name": "false",\r
3240     "xml": "<outcome value='false'>\n",\r
3241     "comments": "",\r
3242     "outputs": 1,\r
3243     "x": 3486.566665649414,\r
3244     "y": 2902.566665649414,\r
3245     "z": "c7b9cd35.bfac88",\r
3246     "wires": [\r
3247       [\r
3248         "1fd47368.eaee3d"\r
3249       ]\r
3250     ]\r
3251   },\r
3252   {\r
3253     "id": "b22f43e3.b228e",\r
3254     "type": "outcomeTrue",\r
3255     "name": "true",\r
3256     "xml": "<outcome value='true'>\n",\r
3257     "comments": "",\r
3258     "outputs": 1,\r
3259     "x": 3378.566665649414,\r
3260     "y": 5080.566665649414,\r
3261     "z": "c7b9cd35.bfac88",\r
3262     "wires": [\r
3263       [\r
3264         "bb1800d1.b22838"\r
3265       ]\r
3266     ]\r
3267   },\r
3268   {\r
3269     "id": "bb1800d1.b22838",\r
3270     "type": "block",\r
3271     "name": "block : atomic",\r
3272     "xml": "<block atomic='true'>",\r
3273     "atomic": "true",\r
3274     "comments": "",\r
3275     "outputs": 1,\r
3276     "x": 3533.566665649414,\r
3277     "y": 5073.566665649414,\r
3278     "z": "c7b9cd35.bfac88",\r
3279     "wires": [\r
3280       [\r
3281         "eb692208.605d48",\r
3282         "fa1a129b.8e1e58",\r
3283         "8f8ab353.277fd8",\r
3284         "e967635e.d5f898",\r
3285         "a7e951fd.34174",\r
3286         "147222b6.72d4a5"\r
3287       ]\r
3288     ]\r
3289   },\r
3290   {\r
3291     "id": "1fd47368.eaee3d",\r
3292     "type": "block",\r
3293     "name": "block : atomic",\r
3294     "xml": "<block atomic='true'>",\r
3295     "atomic": "true",\r
3296     "comments": "",\r
3297     "outputs": 1,\r
3298     "x": 3629.566665649414,\r
3299     "y": 2902.566665649414,\r
3300     "z": "c7b9cd35.bfac88",\r
3301     "wires": [\r
3302       [\r
3303         "13be4810.27374",\r
3304         "2088078d.cb1e2",\r
3305         "e3bae41.89a4a98",\r
3306         "ed9405a6.bcc818",\r
3307         "fe194fc5.986bf",\r
3308         "c94ba2a6.6d9dc",\r
3309         "49793ec.cd6ce4",\r
3310         "5e8a3143.8db73",\r
3311         "faf103f5.4614f8",\r
3312         "88431892.8e89b8",\r
3313         "cac051ff.1079b",\r
3314         "8ab931f2.10742",\r
3315         "38387e07.eee06a",\r
3316         "c16c558d.bd7fa8",\r
3317         "773efcf1.a16054",\r
3318         "4610b0f7.2e9108",\r
3319         "9860b974.593a3",\r
3320         "e82d41b7.567df",\r
3321         "763bc2b5.d71f9c",\r
3322         "3cc87f7.3864a",\r
3323         "5fefabc6.f62f5c",\r
3324         "dbd95dbb.cf097"\r
3325       ]\r
3326     ]\r
3327   },\r
3328   {\r
3329     "id": "faf103f5.4614f8",\r
3330     "type": "execute",\r
3331     "name": "execute UUID generator for connectivity domainB",\r
3332     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainB-uuid\"/>\n",\r
3333     "comments": "",\r
3334     "outputs": 1,\r
3335     "x": 3939.566665649414,\r
3336     "y": 3217.566665649414,\r
3337     "z": "c7b9cd35.bfac88",\r
3338     "wires": [\r
3339       []\r
3340     ]\r
3341   },\r
3342   {\r
3343     "id": "13be4810.27374",\r
3344     "type": "save",\r
3345     "name": "save connectivity resource in AAI",\r
3346     "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='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
3347     "comments": "",\r
3348     "outputs": 1,\r
3349     "x": 3887.566665649414,\r
3350     "y": 3259.566665649414,\r
3351     "z": "c7b9cd35.bfac88",\r
3352     "wires": [\r
3353       []\r
3354     ]\r
3355   },\r
3356   {\r
3357     "id": "2088078d.cb1e2",\r
3358     "type": "save",\r
3359     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
3360     "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
3361     "comments": "",\r
3362     "outputs": 1,\r
3363     "x": 4016.566665649414,\r
3364     "y": 3301.566665649414,\r
3365     "z": "c7b9cd35.bfac88",\r
3366     "wires": [\r
3367       []\r
3368     ]\r
3369   },\r
3370   {\r
3371     "id": "c56513f7.9839c8",\r
3372     "type": "comment",\r
3373     "name": "Create ROOT connectivity",\r
3374     "info": "",\r
3375     "comments": "",\r
3376     "x": 3862.566665649414,\r
3377     "y": 3176.566665649414,\r
3378     "z": "c7b9cd35.bfac88",\r
3379     "wires": []\r
3380   },\r
3381   {\r
3382     "id": "cb0612e7.fab918",\r
3383     "type": "comment",\r
3384     "name": "create middle man connectivity and ...",\r
3385     "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
3386     "comments": "",\r
3387     "x": 4387.566665649414,\r
3388     "y": 3697.566665649414,\r
3389     "z": "c7b9cd35.bfac88",\r
3390     "wires": []\r
3391   },\r
3392   {\r
3393     "id": "e3bae41.89a4a98",\r
3394     "type": "execute",\r
3395     "name": "execute UUID generator for connectivity middle-man",\r
3396     "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
3397     "comments": "",\r
3398     "outputs": 1,\r
3399     "x": 3951.566665649414,\r
3400     "y": 3736.566665649414,\r
3401     "z": "c7b9cd35.bfac88",\r
3402     "wires": [\r
3403       []\r
3404     ]\r
3405   },\r
3406   {\r
3407     "id": "ed9405a6.bcc818",\r
3408     "type": "save",\r
3409     "name": "save connectivity resource in AAI",\r
3410     "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='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
3411     "comments": "",\r
3412     "outputs": 1,\r
3413     "x": 3899.566665649414,\r
3414     "y": 3787.566665649414,\r
3415     "z": "c7b9cd35.bfac88",\r
3416     "wires": [\r
3417       []\r
3418     ]\r
3419   },\r
3420   {\r
3421     "id": "fe194fc5.986bf",\r
3422     "type": "save",\r
3423     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
3424     "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
3425     "comments": "",\r
3426     "outputs": 1,\r
3427     "x": 4035.566665649414,\r
3428     "y": 3834.566665649414,\r
3429     "z": "c7b9cd35.bfac88",\r
3430     "wires": [\r
3431       []\r
3432     ]\r
3433   },\r
3434   {\r
3435     "id": "3a844032.bf9ac",\r
3436     "type": "comment",\r
3437     "name": "Create MIDDLE-MAN connectivity",\r
3438     "info": "",\r
3439     "comments": "",\r
3440     "x": 3892.566665649414,\r
3441     "y": 3696.566665649414,\r
3442     "z": "c7b9cd35.bfac88",\r
3443     "wires": []\r
3444   },\r
3445   {\r
3446     "id": "debaf07d.db6d5",\r
3447     "type": "block",\r
3448     "name": "block : atomic",\r
3449     "xml": "<block atomic='true'>",\r
3450     "atomic": "true",\r
3451     "comments": "",\r
3452     "outputs": 1,\r
3453     "x": 4322.566665649414,\r
3454     "y": 3893.566665649414,\r
3455     "z": "c7b9cd35.bfac88",\r
3456     "wires": [\r
3457       []\r
3458     ]\r
3459   },\r
3460   {\r
3461     "id": "c94ba2a6.6d9dc",\r
3462     "type": "save",\r
3463     "name": "get middle-man connectivity from aai",\r
3464     "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
3465     "comments": "",\r
3466     "outputs": 1,\r
3467     "x": 3913.566665649414,\r
3468     "y": 3940.566665649414,\r
3469     "z": "c7b9cd35.bfac88",\r
3470     "wires": [\r
3471       [\r
3472         "34b4bb6d.84f2ec",\r
3473         "39b05e8d.991162",\r
3474         "b7823394.4e1968"\r
3475       ]\r
3476     ]\r
3477   },\r
3478   {\r
3479     "id": "34b4bb6d.84f2ec",\r
3480     "type": "success",\r
3481     "name": "success",\r
3482     "xml": "<outcome value='success'>\n",\r
3483     "comments": "",\r
3484     "outputs": 1,\r
3485     "x": 4160.566665649414,\r
3486     "y": 3894.566665649414,\r
3487     "z": "c7b9cd35.bfac88",\r
3488     "wires": [\r
3489       [\r
3490         "debaf07d.db6d5"\r
3491       ]\r
3492     ]\r
3493   },\r
3494   {\r
3495     "id": "39b05e8d.991162",\r
3496     "type": "not-found",\r
3497     "name": "not-found",\r
3498     "xml": "<outcome value='not-found'>\n",\r
3499     "comments": "",\r
3500     "outputs": 1,\r
3501     "x": 4161.057632446289,\r
3502     "y": 3940.1407012939453,\r
3503     "z": "c7b9cd35.bfac88",\r
3504     "wires": [\r
3505       [\r
3506         "483dd1d6.aa392"\r
3507       ]\r
3508     ]\r
3509   },\r
3510   {\r
3511     "id": "b7823394.4e1968",\r
3512     "type": "failure",\r
3513     "name": "failure",\r
3514     "xml": "<outcome value='failure'>\n",\r
3515     "comments": "",\r
3516     "outputs": 1,\r
3517     "x": 4158.566665649414,\r
3518     "y": 3983.566665649414,\r
3519     "z": "c7b9cd35.bfac88",\r
3520     "wires": [\r
3521       [\r
3522         "59b157ce.93edc"\r
3523       ]\r
3524     ]\r
3525   },\r
3526   {\r
3527     "id": "483dd1d6.aa392",\r
3528     "type": "returnFailure",\r
3529     "name": "return failure",\r
3530     "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
3531     "comments": "",\r
3532     "x": 4323.629043579102,\r
3533     "y": 3940.4264373779297,\r
3534     "z": "c7b9cd35.bfac88",\r
3535     "wires": []\r
3536   },\r
3537   {\r
3538     "id": "59b157ce.93edc",\r
3539     "type": "returnFailure",\r
3540     "name": "return failure",\r
3541     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
3542     "comments": "",\r
3543     "x": 4327.566665649414,\r
3544     "y": 3984.566665649414,\r
3545     "z": "c7b9cd35.bfac88",\r
3546     "wires": []\r
3547   },\r
3548   {\r
3549     "id": "773efcf1.a16054",\r
3550     "type": "save",\r
3551     "name": "save middle-man-conn relationship to connectivity-LEAF, in AAI",\r
3552     "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
3553     "comments": "",\r
3554     "outputs": 1,\r
3555     "x": 3967.566665649414,\r
3556     "y": 4282.566665649414,\r
3557     "z": "c7b9cd35.bfac88",\r
3558     "wires": [\r
3559       []\r
3560     ]\r
3561   },\r
3562   {\r
3563     "id": "4610b0f7.2e9108",\r
3564     "type": "save",\r
3565     "name": "save middle-man-conn relationship to connectivity-ROOT, in AAI",\r
3566     "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
3567     "comments": "",\r
3568     "outputs": 1,\r
3569     "x": 3970.566665649414,\r
3570     "y": 4327.566665649414,\r
3571     "z": "c7b9cd35.bfac88",\r
3572     "wires": [\r
3573       []\r
3574     ]\r
3575   },\r
3576   {\r
3577     "id": "e82d41b7.567df",\r
3578     "type": "save",\r
3579     "name": "save middle-man-conn relationship to UNI-LEAF, in AAI",\r
3580     "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
3581     "comments": "",\r
3582     "outputs": 1,\r
3583     "x": 3962.566665649414,\r
3584     "y": 4055.566665649414,\r
3585     "z": "c7b9cd35.bfac88",\r
3586     "wires": [\r
3587       []\r
3588     ]\r
3589   },\r
3590   {\r
3591     "id": "763bc2b5.d71f9c",\r
3592     "type": "save",\r
3593     "name": "save middle-man-conn relationship to UNI-ROOT, in AAI",\r
3594     "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
3595     "comments": "",\r
3596     "outputs": 1,\r
3597     "x": 3964.566665649414,\r
3598     "y": 4102.566665649414,\r
3599     "z": "c7b9cd35.bfac88",\r
3600     "wires": [\r
3601       []\r
3602     ]\r
3603   },\r
3604   {\r
3605     "id": "e3efee4c.cbd228",\r
3606     "type": "comment",\r
3607     "name": "The following two will be done in F1",\r
3608     "info": "",\r
3609     "comments": "",\r
3610     "x": 3883.566665649414,\r
3611     "y": 4235.566665649414,\r
3612     "z": "c7b9cd35.bfac88",\r
3613     "wires": []\r
3614   },\r
3615   {\r
3616     "id": "a86d756f.b96748",\r
3617     "type": "save",\r
3618     "name": "save middle-man-conn relationship to UNI-LEAF, in AAI",\r
3619     "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
3620     "comments": "",\r
3621     "outputs": 1,\r
3622     "x": 4493.566665649414,\r
3623     "y": 4901.566665649414,\r
3624     "z": "c7b9cd35.bfac88",\r
3625     "wires": [\r
3626       []\r
3627     ]\r
3628   },\r
3629   {\r
3630     "id": "eb692208.605d48",\r
3631     "type": "switchNode",\r
3632     "name": "switch no-pce-call",\r
3633     "xml": "<switch test='`$no-pce-call`'>\n",\r
3634     "comments": "",\r
3635     "outputs": 1,\r
3636     "x": 3748.566665649414,\r
3637     "y": 5054.566665649414,\r
3638     "z": "c7b9cd35.bfac88",\r
3639     "wires": [\r
3640       [\r
3641         "35961804.034dd",\r
3642         "1c6960fb.af77c7"\r
3643       ]\r
3644     ]\r
3645   },\r
3646   {\r
3647     "id": "1c6960fb.af77c7",\r
3648     "type": "outcomeFalse",\r
3649     "name": "false",\r
3650     "xml": "<outcome value='false'>\n",\r
3651     "comments": "",\r
3652     "outputs": 1,\r
3653     "x": 3920.566665649414,\r
3654     "y": 5051.566665649414,\r
3655     "z": "c7b9cd35.bfac88",\r
3656     "wires": [\r
3657       [\r
3658         "44ac8602.f7b438"\r
3659       ]\r
3660     ]\r
3661   },\r
3662   {\r
3663     "id": "35961804.034dd",\r
3664     "type": "outcomeFalse",\r
3665     "name": "true",\r
3666     "xml": "<outcome value='true'>\n",\r
3667     "comments": "",\r
3668     "outputs": 1,\r
3669     "x": 3872.566665649414,\r
3670     "y": 5898.566665649414,\r
3671     "z": "c7b9cd35.bfac88",\r
3672     "wires": [\r
3673       [\r
3674         "e66ef561.f9598"\r
3675       ]\r
3676     ]\r
3677   },\r
3678   {\r
3679     "id": "a7546f8d.e642f8",\r
3680     "type": "comment",\r
3681     "name": "1 --> PCE is needed",\r
3682     "info": "",\r
3683     "comments": "",\r
3684     "x": 3933.566665649414,\r
3685     "y": 5021.566665649414,\r
3686     "z": "c7b9cd35.bfac88",\r
3687     "wires": []\r
3688   },\r
3689   {\r
3690     "id": "7377305c.6344e",\r
3691     "type": "comment",\r
3692     "name": "2 --> no need to call PCE",\r
3693     "info": "",\r
3694     "comments": "",\r
3695     "x": 3943.566665649414,\r
3696     "y": 5856.566665649414,\r
3697     "z": "c7b9cd35.bfac88",\r
3698     "wires": []\r
3699   },\r
3700   {\r
3701     "id": "49793ec.cd6ce4",\r
3702     "type": "call",\r
3703     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-F1",\r
3704     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1' mode='sync' >\n\n",\r
3705     "comments": "",\r
3706     "outputs": 1,\r
3707     "x": 3966.566665649414,\r
3708     "y": 4430.566665649414,\r
3709     "z": "c7b9cd35.bfac88",\r
3710     "wires": [\r
3711       []\r
3712     ]\r
3713   },\r
3714   {\r
3715     "id": "44ac8602.f7b438",\r
3716     "type": "block",\r
3717     "name": "block : atomic",\r
3718     "xml": "<block atomic='true'>",\r
3719     "atomic": "true",\r
3720     "comments": "",\r
3721     "outputs": 1,\r
3722     "x": 4096.566665649414,\r
3723     "y": 5053.566665649414,\r
3724     "z": "c7b9cd35.bfac88",\r
3725     "wires": [\r
3726       [\r
3727         "f2639d5b.9b3268",\r
3728         "eb43383.cb911c8",\r
3729         "b431bc46.f09eb8",\r
3730         "3f007800.f3335",\r
3731         "6651db46.728784",\r
3732         "ec10a332.513d58",\r
3733         "a86d756f.b96748",\r
3734         "128b476.c3c24b9",\r
3735         "b1e27ce1.629f7"\r
3736       ]\r
3737     ]\r
3738   },\r
3739   {\r
3740     "id": "3a4a9e77.4fc502",\r
3741     "type": "comment",\r
3742     "name": "Use the middle-man-conn.eth-srv-name for the LEAF connectivity's eth srv name",\r
3743     "info": "",\r
3744     "comments": "",\r
3745     "x": 5541.566665649414,\r
3746     "y": 4526.566665649414,\r
3747     "z": "c7b9cd35.bfac88",\r
3748     "wires": []\r
3749   },\r
3750   {\r
3751     "id": "f2639d5b.9b3268",\r
3752     "type": "call",\r
3753     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-F1",\r
3754     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1' mode='sync' >\n\n",\r
3755     "comments": "",\r
3756     "outputs": 1,\r
3757     "x": 4474.566665649414,\r
3758     "y": 5556.566665649414,\r
3759     "z": "c7b9cd35.bfac88",\r
3760     "wires": [\r
3761       []\r
3762     ]\r
3763   },\r
3764   {\r
3765     "id": "5e8a3143.8db73",\r
3766     "type": "save",\r
3767     "name": "save connectivityB relationship to UNI-ROOT, in AAI",\r
3768     "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
3769     "comments": "",\r
3770     "outputs": 1,\r
3771     "x": 3945.566665649414,\r
3772     "y": 3430.566665649414,\r
3773     "z": "c7b9cd35.bfac88",\r
3774     "wires": [\r
3775       []\r
3776     ]\r
3777   },\r
3778   {\r
3779     "id": "88431892.8e89b8",\r
3780     "type": "execute",\r
3781     "name": "execute UUID generator for connectivity domainA",\r
3782     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-domainA-uuid\"/>\n",\r
3783     "comments": "",\r
3784     "outputs": 1,\r
3785     "x": 3943.566665649414,\r
3786     "y": 2887.566665649414,\r
3787     "z": "c7b9cd35.bfac88",\r
3788     "wires": [\r
3789       []\r
3790     ]\r
3791   },\r
3792   {\r
3793     "id": "cac051ff.1079b",\r
3794     "type": "save",\r
3795     "name": "save connectivity resource in AAI",\r
3796     "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='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
3797     "comments": "",\r
3798     "outputs": 1,\r
3799     "x": 3891.566665649414,\r
3800     "y": 2935.566665649414,\r
3801     "z": "c7b9cd35.bfac88",\r
3802     "wires": [\r
3803       []\r
3804     ]\r
3805   },\r
3806   {\r
3807     "id": "8ab931f2.10742",\r
3808     "type": "save",\r
3809     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
3810     "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
3811     "comments": "",\r
3812     "outputs": 1,\r
3813     "x": 4019.566665649414,\r
3814     "y": 2982.566665649414,\r
3815     "z": "c7b9cd35.bfac88",\r
3816     "wires": [\r
3817       []\r
3818     ]\r
3819   },\r
3820   {\r
3821     "id": "be22c48f.b88288",\r
3822     "type": "comment",\r
3823     "name": "Create LEAF connectivity",\r
3824     "info": "",\r
3825     "comments": "",\r
3826     "x": 3856.566665649414,\r
3827     "y": 2845.566665649414,\r
3828     "z": "c7b9cd35.bfac88",\r
3829     "wires": []\r
3830   },\r
3831   {\r
3832     "id": "38387e07.eee06a",\r
3833     "type": "save",\r
3834     "name": "save LEAF UNI in AAI",\r
3835     "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='type' value='leaf' />\n<parameter name='data-source' value='`$gfp`' />\n<parameter name='data-owner' value='`$tmp.aai.service-instance.service-instance-id`' />",\r
3836     "comments": "",\r
3837     "outputs": 1,\r
3838     "x": 3853.566665649414,\r
3839     "y": 3073.566665649414,\r
3840     "z": "c7b9cd35.bfac88",\r
3841     "wires": [\r
3842       []\r
3843     ]\r
3844   },\r
3845   {\r
3846     "id": "c16c558d.bd7fa8",\r
3847     "type": "save",\r
3848     "name": "save connectivityA relationship to UNI-LEAF, in AAI",\r
3849     "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
3850     "comments": "",\r
3851     "outputs": 1,\r
3852     "x": 3946.566665649414,\r
3853     "y": 3126.566665649414,\r
3854     "z": "c7b9cd35.bfac88",\r
3855     "wires": [\r
3856       []\r
3857     ]\r
3858   },\r
3859   {\r
3860     "id": "8249248d.fd861",\r
3861     "type": "comment",\r
3862     "name": "Create LEAF UNI",\r
3863     "info": "",\r
3864     "comments": "",\r
3865     "x": 3837.566665649414,\r
3866     "y": 3029.566665649414,\r
3867     "z": "c7b9cd35.bfac88",\r
3868     "wires": []\r
3869   },\r
3870   {\r
3871     "id": "8a8f5ba9.d4da6",\r
3872     "type": "comment",\r
3873     "name": "Create ROOT UNI",\r
3874     "info": "",\r
3875     "comments": "",\r
3876     "x": 3841.566665649414,\r
3877     "y": 3345.566665649414,\r
3878     "z": "c7b9cd35.bfac88",\r
3879     "wires": []\r
3880   },\r
3881   {\r
3882     "id": "3f007800.f3335",\r
3883     "type": "save",\r
3884     "name": "save LEAF UNI in AAI",\r
3885     "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='type' value='leaf' />\n<parameter name='data-source' value='`$gfp`' />\n<parameter name='data-owner' value='`$tmp.aai.service-instance.service-instance-id`' />\n",\r
3886     "comments": "",\r
3887     "outputs": 1,\r
3888     "x": 4410.566665649414,\r
3889     "y": 4534.566665649414,\r
3890     "z": "c7b9cd35.bfac88",\r
3891     "wires": [\r
3892       []\r
3893     ]\r
3894   },\r
3895   {\r
3896     "id": "5bce380a.32d878",\r
3897     "type": "comment",\r
3898     "name": "Create LEAF UNI",\r
3899     "info": "",\r
3900     "comments": "",\r
3901     "x": 4394.566665649414,\r
3902     "y": 4490.566665649414,\r
3903     "z": "c7b9cd35.bfac88",\r
3904     "wires": []\r
3905   },\r
3906   {\r
3907     "id": "1b090d31.1314e3",\r
3908     "type": "comment",\r
3909     "name": "Create LEAF connectivity",\r
3910     "info": "",\r
3911     "comments": "",\r
3912     "x": 5141.566665649414,\r
3913     "y": 4521.566665649414,\r
3914     "z": "c7b9cd35.bfac88",\r
3915     "wires": []\r
3916   },\r
3917   {\r
3918     "id": "c30363c7.dd0dc",\r
3919     "type": "execute",\r
3920     "name": "execute UUID generator for connectivity domainA",\r
3921     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-domainA-uuid\"/>\n",\r
3922     "comments": "",\r
3923     "outputs": 1,\r
3924     "x": 5228.566665649414,\r
3925     "y": 4563.566665649414,\r
3926     "z": "c7b9cd35.bfac88",\r
3927     "wires": [\r
3928       []\r
3929     ]\r
3930   },\r
3931   {\r
3932     "id": "10271018.94b4f8",\r
3933     "type": "save",\r
3934     "name": "save connectivity resource in AAI",\r
3935     "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='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
3936     "comments": "",\r
3937     "outputs": 1,\r
3938     "x": 5176.566665649414,\r
3939     "y": 4611.566665649414,\r
3940     "z": "c7b9cd35.bfac88",\r
3941     "wires": [\r
3942       []\r
3943     ]\r
3944   },\r
3945   {\r
3946     "id": "285754a8.44159c",\r
3947     "type": "save",\r
3948     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
3949     "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
3950     "comments": "",\r
3951     "outputs": 1,\r
3952     "x": 5304.566665649414,\r
3953     "y": 4658.566665649414,\r
3954     "z": "c7b9cd35.bfac88",\r
3955     "wires": [\r
3956       []\r
3957     ]\r
3958   },\r
3959   {\r
3960     "id": "ec10a332.513d58",\r
3961     "type": "save",\r
3962     "name": "save connectivityA relationship to UNI-LEAF, in AAI",\r
3963     "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
3964     "comments": "",\r
3965     "outputs": 1,\r
3966     "x": 4481.566665649414,\r
3967     "y": 4943.566665649414,\r
3968     "z": "c7b9cd35.bfac88",\r
3969     "wires": [\r
3970       []\r
3971     ]\r
3972   },\r
3973   {\r
3974     "id": "572f6814.fa386",\r
3975     "type": "comment",\r
3976     "name": "populate connectivity-B variable in the context map",\r
3977     "info": "",\r
3978     "comments": "",\r
3979     "x": 4464.566665649414,\r
3980     "y": 5005.566665649414,\r
3981     "z": "c7b9cd35.bfac88",\r
3982     "wires": []\r
3983   },\r
3984   {\r
3985     "id": "eb43383.cb911c8",\r
3986     "type": "call",\r
3987     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-ROOT-conn",\r
3988     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-ROOT-conn' mode='sync' >\n\n",\r
3989     "comments": "",\r
3990     "outputs": 1,\r
3991     "x": 4575.566665649414,\r
3992     "y": 5047.566665649414,\r
3993     "z": "c7b9cd35.bfac88",\r
3994     "wires": [\r
3995       []\r
3996     ]\r
3997   },\r
3998   {\r
3999     "id": "8c58cbc3.7f4b88",\r
4000     "type": "set",\r
4001     "name": "set prop.connectivity-domainB-uuid",\r
4002     "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
4003     "comments": "",\r
4004     "x": 5023.566665649414,\r
4005     "y": 5100.566665649414,\r
4006     "z": "c7b9cd35.bfac88",\r
4007     "wires": []\r
4008   },\r
4009   {\r
4010     "id": "be5aff94.f7d12",\r
4011     "type": "save",\r
4012     "name": "save middle-man-conn relationship to UNI-LEAF, in AAI",\r
4013     "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
4014     "comments": "",\r
4015     "outputs": 1,\r
4016     "x": 4333.566665649414,\r
4017     "y": 5798.566665649414,\r
4018     "z": "c7b9cd35.bfac88",\r
4019     "wires": [\r
4020       []\r
4021     ]\r
4022   },\r
4023   {\r
4024     "id": "526f34d0.18befc",\r
4025     "type": "save",\r
4026     "name": "save LEAF UNI in AAI",\r
4027     "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='type' value='leaf' />\n<parameter name='data-source' value='`$gfp`' />\n<parameter name='data-owner' value='`$tmp.aai.service-instance.service-instance-id`' />",\r
4028     "comments": "",\r
4029     "outputs": 1,\r
4030     "x": 4231.566665649414,\r
4031     "y": 5747.566665649414,\r
4032     "z": "c7b9cd35.bfac88",\r
4033     "wires": [\r
4034       []\r
4035     ]\r
4036   },\r
4037   {\r
4038     "id": "6826024b.ca723c",\r
4039     "type": "comment",\r
4040     "name": "Create LEAF UNI",\r
4041     "info": "",\r
4042     "comments": "",\r
4043     "x": 4215.566665649414,\r
4044     "y": 5703.566665649414,\r
4045     "z": "c7b9cd35.bfac88",\r
4046     "wires": []\r
4047   },\r
4048   {\r
4049     "id": "be0ba193.2dd698",\r
4050     "type": "save",\r
4051     "name": "save the-connectivity relationship to UNI-LEAF, in AAI",\r
4052     "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
4053     "comments": "",\r
4054     "outputs": 1,\r
4055     "x": 5001.566665649414,\r
4056     "y": 5960.566665649414,\r
4057     "z": "c7b9cd35.bfac88",\r
4058     "wires": [\r
4059       []\r
4060     ]\r
4061   },\r
4062   {\r
4063     "id": "b431bc46.f09eb8",\r
4064     "type": "switchNode",\r
4065     "name": "switch found-root-connectivity",\r
4066     "xml": "\n<switch test=\"`$found-root-connectivity`\">\n\n",\r
4067     "comments": "",\r
4068     "outputs": 1,\r
4069     "x": 4402.566665649414,\r
4070     "y": 5104.566665649414,\r
4071     "z": "c7b9cd35.bfac88",\r
4072     "wires": [\r
4073       [\r
4074         "baf822c4.3f205",\r
4075         "32a48883.ef2b98"\r
4076       ]\r
4077     ]\r
4078   },\r
4079   {\r
4080     "id": "baf822c4.3f205",\r
4081     "type": "outcomeTrue",\r
4082     "name": "true",\r
4083     "xml": "<outcome value='true'>\n",\r
4084     "comments": "",\r
4085     "outputs": 1,\r
4086     "x": 4613.566665649414,\r
4087     "y": 5104.566665649414,\r
4088     "z": "c7b9cd35.bfac88",\r
4089     "wires": [\r
4090       [\r
4091         "58c9a296.a42094"\r
4092       ]\r
4093     ]\r
4094   },\r
4095   {\r
4096     "id": "58c9a296.a42094",\r
4097     "type": "block",\r
4098     "name": "block : atomic",\r
4099     "xml": "<block atomic='true'>",\r
4100     "atomic": "true",\r
4101     "comments": "",\r
4102     "outputs": 1,\r
4103     "x": 4769.566665649414,\r
4104     "y": 5100.566665649414,\r
4105     "z": "c7b9cd35.bfac88",\r
4106     "wires": [\r
4107       [\r
4108         "8c58cbc3.7f4b88",\r
4109         "3aab431e.930194",\r
4110         "c5e59db3.c67ea"\r
4111       ]\r
4112     ]\r
4113   },\r
4114   {\r
4115     "id": "32a48883.ef2b98",\r
4116     "type": "outcomeFalse",\r
4117     "name": "false",\r
4118     "xml": "<outcome value='false'>\n",\r
4119     "comments": "",\r
4120     "outputs": 1,\r
4121     "x": 4609.566665649414,\r
4122     "y": 5152.566665649414,\r
4123     "z": "c7b9cd35.bfac88",\r
4124     "wires": [\r
4125       [\r
4126         "255e5d4d.31482a"\r
4127       ]\r
4128     ]\r
4129   },\r
4130   {\r
4131     "id": "255e5d4d.31482a",\r
4132     "type": "returnFailure",\r
4133     "name": "return failure",\r
4134     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='Root Connectivity was not found' />\n",\r
4135     "comments": "",\r
4136     "x": 4757.566665649414,\r
4137     "y": 5147.566665649414,\r
4138     "z": "c7b9cd35.bfac88",\r
4139     "wires": []\r
4140   },\r
4141   {\r
4142     "id": "3647078f.866d7",\r
4143     "type": "save",\r
4144     "name": "save middle-man-conn relationship to connectivity-LEAF, in AAI",\r
4145     "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
4146     "comments": "",\r
4147     "outputs": 1,\r
4148     "x": 5265.566665649414,\r
4149     "y": 4729.566665649414,\r
4150     "z": "c7b9cd35.bfac88",\r
4151     "wires": [\r
4152       []\r
4153     ]\r
4154   },\r
4155   {\r
4156     "id": "79257077.5f1ff8",\r
4157     "type": "execute",\r
4158     "name": "execute UUID generator for ethernet-service-name",\r
4159     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.ethernet-service-name\"/>\n",\r
4160     "comments": "",\r
4161     "outputs": 1,\r
4162     "x": 2431.566665649414,\r
4163     "y": 140.56666564941406,\r
4164     "z": "c7b9cd35.bfac88",\r
4165     "wires": [\r
4166       []\r
4167     ]\r
4168   },\r
4169   {\r
4170     "id": "8a55fb57.dfc438",\r
4171     "type": "set",\r
4172     "name": "set new ethernet-service-name",\r
4173     "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
4174     "comments": "",\r
4175     "x": 2365.566665649414,\r
4176     "y": 176.56666564941406,\r
4177     "z": "c7b9cd35.bfac88",\r
4178     "wires": []\r
4179   },\r
4180   {\r
4181     "id": "d0423030.a4fb7",\r
4182     "type": "comment",\r
4183     "name": "The following two nodes are to make sure all connectivities for an E-Tree have same etht-srv-name",\r
4184     "info": "",\r
4185     "comments": "",\r
4186     "x": 2550.566665649414,\r
4187     "y": 103.56666564941406,\r
4188     "z": "c7b9cd35.bfac88",\r
4189     "wires": []\r
4190   },\r
4191   {\r
4192     "id": "fad64a40.999cd8",\r
4193     "type": "set",\r
4194     "name": "set current-provider-id and current-cvlan-id",\r
4195     "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
4196     "comments": "",\r
4197     "x": 4300.566665649414,\r
4198     "y": 5864.566665649414,\r
4199     "z": "c7b9cd35.bfac88",\r
4200     "wires": []\r
4201   },\r
4202   {\r
4203     "id": "1f999717.41db99",\r
4204     "type": "call",\r
4205     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-connectivity",\r
4206     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-connectivity' mode='sync' >\n\n",\r
4207     "comments": "",\r
4208     "outputs": 1,\r
4209     "x": 4433.566665649414,\r
4210     "y": 5912.566665649414,\r
4211     "z": "c7b9cd35.bfac88",\r
4212     "wires": [\r
4213       []\r
4214     ]\r
4215   },\r
4216   {\r
4217     "id": "c52167d8.94938",\r
4218     "type": "switchNode",\r
4219     "name": "switch found-connectivity?",\r
4220     "xml": "\n<switch test=\"`$found-connectivity`\">\n\n",\r
4221     "comments": "",\r
4222     "outputs": 1,\r
4223     "x": 4252.566665649414,\r
4224     "y": 5970.566665649414,\r
4225     "z": "c7b9cd35.bfac88",\r
4226     "wires": [\r
4227       [\r
4228         "19e438e0.03d147",\r
4229         "34d88bae.811d0c"\r
4230       ]\r
4231     ]\r
4232   },\r
4233   {\r
4234     "id": "19e438e0.03d147",\r
4235     "type": "outcomeFalse",\r
4236     "name": "false",\r
4237     "xml": "<outcome value='false'>\n",\r
4238     "comments": "",\r
4239     "outputs": 1,\r
4240     "x": 4445.566665649414,\r
4241     "y": 5971.566665649414,\r
4242     "z": "c7b9cd35.bfac88",\r
4243     "wires": [\r
4244       [\r
4245         "41319fcd.d8b348"\r
4246       ]\r
4247     ]\r
4248   },\r
4249   {\r
4250     "id": "41319fcd.d8b348",\r
4251     "type": "returnFailure",\r
4252     "name": "return failure",\r
4253     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='Connectivity should have been created' />\n",\r
4254     "comments": "",\r
4255     "x": 4601.566665649414,\r
4256     "y": 5968.566665649414,\r
4257     "z": "c7b9cd35.bfac88",\r
4258     "wires": []\r
4259   },\r
4260   {\r
4261     "id": "34d88bae.811d0c",\r
4262     "type": "outcomeTrue",\r
4263     "name": "true",\r
4264     "xml": "<outcome value='true'>\n",\r
4265     "comments": "",\r
4266     "outputs": 1,\r
4267     "x": 4449.566665649414,\r
4268     "y": 6015.566665649414,\r
4269     "z": "c7b9cd35.bfac88",\r
4270     "wires": [\r
4271       [\r
4272         "9cc4dc7d.174798"\r
4273       ]\r
4274     ]\r
4275   },\r
4276   {\r
4277     "id": "9cc4dc7d.174798",\r
4278     "type": "block",\r
4279     "name": "block",\r
4280     "xml": "<block>\n",\r
4281     "atomic": "false",\r
4282     "comments": "",\r
4283     "outputs": 1,\r
4284     "x": 4588.566665649414,\r
4285     "y": 6010.566665649414,\r
4286     "z": "c7b9cd35.bfac88",\r
4287     "wires": [\r
4288       [\r
4289         "be0ba193.2dd698",\r
4290         "9b687ead.d5262",\r
4291         "bb8d3610.613d68",\r
4292         "89f249f3.3e5608",\r
4293         "1d656b5f.37186d",\r
4294         "90bf2cc6.ca2d58",\r
4295         "517a964c.5fa06",\r
4296         "c8b3b99a.24ee1",\r
4297         "2487bbac.e2018c",\r
4298         "203e33ee.d272e4",\r
4299         "3c1017d1.449bb",\r
4300         "21e17170.9d1c4e"\r
4301       ]\r
4302     ]\r
4303   },\r
4304   {\r
4305     "id": "517a964c.5fa06",\r
4306     "type": "save",\r
4307     "name": "get all-vpn-bindings from aai",\r
4308     "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
4309     "comments": "",\r
4310     "outputs": 1,\r
4311     "x": 4785.566665649414,\r
4312     "y": 6689.566665649414,\r
4313     "z": "c7b9cd35.bfac88",\r
4314     "wires": [\r
4315       [\r
4316         "f455e87a.bb05c8",\r
4317         "dc467c76.6e0b1",\r
4318         "26412110.73f856"\r
4319       ]\r
4320     ]\r
4321   },\r
4322   {\r
4323     "id": "f455e87a.bb05c8",\r
4324     "type": "success",\r
4325     "name": "success",\r
4326     "xml": "<outcome value='success'>\n",\r
4327     "comments": "",\r
4328     "outputs": 1,\r
4329     "x": 4990.566665649414,\r
4330     "y": 6686.566665649414,\r
4331     "z": "c7b9cd35.bfac88",\r
4332     "wires": [\r
4333       [\r
4334         "8ff8217a.525ad8"\r
4335       ]\r
4336     ]\r
4337   },\r
4338   {\r
4339     "id": "dc467c76.6e0b1",\r
4340     "type": "not-found",\r
4341     "name": "not-found",\r
4342     "xml": "<outcome value='not-found'>\n",\r
4343     "comments": "",\r
4344     "outputs": 1,\r
4345     "x": 4974.057632446289,\r
4346     "y": 6748.140701293945,\r
4347     "z": "c7b9cd35.bfac88",\r
4348     "wires": [\r
4349       [\r
4350         "2b587a1.cfe3f86"\r
4351       ]\r
4352     ]\r
4353   },\r
4354   {\r
4355     "id": "26412110.73f856",\r
4356     "type": "failure",\r
4357     "name": "failure",\r
4358     "xml": "<outcome value='failure'>\n",\r
4359     "comments": "",\r
4360     "outputs": 1,\r
4361     "x": 4971.566665649414,\r
4362     "y": 6791.566665649414,\r
4363     "z": "c7b9cd35.bfac88",\r
4364     "wires": [\r
4365       [\r
4366         "b747b55e.88ecf8"\r
4367       ]\r
4368     ]\r
4369   },\r
4370   {\r
4371     "id": "8ff8217a.525ad8",\r
4372     "type": "block",\r
4373     "name": "block : atomic",\r
4374     "xml": "<block atomic=\"true\">",\r
4375     "atomic": "true",\r
4376     "outputs": 1,\r
4377     "x": 5146.566665649414,\r
4378     "y": 6700.566665649414,\r
4379     "z": "c7b9cd35.bfac88",\r
4380     "wires": [\r
4381       [\r
4382         "8429b279.d4cdf"\r
4383       ]\r
4384     ]\r
4385   },\r
4386   {\r
4387     "id": "2b587a1.cfe3f86",\r
4388     "type": "returnFailure",\r
4389     "name": "return failure",\r
4390     "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
4391     "comments": "",\r
4392     "x": 5136.629043579102,\r
4393     "y": 6748.42643737793,\r
4394     "z": "c7b9cd35.bfac88",\r
4395     "wires": []\r
4396   },\r
4397   {\r
4398     "id": "b747b55e.88ecf8",\r
4399     "type": "returnFailure",\r
4400     "name": "return failure",\r
4401     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
4402     "comments": "",\r
4403     "x": 5138.566665649414,\r
4404     "y": 6790.566665649414,\r
4405     "z": "c7b9cd35.bfac88",\r
4406     "wires": []\r
4407   },\r
4408   {\r
4409     "id": "8429b279.d4cdf",\r
4410     "type": "for",\r
4411     "name": "for vpnidx in all-vpn-bindings",\r
4412     "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",\r
4413     "comments": "",\r
4414     "outputs": 1,\r
4415     "x": 5393.566665649414,\r
4416     "y": 6697.566665649414,\r
4417     "z": "c7b9cd35.bfac88",\r
4418     "wires": [\r
4419       [\r
4420         "1ddbd038.9357b"\r
4421       ]\r
4422     ]\r
4423   },\r
4424   {\r
4425     "id": "1ddbd038.9357b",\r
4426     "type": "block",\r
4427     "name": "block : atomic",\r
4428     "xml": "<block atomic='true'>",\r
4429     "atomic": "true",\r
4430     "comments": "",\r
4431     "outputs": 1,\r
4432     "x": 5630.566665649414,\r
4433     "y": 6693.566665649414,\r
4434     "z": "c7b9cd35.bfac88",\r
4435     "wires": [\r
4436       [\r
4437         "7922b60b.c6e31"\r
4438       ]\r
4439     ]\r
4440   },\r
4441   {\r
4442     "id": "e0649c96.67ff88",\r
4443     "type": "switchNode",\r
4444     "name": "switch vpnuuid is for this slice",\r
4445     "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
4446     "comments": "",\r
4447     "outputs": 1,\r
4448     "x": 5873.566665649414,\r
4449     "y": 6665.566665649414,\r
4450     "z": "c7b9cd35.bfac88",\r
4451     "wires": [\r
4452       [\r
4453         "6697bde5.6a73ec",\r
4454         "f1cd44ef.865458"\r
4455       ]\r
4456     ]\r
4457   },\r
4458   {\r
4459     "id": "6697bde5.6a73ec",\r
4460     "type": "outcomeTrue",\r
4461     "name": "true",\r
4462     "xml": "<outcome value='true'>\n",\r
4463     "comments": "",\r
4464     "outputs": 1,\r
4465     "x": 6078.566665649414,\r
4466     "y": 6685.566665649414,\r
4467     "z": "c7b9cd35.bfac88",\r
4468     "wires": [\r
4469       [\r
4470         "7922b60b.c6e31"\r
4471       ]\r
4472     ]\r
4473   },\r
4474   {\r
4475     "id": "f1cd44ef.865458",\r
4476     "type": "outcomeFalse",\r
4477     "name": "false",\r
4478     "xml": "<outcome value='false'>\n",\r
4479     "comments": "",\r
4480     "outputs": 1,\r
4481     "x": 6077.566665649414,\r
4482     "y": 6638.566665649414,\r
4483     "z": "c7b9cd35.bfac88",\r
4484     "wires": [\r
4485       []\r
4486     ]\r
4487   },\r
4488   {\r
4489     "id": "7922b60b.c6e31",\r
4490     "type": "block",\r
4491     "name": "block : atomic",\r
4492     "xml": "<block atomic='true'>",\r
4493     "atomic": "true",\r
4494     "comments": "",\r
4495     "outputs": 1,\r
4496     "x": 4821.566665649414,\r
4497     "y": 6960.566665649414,\r
4498     "z": "c7b9cd35.bfac88",\r
4499     "wires": [\r
4500       [\r
4501         "b0b5d457.a97bd"\r
4502       ]\r
4503     ]\r
4504   },\r
4505   {\r
4506     "id": "1fa90257.6a5f2e",\r
4507     "type": "set",\r
4508     "name": "set tmp.aai.the-vpn-binding",\r
4509     "xml": "<set>\n<parameter name='tmp.aai.the-vpn-binding.' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].`\" />\n",\r
4510     "comments": "",\r
4511     "x": 6283.566635131836,\r
4512     "y": 6898.566635131836,\r
4513     "z": "c7b9cd35.bfac88",\r
4514     "wires": []\r
4515   },\r
4516   {\r
4517     "id": "a2de4936.eeff58",\r
4518     "type": "comment",\r
4519     "name": "find all OTNs that have srcTtpOtnLayer and increase their bandwidth",\r
4520     "info": "",\r
4521     "comments": "",\r
4522     "x": 4883.566665649414,\r
4523     "y": 6636.566665649414,\r
4524     "z": "c7b9cd35.bfac88",\r
4525     "wires": []\r
4526   },\r
4527   {\r
4528     "id": "90bf2cc6.ca2d58",\r
4529     "type": "set",\r
4530     "name": "set srcTtp OTN layer",\r
4531     "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
4532     "comments": "",\r
4533     "x": 4765.566665649414,\r
4534     "y": 6524.566665649414,\r
4535     "z": "c7b9cd35.bfac88",\r
4536     "wires": []\r
4537   },\r
4538   {\r
4539     "id": "917753a8.ea741",\r
4540     "type": "switchNode",\r
4541     "name": "switch provider-id domainA",\r
4542     "xml": "<switch test='`$allNetworksList.network-resource[$netwidx].provider-id == $param-prefix-domainA-pnfName[2]`'>\n",\r
4543     "comments": "",\r
4544     "outputs": 1,\r
4545     "x": 5110.566665649414,\r
4546     "y": 6355.566665649414,\r
4547     "z": "c7b9cd35.bfac88",\r
4548     "wires": [\r
4549       [\r
4550         "ddf721ac.b7eef8"\r
4551       ]\r
4552     ]\r
4553   },\r
4554   {\r
4555     "id": "ddf721ac.b7eef8",\r
4556     "type": "outcomeTrue",\r
4557     "name": "true",\r
4558     "xml": "<outcome value='true'>\n",\r
4559     "comments": "",\r
4560     "outputs": 1,\r
4561     "x": 5330.566665649414,\r
4562     "y": 6361.566665649414,\r
4563     "z": "c7b9cd35.bfac88",\r
4564     "wires": [\r
4565       [\r
4566         "ff49769d.1bd52"\r
4567       ]\r
4568     ]\r
4569   },\r
4570   {\r
4571     "id": "ff49769d.1bd52",\r
4572     "type": "switchNode",\r
4573     "name": "switch te-topo-id",\r
4574     "xml": "<switch test='`$allNetworksList.network-resource[$netwidx].te-topo-id != $param-prefix-domainA-pnfName[6]`'>\n",\r
4575     "comments": "",\r
4576     "outputs": 1,\r
4577     "x": 5517.566665649414,\r
4578     "y": 6321.566665649414,\r
4579     "z": "c7b9cd35.bfac88",\r
4580     "wires": [\r
4581       [\r
4582         "4e069c0d.3968f4"\r
4583       ]\r
4584     ]\r
4585   },\r
4586   {\r
4587     "id": "4e069c0d.3968f4",\r
4588     "type": "outcomeTrue",\r
4589     "name": "true",\r
4590     "xml": "<outcome value='true'>\n",\r
4591     "comments": "",\r
4592     "outputs": 1,\r
4593     "x": 5709.566665649414,\r
4594     "y": 6324.566665649414,\r
4595     "z": "c7b9cd35.bfac88",\r
4596     "wires": [\r
4597       [\r
4598         "2305c4b2.be932c"\r
4599       ]\r
4600     ]\r
4601   },\r
4602   {\r
4603     "id": "2305c4b2.be932c",\r
4604     "type": "set",\r
4605     "name": "set otnTopoIdSrc",\r
4606     "xml": "<set>\n<parameter name='otnTopoIdSrc' value='`$allNetworksList.network-resource[$netwidx].te-topo-id`' />\n",\r
4607     "comments": "",\r
4608     "x": 5918.566665649414,\r
4609     "y": 6322.566665649414,\r
4610     "z": "c7b9cd35.bfac88",\r
4611     "wires": []\r
4612   },\r
4613   {\r
4614     "id": "c8b3b99a.24ee1",\r
4615     "type": "for",\r
4616     "name": "for netwidx..allNetworksList_length",\r
4617     "xml": "<for index='netwidx' start='0' end='`$allNetworksList.network-resource_length`' >",\r
4618     "comments": "",\r
4619     "outputs": 1,\r
4620     "x": 4817.566665649414,\r
4621     "y": 6349.566665649414,\r
4622     "z": "c7b9cd35.bfac88",\r
4623     "wires": [\r
4624       [\r
4625         "917753a8.ea741"\r
4626       ]\r
4627     ]\r
4628   },\r
4629   {\r
4630     "id": "bb8d3610.613d68",\r
4631     "type": "get-resource",\r
4632     "name": "get-resource network-resources-list",\r
4633     "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
4634     "comments": "",\r
4635     "outputs": 1,\r
4636     "x": 4825.566665649414,\r
4637     "y": 6242.566665649414,\r
4638     "z": "c7b9cd35.bfac88",\r
4639     "wires": [\r
4640       [\r
4641         "ae57a65a.f0c818",\r
4642         "d5c36a0.e7a9398",\r
4643         "2780984c.5a15a"\r
4644       ]\r
4645     ]\r
4646   },\r
4647   {\r
4648     "id": "ae57a65a.f0c818",\r
4649     "type": "success",\r
4650     "name": "success",\r
4651     "xml": "<outcome value='success'>\n",\r
4652     "comments": "",\r
4653     "outputs": 1,\r
4654     "x": 5061.566665649414,\r
4655     "y": 6225.566665649414,\r
4656     "z": "c7b9cd35.bfac88",\r
4657     "wires": [\r
4658       []\r
4659     ]\r
4660   },\r
4661   {\r
4662     "id": "d5c36a0.e7a9398",\r
4663     "type": "other",\r
4664     "name": "other",\r
4665     "xml": "<outcome value='Other'>\n",\r
4666     "comments": "",\r
4667     "outputs": 1,\r
4668     "x": 5058.566665649414,\r
4669     "y": 6266.566665649414,\r
4670     "z": "c7b9cd35.bfac88",\r
4671     "wires": [\r
4672       []\r
4673     ]\r
4674   },\r
4675   {\r
4676     "id": "2780984c.5a15a",\r
4677     "type": "not-found",\r
4678     "name": "not-found",\r
4679     "xml": "<outcome value='not-found'>\n",\r
4680     "comments": "",\r
4681     "outputs": 1,\r
4682     "x": 5072.566665649414,\r
4683     "y": 6306.566665649414,\r
4684     "z": "c7b9cd35.bfac88",\r
4685     "wires": [\r
4686       []\r
4687     ]\r
4688   },\r
4689   {\r
4690     "id": "89f249f3.3e5608",\r
4691     "type": "set",\r
4692     "name": "unset parameters",\r
4693     "xml": "<set>\n<parameter name='tmp.pce-src-node.' value='' />\n",\r
4694     "comments": "",\r
4695     "x": 4761.566665649414,\r
4696     "y": 6401.566665649414,\r
4697     "z": "c7b9cd35.bfac88",\r
4698     "wires": []\r
4699   },\r
4700   {\r
4701     "id": "1d656b5f.37186d",\r
4702     "type": "set",\r
4703     "name": "set tmp.pce-src-node",\r
4704     "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
4705     "comments": "",\r
4706     "x": 4769.566665649414,\r
4707     "y": 6459.566665649414,\r
4708     "z": "c7b9cd35.bfac88",\r
4709     "wires": []\r
4710   },\r
4711   {\r
4712     "id": "9b687ead.d5262",\r
4713     "type": "set",\r
4714     "name": "unset parameters",\r
4715     "xml": "<set>\n<parameter name='allNetworksList.' value='' />\n",\r
4716     "comments": "",\r
4717     "x": 4774.566665649414,\r
4718     "y": 6199.566665649414,\r
4719     "z": "c7b9cd35.bfac88",\r
4720     "wires": []\r
4721   },\r
4722   {\r
4723     "id": "201d95ad.f7c612",\r
4724     "type": "comment",\r
4725     "name": "The following section is to find srcTtp OTN layer (its long name)",\r
4726     "info": "The following section is to find srcTtp OTN layer (its long name)",\r
4727     "comments": "",\r
4728     "x": 4889.566665649414,\r
4729     "y": 6151.566665649414,\r
4730     "z": "c7b9cd35.bfac88",\r
4731     "wires": []\r
4732   },\r
4733   {\r
4734     "id": "b0b5d457.a97bd",\r
4735     "type": "switchNode",\r
4736     "name": "switch ops-note is srcTtpOtnLayer",\r
4737     "xml": "<switch test=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].ops-note == $tmp.srcTtpOtnLayer `\">\n\n",\r
4738     "comments": "",\r
4739     "outputs": 1,\r
4740     "x": 5064.566665649414,\r
4741     "y": 6957.566665649414,\r
4742     "z": "c7b9cd35.bfac88",\r
4743     "wires": [\r
4744       [\r
4745         "46f9fbf7.fbe6cc",\r
4746         "bab2d066.0ad5b"\r
4747       ]\r
4748     ]\r
4749   },\r
4750   {\r
4751     "id": "46f9fbf7.fbe6cc",\r
4752     "type": "outcomeTrue",\r
4753     "name": "true",\r
4754     "xml": "<outcome value='true'>\n",\r
4755     "comments": "",\r
4756     "outputs": 1,\r
4757     "x": 5293.566665649414,\r
4758     "y": 6934.566665649414,\r
4759     "z": "c7b9cd35.bfac88",\r
4760     "wires": [\r
4761       [\r
4762         "66be0922.f0399"\r
4763       ]\r
4764     ]\r
4765   },\r
4766   {\r
4767     "id": "bab2d066.0ad5b",\r
4768     "type": "outcomeFalse",\r
4769     "name": "false",\r
4770     "xml": "<outcome value='false'>\n",\r
4771     "comments": "",\r
4772     "outputs": 1,\r
4773     "x": 5293.566665649414,\r
4774     "y": 6983.566665649414,\r
4775     "z": "c7b9cd35.bfac88",\r
4776     "wires": [\r
4777       []\r
4778     ]\r
4779   },\r
4780   {\r
4781     "id": "646b562c.1751a8",\r
4782     "type": "block",\r
4783     "name": "block : atomic",\r
4784     "xml": "<block atomic='true'>",\r
4785     "atomic": "true",\r
4786     "comments": "",\r
4787     "outputs": 1,\r
4788     "x": 6026.566635131836,\r
4789     "y": 6989.566635131836,\r
4790     "z": "c7b9cd35.bfac88",\r
4791     "wires": [\r
4792       [\r
4793         "898afc0c.eb00d8",\r
4794         "1fa90257.6a5f2e",\r
4795         "9d2bedee.a23cf"\r
4796       ]\r
4797     ]\r
4798   },\r
4799   {\r
4800     "id": "5bb30070.2c2c98",\r
4801     "type": "comment",\r
4802     "name": "increase the bw of the-vpn-binding and change status to modified",\r
4803     "info": "increase the bw of the-vpn-binding\nchange status to modified\n",\r
4804     "comments": "",\r
4805     "x": 6411.566635131836,\r
4806     "y": 6952.566635131836,\r
4807     "z": "c7b9cd35.bfac88",\r
4808     "wires": []\r
4809   },\r
4810   {\r
4811     "id": "9d2bedee.a23cf",\r
4812     "type": "save",\r
4813     "name": "update vpn-binding otnIdx resource (aka. OTN) in AAI",\r
4814     "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
4815     "comments": "",\r
4816     "outputs": 1,\r
4817     "x": 6381.566635131836,\r
4818     "y": 7012.566635131836,\r
4819     "z": "c7b9cd35.bfac88",\r
4820     "wires": [\r
4821       []\r
4822     ]\r
4823   },\r
4824   {\r
4825     "id": "898afc0c.eb00d8",\r
4826     "type": "set",\r
4827     "name": "unset tmp.aai.the-vpn-binding",\r
4828     "xml": "<set>\n<parameter name='tmp.aai.the-vpn-binding.' value=\"\" />\n",\r
4829     "comments": "",\r
4830     "x": 6288.566635131836,\r
4831     "y": 6840.566635131836,\r
4832     "z": "c7b9cd35.bfac88",\r
4833     "wires": []\r
4834   },\r
4835   {\r
4836     "id": "e66ef561.f9598",\r
4837     "type": "block",\r
4838     "name": "block : atomic",\r
4839     "xml": "<block atomic='true'>",\r
4840     "atomic": "true",\r
4841     "comments": "",\r
4842     "outputs": 1,\r
4843     "x": 4024.566665649414,\r
4844     "y": 5897.566665649414,\r
4845     "z": "c7b9cd35.bfac88",\r
4846     "wires": [\r
4847       [\r
4848         "526f34d0.18befc",\r
4849         "fad64a40.999cd8",\r
4850         "1f999717.41db99",\r
4851         "c52167d8.94938",\r
4852         "be5aff94.f7d12"\r
4853       ]\r
4854     ]\r
4855   },\r
4856   {\r
4857     "id": "55c4563d.130918",\r
4858     "type": "set",\r
4859     "name": "unset otnTopoIdSrc",\r
4860     "xml": "<set>\n<parameter name='otnTopoIdSrc' value='' />\n",\r
4861     "comments": "",\r
4862     "x": 4766.566665649414,\r
4863     "y": 6299.566665649414,\r
4864     "z": "c7b9cd35.bfac88",\r
4865     "wires": []\r
4866   },\r
4867   {\r
4868     "id": "2487bbac.e2018c",\r
4869     "type": "save",\r
4870     "name": "update connectivity resource in AAI",\r
4871     "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
4872     "comments": "",\r
4873     "outputs": 1,\r
4874     "x": 4894.566665649414,\r
4875     "y": 6041.566665649414,\r
4876     "z": "c7b9cd35.bfac88",\r
4877     "wires": [\r
4878       []\r
4879     ]\r
4880   },\r
4881   {\r
4882     "id": "eef6a242.86b638",\r
4883     "type": "comment",\r
4884     "name": "Update the existing eth-srv by adding the new LEAF UNI into its list of endpoints",\r
4885     "info": "Update the existing eth-srv by adding the new LEAF UNI into its list of endpoints",\r
4886     "comments": "",\r
4887     "x": 5031.566665649414,\r
4888     "y": 5991.566665649414,\r
4889     "z": "c7b9cd35.bfac88",\r
4890     "wires": []\r
4891   },\r
4892   {\r
4893     "id": "9860b974.593a3",\r
4894     "type": "save",\r
4895     "name": "save ROOT UNI in AAI",\r
4896     "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='type' value='root' />\n<parameter name='data-source' value='`$gfp`' />\n<parameter name='data-owner' value='`$tmp.aai.service-instance.service-instance-id`' />\n",\r
4897     "comments": "",\r
4898     "outputs": 1,\r
4899     "x": 3858.566665649414,\r
4900     "y": 3384.566665649414,\r
4901     "z": "c7b9cd35.bfac88",\r
4902     "wires": [\r
4903       []\r
4904     ]\r
4905   },\r
4906   {\r
4907     "id": "c96fd773.2e2468",\r
4908     "type": "comment",\r
4909     "name": "NOT NEEDED ANYMORE?",\r
4910     "info": "",\r
4911     "comments": "",\r
4912     "x": 4036.566635131836,\r
4913     "y": 1619.566635131836,\r
4914     "z": "c7b9cd35.bfac88",\r
4915     "wires": []\r
4916   },\r
4917   {\r
4918     "id": "e5b482c4.4ff96",\r
4919     "type": "comment",\r
4920     "name": "NOT NEEDED ANYMORE?",\r
4921     "info": "",\r
4922     "comments": "",\r
4923     "x": 4015.566604614258,\r
4924     "y": 2131.566604614258,\r
4925     "z": "c7b9cd35.bfac88",\r
4926     "wires": []\r
4927   },\r
4928   {\r
4929     "id": "58efc802.973c9",\r
4930     "type": "comment",\r
4931     "name": "TEMPORARY REMOVING THE FOLLOWING TWO NODES",\r
4932     "info": "",\r
4933     "comments": "",\r
4934     "x": 3850.566665649414,\r
4935     "y": 4005.566665649414,\r
4936     "z": "c7b9cd35.bfac88",\r
4937     "wires": []\r
4938   },\r
4939   {\r
4940     "id": "517fe5d1.d6143c",\r
4941     "type": "call",\r
4942     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-F1-activate",\r
4943     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1-activate' mode='sync' >\n\n",\r
4944     "comments": "",\r
4945     "outputs": 1,\r
4946     "x": 3940.566665649414,\r
4947     "y": 6385.566665649414,\r
4948     "z": "c7b9cd35.bfac88",\r
4949     "wires": [\r
4950       []\r
4951     ]\r
4952   },\r
4953   {\r
4954     "id": "fa1a129b.8e1e58",\r
4955     "type": "set",\r
4956     "name": "set current-provider-id and current-cvlan-id",\r
4957     "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
4958     "comments": "",\r
4959     "x": 3742.566665649414,\r
4960     "y": 4914.566665649414,\r
4961     "z": "c7b9cd35.bfac88",\r
4962     "wires": []\r
4963   },\r
4964   {\r
4965     "id": "8f8ab353.277fd8",\r
4966     "type": "call",\r
4967     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-connectivity",\r
4968     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-connectivity' mode='sync' >\n\n",\r
4969     "comments": "",\r
4970     "outputs": 1,\r
4971     "x": 3875.566665649414,\r
4972     "y": 4962.566665649414,\r
4973     "z": "c7b9cd35.bfac88",\r
4974     "wires": [\r
4975       []\r
4976     ]\r
4977   },\r
4978   {\r
4979     "id": "6651db46.728784",\r
4980     "type": "switchNode",\r
4981     "name": "switch found-connectivity?",\r
4982     "xml": "\n<switch test=\"`$found-connectivity`\">\n\n",\r
4983     "comments": "",\r
4984     "outputs": 1,\r
4985     "x": 4421.566665649414,\r
4986     "y": 4590.566665649414,\r
4987     "z": "c7b9cd35.bfac88",\r
4988     "wires": [\r
4989       [\r
4990         "894780c2.49e69",\r
4991         "859a7332.ec6f6"\r
4992       ]\r
4993     ]\r
4994   },\r
4995   {\r
4996     "id": "894780c2.49e69",\r
4997     "type": "outcomeFalse",\r
4998     "name": "false",\r
4999     "xml": "<outcome value='false'>\n",\r
5000     "comments": "",\r
5001     "outputs": 1,\r
5002     "x": 4614.566665649414,\r
5003     "y": 4591.566665649414,\r
5004     "z": "c7b9cd35.bfac88",\r
5005     "wires": [\r
5006       [\r
5007         "ba88b5a5.1ae688"\r
5008       ]\r
5009     ]\r
5010   },\r
5011   {\r
5012     "id": "859a7332.ec6f6",\r
5013     "type": "outcomeTrue",\r
5014     "name": "true",\r
5015     "xml": "<outcome value='true'>\n",\r
5016     "comments": "",\r
5017     "outputs": 1,\r
5018     "x": 4618.566665649414,\r
5019     "y": 4635.566665649414,\r
5020     "z": "c7b9cd35.bfac88",\r
5021     "wires": [\r
5022       [\r
5023         "99dc491a.da7278"\r
5024       ]\r
5025     ]\r
5026   },\r
5027   {\r
5028     "id": "99dc491a.da7278",\r
5029     "type": "block",\r
5030     "name": "block : atomic",\r
5031     "xml": "<block atomic='true'>",\r
5032     "atomic": "true",\r
5033     "comments": "",\r
5034     "outputs": 1,\r
5035     "x": 4757.566665649414,\r
5036     "y": 4630.566665649414,\r
5037     "z": "c7b9cd35.bfac88",\r
5038     "wires": [\r
5039       [\r
5040         "8cf9ac68.b6fb08",\r
5041         "b04660b8.eae2",\r
5042         "fb45e770.b6fb4"\r
5043       ]\r
5044     ]\r
5045   },\r
5046   {\r
5047     "id": "ba88b5a5.1ae688",\r
5048     "type": "block",\r
5049     "name": "block : atomic",\r
5050     "xml": "<block atomic='true'>",\r
5051     "atomic": "true",\r
5052     "comments": "",\r
5053     "outputs": 1,\r
5054     "x": 4757.566665649414,\r
5055     "y": 4587.566665649414,\r
5056     "z": "c7b9cd35.bfac88",\r
5057     "wires": [\r
5058       [\r
5059         "c30363c7.dd0dc",\r
5060         "10271018.94b4f8",\r
5061         "285754a8.44159c",\r
5062         "3647078f.866d7"\r
5063       ]\r
5064     ]\r
5065   },\r
5066   {\r
5067     "id": "8cf9ac68.b6fb08",\r
5068     "type": "set",\r
5069     "name": "set prop.connectivity-domainA-uuid",\r
5070     "xml": "<set>\n<parameter name='uuid.connectivity-domainA-uuid' value=\"`$tmp.the-connectivity.connectivity-id`\" />\n\n\n",\r
5071     "comments": "",\r
5072     "x": 5159.566909790039,\r
5073     "y": 4852.566665649414,\r
5074     "z": "c7b9cd35.bfac88",\r
5075     "wires": []\r
5076   },\r
5077   {\r
5078     "id": "f52716f7.92c318",\r
5079     "type": "comment",\r
5080     "name": "populate connectivity-A variable in the context map",\r
5081     "info": "",\r
5082     "comments": "",\r
5083     "x": 5166.566909790039,\r
5084     "y": 4806.566665649414,\r
5085     "z": "c7b9cd35.bfac88",\r
5086     "wires": []\r
5087   },\r
5088   {\r
5089     "id": "203e33ee.d272e4",\r
5090     "type": "call",\r
5091     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-find-maximum-used-tpn",\r
5092     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-find-maximum-used-tpn' mode='sync' >\n\n",\r
5093     "comments": "",\r
5094     "outputs": 1,\r
5095     "x": 4956.566665649414,\r
5096     "y": 6585.566665649414,\r
5097     "z": "c7b9cd35.bfac88",\r
5098     "wires": [\r
5099       []\r
5100     ]\r
5101   },\r
5102   {\r
5103     "id": "b04660b8.eae2",\r
5104     "type": "save",\r
5105     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
5106     "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
5107     "comments": "",\r
5108     "outputs": 1,\r
5109     "x": 5277.566909790039,\r
5110     "y": 4894.566665649414,\r
5111     "z": "c7b9cd35.bfac88",\r
5112     "wires": [\r
5113       []\r
5114     ]\r
5115   },\r
5116   {\r
5117     "id": "3aab431e.930194",\r
5118     "type": "save",\r
5119     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
5120     "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
5121     "comments": "",\r
5122     "outputs": 1,\r
5123     "x": 5152.566665649414,\r
5124     "y": 5152.566665649414,\r
5125     "z": "c7b9cd35.bfac88",\r
5126     "wires": [\r
5127       []\r
5128     ]\r
5129   },\r
5130   {\r
5131     "id": "b6e6466d.f535c8",\r
5132     "type": "comment",\r
5133     "name": "Update ROOT UNI's bw",\r
5134     "info": "",\r
5135     "comments": "",\r
5136     "x": 3497.566665649414,\r
5137     "y": 4485.566665649414,\r
5138     "z": "c7b9cd35.bfac88",\r
5139     "wires": []\r
5140   },\r
5141   {\r
5142     "id": "eb0222bd.49b5a",\r
5143     "type": "save",\r
5144     "name": "update ROOT UNI in AAI",\r
5145     "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
5146     "comments": "",\r
5147     "outputs": 1,\r
5148     "x": 4019.566665649414,\r
5149     "y": 4586.566665649414,\r
5150     "z": "c7b9cd35.bfac88",\r
5151     "wires": [\r
5152       []\r
5153     ]\r
5154   },\r
5155   {\r
5156     "id": "e967635e.d5f898",\r
5157     "type": "save",\r
5158     "name": "get root uni from aai",\r
5159     "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
5160     "comments": "",\r
5161     "outputs": 1,\r
5162     "x": 3476.566665649414,\r
5163     "y": 4529.566665649414,\r
5164     "z": "c7b9cd35.bfac88",\r
5165     "wires": [\r
5166       [\r
5167         "a0645295.c076d8",\r
5168         "9cfd1461.a062b8",\r
5169         "c3fd0eeb.1191a"\r
5170       ]\r
5171     ]\r
5172   },\r
5173   {\r
5174     "id": "9cfd1461.a062b8",\r
5175     "type": "not-found",\r
5176     "name": "not-found",\r
5177     "xml": "<outcome value='not-found'>\n",\r
5178     "comments": "",\r
5179     "outputs": 1,\r
5180     "x": 3665.057632446289,\r
5181     "y": 4498.140884399414,\r
5182     "z": "c7b9cd35.bfac88",\r
5183     "wires": [\r
5184       [\r
5185         "763a574e.7131"\r
5186       ]\r
5187     ]\r
5188   },\r
5189   {\r
5190     "id": "c3fd0eeb.1191a",\r
5191     "type": "failure",\r
5192     "name": "failure",\r
5193     "xml": "<outcome value='failure'>\n",\r
5194     "comments": "",\r
5195     "outputs": 1,\r
5196     "x": 3653.566665649414,\r
5197     "y": 4537.566665649414,\r
5198     "z": "c7b9cd35.bfac88",\r
5199     "wires": [\r
5200       [\r
5201         "64809ae2.7e048c"\r
5202       ]\r
5203     ]\r
5204   },\r
5205   {\r
5206     "id": "763a574e.7131",\r
5207     "type": "returnFailure",\r
5208     "name": "return failure",\r
5209     "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
5210     "comments": "",\r
5211     "x": 3824.629165649414,\r
5212     "y": 4496.426528930664,\r
5213     "z": "c7b9cd35.bfac88",\r
5214     "wires": []\r
5215   },\r
5216   {\r
5217     "id": "64809ae2.7e048c",\r
5218     "type": "returnFailure",\r
5219     "name": "return failure",\r
5220     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
5221     "comments": "",\r
5222     "x": 3814.566665649414,\r
5223     "y": 4538.566665649414,\r
5224     "z": "c7b9cd35.bfac88",\r
5225     "wires": []\r
5226   },\r
5227   {\r
5228     "id": "9a196ab1.500e98",\r
5229     "type": "block",\r
5230     "name": "block : atomic",\r
5231     "xml": "<block atomic=\"true\">",\r
5232     "atomic": "true",\r
5233     "outputs": 1,\r
5234     "x": 3816.566665649414,\r
5235     "y": 4582.566665649414,\r
5236     "z": "c7b9cd35.bfac88",\r
5237     "wires": [\r
5238       [\r
5239         "6eb0cd28.22b8f4",\r
5240         "eb0222bd.49b5a"\r
5241       ]\r
5242     ]\r
5243   },\r
5244   {\r
5245     "id": "a0645295.c076d8",\r
5246     "type": "success",\r
5247     "name": "success",\r
5248     "xml": "<outcome value='success'>\n",\r
5249     "comments": "",\r
5250     "outputs": 1,\r
5251     "x": 3658.566665649414,\r
5252     "y": 4574.566665649414,\r
5253     "z": "c7b9cd35.bfac88",\r
5254     "wires": [\r
5255       [\r
5256         "9a196ab1.500e98"\r
5257       ]\r
5258     ]\r
5259   },\r
5260   {\r
5261     "id": "6eb0cd28.22b8f4",\r
5262     "type": "set",\r
5263     "name": "set new bw",\r
5264     "xml": "<set>\n<parameter name='tmp.newbw' value='`$tmp.aai.rootuni.data-source + $gfp`' />\n",\r
5265     "comments": "",\r
5266     "x": 3977.566665649414,\r
5267     "y": 4514.566665649414,\r
5268     "z": "c7b9cd35.bfac88",\r
5269     "wires": []\r
5270   },\r
5271   {\r
5272     "id": "a7e951fd.34174",\r
5273     "type": "save",\r
5274     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
5275     "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
5276     "comments": "",\r
5277     "outputs": 1,\r
5278     "x": 3842.566665649414,\r
5279     "y": 4853.566665649414,\r
5280     "z": "c7b9cd35.bfac88",\r
5281     "wires": [\r
5282       []\r
5283     ]\r
5284   },\r
5285   {\r
5286     "id": "a3ce23a7.48a0c8",\r
5287     "type": "comment",\r
5288     "name": "Temporary skipping this check - to support multiple instances in one slice",\r
5289     "info": "",\r
5290     "comments": "",\r
5291     "x": 5957.449966430664,\r
5292     "y": 6603.449966430664,\r
5293     "z": "c7b9cd35.bfac88",\r
5294     "wires": []\r
5295   },\r
5296   {\r
5297     "id": "fb45e770.b6fb4",\r
5298     "type": "save",\r
5299     "name": "update connectivity resource in AAI",\r
5300     "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
5301     "comments": "",\r
5302     "outputs": 1,\r
5303     "x": 5157.233901977539,\r
5304     "y": 4990.650161743164,\r
5305     "z": "c7b9cd35.bfac88",\r
5306     "wires": [\r
5307       []\r
5308     ]\r
5309   },\r
5310   {\r
5311     "id": "7a5a11e8.fe41c8",\r
5312     "type": "comment",\r
5313     "name": "Update connectivity status to modified",\r
5314     "info": "",\r
5315     "comments": "",\r
5316     "x": 5159.450698852539,\r
5317     "y": 4950.449966430664,\r
5318     "z": "c7b9cd35.bfac88",\r
5319     "wires": []\r
5320   },\r
5321   {\r
5322     "id": "c5e59db3.c67ea",\r
5323     "type": "save",\r
5324     "name": "update connectivity resource in AAI",\r
5325     "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
5326     "comments": "",\r
5327     "outputs": 1,\r
5328     "x": 5033.233657836914,\r
5329     "y": 5240.650161743164,\r
5330     "z": "c7b9cd35.bfac88",\r
5331     "wires": [\r
5332       []\r
5333     ]\r
5334   },\r
5335   {\r
5336     "id": "57dbe634.714a18",\r
5337     "type": "comment",\r
5338     "name": "Update connectivity status to modified",\r
5339     "info": "",\r
5340     "comments": "",\r
5341     "x": 5035.450454711914,\r
5342     "y": 5200.449966430664,\r
5343     "z": "c7b9cd35.bfac88",\r
5344     "wires": []\r
5345   },\r
5346   {\r
5347     "id": "aa096a62.a00c18",\r
5348     "type": "call",\r
5349     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-ROOT-conn",\r
5350     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-ROOT-conn' mode='sync' >\n\n",\r
5351     "comments": "",\r
5352     "outputs": 1,\r
5353     "x": 5123.033462524414,\r
5354     "y": 5603.083267211914,\r
5355     "z": "c7b9cd35.bfac88",\r
5356     "wires": [\r
5357       []\r
5358     ]\r
5359   },\r
5360   {\r
5361     "id": "a1684c9.099dc3",\r
5362     "type": "switchNode",\r
5363     "name": "switch found-root-connectivity",\r
5364     "xml": "\n<switch test=\"`$found-root-connectivity`\">\n\n",\r
5365     "comments": "",\r
5366     "outputs": 1,\r
5367     "x": 4950.033462524414,\r
5368     "y": 5660.083267211914,\r
5369     "z": "c7b9cd35.bfac88",\r
5370     "wires": [\r
5371       [\r
5372         "322ec37b.7f462c",\r
5373         "a4688844.be2738"\r
5374       ]\r
5375     ]\r
5376   },\r
5377   {\r
5378     "id": "322ec37b.7f462c",\r
5379     "type": "outcomeTrue",\r
5380     "name": "true",\r
5381     "xml": "<outcome value='true'>\n",\r
5382     "comments": "",\r
5383     "outputs": 1,\r
5384     "x": 5161.033462524414,\r
5385     "y": 5660.083267211914,\r
5386     "z": "c7b9cd35.bfac88",\r
5387     "wires": [\r
5388       [\r
5389         "32e06877.2a572"\r
5390       ]\r
5391     ]\r
5392   },\r
5393   {\r
5394     "id": "a4688844.be2738",\r
5395     "type": "outcomeFalse",\r
5396     "name": "false",\r
5397     "xml": "<outcome value='false'>\n",\r
5398     "comments": "",\r
5399     "outputs": 1,\r
5400     "x": 5157.033462524414,\r
5401     "y": 5708.083267211914,\r
5402     "z": "c7b9cd35.bfac88",\r
5403     "wires": [\r
5404       [\r
5405         "748c1810.be501"\r
5406       ]\r
5407     ]\r
5408   },\r
5409   {\r
5410     "id": "32e06877.2a572",\r
5411     "type": "block",\r
5412     "name": "block : atomic",\r
5413     "xml": "<block atomic='true'>",\r
5414     "atomic": "true",\r
5415     "comments": "",\r
5416     "outputs": 1,\r
5417     "x": 5317.033462524414,\r
5418     "y": 5656.083267211914,\r
5419     "z": "c7b9cd35.bfac88",\r
5420     "wires": [\r
5421       [\r
5422         "c380fc3b.e6c15",\r
5423         "4e971f2e.5d2078",\r
5424         "7fabceea.e8bd9"\r
5425       ]\r
5426     ]\r
5427   },\r
5428   {\r
5429     "id": "748c1810.be501",\r
5430     "type": "returnFailure",\r
5431     "name": "return failure",\r
5432     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='Root Connectivity was not found' />\n",\r
5433     "comments": "",\r
5434     "x": 5305.033462524414,\r
5435     "y": 5703.083267211914,\r
5436     "z": "c7b9cd35.bfac88",\r
5437     "wires": []\r
5438   },\r
5439   {\r
5440     "id": "bf0ec53.d08f2b8",\r
5441     "type": "comment",\r
5442     "name": "Update connectivity status to modified",\r
5443     "info": "",\r
5444     "comments": "",\r
5445     "x": 5626.917251586914,\r
5446     "y": 5756.966567993164,\r
5447     "z": "c7b9cd35.bfac88",\r
5448     "wires": []\r
5449   },\r
5450   {\r
5451     "id": "7fabceea.e8bd9",\r
5452     "type": "save",\r
5453     "name": "update connectivity resource in AAI",\r
5454     "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
5455     "comments": "",\r
5456     "outputs": 1,\r
5457     "x": 5630.700454711914,\r
5458     "y": 5795.166763305664,\r
5459     "z": "c7b9cd35.bfac88",\r
5460     "wires": [\r
5461       []\r
5462     ]\r
5463   },\r
5464   {\r
5465     "id": "4e971f2e.5d2078",\r
5466     "type": "save",\r
5467     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
5468     "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
5469     "comments": "",\r
5470     "outputs": 1,\r
5471     "x": 5737.033462524414,\r
5472     "y": 5708.083267211914,\r
5473     "z": "c7b9cd35.bfac88",\r
5474     "wires": [\r
5475       []\r
5476     ]\r
5477   },\r
5478   {\r
5479     "id": "c380fc3b.e6c15",\r
5480     "type": "set",\r
5481     "name": "set prop.connectivity-domainB-uuid",\r
5482     "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
5483     "comments": "",\r
5484     "x": 5621.033462524414,\r
5485     "y": 5656.083267211914,\r
5486     "z": "c7b9cd35.bfac88",\r
5487     "wires": []\r
5488   },\r
5489   {\r
5490     "id": "ddfb9582.3445a8",\r
5491     "type": "comment",\r
5492     "name": "populate connectivity-B variable in the context map",\r
5493     "info": "",\r
5494     "comments": "",\r
5495     "x": 5012.033462524414,\r
5496     "y": 5561.083267211914,\r
5497     "z": "c7b9cd35.bfac88",\r
5498     "wires": []\r
5499   },\r
5500   {\r
5501     "id": "3c1017d1.449bb",\r
5502     "type": "block",\r
5503     "name": "block",\r
5504     "xml": "<block>\n",\r
5505     "atomic": "false",\r
5506     "comments": "",\r
5507     "outputs": 1,\r
5508     "x": 4724.366470336914,\r
5509     "y": 5736.083267211914,\r
5510     "z": "c7b9cd35.bfac88",\r
5511     "wires": [\r
5512       [\r
5513         "aa096a62.a00c18",\r
5514         "a1684c9.099dc3",\r
5515         "a4cbceb2.4df788",\r
5516         "9c03eaae.aa875"\r
5517       ]\r
5518     ]\r
5519   },\r
5520   {\r
5521     "id": "21e17170.9d1c4e",\r
5522     "type": "save",\r
5523     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
5524     "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
5525     "comments": "",\r
5526     "outputs": 1,\r
5527     "x": 5024.399673461914,\r
5528     "y": 6096.766860961914,\r
5529     "z": "c7b9cd35.bfac88",\r
5530     "wires": [\r
5531       []\r
5532     ]\r
5533   },\r
5534   {\r
5535     "id": "bfe53aa3.d585a8",\r
5536     "type": "call",\r
5537     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-searchVpnName",\r
5538     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-searchVpnName' mode='sync' >\n\n",\r
5539     "comments": "",\r
5540     "outputs": 1,\r
5541     "x": 5830.683334350586,\r
5542     "y": 6933.683334350586,\r
5543     "z": "c7b9cd35.bfac88",\r
5544     "wires": [\r
5545       []\r
5546     ]\r
5547   },\r
5548   {\r
5549     "id": "66be0922.f0399",\r
5550     "type": "block",\r
5551     "name": "block : atomic",\r
5552     "xml": "<block atomic='true'>",\r
5553     "atomic": "true",\r
5554     "comments": "",\r
5555     "outputs": 1,\r
5556     "x": 5449.683334350586,\r
5557     "y": 6936.683334350586,\r
5558     "z": "c7b9cd35.bfac88",\r
5559     "wires": [\r
5560       [\r
5561         "bfe53aa3.d585a8",\r
5562         "f8b29486.7e71d",\r
5563         "bf54edf8.ad3758"\r
5564       ]\r
5565     ]\r
5566   },\r
5567   {\r
5568     "id": "f8b29486.7e71d",\r
5569     "type": "switchNode",\r
5570     "name": "switch $foundVpnName",\r
5571     "xml": "<switch test=\"`$foundVpnName`\">\n\n",\r
5572     "comments": "",\r
5573     "outputs": 1,\r
5574     "x": 5675.683334350586,\r
5575     "y": 6988.683334350586,\r
5576     "z": "c7b9cd35.bfac88",\r
5577     "wires": [\r
5578       [\r
5579         "45d6980.5fa0ee8"\r
5580       ]\r
5581     ]\r
5582   },\r
5583   {\r
5584     "id": "45d6980.5fa0ee8",\r
5585     "type": "outcomeTrue",\r
5586     "name": "true",\r
5587     "xml": "<outcome value='true'>\n",\r
5588     "comments": "",\r
5589     "outputs": 1,\r
5590     "x": 5854.683334350586,\r
5591     "y": 6987.683334350586,\r
5592     "z": "c7b9cd35.bfac88",\r
5593     "wires": [\r
5594       [\r
5595         "646b562c.1751a8"\r
5596       ]\r
5597     ]\r
5598   },\r
5599   {\r
5600     "id": "bf54edf8.ad3758",\r
5601     "type": "set",\r
5602     "name": "set vpnNameToSearch",\r
5603     "xml": "<set>\n<parameter name='vpnNameToSearch' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-name`\" />\n",\r
5604     "comments": "",\r
5605     "x": 5676.683334350586,\r
5606     "y": 6881.683334350586,\r
5607     "z": "c7b9cd35.bfac88",\r
5608     "wires": []\r
5609   },\r
5610   {\r
5611     "id": "7c0aae65.c25f7",\r
5612     "type": "notify",\r
5613     "name": "notify",\r
5614     "xml": "<notify plugin='' resource='' action='' >\n",\r
5615     "comments": "",\r
5616     "outputs": 1,\r
5617     "x": 2670.683334350586,\r
5618     "y": 930.6833343505859,\r
5619     "z": "c7b9cd35.bfac88",\r
5620     "wires": [\r
5621       []\r
5622     ]\r
5623   },\r
5624   {\r
5625     "id": "c9e93381.966988",\r
5626     "type": "set",\r
5627     "name": "set network-route-three",\r
5628     "xml": "<set>\n<parameter name='network-route-three' value=\"`$tmp.aai.logical-link.segment-id`\" />\n\n\n",\r
5629     "comments": "",\r
5630     "x": 3348.683334350586,\r
5631     "y": 706.6833343505859,\r
5632     "z": "c7b9cd35.bfac88",\r
5633     "wires": []\r
5634   },\r
5635   {\r
5636     "id": "18d11d50.cb3a7b",\r
5637     "type": "not-found",\r
5638     "name": "not-found",\r
5639     "xml": "<outcome value='not-found'>\n",\r
5640     "comments": "",\r
5641     "outputs": 1,\r
5642     "x": 3564.683334350586,\r
5643     "y": 1034.683334350586,\r
5644     "z": "c7b9cd35.bfac88",\r
5645     "wires": [\r
5646       []\r
5647     ]\r
5648   },\r
5649   {\r
5650     "id": "e2e500c.35b568",\r
5651     "type": "failure",\r
5652     "name": "failure",\r
5653     "xml": "<outcome value='failure'>\n",\r
5654     "comments": "",\r
5655     "outputs": 1,\r
5656     "x": 3560.192398071289,\r
5657     "y": 1077.109390258789,\r
5658     "z": "c7b9cd35.bfac88",\r
5659     "wires": [\r
5660       []\r
5661     ]\r
5662   },\r
5663   {\r
5664     "id": "ac92425e.1b5228",\r
5665     "type": "success",\r
5666     "name": "success",\r
5667     "xml": "<outcome value='success'>\n",\r
5668     "comments": "",\r
5669     "outputs": 1,\r
5670     "x": 3564.192367553711,\r
5671     "y": 1125.109359741211,\r
5672     "z": "c7b9cd35.bfac88",\r
5673     "wires": [\r
5674       [\r
5675         "74bd1e76.c1a798"\r
5676       ]\r
5677     ]\r
5678   },\r
5679   {\r
5680     "id": "74bd1e76.c1a798",\r
5681     "type": "block",\r
5682     "name": "block : atomic",\r
5683     "xml": "<block atomic=\"true\">",\r
5684     "atomic": "true",\r
5685     "outputs": 1,\r
5686     "x": 3721.683334350586,\r
5687     "y": 1124.683334350586,\r
5688     "z": "c7b9cd35.bfac88",\r
5689     "wires": [\r
5690       [\r
5691         "75cda54f.508c54"\r
5692       ]\r
5693     ]\r
5694   },\r
5695   {\r
5696     "id": "75cda54f.508c54",\r
5697     "type": "switchNode",\r
5698     "name": "switch nr type",\r
5699     "xml": "<switch test='`$tmp.aai.network-route-three.type`'>\n",\r
5700     "comments": "",\r
5701     "outputs": 1,\r
5702     "x": 3891.683364868164,\r
5703     "y": 1127.6834869384766,\r
5704     "z": "c7b9cd35.bfac88",\r
5705     "wires": [\r
5706       [\r
5707         "b5759425.3c5bd",\r
5708         "a5689d25.4480b8",\r
5709         "32c4f78e.6013e8"\r
5710       ]\r
5711     ]\r
5712   },\r
5713   {\r
5714     "id": "b5759425.3c5bd",\r
5715     "type": "outcome",\r
5716     "name": "ROOT",\r
5717     "xml": "<outcome value='ROOT'>\n",\r
5718     "comments": "",\r
5719     "outputs": 1,\r
5720     "x": 4065.683334350586,\r
5721     "y": 1065.6834564208984,\r
5722     "z": "c7b9cd35.bfac88",\r
5723     "wires": [\r
5724       [\r
5725         "e254226b.74faf"\r
5726       ]\r
5727     ]\r
5728   },\r
5729   {\r
5730     "id": "a5689d25.4480b8",\r
5731     "type": "outcome",\r
5732     "name": "LEAF",\r
5733     "xml": "<outcome value='LEAF'>\n",\r
5734     "comments": "",\r
5735     "outputs": 1,\r
5736     "x": 4067.683334350586,\r
5737     "y": 1119.6834564208984,\r
5738     "z": "c7b9cd35.bfac88",\r
5739     "wires": [\r
5740       [\r
5741         "b214dc3a.ed1eb8"\r
5742       ]\r
5743     ]\r
5744   },\r
5745   {\r
5746     "id": "e254226b.74faf",\r
5747     "type": "block",\r
5748     "name": "block",\r
5749     "xml": "<block>\n",\r
5750     "atomic": "false",\r
5751     "comments": "",\r
5752     "outputs": 1,\r
5753     "x": 4193.683334350586,\r
5754     "y": 1065.6834564208984,\r
5755     "z": "c7b9cd35.bfac88",\r
5756     "wires": [\r
5757       [\r
5758         "1e63a796.08e87",\r
5759         "c1790587.ac9f08"\r
5760       ]\r
5761     ]\r
5762   },\r
5763   {\r
5764     "id": "b214dc3a.ed1eb8",\r
5765     "type": "block",\r
5766     "name": "block",\r
5767     "xml": "<block>\n",\r
5768     "atomic": "false",\r
5769     "comments": "",\r
5770     "outputs": 1,\r
5771     "x": 4196.683334350586,\r
5772     "y": 1118.6834564208984,\r
5773     "z": "c7b9cd35.bfac88",\r
5774     "wires": [\r
5775       [\r
5776         "ea9630d6.e1db68",\r
5777         "7cd0ca92.870d14"\r
5778       ]\r
5779     ]\r
5780   },\r
5781   {\r
5782     "id": "c1790587.ac9f08",\r
5783     "type": "set",\r
5784     "name": "set network-route-B",\r
5785     "xml": "<set>\n<parameter name='tmp.aai.network-route-B.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
5786     "comments": "",\r
5787     "x": 4354.683334350586,\r
5788     "y": 1089.6834564208984,\r
5789     "z": "c7b9cd35.bfac88",\r
5790     "wires": []\r
5791   },\r
5792   {\r
5793     "id": "ea9630d6.e1db68",\r
5794     "type": "set",\r
5795     "name": "set network-route-LEAF",\r
5796     "xml": "<set>\n<parameter name='tmp.aai.network-route-LEAF.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
5797     "comments": "",\r
5798     "x": 4371.683334350586,\r
5799     "y": 1131.6834564208984,\r
5800     "z": "c7b9cd35.bfac88",\r
5801     "wires": []\r
5802   },\r
5803   {\r
5804     "id": "7cd0ca92.870d14",\r
5805     "type": "set",\r
5806     "name": "set network-route-A",\r
5807     "xml": "<set>\n<parameter name='tmp.aai.network-route-A.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
5808     "comments": "",\r
5809     "x": 4356.683334350586,\r
5810     "y": 1169.6834564208984,\r
5811     "z": "c7b9cd35.bfac88",\r
5812     "wires": []\r
5813   },\r
5814   {\r
5815     "id": "1e63a796.08e87",\r
5816     "type": "set",\r
5817     "name": "set network-route-ROOT",\r
5818     "xml": "<set>\n<parameter name='tmp.aai.network-route-ROOT.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
5819     "comments": "",\r
5820     "x": 4368.683334350586,\r
5821     "y": 1049.6834564208984,\r
5822     "z": "c7b9cd35.bfac88",\r
5823     "wires": []\r
5824   },\r
5825   {\r
5826     "id": "5b64a8f4.eea95",\r
5827     "type": "comment",\r
5828     "name": "This is it (should be)",\r
5829     "info": "",\r
5830     "comments": "",\r
5831     "x": 4533.683334350586,\r
5832     "y": 1065.6834564208984,\r
5833     "z": "c7b9cd35.bfac88",\r
5834     "wires": []\r
5835   },\r
5836   {\r
5837     "id": "5fc9799.82ba788",\r
5838     "type": "save",\r
5839     "name": "get network-route-three from aai",\r
5840     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-route\"\n\tkey='network-route.route-id = $network-route-three'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-route-three\">",\r
5841     "comments": "",\r
5842     "outputs": 1,\r
5843     "x": 3324.683334350586,\r
5844     "y": 1051.683334350586,\r
5845     "z": "c7b9cd35.bfac88",\r
5846     "wires": [\r
5847       [\r
5848         "18d11d50.cb3a7b",\r
5849         "e2e500c.35b568",\r
5850         "ac92425e.1b5228"\r
5851       ]\r
5852     ]\r
5853   },\r
5854   {\r
5855     "id": "32c4f78e.6013e8",\r
5856     "type": "outcome",\r
5857     "name": "SECONDARY-ROOT",\r
5858     "xml": "<outcome value='SECONDARY-ROOT'>\n",\r
5859     "comments": "",\r
5860     "outputs": 1,\r
5861     "x": 4010.683334350586,\r
5862     "y": 1183.683334350586,\r
5863     "z": "c7b9cd35.bfac88",\r
5864     "wires": [\r
5865       [\r
5866         "e8d5048b.eb9908"\r
5867       ]\r
5868     ]\r
5869   },\r
5870   {\r
5871     "id": "e8d5048b.eb9908",\r
5872     "type": "block",\r
5873     "name": "block",\r
5874     "xml": "<block>\n",\r
5875     "atomic": "false",\r
5876     "comments": "",\r
5877     "outputs": 1,\r
5878     "x": 4184.683334350586,\r
5879     "y": 1178.683334350586,\r
5880     "z": "c7b9cd35.bfac88",\r
5881     "wires": [\r
5882       [\r
5883         "cbdde789.933e38",\r
5884         "ff9c265d.ccb66"\r
5885       ]\r
5886     ]\r
5887   },\r
5888   {\r
5889     "id": "ff9c265d.ccb66",\r
5890     "type": "set",\r
5891     "name": "set network-route-C",\r
5892     "xml": "<set>\n<parameter name='tmp.aai.network-route-C.' value=\"`$tmp.aai.network-route-three.`\" />\n\n\n",\r
5893     "comments": "",\r
5894     "x": 4354.683334350586,\r
5895     "y": 1251.683334350586,\r
5896     "z": "c7b9cd35.bfac88",\r
5897     "wires": []\r
5898   },\r
5899   {\r
5900     "id": "cbdde789.933e38",\r
5901     "type": "set",\r
5902     "name": "set network-route-SECONDARY-ROOT",\r
5903     "xml": "<set>\n<parameter name='tmp.aai.network-route-SECONDARY-ROOT.' value=\"`$tmp.aai.network-route-three.`\" />\n\n\n",\r
5904     "comments": "",\r
5905     "x": 4408.683334350586,\r
5906     "y": 1211.683334350586,\r
5907     "z": "c7b9cd35.bfac88",\r
5908     "wires": []\r
5909   },\r
5910   {\r
5911     "id": "fa28f519.9b734",\r
5912     "type": "comment",\r
5913     "name": "This is it (should be)",\r
5914     "info": "",\r
5915     "comments": "",\r
5916     "x": 4522.683334350586,\r
5917     "y": 1236.683334350586,\r
5918     "z": "c7b9cd35.bfac88",\r
5919     "wires": []\r
5920   },\r
5921   {\r
5922     "id": "65095290.735c7c",\r
5923     "type": "outcome",\r
5924     "name": "SECONDARY-ROOT",\r
5925     "xml": "<outcome value='SECONDARY-ROOT'>\n",\r
5926     "comments": "",\r
5927     "outputs": 1,\r
5928     "x": 4081.683334350586,\r
5929     "y": 939.6833343505859,\r
5930     "z": "c7b9cd35.bfac88",\r
5931     "wires": [\r
5932       [\r
5933         "6a27287d.2ebf6"\r
5934       ]\r
5935     ]\r
5936   },\r
5937   {\r
5938     "id": "d7809ac8.28364",\r
5939     "type": "set",\r
5940     "name": "set network-route-C",\r
5941     "xml": "<set>\n<parameter name='tmp.aai.network-route-C.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
5942     "comments": "",\r
5943     "x": 4425.683334350586,\r
5944     "y": 1007.6833343505859,\r
5945     "z": "c7b9cd35.bfac88",\r
5946     "wires": []\r
5947   },\r
5948   {\r
5949     "id": "38b369ba.8d91fe",\r
5950     "type": "set",\r
5951     "name": "set network-route-SECONDARY-ROOT",\r
5952     "xml": "<set>\n<parameter name='tmp.aai.network-route-SECONDARY-ROOT.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
5953     "comments": "",\r
5954     "x": 4479.683334350586,\r
5955     "y": 967.6833343505859,\r
5956     "z": "c7b9cd35.bfac88",\r
5957     "wires": []\r
5958   },\r
5959   {\r
5960     "id": "7d1c2c8b.bd9814",\r
5961     "type": "comment",\r
5962     "name": "This is it (should be)",\r
5963     "info": "",\r
5964     "comments": "",\r
5965     "x": 4623.683334350586,\r
5966     "y": 996.6833343505859,\r
5967     "z": "c7b9cd35.bfac88",\r
5968     "wires": []\r
5969   },\r
5970   {\r
5971     "id": "6a27287d.2ebf6",\r
5972     "type": "block",\r
5973     "name": "block",\r
5974     "xml": "<block>\n",\r
5975     "atomic": "false",\r
5976     "comments": "",\r
5977     "outputs": 1,\r
5978     "x": 4255.683334350586,\r
5979     "y": 934.6833343505859,\r
5980     "z": "c7b9cd35.bfac88",\r
5981     "wires": [\r
5982       [\r
5983         "38b369ba.8d91fe",\r
5984         "d7809ac8.28364"\r
5985       ]\r
5986     ]\r
5987   },\r
5988   {\r
5989     "id": "b03ebc69.8e68d8",\r
5990     "type": "outcome",\r
5991     "name": "SECONDARY-ROOT",\r
5992     "xml": "<outcome value='SECONDARY-ROOT'>\n",\r
5993     "comments": "",\r
5994     "outputs": 1,\r
5995     "x": 4141.683334350586,\r
5996     "y": 677.6833343505859,\r
5997     "z": "c7b9cd35.bfac88",\r
5998     "wires": [\r
5999       [\r
6000         "e58f35e3.4b6a2"\r
6001       ]\r
6002     ]\r
6003   },\r
6004   {\r
6005     "id": "6a2c136e.692edc",\r
6006     "type": "set",\r
6007     "name": "set network-route-C",\r
6008     "xml": "<set>\n<parameter name='tmp.aai.network-route-C.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
6009     "comments": "",\r
6010     "x": 4485.683334350586,\r
6011     "y": 745.6833343505859,\r
6012     "z": "c7b9cd35.bfac88",\r
6013     "wires": []\r
6014   },\r
6015   {\r
6016     "id": "66ae94b1.018af4",\r
6017     "type": "set",\r
6018     "name": "set network-route-SECONDARY-ROOT",\r
6019     "xml": "<set>\n<parameter name='tmp.aai.network-route-SECONDARY-ROOT.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
6020     "comments": "",\r
6021     "x": 4539.683334350586,\r
6022     "y": 705.6833343505859,\r
6023     "z": "c7b9cd35.bfac88",\r
6024     "wires": []\r
6025   },\r
6026   {\r
6027     "id": "33be367d.fbce62",\r
6028     "type": "comment",\r
6029     "name": "This is it (should be)",\r
6030     "info": "",\r
6031     "comments": "",\r
6032     "x": 4653.683334350586,\r
6033     "y": 730.6833343505859,\r
6034     "z": "c7b9cd35.bfac88",\r
6035     "wires": []\r
6036   },\r
6037   {\r
6038     "id": "e58f35e3.4b6a2",\r
6039     "type": "block",\r
6040     "name": "block",\r
6041     "xml": "<block>\n",\r
6042     "atomic": "false",\r
6043     "comments": "",\r
6044     "outputs": 1,\r
6045     "x": 4315.683334350586,\r
6046     "y": 672.6833343505859,\r
6047     "z": "c7b9cd35.bfac88",\r
6048     "wires": [\r
6049       [\r
6050         "66ae94b1.018af4",\r
6051         "6a2c136e.692edc"\r
6052       ]\r
6053     ]\r
6054   },\r
6055   {\r
6056     "id": "64cdb464.83135c",\r
6057     "type": "block",\r
6058     "name": "block : atomic",\r
6059     "xml": "<block atomic=\"true\">",\r
6060     "atomic": "true",\r
6061     "outputs": 1,\r
6062     "x": 3722.683334350586,\r
6063     "y": 2554.683334350586,\r
6064     "z": "c7b9cd35.bfac88",\r
6065     "wires": [\r
6066       [\r
6067         "7a3829d.42a01d8",\r
6068         "d03e5e53.5cee58"\r
6069       ]\r
6070     ]\r
6071   },\r
6072   {\r
6073     "id": "6e42edd4.58cd0c",\r
6074     "type": "success",\r
6075     "name": "success",\r
6076     "xml": "<outcome value='success'>\n",\r
6077     "comments": "",\r
6078     "outputs": 1,\r
6079     "x": 3550.016830444336,\r
6080     "y": 2555.683334350586,\r
6081     "z": "c7b9cd35.bfac88",\r
6082     "wires": [\r
6083       [\r
6084         "64cdb464.83135c"\r
6085       ]\r
6086     ]\r
6087   },\r
6088   {\r
6089     "id": "b61e07a3.0e4238",\r
6090     "type": "not-found",\r
6091     "name": "not-found",\r
6092     "xml": "<outcome value='not-found'>\n",\r
6093     "comments": "",\r
6094     "outputs": 1,\r
6095     "x": 3559.507797241211,\r
6096     "y": 2598.257369995117,\r
6097     "z": "c7b9cd35.bfac88",\r
6098     "wires": [\r
6099       []\r
6100     ]\r
6101   },\r
6102   {\r
6103     "id": "2df3a08e.41f4c",\r
6104     "type": "failure",\r
6105     "name": "failure",\r
6106     "xml": "<outcome value='failure'>\n",\r
6107     "comments": "",\r
6108     "outputs": 1,\r
6109     "x": 3548.016830444336,\r
6110     "y": 2644.683334350586,\r
6111     "z": "c7b9cd35.bfac88",\r
6112     "wires": [\r
6113       []\r
6114     ]\r
6115   },\r
6116   {\r
6117     "id": "7a3829d.42a01d8",\r
6118     "type": "execute",\r
6119     "name": "execute split tp-id to get pnf-name",\r
6120     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-C.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-domainC\"/>\n\n\n",\r
6121     "comments": "",\r
6122     "outputs": 1,\r
6123     "x": 4009.016830444336,\r
6124     "y": 2558.6834564208984,\r
6125     "z": "c7b9cd35.bfac88",\r
6126     "wires": [\r
6127       [\r
6128         "38c64779.e618f",\r
6129         "14f81708.27e459"\r
6130       ]\r
6131     ]\r
6132   },\r
6133   {\r
6134     "id": "14f81708.27e459",\r
6135     "type": "failure",\r
6136     "name": "success",\r
6137     "xml": "<outcome value='success'>\n",\r
6138     "comments": "",\r
6139     "outputs": 1,\r
6140     "x": 4232.016830444336,\r
6141     "y": 2513.6834564208984,\r
6142     "z": "c7b9cd35.bfac88",\r
6143     "wires": [\r
6144       [\r
6145         "2753f3be.c9c924"\r
6146       ]\r
6147     ]\r
6148   },\r
6149   {\r
6150     "id": "38c64779.e618f",\r
6151     "type": "failure",\r
6152     "name": "failure",\r
6153     "xml": "<outcome value='failure'>\n",\r
6154     "comments": "",\r
6155     "outputs": 1,\r
6156     "x": 4234.016830444336,\r
6157     "y": 2577.6834564208984,\r
6158     "z": "c7b9cd35.bfac88",\r
6159     "wires": [\r
6160       [\r
6161         "43ad3093.31a088"\r
6162       ]\r
6163     ]\r
6164   },\r
6165   {\r
6166     "id": "9fbb56ee.c43378",\r
6167     "type": "save",\r
6168     "name": "get p-interface-dst from aai",\r
6169     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t    key=\"pnf.pnf-name = $tmp.dst.domainC.pnf-name\n\t        AND p-interface.interface-name = $tmp.aai.network-route-C.next-hop\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.network-route-C.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
6170     "comments": "",\r
6171     "outputs": 1,\r
6172     "x": 3322.016830444336,\r
6173     "y": 2590.683334350586,\r
6174     "z": "c7b9cd35.bfac88",\r
6175     "wires": [\r
6176       [\r
6177         "6e42edd4.58cd0c",\r
6178         "b61e07a3.0e4238",\r
6179         "2df3a08e.41f4c"\r
6180       ]\r
6181     ]\r
6182   },\r
6183   {\r
6184     "id": "ac1718b4.765b78",\r
6185     "type": "comment",\r
6186     "name": "Question?",\r
6187     "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
6188     "comments": "",\r
6189     "x": 3283.016830444336,\r
6190     "y": 2534.683334350586,\r
6191     "z": "c7b9cd35.bfac88",\r
6192     "wires": []\r
6193   },\r
6194   {\r
6195     "id": "7ebd6769.0b5428",\r
6196     "type": "execute",\r
6197     "name": "execute split tp-id to get pnf-name",\r
6198     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-C.next-hop`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainC-pnfName\"/>\n\n",\r
6199     "comments": "",\r
6200     "outputs": 1,\r
6201     "x": 3342.016830444336,\r
6202     "y": 2330.683334350586,\r
6203     "z": "c7b9cd35.bfac88",\r
6204     "wires": [\r
6205       [\r
6206         "2f0a58a8.ee7038",\r
6207         "79cdcb97.546894"\r
6208       ]\r
6209     ]\r
6210   },\r
6211   {\r
6212     "id": "79cdcb97.546894",\r
6213     "type": "failure",\r
6214     "name": "success",\r
6215     "xml": "<outcome value='success'>\n",\r
6216     "comments": "",\r
6217     "outputs": 1,\r
6218     "x": 3565.016830444336,\r
6219     "y": 2316.683334350586,\r
6220     "z": "c7b9cd35.bfac88",\r
6221     "wires": [\r
6222       [\r
6223         "49eedb67.f00374"\r
6224       ]\r
6225     ]\r
6226   },\r
6227   {\r
6228     "id": "2f0a58a8.ee7038",\r
6229     "type": "failure",\r
6230     "name": "failure",\r
6231     "xml": "<outcome value='failure'>\n",\r
6232     "comments": "",\r
6233     "outputs": 1,\r
6234     "x": 3567.016830444336,\r
6235     "y": 2349.683334350586,\r
6236     "z": "c7b9cd35.bfac88",\r
6237     "wires": [\r
6238       []\r
6239     ]\r
6240   },\r
6241   {\r
6242     "id": "49eedb67.f00374",\r
6243     "type": "block",\r
6244     "name": "block : atomic",\r
6245     "xml": "<block atomic=\"true\">",\r
6246     "atomic": "true",\r
6247     "outputs": 1,\r
6248     "x": 3713.016830444336,\r
6249     "y": 2309.683334350586,\r
6250     "z": "c7b9cd35.bfac88",\r
6251     "wires": [\r
6252       [\r
6253         "f5d93681.391ea",\r
6254         "66937670.413898"\r
6255       ]\r
6256     ]\r
6257   },\r
6258   {\r
6259     "id": "f5d93681.391ea",\r
6260     "type": "set",\r
6261     "name": "set pnf-name",\r
6262     "xml": "<set>\n<parameter name='tmp.dst.domainC.pnf-name' value=\"`$param-prefix-domainC-pnfName[0] + '-' +\n                                                   $param-prefix-domainC-pnfName[1] + '-' +\n                                                   $param-prefix-domainC-pnfName[2] + '-' +\n                                                   $param-prefix-domainC-pnfName[3] + '-' +\n                                                   $param-prefix-domainC-pnfName[4] + '-' +\n                                                   $param-prefix-domainC-pnfName[5] + '-' +\n                                                   $param-prefix-domainC-pnfName[6] + '-' +\n                                                   $param-prefix-domainC-pnfName[7] + '-' +\n                                                   $param-prefix-domainC-pnfName[8]`\" />\n",\r
6263     "comments": "",\r
6264     "x": 3907.016830444336,\r
6265     "y": 2312.6834564208984,\r
6266     "z": "c7b9cd35.bfac88",\r
6267     "wires": []\r
6268   },\r
6269   {\r
6270     "id": "d03e5e53.5cee58",\r
6271     "type": "for",\r
6272     "name": "for each relationship",\r
6273     "xml": "<for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-C.p-interface-dst.relationship-list.relationship_length`' >\n",\r
6274     "comments": "",\r
6275     "outputs": 1,\r
6276     "x": 3960.016799926758,\r
6277     "y": 2681.683303833008,\r
6278     "z": "c7b9cd35.bfac88",\r
6279     "wires": [\r
6280       [\r
6281         "1dfcba6a.928896"\r
6282       ]\r
6283     ]\r
6284   },\r
6285   {\r
6286     "id": "1dfcba6a.928896",\r
6287     "type": "switchNode",\r
6288     "name": "switch related-to",\r
6289     "xml": "<switch test='`$tmp.aai.network-route-C.p-interface-dst.relationship-list.relationship[$dividx].related-to`'>\n",\r
6290     "comments": "",\r
6291     "outputs": 1,\r
6292     "x": 4166.016799926758,\r
6293     "y": 2681.683303833008,\r
6294     "z": "c7b9cd35.bfac88",\r
6295     "wires": [\r
6296       [\r
6297         "ad7b62a1.1a3de8"\r
6298       ]\r
6299     ]\r
6300   },\r
6301   {\r
6302     "id": "66937670.413898",\r
6303     "type": "get-resource",\r
6304     "name": "get-resource src pnf",\r
6305     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.dst.domainC.pnf-name\"\n        pfx='tmp.aai.destination-secondary-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
6306     "comments": "",\r
6307     "outputs": 1,\r
6308     "x": 3929.016830444336,\r
6309     "y": 2380.6834564208984,\r
6310     "z": "c7b9cd35.bfac88",\r
6311     "wires": [\r
6312       [\r
6313         "7e1c1529.6f1464",\r
6314         "e1251115.be77b",\r
6315         "d084db0e.513758"\r
6316       ]\r
6317     ]\r
6318   },\r
6319   {\r
6320     "id": "7e1c1529.6f1464",\r
6321     "type": "success",\r
6322     "name": "success",\r
6323     "xml": "<outcome value='success'>\n",\r
6324     "comments": "",\r
6325     "outputs": 1,\r
6326     "x": 4124.516952514648,\r
6327     "y": 2332.6834564208984,\r
6328     "z": "c7b9cd35.bfac88",\r
6329     "wires": [\r
6330       [\r
6331         "24a5d36d.06630c"\r
6332       ]\r
6333     ]\r
6334   },\r
6335   {\r
6336     "id": "e1251115.be77b",\r
6337     "type": "not-found",\r
6338     "name": "not-found",\r
6339     "xml": "<outcome value='not-found'>\n",\r
6340     "comments": "",\r
6341     "outputs": 1,\r
6342     "x": 4116.516952514648,\r
6343     "y": 2387.6834564208984,\r
6344     "z": "c7b9cd35.bfac88",\r
6345     "wires": [\r
6346       [\r
6347         "e4759099.9196a"\r
6348       ]\r
6349     ]\r
6350   },\r
6351   {\r
6352     "id": "d084db0e.513758",\r
6353     "type": "other",\r
6354     "name": "other",\r
6355     "xml": "<outcome value='Other'>\n",\r
6356     "comments": "",\r
6357     "outputs": 1,\r
6358     "x": 4121.516952514648,\r
6359     "y": 2444.6834564208984,\r
6360     "z": "c7b9cd35.bfac88",\r
6361     "wires": [\r
6362       [\r
6363         "68e5ccfb.96ac94"\r
6364       ]\r
6365     ]\r
6366   },\r
6367   {\r
6368     "id": "68e5ccfb.96ac94",\r
6369     "type": "returnFailure",\r
6370     "name": "return failure",\r
6371     "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
6372     "comments": "",\r
6373     "x": 4273.516952514648,\r
6374     "y": 2445.6834564208984,\r
6375     "z": "c7b9cd35.bfac88",\r
6376     "wires": []\r
6377   },\r
6378   {\r
6379     "id": "24a5d36d.06630c",\r
6380     "type": "block",\r
6381     "name": "block",\r
6382     "xml": "<block>\n",\r
6383     "atomic": "false",\r
6384     "comments": "",\r
6385     "outputs": 1,\r
6386     "x": 4268.899276733398,\r
6387     "y": 2330.339126586914,\r
6388     "z": "c7b9cd35.bfac88",\r
6389     "wires": [\r
6390       [\r
6391         "b2ff1ea.8d4406"\r
6392       ]\r
6393     ]\r
6394   },\r
6395   {\r
6396     "id": "387e5bde.fd50e4",\r
6397     "type": "set",\r
6398     "name": "set SECONDARY-ROOT stuff",\r
6399     "xml": "<set>\n<parameter name='tmp.SECONDARY-ROOT.pnf-name-long' value=\"`$param-prefix-domainC-pnfName[0] + '-' +\n                                                   $param-prefix-domainC-pnfName[1] + '-' +\n                                                   $param-prefix-domainC-pnfName[2] + '-' +\n                                                   $param-prefix-domainC-pnfName[3] + '-' +\n                                                   $param-prefix-domainC-pnfName[4] + '-' +\n                                                   $param-prefix-domainC-pnfName[5] + '-' +\n                                                   $param-prefix-domainC-pnfName[6] + '-' +\n                                                   $param-prefix-domainC-pnfName[7] + '-' +\n                                                   $param-prefix-domainC-pnfName[8]`\" />\n\n<!--<parameter name='tmp.ROOT.pnf-name-short' value=\"`$param-prefix-domainB-pnfName[8]`\" />-->\n<parameter name='tmp.SECONDARY-ROOT.pnf-name-short' value=\"`$tmp.dst-secondary.pnf-name`\" />\n\n<parameter name='tmp.SECONDARY-ROOT.uni-p-interface-long' value=\"`$tmp.aai.network-route-C.next-hop + '-' + $tmp.aai.network-route-C.logical-interface-id`\" />\n<parameter name='tmp.SECONDARY-ROOT.uni-tp-id' value=\"`$tmp.dst-secondary.ltpId`\" />\n",\r
6400     "comments": "",\r
6401     "x": 3344.683334350586,\r
6402     "y": 2669.683334350586,\r
6403     "z": "c7b9cd35.bfac88",\r
6404     "wires": []\r
6405   },\r
6406   {\r
6407     "id": "4cfd3be4.f62fcc",\r
6408     "type": "comment",\r
6409     "name": "NOT NEEDED ANYMORE?",\r
6410     "info": "",\r
6411     "comments": "",\r
6412     "x": 4019.683303833008,\r
6413     "y": 2633.683303833008,\r
6414     "z": "c7b9cd35.bfac88",\r
6415     "wires": []\r
6416   },\r
6417   {\r
6418     "id": "43ad3093.31a088",\r
6419     "type": "returnFailure",\r
6420     "name": "return failure",\r
6421     "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
6422     "comments": "",\r
6423     "x": 4393.016830444336,\r
6424     "y": 2596.6834564208984,\r
6425     "z": "c7b9cd35.bfac88",\r
6426     "wires": []\r
6427   },\r
6428   {\r
6429     "id": "2753f3be.c9c924",\r
6430     "type": "block",\r
6431     "name": "block : atomic",\r
6432     "xml": "<block atomic=\"true\">",\r
6433     "atomic": "true",\r
6434     "outputs": 1,\r
6435     "x": 4397.016830444336,\r
6436     "y": 2510.6834564208984,\r
6437     "z": "c7b9cd35.bfac88",\r
6438     "wires": [\r
6439       [\r
6440         "a6bf1231.b0b2f8",\r
6441         "b6449bb5.90e018"\r
6442       ]\r
6443     ]\r
6444   },\r
6445   {\r
6446     "id": "ad7b62a1.1a3de8",\r
6447     "type": "outcome",\r
6448     "name": "tunnel-termination-point",\r
6449     "xml": "<outcome value='tunnel-termination-point'>\n",\r
6450     "comments": "",\r
6451     "outputs": 1,\r
6452     "x": 4383.302444458008,\r
6453     "y": 2680.505081176758,\r
6454     "z": "c7b9cd35.bfac88",\r
6455     "wires": [\r
6456       [\r
6457         "e5d22111.f520c"\r
6458       ]\r
6459     ]\r
6460   },\r
6461   {\r
6462     "id": "e4759099.9196a",\r
6463     "type": "returnFailure",\r
6464     "name": "return failure",\r
6465     "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
6466     "comments": "",\r
6467     "x": 4284.516952514648,\r
6468     "y": 2390.6834564208984,\r
6469     "z": "c7b9cd35.bfac88",\r
6470     "wires": []\r
6471   },\r
6472   {\r
6473     "id": "a6bf1231.b0b2f8",\r
6474     "type": "set",\r
6475     "name": "set ltpId",\r
6476     "xml": "<set>\n<parameter name='tmp.dst-secondary.ltpId' value='`$param-prefix-domainC[$param-prefix-domainC_length -1]`' />\n",\r
6477     "comments": "",\r
6478     "x": 4567.016830444336,\r
6479     "y": 2471.6834564208984,\r
6480     "z": "c7b9cd35.bfac88",\r
6481     "wires": []\r
6482   },\r
6483   {\r
6484     "id": "b6449bb5.90e018",\r
6485     "type": "set",\r
6486     "name": "set pnf-name",\r
6487     "xml": "<set>\n<parameter name='tmp.dst-secondary.pnf-name' value='`$param-prefix-domainC[$param-prefix-domainC_length -3]`' />\n",\r
6488     "comments": "",\r
6489     "x": 4568.016830444336,\r
6490     "y": 2576.6834564208984,\r
6491     "z": "c7b9cd35.bfac88",\r
6492     "wires": []\r
6493   },\r
6494   {\r
6495     "id": "2544beb5.524cf2",\r
6496     "type": "comment",\r
6497     "name": "TODO: FIXME",\r
6498     "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
6499     "comments": "",\r
6500     "x": 4563.016830444336,\r
6501     "y": 2525.6834564208984,\r
6502     "z": "c7b9cd35.bfac88",\r
6503     "wires": []\r
6504   },\r
6505   {\r
6506     "id": "e5d22111.f520c",\r
6507     "type": "block",\r
6508     "name": "block : atomic",\r
6509     "xml": "<block atomic=\"true\">",\r
6510     "atomic": "true",\r
6511     "outputs": 1,\r
6512     "x": 4590.133987426758,\r
6513     "y": 2670.0237579345703,\r
6514     "z": "c7b9cd35.bfac88",\r
6515     "wires": [\r
6516       [\r
6517         "387e5354.258eec",\r
6518         "d91f6407.9298c8",\r
6519         "8a12363d.8f67b8"\r
6520       ]\r
6521     ]\r
6522   },\r
6523   {\r
6524     "id": "387e5354.258eec",\r
6525     "type": "set",\r
6526     "name": "set destination ttp-id",\r
6527     "xml": "<set>\n<parameter name='tmp.destination-secondary.ttp-id' value=\"`$tmp.aai.network-route-C.p-interface-dst.relationship-list.relationship[$dividx].relationship-data[0].relationship-value`\" />\n",\r
6528     "comments": "",\r
6529     "x": 4805.133987426758,\r
6530     "y": 2632.0237579345703,\r
6531     "z": "c7b9cd35.bfac88",\r
6532     "wires": []\r
6533   },\r
6534   {\r
6535     "id": "d91f6407.9298c8",\r
6536     "type": "get-resource",\r
6537     "name": "get-resource src TTP",\r
6538     "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-secondary.ttp-id \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.destination-secondary-ttp' local-only='false' >\n\n\n",\r
6539     "comments": "",\r
6540     "outputs": 1,\r
6541     "x": 4802.133987426758,\r
6542     "y": 2671.0237579345703,\r
6543     "z": "c7b9cd35.bfac88",\r
6544     "wires": [\r
6545       [\r
6546         "824c0ca3.93f64"\r
6547       ]\r
6548     ]\r
6549   },\r
6550   {\r
6551     "id": "8a12363d.8f67b8",\r
6552     "type": "break",\r
6553     "name": "break",\r
6554     "xml": "<break>\n",\r
6555     "comments": "",\r
6556     "x": 4757.633987426758,\r
6557     "y": 2713.0237579345703,\r
6558     "z": "c7b9cd35.bfac88",\r
6559     "wires": []\r
6560   },\r
6561   {\r
6562     "id": "b23c99bf.cf2e8",\r
6563     "type": "outcome",\r
6564     "name": "esr-thirdparty-sdnc",\r
6565     "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
6566     "comments": "",\r
6567     "outputs": 1,\r
6568     "x": 4851.016830444336,\r
6569     "y": 2348.6834564208984,\r
6570     "z": "c7b9cd35.bfac88",\r
6571     "wires": [\r
6572       [\r
6573         "97206b42.8c742"\r
6574       ]\r
6575     ]\r
6576   },\r
6577   {\r
6578     "id": "b2ff1ea.8d4406",\r
6579     "type": "for",\r
6580     "name": "for each relationship",\r
6581     "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-secondary-pnf.relationship-list.relationship_length`' >\n",\r
6582     "comments": "",\r
6583     "outputs": 1,\r
6584     "x": 4453.016830444336,\r
6585     "y": 2344.6834564208984,\r
6586     "z": "c7b9cd35.bfac88",\r
6587     "wires": [\r
6588       [\r
6589         "3bc9e41b.32e2f4"\r
6590       ]\r
6591     ]\r
6592   },\r
6593   {\r
6594     "id": "3bc9e41b.32e2f4",\r
6595     "type": "switchNode",\r
6596     "name": "switch related-to",\r
6597     "xml": "<switch test='`$tmp.aai.destination-secondary-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",\r
6598     "comments": "",\r
6599     "outputs": 1,\r
6600     "x": 4648.016830444336,\r
6601     "y": 2344.6834564208984,\r
6602     "z": "c7b9cd35.bfac88",\r
6603     "wires": [\r
6604       [\r
6605         "b23c99bf.cf2e8",\r
6606         "c333a868.fb119"\r
6607       ]\r
6608     ]\r
6609   },\r
6610   {\r
6611     "id": "c333a868.fb119",\r
6612     "type": "outcome",\r
6613     "name": "network-resource",\r
6614     "xml": "<outcome value='network-resource'>",\r
6615     "comments": "",\r
6616     "outputs": 1,\r
6617     "x": 4853.016830444336,\r
6618     "y": 2421.6834564208984,\r
6619     "z": "c7b9cd35.bfac88",\r
6620     "wires": [\r
6621       [\r
6622         "bd453b0b.71f93"\r
6623       ]\r
6624     ]\r
6625   },\r
6626   {\r
6627     "id": "824c0ca3.93f64",\r
6628     "type": "success",\r
6629     "name": "success",\r
6630     "xml": "<outcome value='success'>\n",\r
6631     "comments": "",\r
6632     "outputs": 1,\r
6633     "x": 4982.633987426758,\r
6634     "y": 2670.0237579345703,\r
6635     "z": "c7b9cd35.bfac88",\r
6636     "wires": [\r
6637       [\r
6638         "95206ee6.94dd"\r
6639       ]\r
6640     ]\r
6641   },\r
6642   {\r
6643     "id": "95206ee6.94dd",\r
6644     "type": "block",\r
6645     "name": "block : atomic",\r
6646     "xml": "<block atomic=\"true\">",\r
6647     "atomic": "true",\r
6648     "outputs": 1,\r
6649     "x": 5140.633987426758,\r
6650     "y": 2670.0237579345703,\r
6651     "z": "c7b9cd35.bfac88",\r
6652     "wires": [\r
6653       [\r
6654         "a1087d28.90e2f"\r
6655       ]\r
6656     ]\r
6657   },\r
6658   {\r
6659     "id": "a1087d28.90e2f",\r
6660     "type": "set",\r
6661     "name": "set destination tunnel tp ip",\r
6662     "xml": "<set>\n<parameter name='destination-secondary.tunnel-tp-id' value=\"`$tmp.aai.destination-secondary-ttp.tunnel-tp-id`\" />\n",\r
6663     "comments": "",\r
6664     "x": 5347.633987426758,\r
6665     "y": 2670.0237579345703,\r
6666     "z": "c7b9cd35.bfac88",\r
6667     "wires": []\r
6668   },\r
6669   {\r
6670     "id": "97206b42.8c742",\r
6671     "type": "block",\r
6672     "name": "block : atomic",\r
6673     "xml": "<block atomic=\"true\">",\r
6674     "atomic": "true",\r
6675     "outputs": 1,\r
6676     "x": 5028.016830444336,\r
6677     "y": 2340.6834564208984,\r
6678     "z": "c7b9cd35.bfac88",\r
6679     "wires": [\r
6680       [\r
6681         "4cfed3d4.2e715c",\r
6682         "b3c82e8a.c152c"\r
6683       ]\r
6684     ]\r
6685   },\r
6686   {\r
6687     "id": "b3c82e8a.c152c",\r
6688     "type": "execute",\r
6689     "name": "get esr-thirdparty-sdnc",\r
6690     "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.domainC.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainC.esr-thirdparty-sdnc' local-only='false' >",\r
6691     "comments": "",\r
6692     "outputs": 1,\r
6693     "x": 5236.016830444336,\r
6694     "y": 2347.6834564208984,\r
6695     "z": "c7b9cd35.bfac88",\r
6696     "wires": [\r
6697       [\r
6698         "c3765dd7.98e19",\r
6699         "82480139.31c848",\r
6700         "da19380a.5cc67"\r
6701       ]\r
6702     ]\r
6703   },\r
6704   {\r
6705     "id": "bd453b0b.71f93",\r
6706     "type": "block",\r
6707     "name": "block : atomic",\r
6708     "xml": "<block atomic=\"true\">",\r
6709     "atomic": "true",\r
6710     "outputs": 1,\r
6711     "x": 5030.016830444336,\r
6712     "y": 2413.6834564208984,\r
6713     "z": "c7b9cd35.bfac88",\r
6714     "wires": [\r
6715       [\r
6716         "14471967.2bb00f"\r
6717       ]\r
6718     ]\r
6719   },\r
6720   {\r
6721     "id": "4cfed3d4.2e715c",\r
6722     "type": "set",\r
6723     "name": "set esr-thirdparty-sdnc domainC id",\r
6724     "xml": "<set>\n<parameter name='tmp.domainC.esr-thirdparty-id' value=\"`$tmp.aai.destination-secondary-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",\r
6725     "comments": "",\r
6726     "x": 5266.016830444336,\r
6727     "y": 2295.6834564208984,\r
6728     "z": "c7b9cd35.bfac88",\r
6729     "wires": []\r
6730   },\r
6731   {\r
6732     "id": "14471967.2bb00f",\r
6733     "type": "set",\r
6734     "name": "set domainC ethernet layer network-id",\r
6735     "xml": "<set>\n<parameter name='tmp.domainC.eth-network-id' value=\"`$tmp.aai.destination-secondary-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",\r
6736     "comments": "",\r
6737     "x": 5265.016830444336,\r
6738     "y": 2537.6834564208984,\r
6739     "z": "c7b9cd35.bfac88",\r
6740     "wires": []\r
6741   },\r
6742   {\r
6743     "id": "c3765dd7.98e19",\r
6744     "type": "success",\r
6745     "name": "success",\r
6746     "xml": "<outcome value='success'>\n",\r
6747     "comments": "",\r
6748     "outputs": 1,\r
6749     "x": 5446.016830444336,\r
6750     "y": 2338.6834564208984,\r
6751     "z": "c7b9cd35.bfac88",\r
6752     "wires": [\r
6753       [\r
6754         "eb76aab.05915d8"\r
6755       ]\r
6756     ]\r
6757   },\r
6758   {\r
6759     "id": "82480139.31c848",\r
6760     "type": "not-found",\r
6761     "name": "not-found",\r
6762     "xml": "<outcome value='not-found'>\n",\r
6763     "comments": "",\r
6764     "outputs": 1,\r
6765     "x": 5438.016830444336,\r
6766     "y": 2393.6834564208984,\r
6767     "z": "c7b9cd35.bfac88",\r
6768     "wires": [\r
6769       [\r
6770         "3c8ef50f.dc9d5a"\r
6771       ]\r
6772     ]\r
6773   },\r
6774   {\r
6775     "id": "da19380a.5cc67",\r
6776     "type": "other",\r
6777     "name": "other",\r
6778     "xml": "<outcome value='Other'>\n",\r
6779     "comments": "",\r
6780     "outputs": 1,\r
6781     "x": 5443.016830444336,\r
6782     "y": 2450.6834564208984,\r
6783     "z": "c7b9cd35.bfac88",\r
6784     "wires": [\r
6785       [\r
6786         "11ed4dc4.069aca"\r
6787       ]\r
6788     ]\r
6789   },\r
6790   {\r
6791     "id": "11ed4dc4.069aca",\r
6792     "type": "returnFailure",\r
6793     "name": "return failure",\r
6794     "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
6795     "comments": "",\r
6796     "x": 5595.016830444336,\r
6797     "y": 2451.6834564208984,\r
6798     "z": "c7b9cd35.bfac88",\r
6799     "wires": []\r
6800   },\r
6801   {\r
6802     "id": "3c8ef50f.dc9d5a",\r
6803     "type": "returnFailure",\r
6804     "name": "return failure",\r
6805     "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
6806     "comments": "",\r
6807     "x": 5606.016830444336,\r
6808     "y": 2396.6834564208984,\r
6809     "z": "c7b9cd35.bfac88",\r
6810     "wires": []\r
6811   },\r
6812   {\r
6813     "id": "eb76aab.05915d8",\r
6814     "type": "block",\r
6815     "name": "block",\r
6816     "xml": "<block>\n",\r
6817     "atomic": "false",\r
6818     "comments": "",\r
6819     "outputs": 1,\r
6820     "x": 5590.399154663086,\r
6821     "y": 2336.339126586914,\r
6822     "z": "c7b9cd35.bfac88",\r
6823     "wires": [\r
6824       [\r
6825         "57675f66.16eb5"\r
6826       ]\r
6827     ]\r
6828   },\r
6829   {\r
6830     "id": "57675f66.16eb5",\r
6831     "type": "set",\r
6832     "name": "set controller domainC data",\r
6833     "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainC.url' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainC.user' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainC.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
6834     "comments": "",\r
6835     "x": 5805.016830444336,\r
6836     "y": 2332.6834564208984,\r
6837     "z": "c7b9cd35.bfac88",\r
6838     "wires": []\r
6839   },\r
6840   {\r
6841     "id": "a78822a6.5321b",\r
6842     "type": "switchNode",\r
6843     "name": "switch secondary empty?",\r
6844     "xml": "<switch test='`length($network-route-three) == 0`'>\n\n",\r
6845     "comments": "",\r
6846     "outputs": 1,\r
6847     "x": 3318.683334350586,\r
6848     "y": 805.6833343505859,\r
6849     "z": "c7b9cd35.bfac88",\r
6850     "wires": [\r
6851       [\r
6852         "ee3317c4.be6f98",\r
6853         "785558d0.46aa7"\r
6854       ]\r
6855     ]\r
6856   },\r
6857   {\r
6858     "id": "ee3317c4.be6f98",\r
6859     "type": "outcomeTrue",\r
6860     "name": "true",\r
6861     "xml": "<outcome value='true'>\n",\r
6862     "comments": "",\r
6863     "outputs": 1,\r
6864     "x": 3440.683364868164,\r
6865     "y": 750.6833648681641,\r
6866     "z": "c7b9cd35.bfac88",\r
6867     "wires": [\r
6868       [\r
6869         "b70329ff.3ba71"\r
6870       ]\r
6871     ]\r
6872   },\r
6873   {\r
6874     "id": "785558d0.46aa7",\r
6875     "type": "outcomeFalse",\r
6876     "name": "false",\r
6877     "xml": "<outcome value='false'>\n",\r
6878     "comments": "",\r
6879     "outputs": 1,\r
6880     "x": 3427.683364868164,\r
6881     "y": 859.6833648681641,\r
6882     "z": "c7b9cd35.bfac88",\r
6883     "wires": [\r
6884       [\r
6885         "e7d34a7a.6aac6"\r
6886       ]\r
6887     ]\r
6888   },\r
6889   {\r
6890     "id": "b70329ff.3ba71",\r
6891     "type": "set",\r
6892     "name": "set hasSecondary false",\r
6893     "xml": "<set>\n<parameter name='hasSecondary' value=\"false\" />\n\n\n",\r
6894     "comments": "",\r
6895     "x": 3655.683334350586,\r
6896     "y": 587.6833343505859,\r
6897     "z": "c7b9cd35.bfac88",\r
6898     "wires": []\r
6899   },\r
6900   {\r
6901     "id": "e7d34a7a.6aac6",\r
6902     "type": "set",\r
6903     "name": "set hasSecondary true",\r
6904     "xml": "<set>\n<parameter name='hasSecondary' value=\"true\" />\n\n\n",\r
6905     "comments": "",\r
6906     "x": 3651.683334350586,\r
6907     "y": 631.6833343505859,\r
6908     "z": "c7b9cd35.bfac88",\r
6909     "wires": []\r
6910   },\r
6911   {\r
6912     "id": "3cc87f7.3864a",\r
6913     "type": "switchNode",\r
6914     "name": "switch $hasSecondary",\r
6915     "xml": "<switch test='`$hasSecondary`'>\n",\r
6916     "comments": "",\r
6917     "outputs": 1,\r
6918     "x": 3848.683364868164,\r
6919     "y": 3531.683364868164,\r
6920     "z": "c7b9cd35.bfac88",\r
6921     "wires": [\r
6922       [\r
6923         "f7171cc6.827928"\r
6924       ]\r
6925     ]\r
6926   },\r
6927   {\r
6928     "id": "f7171cc6.827928",\r
6929     "type": "outcomeTrue",\r
6930     "name": "true",\r
6931     "xml": "<outcome value='true'>\n",\r
6932     "comments": "",\r
6933     "outputs": 1,\r
6934     "x": 4039.683364868164,\r
6935     "y": 3535.683364868164,\r
6936     "z": "c7b9cd35.bfac88",\r
6937     "wires": [\r
6938       [\r
6939         "27271b87.886184"\r
6940       ]\r
6941     ]\r
6942   },\r
6943   {\r
6944     "id": "27271b87.886184",\r
6945     "type": "block",\r
6946     "name": "block",\r
6947     "xml": "<block>\n",\r
6948     "atomic": "false",\r
6949     "comments": "",\r
6950     "outputs": 1,\r
6951     "x": 4166.683364868164,\r
6952     "y": 3534.683364868164,\r
6953     "z": "c7b9cd35.bfac88",\r
6954     "wires": [\r
6955       [\r
6956         "90e47ea0.ecee8",\r
6957         "8a6c8ced.8f741"\r
6958       ]\r
6959     ]\r
6960   },\r
6961   {\r
6962     "id": "8a6c8ced.8f741",\r
6963     "type": "save",\r
6964     "name": "save SECONDARY-ROOT UNI in AAI",\r
6965     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n      key='uni.id = $tmp.SECONDARY-ROOT.uni-p-interface-long'>\n<parameter name='id' value='`$tmp.SECONDARY-ROOT.uni-p-interface-long`' />\n<parameter name='tp-id' value='`$tmp.SECONDARY-ROOT.uni-tp-id`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-C.logical-interface-id`' />\n<parameter name='type' value='secondary-root' />\n<parameter name='data-source' value='`$gfp`' />\n<parameter name='data-owner' value='`$tmp.aai.service-instance.service-instance-id`' />\n",\r
6966     "comments": "",\r
6967     "outputs": 1,\r
6968     "x": 4388.683364868164,\r
6969     "y": 3423.683364868164,\r
6970     "z": "c7b9cd35.bfac88",\r
6971     "wires": [\r
6972       []\r
6973     ]\r
6974   },\r
6975   {\r
6976     "id": "a4c94b0b.1b4718",\r
6977     "type": "set",\r
6978     "name": "unset secondary related variables",\r
6979     "xml": "<set>\n<parameter name='hasSecondary' value=\"false\" />\n<parameter name='network-route-three' value=\"\" />\n<parameter name='tmp.aai.network-route-three.' value=\"\" />\n<parameter name='tmp.aai.network-route-C.' value=\"\" />\n",\r
6980     "comments": "",\r
6981     "x": 3393.566665649414,\r
6982     "y": 463.56666564941406,\r
6983     "z": "c7b9cd35.bfac88",\r
6984     "wires": []\r
6985   },\r
6986   {\r
6987     "id": "90e47ea0.ecee8",\r
6988     "type": "switchNode",\r
6989     "name": "switch 2-ROOTS in same domain?",\r
6990     "xml": "<!-- This is to check the provider-id of ROOt and SECONDARY-ROOT-->\n<switch test='`$param-prefix-domainB[$param-prefix-domainB_length -9] == $param-prefix-domainC[$param-prefix-domainC_length -9]`'>\n",\r
6991     "comments": "",\r
6992     "outputs": 1,\r
6993     "x": 4384.566665649414,\r
6994     "y": 3482.566665649414,\r
6995     "z": "c7b9cd35.bfac88",\r
6996     "wires": [\r
6997       [\r
6998         "61b6ba56.719bdc",\r
6999         "226a53c4.28be4c"\r
7000       ]\r
7001     ]\r
7002   },\r
7003   {\r
7004     "id": "61b6ba56.719bdc",\r
7005     "type": "outcomeTrue",\r
7006     "name": "true",\r
7007     "xml": "<outcome value='true'>\n",\r
7008     "comments": "",\r
7009     "outputs": 1,\r
7010     "x": 4594.566665649414,\r
7011     "y": 3459.566665649414,\r
7012     "z": "c7b9cd35.bfac88",\r
7013     "wires": [\r
7014       [\r
7015         "3f2dca65.c993b6"\r
7016       ]\r
7017     ]\r
7018   },\r
7019   {\r
7020     "id": "3f2dca65.c993b6",\r
7021     "type": "block",\r
7022     "name": "block",\r
7023     "xml": "<block>\n",\r
7024     "atomic": "false",\r
7025     "comments": "",\r
7026     "outputs": 1,\r
7027     "x": 4720.566665649414,\r
7028     "y": 3459.566665649414,\r
7029     "z": "c7b9cd35.bfac88",\r
7030     "wires": [\r
7031       [\r
7032         "812380f1.94aae8"\r
7033       ]\r
7034     ]\r
7035   },\r
7036   {\r
7037     "id": "32cc56e4.b47402",\r
7038     "type": "block",\r
7039     "name": "block",\r
7040     "xml": "<block>\n",\r
7041     "atomic": "false",\r
7042     "comments": "",\r
7043     "outputs": 1,\r
7044     "x": 4725.566665649414,\r
7045     "y": 3508.566665649414,\r
7046     "z": "c7b9cd35.bfac88",\r
7047     "wires": [\r
7048       [\r
7049         "7de42311.cfc97c",\r
7050         "94a4f684.655798",\r
7051         "9102db37.03feb",\r
7052         "168bc7a3.f57628"\r
7053       ]\r
7054     ]\r
7055   },\r
7056   {\r
7057     "id": "226a53c4.28be4c",\r
7058     "type": "outcomeTrue",\r
7059     "name": "false",\r
7060     "xml": "<outcome value='false'>\n",\r
7061     "comments": "",\r
7062     "outputs": 1,\r
7063     "x": 4599.566665649414,\r
7064     "y": 3508.566665649414,\r
7065     "z": "c7b9cd35.bfac88",\r
7066     "wires": [\r
7067       [\r
7068         "32cc56e4.b47402"\r
7069       ]\r
7070     ]\r
7071   },\r
7072   {\r
7073     "id": "812380f1.94aae8",\r
7074     "type": "save",\r
7075     "name": "save connectivityB relationship to UNI-SECONDARY-ROOT, in AAI",\r
7076     "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.SECONDARY-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.SECONDARY-ROOT.uni-p-interface-long`\" />",\r
7077     "comments": "",\r
7078     "outputs": 1,\r
7079     "x": 5048.566665649414,\r
7080     "y": 3456.566665649414,\r
7081     "z": "c7b9cd35.bfac88",\r
7082     "wires": [\r
7083       []\r
7084     ]\r
7085   },\r
7086   {\r
7087     "id": "7de42311.cfc97c",\r
7088     "type": "execute",\r
7089     "name": "execute UUID generator for connectivity domainC",\r
7090     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainC-uuid\"/>\n",\r
7091     "comments": "",\r
7092     "outputs": 1,\r
7093     "x": 5001.566665649414,\r
7094     "y": 3547.566665649414,\r
7095     "z": "c7b9cd35.bfac88",\r
7096     "wires": [\r
7097       []\r
7098     ]\r
7099   },\r
7100   {\r
7101     "id": "94a4f684.655798",\r
7102     "type": "save",\r
7103     "name": "save connectivity resource in AAI",\r
7104     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $prop.connectivity-domainC-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainC-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-domainC[$param-prefix-domainC_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-C.logical-interface-id`' />\n<parameter name='color-aware' value='`$tmp.SECONDARY-ROOT.uni-p-interface-long`' />\n<parameter name='vpn-type' value='secondary-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='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
7105     "comments": "",\r
7106     "outputs": 1,\r
7107     "x": 4949.566665649414,\r
7108     "y": 3589.566665649414,\r
7109     "z": "c7b9cd35.bfac88",\r
7110     "wires": [\r
7111       []\r
7112     ]\r
7113   },\r
7114   {\r
7115     "id": "9102db37.03feb",\r
7116     "type": "save",\r
7117     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
7118     "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-domainC-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-domainC-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
7119     "comments": "",\r
7120     "outputs": 1,\r
7121     "x": 5078.566665649414,\r
7122     "y": 3631.566665649414,\r
7123     "z": "c7b9cd35.bfac88",\r
7124     "wires": [\r
7125       []\r
7126     ]\r
7127   },\r
7128   {\r
7129     "id": "3c0b7ceb.8c4ecc",\r
7130     "type": "comment",\r
7131     "name": "Create SECONDARY-ROOT connectivity",\r
7132     "info": "",\r
7133     "comments": "",\r
7134     "x": 4964.566665649414,\r
7135     "y": 3504.566665649414,\r
7136     "z": "c7b9cd35.bfac88",\r
7137     "wires": []\r
7138   },\r
7139   {\r
7140     "id": "168bc7a3.f57628",\r
7141     "type": "save",\r
7142     "name": "save connectivityC relationship to UNI-SECONDARY-ROOT, in AAI",\r
7143     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $prop.connectivity-domainC-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.SECONDARY-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.SECONDARY-ROOT.uni-p-interface-long`\" />",\r
7144     "comments": "",\r
7145     "outputs": 1,\r
7146     "x": 5056.566665649414,\r
7147     "y": 3679.566665649414,\r
7148     "z": "c7b9cd35.bfac88",\r
7149     "wires": [\r
7150       []\r
7151     ]\r
7152   },\r
7153   {\r
7154     "id": "54d0b322.54c85c",\r
7155     "type": "comment",\r
7156     "name": "Create SECONDARY-ROOT UNI",\r
7157     "info": "",\r
7158     "comments": "",\r
7159     "x": 3876.566665649414,\r
7160     "y": 3482.566665649414,\r
7161     "z": "c7b9cd35.bfac88",\r
7162     "wires": []\r
7163   },\r
7164   {\r
7165     "id": "5fefabc6.f62f5c",\r
7166     "type": "switchNode",\r
7167     "name": "switch $hasSecondary",\r
7168     "xml": "<switch test='`$hasSecondary`'>\n",\r
7169     "comments": "",\r
7170     "outputs": 1,\r
7171     "x": 3851.566665649414,\r
7172     "y": 4153.566665649414,\r
7173     "z": "c7b9cd35.bfac88",\r
7174     "wires": [\r
7175       [\r
7176         "b4ef06b7.1fe62"\r
7177       ]\r
7178     ]\r
7179   },\r
7180   {\r
7181     "id": "b4ef06b7.1fe62",\r
7182     "type": "outcomeTrue",\r
7183     "name": "true",\r
7184     "xml": "<outcome value='true'>\n",\r
7185     "comments": "",\r
7186     "outputs": 1,\r
7187     "x": 4043.566665649414,\r
7188     "y": 4148.566665649414,\r
7189     "z": "c7b9cd35.bfac88",\r
7190     "wires": [\r
7191       [\r
7192         "815df3f1.7eb0f"\r
7193       ]\r
7194     ]\r
7195   },\r
7196   {\r
7197     "id": "815df3f1.7eb0f",\r
7198     "type": "block",\r
7199     "name": "block",\r
7200     "xml": "<block>\n",\r
7201     "atomic": "false",\r
7202     "comments": "",\r
7203     "outputs": 1,\r
7204     "x": 4172.566665649414,\r
7205     "y": 4148.566665649414,\r
7206     "z": "c7b9cd35.bfac88",\r
7207     "wires": [\r
7208       [\r
7209         "67264e9c.83602"\r
7210       ]\r
7211     ]\r
7212   },\r
7213   {\r
7214     "id": "67264e9c.83602",\r
7215     "type": "save",\r
7216     "name": "save middle-man-conn relationship to UNI-SECONDARY-ROOT, in AAI",\r
7217     "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.SECONDARY-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.SECONDARY-ROOT.uni-p-interface-long`\" />",\r
7218     "comments": "",\r
7219     "outputs": 1,\r
7220     "x": 4504.566665649414,\r
7221     "y": 4146.566665649414,\r
7222     "z": "c7b9cd35.bfac88",\r
7223     "wires": [\r
7224       []\r
7225     ]\r
7226   },\r
7227   {\r
7228     "id": "dbd95dbb.cf097",\r
7229     "type": "switchNode",\r
7230     "name": "switch $hasSecondary",\r
7231     "xml": "<switch test='`$hasSecondary`'>\n",\r
7232     "comments": "",\r
7233     "outputs": 1,\r
7234     "x": 3839.566665649414,\r
7235     "y": 4377.566665649414,\r
7236     "z": "c7b9cd35.bfac88",\r
7237     "wires": [\r
7238       [\r
7239         "aef64578.f3199"\r
7240       ]\r
7241     ]\r
7242   },\r
7243   {\r
7244     "id": "aef64578.f3199",\r
7245     "type": "outcomeTrue",\r
7246     "name": "true",\r
7247     "xml": "<outcome value='true'>\n",\r
7248     "comments": "",\r
7249     "outputs": 1,\r
7250     "x": 4019.566665649414,\r
7251     "y": 4376.566665649414,\r
7252     "z": "c7b9cd35.bfac88",\r
7253     "wires": [\r
7254       [\r
7255         "9830e38b.25b19"\r
7256       ]\r
7257     ]\r
7258   },\r
7259   {\r
7260     "id": "9830e38b.25b19",\r
7261     "type": "block",\r
7262     "name": "block",\r
7263     "xml": "<block>\n",\r
7264     "atomic": "false",\r
7265     "comments": "",\r
7266     "outputs": 1,\r
7267     "x": 4148.566665649414,\r
7268     "y": 4376.566665649414,\r
7269     "z": "c7b9cd35.bfac88",\r
7270     "wires": [\r
7271       [\r
7272         "7d4e5c3a.fc6a0c"\r
7273       ]\r
7274     ]\r
7275   },\r
7276   {\r
7277     "id": "7d4e5c3a.fc6a0c",\r
7278     "type": "switchNode",\r
7279     "name": "switch 2-ROOTS in same domain?",\r
7280     "xml": "<!-- This is to check the provider-id of ROOt and SECONDARY-ROOT-->\n<switch test='`$param-prefix-domainB[$param-prefix-domainB_length -9] == $param-prefix-domainC[$param-prefix-domainC_length -9]`'>\n",\r
7281     "comments": "",\r
7282     "outputs": 1,\r
7283     "x": 4366.449966430664,\r
7284     "y": 4375.449966430664,\r
7285     "z": "c7b9cd35.bfac88",\r
7286     "wires": [\r
7287       [\r
7288         "1e59b518.b0bee3"\r
7289       ]\r
7290     ]\r
7291   },\r
7292   {\r
7293     "id": "1e59b518.b0bee3",\r
7294     "type": "outcomeTrue",\r
7295     "name": "false",\r
7296     "xml": "<outcome value='false'>\n",\r
7297     "comments": "",\r
7298     "outputs": 1,\r
7299     "x": 4581.449966430664,\r
7300     "y": 4375.449966430664,\r
7301     "z": "c7b9cd35.bfac88",\r
7302     "wires": [\r
7303       [\r
7304         "40af1183.5043e"\r
7305       ]\r
7306     ]\r
7307   },\r
7308   {\r
7309     "id": "40af1183.5043e",\r
7310     "type": "block",\r
7311     "name": "block",\r
7312     "xml": "<block>\n",\r
7313     "atomic": "false",\r
7314     "comments": "",\r
7315     "outputs": 1,\r
7316     "x": 4713.449966430664,\r
7317     "y": 4375.449966430664,\r
7318     "z": "c7b9cd35.bfac88",\r
7319     "wires": [\r
7320       [\r
7321         "9532f45e.79d66"\r
7322       ]\r
7323     ]\r
7324   },\r
7325   {\r
7326     "id": "9532f45e.79d66",\r
7327     "type": "save",\r
7328     "name": "save middle-man-conn relationship to connectivity-SECONDARY-ROOT, in AAI",\r
7329     "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-domainC-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-domainC-uuid`\" />",\r
7330     "comments": "",\r
7331     "outputs": 1,\r
7332     "x": 5077.566665649414,\r
7333     "y": 4374.566665649414,\r
7334     "z": "c7b9cd35.bfac88",\r
7335     "wires": [\r
7336       []\r
7337     ]\r
7338   },\r
7339   {\r
7340     "id": "147222b6.72d4a5",\r
7341     "type": "switchNode",\r
7342     "name": "switch $hasSecondary",\r
7343     "xml": "<switch test='`$hasSecondary`'>\n",\r
7344     "comments": "",\r
7345     "outputs": 1,\r
7346     "x": 3514.566665649414,\r
7347     "y": 4632.566665649414,\r
7348     "z": "c7b9cd35.bfac88",\r
7349     "wires": [\r
7350       [\r
7351         "adad110b.2a8008"\r
7352       ]\r
7353     ]\r
7354   },\r
7355   {\r
7356     "id": "adad110b.2a8008",\r
7357     "type": "outcomeTrue",\r
7358     "name": "true",\r
7359     "xml": "<outcome value='true'>\n",\r
7360     "comments": "",\r
7361     "outputs": 1,\r
7362     "x": 3694.566665649414,\r
7363     "y": 4631.566665649414,\r
7364     "z": "c7b9cd35.bfac88",\r
7365     "wires": [\r
7366       [\r
7367         "b9b6357c.7dc958"\r
7368       ]\r
7369     ]\r
7370   },\r
7371   {\r
7372     "id": "b9b6357c.7dc958",\r
7373     "type": "block",\r
7374     "name": "block",\r
7375     "xml": "<block>\n",\r
7376     "atomic": "false",\r
7377     "comments": "",\r
7378     "outputs": 1,\r
7379     "x": 3823.566665649414,\r
7380     "y": 4631.566665649414,\r
7381     "z": "c7b9cd35.bfac88",\r
7382     "wires": [\r
7383       [\r
7384         "883d53e4.0057c"\r
7385       ]\r
7386     ]\r
7387   },\r
7388   {\r
7389     "id": "8f1b73bf.36d998",\r
7390     "type": "comment",\r
7391     "name": "Update SECONDARY-ROOT UNI's bw",\r
7392     "info": "",\r
7393     "comments": "",\r
7394     "x": 3559.566665649414,\r
7395     "y": 4690.566665649414,\r
7396     "z": "c7b9cd35.bfac88",\r
7397     "wires": []\r
7398   },\r
7399   {\r
7400     "id": "f9162d4b.d76cb",\r
7401     "type": "save",\r
7402     "name": "update S-ROOT UNI in AAI",\r
7403     "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n      key='uni.id = $tmp.SECONDARY-ROOT.uni-p-interface-long'>\n<parameter name='id' value='`$tmp.SECONDARY-ROOT.uni-p-interface-long`' />\n<parameter name='data-source' value='`$tmp.newbw`' />\n",\r
7404     "comments": "",\r
7405     "outputs": 1,\r
7406     "x": 4125.566665649414,\r
7407     "y": 4789.566665649414,\r
7408     "z": "c7b9cd35.bfac88",\r
7409     "wires": [\r
7410       []\r
7411     ]\r
7412   },\r
7413   {\r
7414     "id": "883d53e4.0057c",\r
7415     "type": "save",\r
7416     "name": "get S-root uni from aai",\r
7417     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"uni\"\n\t    key=\"uni.id = $tmp.SECONDARY-ROOT.uni-p-interface-long\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.secondaryrootuni\" >\n",\r
7418     "comments": "",\r
7419     "outputs": 1,\r
7420     "x": 3589.566665649414,\r
7421     "y": 4723.566665649414,\r
7422     "z": "c7b9cd35.bfac88",\r
7423     "wires": [\r
7424       [\r
7425         "a081e505.7d3b8",\r
7426         "370b0cd4.1d67f4",\r
7427         "3bb246d3.6b0eb2"\r
7428       ]\r
7429     ]\r
7430   },\r
7431   {\r
7432     "id": "370b0cd4.1d67f4",\r
7433     "type": "not-found",\r
7434     "name": "not-found",\r
7435     "xml": "<outcome value='not-found'>\n",\r
7436     "comments": "",\r
7437     "outputs": 1,\r
7438     "x": 3771.057632446289,\r
7439     "y": 4701.140884399414,\r
7440     "z": "c7b9cd35.bfac88",\r
7441     "wires": [\r
7442       [\r
7443         "21a39fa9.8cdbc"\r
7444       ]\r
7445     ]\r
7446   },\r
7447   {\r
7448     "id": "3bb246d3.6b0eb2",\r
7449     "type": "failure",\r
7450     "name": "failure",\r
7451     "xml": "<outcome value='failure'>\n",\r
7452     "comments": "",\r
7453     "outputs": 1,\r
7454     "x": 3759.566665649414,\r
7455     "y": 4740.566665649414,\r
7456     "z": "c7b9cd35.bfac88",\r
7457     "wires": [\r
7458       [\r
7459         "3acf6433.2f683c"\r
7460       ]\r
7461     ]\r
7462   },\r
7463   {\r
7464     "id": "21a39fa9.8cdbc",\r
7465     "type": "returnFailure",\r
7466     "name": "return failure",\r
7467     "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
7468     "comments": "",\r
7469     "x": 3930.629165649414,\r
7470     "y": 4699.426528930664,\r
7471     "z": "c7b9cd35.bfac88",\r
7472     "wires": []\r
7473   },\r
7474   {\r
7475     "id": "3acf6433.2f683c",\r
7476     "type": "returnFailure",\r
7477     "name": "return failure",\r
7478     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
7479     "comments": "",\r
7480     "x": 3920.566665649414,\r
7481     "y": 4741.566665649414,\r
7482     "z": "c7b9cd35.bfac88",\r
7483     "wires": []\r
7484   },\r
7485   {\r
7486     "id": "c435208e.fb61a8",\r
7487     "type": "block",\r
7488     "name": "block : atomic",\r
7489     "xml": "<block atomic=\"true\">",\r
7490     "atomic": "true",\r
7491     "outputs": 1,\r
7492     "x": 3922.566665649414,\r
7493     "y": 4785.566665649414,\r
7494     "z": "c7b9cd35.bfac88",\r
7495     "wires": [\r
7496       [\r
7497         "6438caae.bf37d4",\r
7498         "f9162d4b.d76cb"\r
7499       ]\r
7500     ]\r
7501   },\r
7502   {\r
7503     "id": "a081e505.7d3b8",\r
7504     "type": "success",\r
7505     "name": "success",\r
7506     "xml": "<outcome value='success'>\n",\r
7507     "comments": "",\r
7508     "outputs": 1,\r
7509     "x": 3764.566665649414,\r
7510     "y": 4777.566665649414,\r
7511     "z": "c7b9cd35.bfac88",\r
7512     "wires": [\r
7513       [\r
7514         "c435208e.fb61a8"\r
7515       ]\r
7516     ]\r
7517   },\r
7518   {\r
7519     "id": "6438caae.bf37d4",\r
7520     "type": "set",\r
7521     "name": "set new bw",\r
7522     "xml": "<set>\n<parameter name='tmp.newbw' value='`$tmp.aai.secondaryrootuni.data-source + $gfp`' />\n",\r
7523     "comments": "",\r
7524     "x": 4083.566665649414,\r
7525     "y": 4717.566665649414,\r
7526     "z": "c7b9cd35.bfac88",\r
7527     "wires": []\r
7528   },\r
7529   {\r
7530     "id": "3f5c519e.52fcfe",\r
7531     "type": "comment",\r
7532     "name": "populate connectivity-C variable in the context map",\r
7533     "info": "",\r
7534     "comments": "",\r
7535     "x": 4449.566665649414,\r
7536     "y": 5285.566665649414,\r
7537     "z": "c7b9cd35.bfac88",\r
7538     "wires": []\r
7539   },\r
7540   {\r
7541     "id": "128b476.c3c24b9",\r
7542     "type": "call",\r
7543     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-SECONDARY-ROOT-conn",\r
7544     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-SECONDARY-ROOT-conn' mode='sync' >\n\n",\r
7545     "comments": "",\r
7546     "outputs": 1,\r
7547     "x": 4604.566665649414,\r
7548     "y": 5326.566665649414,\r
7549     "z": "c7b9cd35.bfac88",\r
7550     "wires": [\r
7551       []\r
7552     ]\r
7553   },\r
7554   {\r
7555     "id": "ef90095c.80a978",\r
7556     "type": "set",\r
7557     "name": "set prop.connectivity-domainC-uuid",\r
7558     "xml": "<set>\n<!--<parameter name='prop.connectivity-domainB-uuid' value=\"`$tmp.ROOT.uni-p-interface-long`\" />-->\n<!--OR-->\n<parameter name='prop.connectivity-domainC-uuid' value=\"`$tmp.aai.SECONDARY-ROOT.connectivity.connectivity-id`\" />\n\n\n",\r
7559     "comments": "",\r
7560     "x": 5047.566665649414,\r
7561     "y": 5374.566665649414,\r
7562     "z": "c7b9cd35.bfac88",\r
7563     "wires": []\r
7564   },\r
7565   {\r
7566     "id": "b1e27ce1.629f7",\r
7567     "type": "switchNode",\r
7568     "name": "switch found-secondary-root-connectivity",\r
7569     "xml": "\n<switch test=\"`$found-secondary-root-connectivity`\">\n\n",\r
7570     "comments": "",\r
7571     "outputs": 1,\r
7572     "x": 4420.566665649414,\r
7573     "y": 5384.566665649414,\r
7574     "z": "c7b9cd35.bfac88",\r
7575     "wires": [\r
7576       [\r
7577         "6c93874b.ea46a8",\r
7578         "a48ce649.08b9f8"\r
7579       ]\r
7580     ]\r
7581   },\r
7582   {\r
7583     "id": "6c93874b.ea46a8",\r
7584     "type": "outcomeTrue",\r
7585     "name": "true",\r
7586     "xml": "<outcome value='true'>\n",\r
7587     "comments": "",\r
7588     "outputs": 1,\r
7589     "x": 4656.566665649414,\r
7590     "y": 5368.566665649414,\r
7591     "z": "c7b9cd35.bfac88",\r
7592     "wires": [\r
7593       [\r
7594         "2bac874c.98bee"\r
7595       ]\r
7596     ]\r
7597   },\r
7598   {\r
7599     "id": "2bac874c.98bee",\r
7600     "type": "block",\r
7601     "name": "block : atomic",\r
7602     "xml": "<block atomic='true'>",\r
7603     "atomic": "true",\r
7604     "comments": "",\r
7605     "outputs": 1,\r
7606     "x": 4800.566665649414,\r
7607     "y": 5370.566665649414,\r
7608     "z": "c7b9cd35.bfac88",\r
7609     "wires": [\r
7610       [\r
7611         "ef90095c.80a978",\r
7612         "900ede93.5cfd68",\r
7613         "c9e4ee74.f1da1"\r
7614       ]\r
7615     ]\r
7616   },\r
7617   {\r
7618     "id": "a48ce649.08b9f8",\r
7619     "type": "outcomeFalse",\r
7620     "name": "false",\r
7621     "xml": "<outcome value='false'>\n",\r
7622     "comments": "",\r
7623     "outputs": 1,\r
7624     "x": 4655.566665649414,\r
7625     "y": 5416.566665649414,\r
7626     "z": "c7b9cd35.bfac88",\r
7627     "wires": [\r
7628       []\r
7629     ]\r
7630   },\r
7631   {\r
7632     "id": "900ede93.5cfd68",\r
7633     "type": "save",\r
7634     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
7635     "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.SECONDARY-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.SECONDARY-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
7636     "comments": "",\r
7637     "outputs": 1,\r
7638     "x": 5168.566665649414,\r
7639     "y": 5421.566665649414,\r
7640     "z": "c7b9cd35.bfac88",\r
7641     "wires": [\r
7642       []\r
7643     ]\r
7644   },\r
7645   {\r
7646     "id": "c9e4ee74.f1da1",\r
7647     "type": "save",\r
7648     "name": "update connectivity resource in AAI",\r
7649     "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $prop.connectivity-domainC-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainC-uuid`' />\n<parameter name='operational-status' value='Modified' />\n",\r
7650     "comments": "",\r
7651     "outputs": 1,\r
7652     "x": 5050.233657836914,\r
7653     "y": 5506.650161743164,\r
7654     "z": "c7b9cd35.bfac88",\r
7655     "wires": [\r
7656       []\r
7657     ]\r
7658   },\r
7659   {\r
7660     "id": "80a5d0bc.394668",\r
7661     "type": "comment",\r
7662     "name": "Update connectivity status to modified",\r
7663     "info": "",\r
7664     "comments": "",\r
7665     "x": 5051.450454711914,\r
7666     "y": 5465.449966430664,\r
7667     "z": "c7b9cd35.bfac88",\r
7668     "wires": []\r
7669   },\r
7670   {\r
7671     "id": "7af1ce17.a2c558",\r
7672     "type": "set",\r
7673     "name": "set prop.connectivity-domainC-uuid",\r
7674     "xml": "<set>\n<!--<parameter name='prop.connectivity-domainB-uuid' value=\"`$tmp.ROOT.uni-p-interface-long`\" />-->\n<!--OR-->\n<parameter name='prop.connectivity-domainC-uuid' value=\"`$tmp.aai.SECONDARY-ROOT.connectivity.connectivity-id`\" />\n\n\n",\r
7675     "comments": "",\r
7676     "x": 5582.566665649414,\r
7677     "y": 5853.566665649414,\r
7678     "z": "c7b9cd35.bfac88",\r
7679     "wires": []\r
7680   },\r
7681   {\r
7682     "id": "9c03eaae.aa875",\r
7683     "type": "switchNode",\r
7684     "name": "switch found-secondary-root-connectivity",\r
7685     "xml": "\n<switch test=\"`$found-secondary-root-connectivity`\">\n\n",\r
7686     "comments": "",\r
7687     "outputs": 1,\r
7688     "x": 4955.566665649414,\r
7689     "y": 5863.566665649414,\r
7690     "z": "c7b9cd35.bfac88",\r
7691     "wires": [\r
7692       [\r
7693         "c8852cc.de0315",\r
7694         "d3e42d04.fd0a28"\r
7695       ]\r
7696     ]\r
7697   },\r
7698   {\r
7699     "id": "c8852cc.de0315",\r
7700     "type": "outcomeTrue",\r
7701     "name": "true",\r
7702     "xml": "<outcome value='true'>\n",\r
7703     "comments": "",\r
7704     "outputs": 1,\r
7705     "x": 5188.566665649414,\r
7706     "y": 5857.566665649414,\r
7707     "z": "c7b9cd35.bfac88",\r
7708     "wires": [\r
7709       [\r
7710         "3860ec82.4027f4"\r
7711       ]\r
7712     ]\r
7713   },\r
7714   {\r
7715     "id": "3860ec82.4027f4",\r
7716     "type": "block",\r
7717     "name": "block : atomic",\r
7718     "xml": "<block atomic='true'>",\r
7719     "atomic": "true",\r
7720     "comments": "",\r
7721     "outputs": 1,\r
7722     "x": 5335.566665649414,\r
7723     "y": 5865.566665649414,\r
7724     "z": "c7b9cd35.bfac88",\r
7725     "wires": [\r
7726       [\r
7727         "7af1ce17.a2c558",\r
7728         "cf788720.b865d8",\r
7729         "78c6b3da.3a0f94"\r
7730       ]\r
7731     ]\r
7732   },\r
7733   {\r
7734     "id": "d3e42d04.fd0a28",\r
7735     "type": "outcomeFalse",\r
7736     "name": "false",\r
7737     "xml": "<outcome value='false'>\n",\r
7738     "comments": "",\r
7739     "outputs": 1,\r
7740     "x": 5189.566665649414,\r
7741     "y": 5907.566665649414,\r
7742     "z": "c7b9cd35.bfac88",\r
7743     "wires": [\r
7744       []\r
7745     ]\r
7746   },\r
7747   {\r
7748     "id": "cf788720.b865d8",\r
7749     "type": "save",\r
7750     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
7751     "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.SECONDARY-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.SECONDARY-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
7752     "comments": "",\r
7753     "outputs": 1,\r
7754     "x": 5703.566665649414,\r
7755     "y": 5900.566665649414,\r
7756     "z": "c7b9cd35.bfac88",\r
7757     "wires": [\r
7758       []\r
7759     ]\r
7760   },\r
7761   {\r
7762     "id": "78c6b3da.3a0f94",\r
7763     "type": "save",\r
7764     "name": "update connectivity resource in AAI",\r
7765     "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $prop.connectivity-domainC-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainC-uuid`' />\n<parameter name='operational-status' value='Modified' />\n",\r
7766     "comments": "",\r
7767     "outputs": 1,\r
7768     "x": 5585.233657836914,\r
7769     "y": 5985.650161743164,\r
7770     "z": "c7b9cd35.bfac88",\r
7771     "wires": [\r
7772       []\r
7773     ]\r
7774   },\r
7775   {\r
7776     "id": "187aa522.975483",\r
7777     "type": "comment",\r
7778     "name": "Update connectivity status to modified",\r
7779     "info": "",\r
7780     "comments": "",\r
7781     "x": 5586.450454711914,\r
7782     "y": 5944.449966430664,\r
7783     "z": "c7b9cd35.bfac88",\r
7784     "wires": []\r
7785   },\r
7786   {\r
7787     "id": "a4cbceb2.4df788",\r
7788     "type": "call",\r
7789     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-SECONDARY-ROOT-conn",\r
7790     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-SECONDARY-ROOT-conn' mode='sync' >\n\n",\r
7791     "comments": "",\r
7792     "outputs": 1,\r
7793     "x": 5116.566665649414,\r
7794     "y": 5813.566665649414,\r
7795     "z": "c7b9cd35.bfac88",\r
7796     "wires": [\r
7797       []\r
7798     ]\r
7799   },\r
7800   {\r
7801     "id": "1eb398cf.3d4a57",\r
7802     "type": "comment",\r
7803     "name": "populate connectivity-C variable in the context map",\r
7804     "info": "",\r
7805     "comments": "",\r
7806     "x": 4950.566665649414,\r
7807     "y": 5774.566665649414,\r
7808     "z": "c7b9cd35.bfac88",\r
7809     "wires": []\r
7810   },\r
7811   {\r
7812     "id": "629500a0.f350c",\r
7813     "type": "switchNode",\r
7814     "name": "switch $hasSecondary",\r
7815     "xml": "<switch test='`$hasSecondary`'>\n",\r
7816     "comments": "",\r
7817     "outputs": 1,\r
7818     "x": 3277.816665649414,\r
7819     "y": 6383.816665649414,\r
7820     "z": "c7b9cd35.bfac88",\r
7821     "wires": [\r
7822       [\r
7823         "9cad2425.bfa4",\r
7824         "5e118a1d.622834"\r
7825       ]\r
7826     ]\r
7827   },\r
7828   {\r
7829     "id": "9cad2425.bfa4",\r
7830     "type": "outcomeTrue",\r
7831     "name": "false",\r
7832     "xml": "<outcome value='false'>\n",\r
7833     "comments": "",\r
7834     "outputs": 1,\r
7835     "x": 3468.816665649414,\r
7836     "y": 6387.816665649414,\r
7837     "z": "c7b9cd35.bfac88",\r
7838     "wires": [\r
7839       [\r
7840         "eaa9d7ab.22184"\r
7841       ]\r
7842     ]\r
7843   },\r
7844   {\r
7845     "id": "eaa9d7ab.22184",\r
7846     "type": "block",\r
7847     "name": "block",\r
7848     "xml": "<block>\n",\r
7849     "atomic": "false",\r
7850     "comments": "",\r
7851     "outputs": 1,\r
7852     "x": 3595.816665649414,\r
7853     "y": 6386.816665649414,\r
7854     "z": "c7b9cd35.bfac88",\r
7855     "wires": [\r
7856       [\r
7857         "517fe5d1.d6143c"\r
7858       ]\r
7859     ]\r
7860   },\r
7861   {\r
7862     "id": "5e118a1d.622834",\r
7863     "type": "outcomeTrue",\r
7864     "name": "true",\r
7865     "xml": "<outcome value='true'>\n",\r
7866     "comments": "",\r
7867     "outputs": 1,\r
7868     "x": 3464.816665649414,\r
7869     "y": 6457.816665649414,\r
7870     "z": "c7b9cd35.bfac88",\r
7871     "wires": [\r
7872       [\r
7873         "3146887c.847d98"\r
7874       ]\r
7875     ]\r
7876   },\r
7877   {\r
7878     "id": "9e160da7.86044",\r
7879     "type": "call",\r
7880     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-F1-activate-w-Protection",\r
7881     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1-activate-w-Protection' mode='sync' >\n\n",\r
7882     "comments": "",\r
7883     "outputs": 1,\r
7884     "x": 4014.316665649414,\r
7885     "y": 6456.900161743164,\r
7886     "z": "c7b9cd35.bfac88",\r
7887     "wires": [\r
7888       []\r
7889     ]\r
7890   },\r
7891   {\r
7892     "id": "3146887c.847d98",\r
7893     "type": "block",\r
7894     "name": "block",\r
7895     "xml": "<block>\n",\r
7896     "atomic": "false",\r
7897     "comments": "",\r
7898     "outputs": 1,\r
7899     "x": 3598.316665649414,\r
7900     "y": 6459.900161743164,\r
7901     "z": "c7b9cd35.bfac88",\r
7902     "wires": [\r
7903       [\r
7904         "9e160da7.86044"\r
7905       ]\r
7906     ]\r
7907   }\r
7908 ]