Buf fixing for creation, deletion, and modification of a cloud leased-line (CLL)...
[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": "401457dc.d91b78",\r
4     "type": "dgstart",\r
5     "name": "DGSTART",\r
6     "outputs": 1,\r
7     "x": 112,\r
8     "y": 81,\r
9     "z": "211aaefb.d906ea",\r
10     "wires": [\r
11       [\r
12         "a013fef2.6f2958"\r
13       ]\r
14     ]\r
15   },\r
16   {\r
17     "id": "a013fef2.6f2958",\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": 396.2856903076172,\r
26     "y": 142.23810863494873,\r
27     "z": "211aaefb.d906ea",\r
28     "wires": [\r
29       [\r
30         "6ff7b54f.12fd9c"\r
31       ]\r
32     ]\r
33   },\r
34   {\r
35     "id": "6ff7b54f.12fd9c",\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": 402.42860412597656,\r
42     "y": 227.00003051757812,\r
43     "z": "211aaefb.d906ea",\r
44     "wires": [\r
45       [\r
46         "515432f3.743c34"\r
47       ]\r
48     ]\r
49   },\r
50   {\r
51     "id": "515432f3.743c34",\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": 752,\r
58     "y": 286,\r
59     "z": "211aaefb.d906ea",\r
60     "wires": [\r
61       [\r
62         "dd15978c.a7e49",\r
63         "818743.6c6790c",\r
64         "ecb6f865.396d18"\r
65       ]\r
66     ]\r
67   },\r
68   {\r
69     "id": "dd15978c.a7e49",\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": 1053.33349609375,\r
75     "y": 556.9302978515625,\r
76     "z": "211aaefb.d906ea",\r
77     "wires": []\r
78   },\r
79   {\r
80     "id": "818743.6c6790c",\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": 1074.761962890625,\r
87     "y": 259.33331298828125,\r
88     "z": "211aaefb.d906ea",\r
89     "wires": [\r
90       [\r
91         "5ecdc66f.f6a9f8",\r
92         "a5115d.53bf7ea",\r
93         "6a040cf4.34a5f4"\r
94       ]\r
95     ]\r
96   },\r
97   {\r
98     "id": "5ecdc66f.f6a9f8",\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": 1299.761962890625,\r
105     "y": 117.33331298828125,\r
106     "z": "211aaefb.d906ea",\r
107     "wires": [\r
108       [\r
109         "79d6f337.acb234"\r
110       ]\r
111     ]\r
112   },\r
113   {\r
114     "id": "a5115d.53bf7ea",\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": 1295.2529296875,\r
121     "y": 186.9073486328125,\r
122     "z": "211aaefb.d906ea",\r
123     "wires": [\r
124       [\r
125         "5f1113a0.08e40c"\r
126       ]\r
127     ]\r
128   },\r
129   {\r
130     "id": "6a040cf4.34a5f4",\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": 1283.761962890625,\r
137     "y": 233.33331298828125,\r
138     "z": "211aaefb.d906ea",\r
139     "wires": [\r
140       [\r
141         "90f3a407.501d38"\r
142       ]\r
143     ]\r
144   },\r
145   {\r
146     "id": "de3b14d3.6ada2",\r
147     "type": "comment",\r
148     "name": "new for TransportSlicing",\r
149     "info": "",\r
150     "comments": "",\r
151     "x": 1053.761962890625,\r
152     "y": 147.33331298828125,\r
153     "z": "211aaefb.d906ea",\r
154     "wires": []\r
155   },\r
156   {\r
157     "id": "ecb6f865.396d18",\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": 1041.761962890625,\r
164     "y": 199.33331298828125,\r
165     "z": "211aaefb.d906ea",\r
166     "wires": [\r
167       []\r
168     ]\r
169   },\r
170   {\r
171     "id": "79d6f337.acb234",\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": 1540,\r
178     "y": 114,\r
179     "z": "211aaefb.d906ea",\r
180     "wires": [\r
181       [\r
182         "43c20e21.f32cd8",\r
183         "28c5af7a.923d38"\r
184       ]\r
185     ]\r
186   },\r
187   {\r
188     "id": "5f1113a0.08e40c",\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": 1450.0623779296875,\r
194     "y": 189.85977172851562,\r
195     "z": "211aaefb.d906ea",\r
196     "wires": []\r
197   },\r
198   {\r
199     "id": "90f3a407.501d38",\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": 1454,\r
205     "y": 234,\r
206     "z": "211aaefb.d906ea",\r
207     "wires": []\r
208   },\r
209   {\r
210     "id": "43c20e21.f32cd8",\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": 1745,\r
217     "y": 151,\r
218     "z": "211aaefb.d906ea",\r
219     "wires": [\r
220       [\r
221         "80d61dda.518fc"\r
222       ]\r
223     ]\r
224   },\r
225   {\r
226     "id": "28c5af7a.923d38",\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": 1755,\r
233     "y": 78,\r
234     "z": "211aaefb.d906ea",\r
235     "wires": [\r
236       []\r
237     ]\r
238   },\r
239   {\r
240     "id": "80d61dda.518fc",\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": 1738,\r
248     "y": 226,\r
249     "z": "211aaefb.d906ea",\r
250     "wires": [\r
251       [\r
252         "28653cf0.44562c",\r
253         "75a68f8a.78ad9",\r
254         "3bc8660b.b8496a",\r
255         "1213b45b.844d1c",\r
256         "2c9dde75.d2cff2"\r
257       ]\r
258     ]\r
259   },\r
260   {\r
261     "id": "98945bed.eff0a8",\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": 2224,\r
268     "y": 277,\r
269     "z": "211aaefb.d906ea",\r
270     "wires": [\r
271       [\r
272         "2960f1eb.c720a6",\r
273         "872a9fc7.c0cff",\r
274         "8c06b22e.eee49"\r
275       ]\r
276     ]\r
277   },\r
278   {\r
279     "id": "2960f1eb.c720a6",\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": 2440,\r
286     "y": 344,\r
287     "z": "211aaefb.d906ea",\r
288     "wires": [\r
289       [\r
290         "c7e960b7.dc23f"\r
291       ]\r
292     ]\r
293   },\r
294   {\r
295     "id": "872a9fc7.c0cff",\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": 2440.490966796875,\r
302     "y": 243.573974609375,\r
303     "z": "211aaefb.d906ea",\r
304     "wires": [\r
305       [\r
306         "6cf8dc3d.cca5ac"\r
307       ]\r
308     ]\r
309   },\r
310   {\r
311     "id": "8c06b22e.eee49",\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": 2436,\r
318     "y": 293,\r
319     "z": "211aaefb.d906ea",\r
320     "wires": [\r
321       [\r
322         "9afdf1e0.0463b"\r
323       ]\r
324     ]\r
325   },\r
326   {\r
327     "id": "28653cf0.44562c",\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": 1941,\r
334     "y": 258,\r
335     "z": "211aaefb.d906ea",\r
336     "wires": [\r
337       [\r
338         "b0c3b925.5a198",\r
339         "98945bed.eff0a8",\r
340         "59db3330.69645c",\r
341         "4ebbcee7.69b52"\r
342       ]\r
343     ]\r
344   },\r
345   {\r
346     "id": "b0c3b925.5a198",\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": 2221,\r
352     "y": 196,\r
353     "z": "211aaefb.d906ea",\r
354     "wires": []\r
355   },\r
356   {\r
357     "id": "1213b45b.844d1c",\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": 1915,\r
363     "y": 208,\r
364     "z": "211aaefb.d906ea",\r
365     "wires": []\r
366   },\r
367   {\r
368     "id": "75a68f8a.78ad9",\r
369     "type": "get-resource",\r
370     "name": "get-resource pnfs-list",\r
371     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"pnfs\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v24/network/pnfs?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopopnfs\" >",\r
372     "comments": "",\r
373     "outputs": 1,\r
374     "x": 1958,\r
375     "y": 67,\r
376     "z": "211aaefb.d906ea",\r
377     "wires": [\r
378       []\r
379     ]\r
380   },\r
381   {\r
382     "id": "3bc8660b.b8496a",\r
383     "type": "get-resource",\r
384     "name": "get-resource logical-links",\r
385     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-links\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v24/network/logical-links?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopologicalLinks\" >",\r
386     "comments": "",\r
387     "outputs": 1,\r
388     "x": 1970,\r
389     "y": 108,\r
390     "z": "211aaefb.d906ea",\r
391     "wires": [\r
392       []\r
393     ]\r
394   },\r
395   {\r
396     "id": "886bedb4.af1a3",\r
397     "type": "comment",\r
398     "name": "The following two nodes are for PCE",\r
399     "info": "",\r
400     "comments": "",\r
401     "x": 1995,\r
402     "y": 20,\r
403     "z": "211aaefb.d906ea",\r
404     "wires": []\r
405   },\r
406   {\r
407     "id": "1506b37b.81c545",\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": 1915,\r
413     "y": 154,\r
414     "z": "211aaefb.d906ea",\r
415     "wires": []\r
416   },\r
417   {\r
418     "id": "6cf8dc3d.cca5ac",\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": 2619,\r
424     "y": 246,\r
425     "z": "211aaefb.d906ea",\r
426     "wires": []\r
427   },\r
428   {\r
429     "id": "9afdf1e0.0463b",\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": 2618.9375,\r
435     "y": 295.1402587890625,\r
436     "z": "211aaefb.d906ea",\r
437     "wires": []\r
438   },\r
439   {\r
440     "id": "c7e960b7.dc23f",\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": 2620.9375,\r
447     "y": 346.1402587890625,\r
448     "z": "211aaefb.d906ea",\r
449     "wires": [\r
450       [\r
451         "39c57327.b8862c"\r
452       ]\r
453     ]\r
454   },\r
455   {\r
456     "id": "39c57327.b8862c",\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": 2913.9375,\r
463     "y": 293.1402587890625,\r
464     "z": "211aaefb.d906ea",\r
465     "wires": [\r
466       [\r
467         "3bec086a.17141",\r
468         "202b395f.8fc9be",\r
469         "205a58b1.00a5c"\r
470       ]\r
471     ]\r
472   },\r
473   {\r
474     "id": "202b395f.8fc9be",\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": 3187.428466796875,\r
481     "y": 185.7142333984375,\r
482     "z": "211aaefb.d906ea",\r
483     "wires": [\r
484       [\r
485         "113df3fa.92a3d4"\r
486       ]\r
487     ]\r
488   },\r
489   {\r
490     "id": "113df3fa.92a3d4",\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": 3365,\r
496     "y": 186,\r
497     "z": "211aaefb.d906ea",\r
498     "wires": []\r
499   },\r
500   {\r
501     "id": "205a58b1.00a5c",\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": 3182.9375,\r
508     "y": 235.1402587890625,\r
509     "z": "211aaefb.d906ea",\r
510     "wires": [\r
511       [\r
512         "158df1dd.6f3716"\r
513       ]\r
514     ]\r
515   },\r
516   {\r
517     "id": "158df1dd.6f3716",\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": 3364.9375,\r
523     "y": 235.1402587890625,\r
524     "z": "211aaefb.d906ea",\r
525     "wires": []\r
526   },\r
527   {\r
528     "id": "3bec086a.17141",\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": 3186.9375,\r
535     "y": 286.1402587890625,\r
536     "z": "211aaefb.d906ea",\r
537     "wires": [\r
538       [\r
539         "b7f25fb9.397e68"\r
540       ]\r
541     ]\r
542   },\r
543   {\r
544     "id": "b7f25fb9.397e68",\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": 3366.9375,\r
551     "y": 286.1402587890625,\r
552     "z": "211aaefb.d906ea",\r
553     "wires": [\r
554       [\r
555         "b5f441a1.12264"\r
556       ]\r
557     ]\r
558   },\r
559   {\r
560     "id": "b5f441a1.12264",\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": 2933,\r
567     "y": 421,\r
568     "z": "211aaefb.d906ea",\r
569     "wires": [\r
570       [\r
571         "8b1d1a2b.bf0fd8",\r
572         "1b31225e.143a7e"\r
573       ]\r
574     ]\r
575   },\r
576   {\r
577     "id": "1b31225e.143a7e",\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": 3243,\r
584     "y": 428,\r
585     "z": "211aaefb.d906ea",\r
586     "wires": [\r
587       []\r
588     ]\r
589   },\r
590   {\r
591     "id": "8b1d1a2b.bf0fd8",\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": 3242,\r
598     "y": 482,\r
599     "z": "211aaefb.d906ea",\r
600     "wires": [\r
601       [\r
602         "f82eb181.80b6b8"\r
603       ]\r
604     ]\r
605   },\r
606   {\r
607     "id": "a23264d4.676238",\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": 3987,\r
614     "y": 436,\r
615     "z": "211aaefb.d906ea",\r
616     "wires": [\r
617       [\r
618         "ff9fd818.342fc"\r
619       ]\r
620     ]\r
621   },\r
622   {\r
623     "id": "ff9fd818.342fc",\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": 4163.9998779296875,\r
630     "y": 428.9998779296875,\r
631     "z": "211aaefb.d906ea",\r
632     "wires": [\r
633       [\r
634         "792ffad7.7e059c",\r
635         "f4f213f7.1f09b"\r
636       ]\r
637     ]\r
638   },\r
639   {\r
640     "id": "f82eb181.80b6b8",\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": 3406,\r
647     "y": 408,\r
648     "z": "211aaefb.d906ea",\r
649     "wires": [\r
650       [\r
651         "ecdd8960.6c28f",\r
652         "89ab1181.5cfe68"\r
653       ]\r
654     ]\r
655   },\r
656   {\r
657     "id": "ecdd8960.6c28f",\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": 3687,\r
664     "y": 364,\r
665     "z": "211aaefb.d906ea",\r
666     "wires": [\r
667       [\r
668         "b496725b.6310f"\r
669       ]\r
670     ]\r
671   },\r
672   {\r
673     "id": "b496725b.6310f",\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": 3949,\r
680     "y": 364,\r
681     "z": "211aaefb.d906ea",\r
682     "wires": [\r
683       [\r
684         "a23264d4.676238"\r
685       ]\r
686     ]\r
687   },\r
688   {\r
689     "id": "792ffad7.7e059c",\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": 4406.9998779296875,\r
695     "y": 385.9998779296875,\r
696     "z": "211aaefb.d906ea",\r
697     "wires": []\r
698   },\r
699   {\r
700     "id": "f4f213f7.1f09b",\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": 4395.9998779296875,\r
707     "y": 440.9998779296875,\r
708     "z": "211aaefb.d906ea",\r
709     "wires": [\r
710       [\r
711         "738543a5.e85744",\r
712         "13a5e063.163af8",\r
713         "e90bc7b5.1f09c"\r
714       ]\r
715     ]\r
716   },\r
717   {\r
718     "id": "e90bc7b5.1f09c",\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": 4649,\r
725     "y": 327,\r
726     "z": "211aaefb.d906ea",\r
727     "wires": [\r
728       [\r
729         "5d8fd93.58407a8"\r
730       ]\r
731     ]\r
732   },\r
733   {\r
734     "id": "5d8fd93.58407a8",\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": 4797.571533203125,\r
740     "y": 327.2857666015625,\r
741     "z": "211aaefb.d906ea",\r
742     "wires": []\r
743   },\r
744   {\r
745     "id": "53518ce7.6d697c",\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": 4796.509033203125,\r
751     "y": 371.426025390625,\r
752     "z": "211aaefb.d906ea",\r
753     "wires": []\r
754   },\r
755   {\r
756     "id": "13a5e063.163af8",\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": 4637.509033203125,\r
763     "y": 371.426025390625,\r
764     "z": "211aaefb.d906ea",\r
765     "wires": [\r
766       [\r
767         "53518ce7.6d697c"\r
768       ]\r
769     ]\r
770   },\r
771   {\r
772     "id": "738543a5.e85744",\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": 4644.509033203125,\r
779     "y": 450.426025390625,\r
780     "z": "211aaefb.d906ea",\r
781     "wires": [\r
782       [\r
783         "937d3d5d.26f97"\r
784       ]\r
785     ]\r
786   },\r
787   {\r
788     "id": "937d3d5d.26f97",\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": 4783.509033203125,\r
796     "y": 450.426025390625,\r
797     "z": "211aaefb.d906ea",\r
798     "wires": [\r
799       [\r
800         "72f3c760.2ca228",\r
801         "8ec14dfe.92b848"\r
802       ]\r
803     ]\r
804   },\r
805   {\r
806     "id": "72f3c760.2ca228",\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": 4989,\r
812     "y": 448,\r
813     "z": "211aaefb.d906ea",\r
814     "wires": []\r
815   },\r
816   {\r
817     "id": "8ec14dfe.92b848",\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": 4988,\r
823     "y": 494,\r
824     "z": "211aaefb.d906ea",\r
825     "wires": []\r
826   },\r
827   {\r
828     "id": "89ab1181.5cfe68",\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": 3504,\r
835     "y": 480,\r
836     "z": "211aaefb.d906ea",\r
837     "wires": [\r
838       [\r
839         "f7fb6622.9ee6a8"\r
840       ]\r
841     ]\r
842   },\r
843   {\r
844     "id": "f7fb6622.9ee6a8",\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": 3784,\r
851     "y": 480,\r
852     "z": "211aaefb.d906ea",\r
853     "wires": [\r
854       [\r
855         "ae35e793.89faa8"\r
856       ]\r
857     ]\r
858   },\r
859   {\r
860     "id": "ae35e793.89faa8",\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": 2197.0001220703125,\r
867     "y": 733.0001220703125,\r
868     "z": "211aaefb.d906ea",\r
869     "wires": [\r
870       [\r
871         "c9798d0a.ecd3b"\r
872       ]\r
873     ]\r
874   },\r
875   {\r
876     "id": "c9798d0a.ecd3b",\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": 2374,\r
883     "y": 726,\r
884     "z": "211aaefb.d906ea",\r
885     "wires": [\r
886       [\r
887         "c196b024.7ddda8",\r
888         "7125c66b.59e98"\r
889       ]\r
890     ]\r
891   },\r
892   {\r
893     "id": "c196b024.7ddda8",\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": 2617,\r
899     "y": 683,\r
900     "z": "211aaefb.d906ea",\r
901     "wires": []\r
902   },\r
903   {\r
904     "id": "7125c66b.59e98",\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": 2606,\r
911     "y": 738,\r
912     "z": "211aaefb.d906ea",\r
913     "wires": [\r
914       [\r
915         "9959c5db.04ddc8",\r
916         "5c37ab7d.23ef4c",\r
917         "360651b5.116166"\r
918       ]\r
919     ]\r
920   },\r
921   {\r
922     "id": "9959c5db.04ddc8",\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": 2897.490966796875,\r
929     "y": 716.573974609375,\r
930     "z": "211aaefb.d906ea",\r
931     "wires": [\r
932       [\r
933         "95b8ba37.0aee2"\r
934       ]\r
935     ]\r
936   },\r
937   {\r
938     "id": "5c37ab7d.23ef4c",\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": 2886,\r
945     "y": 761,\r
946     "z": "211aaefb.d906ea",\r
947     "wires": [\r
948       [\r
949         "f8728a74.d6db68"\r
950       ]\r
951     ]\r
952   },\r
953   {\r
954     "id": "95b8ba37.0aee2",\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": 3046.0625,\r
960     "y": 716.8597412109375,\r
961     "z": "211aaefb.d906ea",\r
962     "wires": []\r
963   },\r
964   {\r
965     "id": "f8728a74.d6db68",\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": 3045,\r
971     "y": 761,\r
972     "z": "211aaefb.d906ea",\r
973     "wires": []\r
974   },\r
975   {\r
976     "id": "360651b5.116166",\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": 2893,\r
983     "y": 840,\r
984     "z": "211aaefb.d906ea",\r
985     "wires": [\r
986       [\r
987         "7326b1f2.1f515"\r
988       ]\r
989     ]\r
990   },\r
991   {\r
992     "id": "7326b1f2.1f515",\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": 3032,\r
1000     "y": 840,\r
1001     "z": "211aaefb.d906ea",\r
1002     "wires": [\r
1003       [\r
1004         "defc50da.4e3908",\r
1005         "b7df8e67.09b008",\r
1006         "8bf3b76.abce348",\r
1007         "25a0f8e1.052e18",\r
1008         "b381c251.6b96c",\r
1009         "89e7916b.fb9e18",\r
1010         "5511f093.c411d8",\r
1011         "d2628754.9207b8",\r
1012         "6481b806.b26798",\r
1013         "20bb7eae.be3a32",\r
1014         "9fcb0922.e08ed",\r
1015         "3db2acf8.6fe83c",\r
1016         "d8a34ec.a6346b",\r
1017         "2783e99.3726216"\r
1018       ]\r
1019     ]\r
1020   },\r
1021   {\r
1022     "id": "57e34af8.6ff4e4",\r
1023     "type": "execute",\r
1024     "name": "execute UUID generator for ethernet-service-name",\r
1025     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.ethernet-service-name\"/>\n",\r
1026     "comments": "",\r
1027     "outputs": 1,\r
1028     "x": 3346,\r
1029     "y": 646,\r
1030     "z": "211aaefb.d906ea",\r
1031     "wires": [\r
1032       []\r
1033     ]\r
1034   },\r
1035   {\r
1036     "id": "defc50da.4e3908",\r
1037     "type": "execute",\r
1038     "name": "execute UUID generator for otn-tunnel-name",\r
1039     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.otn-tunnel-name\"/>\n",\r
1040     "comments": "",\r
1041     "outputs": 1,\r
1042     "x": 3327,\r
1043     "y": 696,\r
1044     "z": "211aaefb.d906ea",\r
1045     "wires": [\r
1046       []\r
1047     ]\r
1048   },\r
1049   {\r
1050     "id": "2783e99.3726216",\r
1051     "type": "set",\r
1052     "name": "set new ethernet-service-name",\r
1053     "xml": "<set>\n<!--<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-name`\" />-->\n<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-id`\" />\n\n\n",\r
1054     "comments": "",\r
1055     "x": 3284,\r
1056     "y": 741,\r
1057     "z": "211aaefb.d906ea",\r
1058     "wires": []\r
1059   },\r
1060   {\r
1061     "id": "b7df8e67.09b008",\r
1062     "type": "set",\r
1063     "name": "set network-route-one",\r
1064     "xml": "<set>\n<parameter name='network-route-one' value=\"`$tmp.aai.logical-link.link-name`\" />\n\n\n",\r
1065     "comments": "",\r
1066     "x": 3259,\r
1067     "y": 804,\r
1068     "z": "211aaefb.d906ea",\r
1069     "wires": []\r
1070   },\r
1071   {\r
1072     "id": "8bf3b76.abce348",\r
1073     "type": "set",\r
1074     "name": "set network-route-two",\r
1075     "xml": "<set>\n<parameter name='network-route-two' value=\"`$tmp.aai.logical-link.link-name2`\" />\n\n\n",\r
1076     "comments": "",\r
1077     "x": 3260,\r
1078     "y": 859,\r
1079     "z": "211aaefb.d906ea",\r
1080     "wires": []\r
1081   },\r
1082   {\r
1083     "id": "25a0f8e1.052e18",\r
1084     "type": "save",\r
1085     "name": "get network-route-one from aai",\r
1086     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-route\"\n\tkey='network-route.route-id = $network-route-one'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-route-one\">",\r
1087     "comments": "",\r
1088     "outputs": 1,\r
1089     "x": 3276,\r
1090     "y": 907,\r
1091     "z": "211aaefb.d906ea",\r
1092     "wires": [\r
1093       [\r
1094         "bd8c7e03.e7323",\r
1095         "d55fdbac.2e4bb8",\r
1096         "1bd38601.f7d742"\r
1097       ]\r
1098     ]\r
1099   },\r
1100   {\r
1101     "id": "b381c251.6b96c",\r
1102     "type": "save",\r
1103     "name": "get network-route-two from aai",\r
1104     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-route\"\n\tkey='network-route.route-id = $network-route-two'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-route-two\">",\r
1105     "comments": "",\r
1106     "outputs": 1,\r
1107     "x": 3265,\r
1108     "y": 993.9998779296875,\r
1109     "z": "211aaefb.d906ea",\r
1110     "wires": [\r
1111       [\r
1112         "1da7e0f.b56889f",\r
1113         "484d133e.c5022c",\r
1114         "511cb1cb.4e0758"\r
1115       ]\r
1116     ]\r
1117   },\r
1118   {\r
1119     "id": "bd8c7e03.e7323",\r
1120     "type": "not-found",\r
1121     "name": "not-found",\r
1122     "xml": "<outcome value='not-found'>\n",\r
1123     "comments": "",\r
1124     "outputs": 1,\r
1125     "x": 3477,\r
1126     "y": 791,\r
1127     "z": "211aaefb.d906ea",\r
1128     "wires": [\r
1129       [\r
1130         "2e4151be.e64316"\r
1131       ]\r
1132     ]\r
1133   },\r
1134   {\r
1135     "id": "d55fdbac.2e4bb8",\r
1136     "type": "failure",\r
1137     "name": "failure",\r
1138     "xml": "<outcome value='failure'>\n",\r
1139     "comments": "",\r
1140     "outputs": 1,\r
1141     "x": 3472.509033203125,\r
1142     "y": 840.426025390625,\r
1143     "z": "211aaefb.d906ea",\r
1144     "wires": [\r
1145       [\r
1146         "13e83f49.acd859"\r
1147       ]\r
1148     ]\r
1149   },\r
1150   {\r
1151     "id": "1bd38601.f7d742",\r
1152     "type": "success",\r
1153     "name": "success",\r
1154     "xml": "<outcome value='success'>\n",\r
1155     "comments": "",\r
1156     "outputs": 1,\r
1157     "x": 3476.509033203125,\r
1158     "y": 893.426025390625,\r
1159     "z": "211aaefb.d906ea",\r
1160     "wires": [\r
1161       [\r
1162         "bbf6b192.5183e"\r
1163       ]\r
1164     ]\r
1165   },\r
1166   {\r
1167     "id": "2e4151be.e64316",\r
1168     "type": "returnFailure",\r
1169     "name": "return failure",\r
1170     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
1171     "comments": "",\r
1172     "x": 3625.571533203125,\r
1173     "y": 790.2857666015625,\r
1174     "z": "211aaefb.d906ea",\r
1175     "wires": []\r
1176   },\r
1177   {\r
1178     "id": "13e83f49.acd859",\r
1179     "type": "returnFailure",\r
1180     "name": "return failure",\r
1181     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1182     "comments": "",\r
1183     "x": 3615.509033203125,\r
1184     "y": 840.426025390625,\r
1185     "z": "211aaefb.d906ea",\r
1186     "wires": []\r
1187   },\r
1188   {\r
1189     "id": "1da7e0f.b56889f",\r
1190     "type": "not-found",\r
1191     "name": "not-found",\r
1192     "xml": "<outcome value='not-found'>\n",\r
1193     "comments": "",\r
1194     "outputs": 1,\r
1195     "x": 3488,\r
1196     "y": 963.9998779296875,\r
1197     "z": "211aaefb.d906ea",\r
1198     "wires": [\r
1199       [\r
1200         "27b6a672.93ff42"\r
1201       ]\r
1202     ]\r
1203   },\r
1204   {\r
1205     "id": "484d133e.c5022c",\r
1206     "type": "failure",\r
1207     "name": "failure",\r
1208     "xml": "<outcome value='failure'>\n",\r
1209     "comments": "",\r
1210     "outputs": 1,\r
1211     "x": 3483.509033203125,\r
1212     "y": 1013.4259033203125,\r
1213     "z": "211aaefb.d906ea",\r
1214     "wires": [\r
1215       [\r
1216         "9dfa6094.6f7fc"\r
1217       ]\r
1218     ]\r
1219   },\r
1220   {\r
1221     "id": "511cb1cb.4e0758",\r
1222     "type": "success",\r
1223     "name": "success",\r
1224     "xml": "<outcome value='success'>\n",\r
1225     "comments": "",\r
1226     "outputs": 1,\r
1227     "x": 3484.509033203125,\r
1228     "y": 1066.4259033203125,\r
1229     "z": "211aaefb.d906ea",\r
1230     "wires": [\r
1231       [\r
1232         "597eb63e.8508f8"\r
1233       ]\r
1234     ]\r
1235   },\r
1236   {\r
1237     "id": "27b6a672.93ff42",\r
1238     "type": "returnFailure",\r
1239     "name": "return failure",\r
1240     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
1241     "comments": "",\r
1242     "x": 3636.571533203125,\r
1243     "y": 963.28564453125,\r
1244     "z": "211aaefb.d906ea",\r
1245     "wires": []\r
1246   },\r
1247   {\r
1248     "id": "9dfa6094.6f7fc",\r
1249     "type": "returnFailure",\r
1250     "name": "return failure",\r
1251     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1252     "comments": "",\r
1253     "x": 3626.509033203125,\r
1254     "y": 1013.4259033203125,\r
1255     "z": "211aaefb.d906ea",\r
1256     "wires": []\r
1257   },\r
1258   {\r
1259     "id": "bbf6b192.5183e",\r
1260     "type": "block",\r
1261     "name": "block : atomic",\r
1262     "xml": "<block atomic=\"true\">",\r
1263     "atomic": "true",\r
1264     "outputs": 1,\r
1265     "x": 3638,\r
1266     "y": 893,\r
1267     "z": "211aaefb.d906ea",\r
1268     "wires": [\r
1269       [\r
1270         "254a0cd4.86f82c"\r
1271       ]\r
1272     ]\r
1273   },\r
1274   {\r
1275     "id": "597eb63e.8508f8",\r
1276     "type": "block",\r
1277     "name": "block : atomic",\r
1278     "xml": "<block atomic=\"true\">",\r
1279     "atomic": "true",\r
1280     "outputs": 1,\r
1281     "x": 3638,\r
1282     "y": 1065.9998779296875,\r
1283     "z": "211aaefb.d906ea",\r
1284     "wires": [\r
1285       [\r
1286         "e889443b.6afcf"\r
1287       ]\r
1288     ]\r
1289   },\r
1290   {\r
1291     "id": "254a0cd4.86f82c",\r
1292     "type": "switchNode",\r
1293     "name": "switch nr type",\r
1294     "xml": "<switch test='`$tmp.aai.network-route-one.type`'>\n",\r
1295     "comments": "",\r
1296     "outputs": 1,\r
1297     "x": 3810,\r
1298     "y": 893,\r
1299     "z": "211aaefb.d906ea",\r
1300     "wires": [\r
1301       [\r
1302         "6d2ef37a.d5fd0c",\r
1303         "52c8f078.ee2cf"\r
1304       ]\r
1305     ]\r
1306   },\r
1307   {\r
1308     "id": "e889443b.6afcf",\r
1309     "type": "switchNode",\r
1310     "name": "switch nr type",\r
1311     "xml": "<switch test='`$tmp.aai.network-route-two.type`'>\n",\r
1312     "comments": "",\r
1313     "outputs": 1,\r
1314     "x": 3811,\r
1315     "y": 1066,\r
1316     "z": "211aaefb.d906ea",\r
1317     "wires": [\r
1318       [\r
1319         "a0b3468.4c1dbb8",\r
1320         "ed4bd4a4.7c002"\r
1321       ]\r
1322     ]\r
1323   },\r
1324   {\r
1325     "id": "6d2ef37a.d5fd0c",\r
1326     "type": "outcome",\r
1327     "name": "ROOT",\r
1328     "xml": "<outcome value='ROOT'>\n",\r
1329     "comments": "",\r
1330     "outputs": 1,\r
1331     "x": 3986,\r
1332     "y": 872,\r
1333     "z": "211aaefb.d906ea",\r
1334     "wires": [\r
1335       [\r
1336         "e77feac5.4ef39"\r
1337       ]\r
1338     ]\r
1339   },\r
1340   {\r
1341     "id": "52c8f078.ee2cf",\r
1342     "type": "outcome",\r
1343     "name": "LEAF",\r
1344     "xml": "<outcome value='LEAF'>\n",\r
1345     "comments": "",\r
1346     "outputs": 1,\r
1347     "x": 3988,\r
1348     "y": 926,\r
1349     "z": "211aaefb.d906ea",\r
1350     "wires": [\r
1351       [\r
1352         "dc5de667.94277"\r
1353       ]\r
1354     ]\r
1355   },\r
1356   {\r
1357     "id": "a0b3468.4c1dbb8",\r
1358     "type": "outcome",\r
1359     "name": "ROOT",\r
1360     "xml": "<outcome value='ROOT'>\n",\r
1361     "comments": "",\r
1362     "outputs": 1,\r
1363     "x": 3987,\r
1364     "y": 1036,\r
1365     "z": "211aaefb.d906ea",\r
1366     "wires": [\r
1367       [\r
1368         "79d85b32.4dba8c"\r
1369       ]\r
1370     ]\r
1371   },\r
1372   {\r
1373     "id": "ed4bd4a4.7c002",\r
1374     "type": "outcome",\r
1375     "name": "LEAF",\r
1376     "xml": "<outcome value='LEAF'>\n",\r
1377     "comments": "",\r
1378     "outputs": 1,\r
1379     "x": 3989,\r
1380     "y": 1090,\r
1381     "z": "211aaefb.d906ea",\r
1382     "wires": [\r
1383       [\r
1384         "5799e4b6.bb5c84"\r
1385       ]\r
1386     ]\r
1387   },\r
1388   {\r
1389     "id": "985f8e8b.05bee8",\r
1390     "type": "set",\r
1391     "name": "set network-route-ROOT",\r
1392     "xml": "<set>\n<parameter name='tmp.aai.network-route-ROOT.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
1393     "comments": "",\r
1394     "x": 4296,\r
1395     "y": 824,\r
1396     "z": "211aaefb.d906ea",\r
1397     "wires": []\r
1398   },\r
1399   {\r
1400     "id": "f70bc04c.4e53a8",\r
1401     "type": "set",\r
1402     "name": "set network-route-LEAF",\r
1403     "xml": "<set>\n<parameter name='tmp.aai.network-route-LEAF.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
1404     "comments": "",\r
1405     "x": 4289,\r
1406     "y": 922,\r
1407     "z": "211aaefb.d906ea",\r
1408     "wires": []\r
1409   },\r
1410   {\r
1411     "id": "279fdf30.7efb5",\r
1412     "type": "set",\r
1413     "name": "set network-route-ROOT",\r
1414     "xml": "<set>\n<parameter name='tmp.aai.network-route-ROOT.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
1415     "comments": "",\r
1416     "x": 4289,\r
1417     "y": 1009,\r
1418     "z": "211aaefb.d906ea",\r
1419     "wires": []\r
1420   },\r
1421   {\r
1422     "id": "59ab7a89.d7cd04",\r
1423     "type": "set",\r
1424     "name": "set network-route-LEAF",\r
1425     "xml": "<set>\n<parameter name='tmp.aai.network-route-LEAF.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
1426     "comments": "",\r
1427     "x": 4293,\r
1428     "y": 1102,\r
1429     "z": "211aaefb.d906ea",\r
1430     "wires": []\r
1431   },\r
1432   {\r
1433     "id": "88375125.392df",\r
1434     "type": "success",\r
1435     "name": "success",\r
1436     "xml": "<outcome value='success'>\n",\r
1437     "comments": "",\r
1438     "outputs": 1,\r
1439     "x": 3520,\r
1440     "y": 1511,\r
1441     "z": "211aaefb.d906ea",\r
1442     "wires": [\r
1443       [\r
1444         "70cb5f48.205d5"\r
1445       ]\r
1446     ]\r
1447   },\r
1448   {\r
1449     "id": "f9f9639f.39277",\r
1450     "type": "not-found",\r
1451     "name": "not-found",\r
1452     "xml": "<outcome value='not-found'>\n",\r
1453     "comments": "",\r
1454     "outputs": 1,\r
1455     "x": 3529.490966796875,\r
1456     "y": 1553.5740356445312,\r
1457     "z": "211aaefb.d906ea",\r
1458     "wires": [\r
1459       [\r
1460         "3188784d.74df2"\r
1461       ]\r
1462     ]\r
1463   },\r
1464   {\r
1465     "id": "5caadc0.419f8a4",\r
1466     "type": "failure",\r
1467     "name": "failure",\r
1468     "xml": "<outcome value='failure'>\n",\r
1469     "comments": "",\r
1470     "outputs": 1,\r
1471     "x": 3518,\r
1472     "y": 1600,\r
1473     "z": "211aaefb.d906ea",\r
1474     "wires": [\r
1475       [\r
1476         "150b9d67.7501b3"\r
1477       ]\r
1478     ]\r
1479   },\r
1480   {\r
1481     "id": "3a7a9a9d.f62dc6",\r
1482     "type": "comment",\r
1483     "name": "Question?",\r
1484     "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
1485     "comments": "",\r
1486     "x": 3220,\r
1487     "y": 1473,\r
1488     "z": "211aaefb.d906ea",\r
1489     "wires": []\r
1490   },\r
1491   {\r
1492     "id": "5511f093.c411d8",\r
1493     "type": "save",\r
1494     "name": "get p-interface-src from aai",\r
1495     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t    key=\"pnf.pnf-name = $tmp.src.domainA.pnf-name\n\t        AND p-interface.interface-name = $tmp.aai.network-route-A.next-hop\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.network-route-A.p-interface-src\" >\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"p-interface\"-->\n<!--\t    key=\"pnf.pnf-name = $unique-src-node-Id-->\n<!--\t        and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"-->\n<!--\t\tlocal-only=\"false\" -->\n<!--\t\tpfx=\"tmp.aai.endpointA.p-interface-src\" >-->\n",\r
1496     "comments": "",\r
1497     "outputs": 1,\r
1498     "x": 3263,\r
1499     "y": 1538,\r
1500     "z": "211aaefb.d906ea",\r
1501     "wires": [\r
1502       [\r
1503         "88375125.392df",\r
1504         "f9f9639f.39277",\r
1505         "5caadc0.419f8a4"\r
1506       ]\r
1507     ]\r
1508   },\r
1509   {\r
1510     "id": "89e7916b.fb9e18",\r
1511     "type": "execute",\r
1512     "name": "execute split tp-id to get pnf-name",\r
1513     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-A.next-hop`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainA-pnfName\"/>\n\n",\r
1514     "comments": "",\r
1515     "outputs": 1,\r
1516     "x": 3264,\r
1517     "y": 1208,\r
1518     "z": "211aaefb.d906ea",\r
1519     "wires": [\r
1520       [\r
1521         "e837ae68.fc604",\r
1522         "bb41717d.607c08"\r
1523       ]\r
1524     ]\r
1525   },\r
1526   {\r
1527     "id": "bb41717d.607c08",\r
1528     "type": "failure",\r
1529     "name": "success",\r
1530     "xml": "<outcome value='success'>\n",\r
1531     "comments": "",\r
1532     "outputs": 1,\r
1533     "x": 3487,\r
1534     "y": 1194,\r
1535     "z": "211aaefb.d906ea",\r
1536     "wires": [\r
1537       [\r
1538         "d2362461.2f81"\r
1539       ]\r
1540     ]\r
1541   },\r
1542   {\r
1543     "id": "e837ae68.fc604",\r
1544     "type": "failure",\r
1545     "name": "failure",\r
1546     "xml": "<outcome value='failure'>\n",\r
1547     "comments": "",\r
1548     "outputs": 1,\r
1549     "x": 3489,\r
1550     "y": 1227,\r
1551     "z": "211aaefb.d906ea",\r
1552     "wires": [\r
1553       [\r
1554         "3512d9a4.ea10d6"\r
1555       ]\r
1556     ]\r
1557   },\r
1558   {\r
1559     "id": "70cb5f48.205d5",\r
1560     "type": "block",\r
1561     "name": "block : atomic",\r
1562     "xml": "<block atomic=\"true\">",\r
1563     "atomic": "true",\r
1564     "outputs": 1,\r
1565     "x": 3692.66650390625,\r
1566     "y": 1510,\r
1567     "z": "211aaefb.d906ea",\r
1568     "wires": [\r
1569       [\r
1570         "e94025a.e4524d8",\r
1571         "c5dba695.8712a"\r
1572       ]\r
1573     ]\r
1574   },\r
1575   {\r
1576     "id": "3188784d.74df2",\r
1577     "type": "returnFailure",\r
1578     "name": "return failure",\r
1579     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
1580     "comments": "",\r
1581     "x": 3683.0623779296875,\r
1582     "y": 1556.8597717285156,\r
1583     "z": "211aaefb.d906ea",\r
1584     "wires": []\r
1585   },\r
1586   {\r
1587     "id": "150b9d67.7501b3",\r
1588     "type": "returnFailure",\r
1589     "name": "return failure",\r
1590     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1591     "comments": "",\r
1592     "x": 3687,\r
1593     "y": 1601,\r
1594     "z": "211aaefb.d906ea",\r
1595     "wires": []\r
1596   },\r
1597   {\r
1598     "id": "e94025a.e4524d8",\r
1599     "type": "execute",\r
1600     "name": "execute split tp-id to get pnf-name",\r
1601     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-A.p-interface-src.interface-name`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainA\"/>\n\n",\r
1602     "comments": "",\r
1603     "outputs": 1,\r
1604     "x": 3957,\r
1605     "y": 1494,\r
1606     "z": "211aaefb.d906ea",\r
1607     "wires": [\r
1608       [\r
1609         "e5529b75.8cebe8",\r
1610         "23d40330.51306c"\r
1611       ]\r
1612     ]\r
1613   },\r
1614   {\r
1615     "id": "23d40330.51306c",\r
1616     "type": "failure",\r
1617     "name": "success",\r
1618     "xml": "<outcome value='success'>\n",\r
1619     "comments": "",\r
1620     "outputs": 1,\r
1621     "x": 4180,\r
1622     "y": 1449,\r
1623     "z": "211aaefb.d906ea",\r
1624     "wires": [\r
1625       [\r
1626         "3c287465.76fa9c"\r
1627       ]\r
1628     ]\r
1629   },\r
1630   {\r
1631     "id": "e5529b75.8cebe8",\r
1632     "type": "failure",\r
1633     "name": "failure",\r
1634     "xml": "<outcome value='failure'>\n",\r
1635     "comments": "",\r
1636     "outputs": 1,\r
1637     "x": 4182,\r
1638     "y": 1513,\r
1639     "z": "211aaefb.d906ea",\r
1640     "wires": [\r
1641       [\r
1642         "68bbdd27.0bc724"\r
1643       ]\r
1644     ]\r
1645   },\r
1646   {\r
1647     "id": "68bbdd27.0bc724",\r
1648     "type": "returnFailure",\r
1649     "name": "return failure",\r
1650     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",\r
1651     "comments": "",\r
1652     "x": 4344,\r
1653     "y": 1509,\r
1654     "z": "211aaefb.d906ea",\r
1655     "wires": []\r
1656   },\r
1657   {\r
1658     "id": "3c287465.76fa9c",\r
1659     "type": "block",\r
1660     "name": "block : atomic",\r
1661     "xml": "<block atomic=\"true\">",\r
1662     "atomic": "true",\r
1663     "outputs": 1,\r
1664     "x": 4345,\r
1665     "y": 1446,\r
1666     "z": "211aaefb.d906ea",\r
1667     "wires": [\r
1668       [\r
1669         "bdb7c671.344b18",\r
1670         "c34e936c.c687c"\r
1671       ]\r
1672     ]\r
1673   },\r
1674   {\r
1675     "id": "c36404f4.836da8",\r
1676     "type": "save",\r
1677     "name": "save connectivity resource in AAI",\r
1678     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
1679     "comments": "",\r
1680     "outputs": 1,\r
1681     "x": 3959,\r
1682     "y": 1653,\r
1683     "z": "211aaefb.d906ea",\r
1684     "wires": [\r
1685       []\r
1686     ]\r
1687   },\r
1688   {\r
1689     "id": "b7b75306.125ca8",\r
1690     "type": "execute",\r
1691     "name": "execute UUID generator for connectivity domainA",\r
1692     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-domainA-uuid\"/>\n",\r
1693     "comments": "",\r
1694     "outputs": 1,\r
1695     "x": 4004,\r
1696     "y": 1563,\r
1697     "z": "211aaefb.d906ea",\r
1698     "wires": [\r
1699       []\r
1700     ]\r
1701   },\r
1702   {\r
1703     "id": "6cc070b0.831948",\r
1704     "type": "save",\r
1705     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
1706     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-domainA-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
1707     "comments": "",\r
1708     "outputs": 1,\r
1709     "x": 4087,\r
1710     "y": 1701,\r
1711     "z": "211aaefb.d906ea",\r
1712     "wires": [\r
1713       []\r
1714     ]\r
1715   },\r
1716   {\r
1717     "id": "3512d9a4.ea10d6",\r
1718     "type": "returnFailure",\r
1719     "name": "return failure",\r
1720     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",\r
1721     "comments": "",\r
1722     "x": 3632,\r
1723     "y": 1224,\r
1724     "z": "211aaefb.d906ea",\r
1725     "wires": []\r
1726   },\r
1727   {\r
1728     "id": "d2362461.2f81",\r
1729     "type": "block",\r
1730     "name": "block : atomic",\r
1731     "xml": "<block atomic=\"true\">",\r
1732     "atomic": "true",\r
1733     "outputs": 1,\r
1734     "x": 3635,\r
1735     "y": 1187,\r
1736     "z": "211aaefb.d906ea",\r
1737     "wires": [\r
1738       [\r
1739         "e726be0e.35ac3",\r
1740         "2627d74c.d6bd68"\r
1741       ]\r
1742     ]\r
1743   },\r
1744   {\r
1745     "id": "e726be0e.35ac3",\r
1746     "type": "set",\r
1747     "name": "set pnf-name",\r
1748     "xml": "<set>\n<parameter name='tmp.src.domainA.pnf-name' value=\"`$param-prefix-domainA-pnfName[0] + '-' +\n                                                   $param-prefix-domainA-pnfName[1] + '-' +\n                                                   $param-prefix-domainA-pnfName[2] + '-' +\n                                                   $param-prefix-domainA-pnfName[3] + '-' +\n                                                   $param-prefix-domainA-pnfName[4] + '-' +\n                                                   $param-prefix-domainA-pnfName[5] + '-' +\n                                                   $param-prefix-domainA-pnfName[6] + '-' +\n                                                   $param-prefix-domainA-pnfName[7] + '-' +\n                                                   $param-prefix-domainA-pnfName[8]`\" />\n",\r
1749     "comments": "",\r
1750     "x": 3809,\r
1751     "y": 1143,\r
1752     "z": "211aaefb.d906ea",\r
1753     "wires": []\r
1754   },\r
1755   {\r
1756     "id": "c5dba695.8712a",\r
1757     "type": "for",\r
1758     "name": "for each relationship",\r
1759     "xml": "<for silentFailure='true' index='pividx' start='0' end='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship_length`' >\n",\r
1760     "comments": "",\r
1761     "outputs": 1,\r
1762     "x": 3911,\r
1763     "y": 1778,\r
1764     "z": "211aaefb.d906ea",\r
1765     "wires": [\r
1766       [\r
1767         "e649e24c.a2956"\r
1768       ]\r
1769     ]\r
1770   },\r
1771   {\r
1772     "id": "e649e24c.a2956",\r
1773     "type": "switchNode",\r
1774     "name": "switch related-to",\r
1775     "xml": "<switch test='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].related-to`'>\n",\r
1776     "comments": "",\r
1777     "outputs": 1,\r
1778     "x": 4117,\r
1779     "y": 1778,\r
1780     "z": "211aaefb.d906ea",\r
1781     "wires": [\r
1782       [\r
1783         "b51c6327.c26b2"\r
1784       ]\r
1785     ]\r
1786   },\r
1787   {\r
1788     "id": "b51c6327.c26b2",\r
1789     "type": "outcome",\r
1790     "name": "tunnel-termination-point",\r
1791     "xml": "<outcome value='tunnel-termination-point'>\n",\r
1792     "comments": "",\r
1793     "outputs": 1,\r
1794     "x": 4332.28564453125,\r
1795     "y": 1777.82177734375,\r
1796     "z": "211aaefb.d906ea",\r
1797     "wires": [\r
1798       [\r
1799         "4a081ef3.a11e7"\r
1800       ]\r
1801     ]\r
1802   },\r
1803   {\r
1804     "id": "2627d74c.d6bd68",\r
1805     "type": "get-resource",\r
1806     "name": "get-resource src pnf",\r
1807     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.src.domainA.pnf-name\"\n        pfx='tmp.aai.source-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
1808     "comments": "",\r
1809     "outputs": 1,\r
1810     "x": 3824,\r
1811     "y": 1254,\r
1812     "z": "211aaefb.d906ea",\r
1813     "wires": [\r
1814       [\r
1815         "e436419e.4fabd8",\r
1816         "652a3cad.15b09c",\r
1817         "70700ce3.d1704c"\r
1818       ]\r
1819     ]\r
1820   },\r
1821   {\r
1822     "id": "e436419e.4fabd8",\r
1823     "type": "success",\r
1824     "name": "success",\r
1825     "xml": "<outcome value='success'>\n",\r
1826     "comments": "",\r
1827     "outputs": 1,\r
1828     "x": 4019.5001220703125,\r
1829     "y": 1206,\r
1830     "z": "211aaefb.d906ea",\r
1831     "wires": [\r
1832       [\r
1833         "cac46a50.7c9a2"\r
1834       ]\r
1835     ]\r
1836   },\r
1837   {\r
1838     "id": "652a3cad.15b09c",\r
1839     "type": "not-found",\r
1840     "name": "not-found",\r
1841     "xml": "<outcome value='not-found'>\n",\r
1842     "comments": "",\r
1843     "outputs": 1,\r
1844     "x": 4011.5001220703125,\r
1845     "y": 1261,\r
1846     "z": "211aaefb.d906ea",\r
1847     "wires": [\r
1848       [\r
1849         "7a559df8.2fbb14"\r
1850       ]\r
1851     ]\r
1852   },\r
1853   {\r
1854     "id": "70700ce3.d1704c",\r
1855     "type": "other",\r
1856     "name": "other",\r
1857     "xml": "<outcome value='Other'>\n",\r
1858     "comments": "",\r
1859     "outputs": 1,\r
1860     "x": 4016.5001220703125,\r
1861     "y": 1318,\r
1862     "z": "211aaefb.d906ea",\r
1863     "wires": [\r
1864       [\r
1865         "74d49b92.9fc25c"\r
1866       ]\r
1867     ]\r
1868   },\r
1869   {\r
1870     "id": "74d49b92.9fc25c",\r
1871     "type": "returnFailure",\r
1872     "name": "return failure",\r
1873     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
1874     "comments": "",\r
1875     "x": 4168.5001220703125,\r
1876     "y": 1319,\r
1877     "z": "211aaefb.d906ea",\r
1878     "wires": []\r
1879   },\r
1880   {\r
1881     "id": "7a559df8.2fbb14",\r
1882     "type": "returnFailure",\r
1883     "name": "return failure",\r
1884     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
1885     "comments": "",\r
1886     "x": 4179.5001220703125,\r
1887     "y": 1264,\r
1888     "z": "211aaefb.d906ea",\r
1889     "wires": []\r
1890   },\r
1891   {\r
1892     "id": "cac46a50.7c9a2",\r
1893     "type": "block",\r
1894     "name": "block",\r
1895     "xml": "<block>\n",\r
1896     "atomic": "false",\r
1897     "comments": "",\r
1898     "outputs": 1,\r
1899     "x": 4163.8824462890625,\r
1900     "y": 1203.6556701660156,\r
1901     "z": "211aaefb.d906ea",\r
1902     "wires": [\r
1903       [\r
1904         "66f1613b.919fb"\r
1905       ]\r
1906     ]\r
1907   },\r
1908   {\r
1909     "id": "66f1613b.919fb",\r
1910     "type": "for",\r
1911     "name": "for each relationship",\r
1912     "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
1913     "comments": "",\r
1914     "outputs": 1,\r
1915     "x": 4348,\r
1916     "y": 1218,\r
1917     "z": "211aaefb.d906ea",\r
1918     "wires": [\r
1919       [\r
1920         "c85b648c.95d8c8"\r
1921       ]\r
1922     ]\r
1923   },\r
1924   {\r
1925     "id": "c34e936c.c687c",\r
1926     "type": "set",\r
1927     "name": "set ltpId",\r
1928     "xml": "<set>\n<parameter name='tmp.src.ltpId' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n",\r
1929     "comments": "",\r
1930     "x": 4515,\r
1931     "y": 1404,\r
1932     "z": "211aaefb.d906ea",\r
1933     "wires": []\r
1934   },\r
1935   {\r
1936     "id": "bdb7c671.344b18",\r
1937     "type": "set",\r
1938     "name": "set pnf-name",\r
1939     "xml": "<set>\n<parameter name='tmp.src.pnf-name' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n",\r
1940     "comments": "",\r
1941     "x": 4516,\r
1942     "y": 1512,\r
1943     "z": "211aaefb.d906ea",\r
1944     "wires": []\r
1945   },\r
1946   {\r
1947     "id": "c2c86af0.87457",\r
1948     "type": "comment",\r
1949     "name": "TODO: FIXME",\r
1950     "info": "using the output of regex string arrays,\nconcatinate index 0 to index[length-2] all together\nin order to assemble the correct pnf-name",\r
1951     "comments": "",\r
1952     "x": 4517,\r
1953     "y": 1461,\r
1954     "z": "211aaefb.d906ea",\r
1955     "wires": []\r
1956   },\r
1957   {\r
1958     "id": "4a081ef3.a11e7",\r
1959     "type": "block",\r
1960     "name": "block : atomic",\r
1961     "xml": "<block atomic=\"true\">",\r
1962     "atomic": "true",\r
1963     "outputs": 1,\r
1964     "x": 4539.1171875,\r
1965     "y": 1778.34033203125,\r
1966     "z": "211aaefb.d906ea",\r
1967     "wires": [\r
1968       [\r
1969         "feabfc8a.6835d8",\r
1970         "3ad150ae.9686d8",\r
1971         "7f60aea1.758cf8"\r
1972       ]\r
1973     ]\r
1974   },\r
1975   {\r
1976     "id": "feabfc8a.6835d8",\r
1977     "type": "set",\r
1978     "name": "set source ttp-id",\r
1979     "xml": "<set>\n<parameter name='tmp.source.ttp-id' value=\"`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].relationship-data[0].relationship-value`\" />\n",\r
1980     "comments": "",\r
1981     "x": 4754.1171875,\r
1982     "y": 1740.34033203125,\r
1983     "z": "211aaefb.d906ea",\r
1984     "wires": []\r
1985   },\r
1986   {\r
1987     "id": "3ad150ae.9686d8",\r
1988     "type": "get-resource",\r
1989     "name": "get-resource src TTP",\r
1990     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"tunnel-termination-point\" \n\t\tkey=\"tunnel-termination-point.ttp-id = $tmp.source.ttp-id \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.source-ttp' local-only='false' >\n\n\n",\r
1991     "comments": "",\r
1992     "outputs": 1,\r
1993     "x": 4751.1171875,\r
1994     "y": 1779.34033203125,\r
1995     "z": "211aaefb.d906ea",\r
1996     "wires": [\r
1997       [\r
1998         "ee0e6ba7.1ab528"\r
1999       ]\r
2000     ]\r
2001   },\r
2002   {\r
2003     "id": "7f60aea1.758cf8",\r
2004     "type": "break",\r
2005     "name": "break",\r
2006     "xml": "<break>\n",\r
2007     "comments": "",\r
2008     "x": 4706.6171875,\r
2009     "y": 1821.34033203125,\r
2010     "z": "211aaefb.d906ea",\r
2011     "wires": []\r
2012   },\r
2013   {\r
2014     "id": "ee0e6ba7.1ab528",\r
2015     "type": "success",\r
2016     "name": "success",\r
2017     "xml": "<outcome value='success'>\n",\r
2018     "comments": "",\r
2019     "outputs": 1,\r
2020     "x": 4931.6171875,\r
2021     "y": 1778.34033203125,\r
2022     "z": "211aaefb.d906ea",\r
2023     "wires": [\r
2024       [\r
2025         "f1c6f75a.7a676"\r
2026       ]\r
2027     ]\r
2028   },\r
2029   {\r
2030     "id": "3cd8e203.e194b6",\r
2031     "type": "outcome",\r
2032     "name": "esr-thirdparty-sdnc",\r
2033     "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
2034     "comments": "",\r
2035     "outputs": 1,\r
2036     "x": 4746,\r
2037     "y": 1222,\r
2038     "z": "211aaefb.d906ea",\r
2039     "wires": [\r
2040       [\r
2041         "17b6f38.a7a3d8d"\r
2042       ]\r
2043     ]\r
2044   },\r
2045   {\r
2046     "id": "17b6f38.a7a3d8d",\r
2047     "type": "block",\r
2048     "name": "block : atomic",\r
2049     "xml": "<block atomic=\"true\">",\r
2050     "atomic": "true",\r
2051     "outputs": 1,\r
2052     "x": 4923,\r
2053     "y": 1214,\r
2054     "z": "211aaefb.d906ea",\r
2055     "wires": [\r
2056       [\r
2057         "676933bd.3d8274",\r
2058         "263106c3.f9fd42"\r
2059       ]\r
2060     ]\r
2061   },\r
2062   {\r
2063     "id": "c85b648c.95d8c8",\r
2064     "type": "switchNode",\r
2065     "name": "switch related-to",\r
2066     "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
2067     "comments": "",\r
2068     "outputs": 1,\r
2069     "x": 4543,\r
2070     "y": 1218,\r
2071     "z": "211aaefb.d906ea",\r
2072     "wires": [\r
2073       [\r
2074         "3cd8e203.e194b6",\r
2075         "a370dab4.6f2d18"\r
2076       ]\r
2077     ]\r
2078   },\r
2079   {\r
2080     "id": "a370dab4.6f2d18",\r
2081     "type": "outcome",\r
2082     "name": "network-resource",\r
2083     "xml": "<outcome value='network-resource'>",\r
2084     "comments": "",\r
2085     "outputs": 1,\r
2086     "x": 4749,\r
2087     "y": 1296,\r
2088     "z": "211aaefb.d906ea",\r
2089     "wires": [\r
2090       [\r
2091         "9dd5a5f0.afd2"\r
2092       ]\r
2093     ]\r
2094   },\r
2095   {\r
2096     "id": "9dd5a5f0.afd2",\r
2097     "type": "block",\r
2098     "name": "block : atomic",\r
2099     "xml": "<block atomic=\"true\">",\r
2100     "atomic": "true",\r
2101     "outputs": 1,\r
2102     "x": 4926,\r
2103     "y": 1288,\r
2104     "z": "211aaefb.d906ea",\r
2105     "wires": [\r
2106       [\r
2107         "fbf0fc4a.17b5c8"\r
2108       ]\r
2109     ]\r
2110   },\r
2111   {\r
2112     "id": "f1c6f75a.7a676",\r
2113     "type": "block",\r
2114     "name": "block : atomic",\r
2115     "xml": "<block atomic=\"true\">",\r
2116     "atomic": "true",\r
2117     "outputs": 1,\r
2118     "x": 5089.6171875,\r
2119     "y": 1778.34033203125,\r
2120     "z": "211aaefb.d906ea",\r
2121     "wires": [\r
2122       [\r
2123         "3b33bb0c.f032cc"\r
2124       ]\r
2125     ]\r
2126   },\r
2127   {\r
2128     "id": "3b33bb0c.f032cc",\r
2129     "type": "set",\r
2130     "name": "set source tunnel tp ip",\r
2131     "xml": "<set>\n<parameter name='source.tunnel-tp-id' value=\"`$tmp.aai.source-ttp.tunnel-tp-id`\" />\n",\r
2132     "comments": "",\r
2133     "x": 5296.6171875,\r
2134     "y": 1778.34033203125,\r
2135     "z": "211aaefb.d906ea",\r
2136     "wires": []\r
2137   },\r
2138   {\r
2139     "id": "263106c3.f9fd42",\r
2140     "type": "execute",\r
2141     "name": "get esr-thirdparty-sdnc",\r
2142     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainA.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainA.esr-thirdparty-sdnc' local-only='false' >",\r
2143     "comments": "",\r
2144     "outputs": 1,\r
2145     "x": 5131,\r
2146     "y": 1221,\r
2147     "z": "211aaefb.d906ea",\r
2148     "wires": [\r
2149       [\r
2150         "ddcc8888.29b548",\r
2151         "db7fdb45.821a78",\r
2152         "ff56d5.bfda3928"\r
2153       ]\r
2154     ]\r
2155   },\r
2156   {\r
2157     "id": "676933bd.3d8274",\r
2158     "type": "set",\r
2159     "name": "set esr-thirdparty-sdnc domainA id",\r
2160     "xml": "<set>\n<parameter name='tmp.domainA.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
2161     "comments": "",\r
2162     "x": 5161,\r
2163     "y": 1169,\r
2164     "z": "211aaefb.d906ea",\r
2165     "wires": []\r
2166   },\r
2167   {\r
2168     "id": "ddcc8888.29b548",\r
2169     "type": "success",\r
2170     "name": "success",\r
2171     "xml": "<outcome value='success'>\n",\r
2172     "comments": "",\r
2173     "outputs": 1,\r
2174     "x": 5341,\r
2175     "y": 1212,\r
2176     "z": "211aaefb.d906ea",\r
2177     "wires": [\r
2178       [\r
2179         "e7e5466f.7658a"\r
2180       ]\r
2181     ]\r
2182   },\r
2183   {\r
2184     "id": "db7fdb45.821a78",\r
2185     "type": "not-found",\r
2186     "name": "not-found",\r
2187     "xml": "<outcome value='not-found'>\n",\r
2188     "comments": "",\r
2189     "outputs": 1,\r
2190     "x": 5333,\r
2191     "y": 1267,\r
2192     "z": "211aaefb.d906ea",\r
2193     "wires": [\r
2194       [\r
2195         "1793a855.2047c"\r
2196       ]\r
2197     ]\r
2198   },\r
2199   {\r
2200     "id": "ff56d5.bfda3928",\r
2201     "type": "other",\r
2202     "name": "other",\r
2203     "xml": "<outcome value='Other'>\n",\r
2204     "comments": "",\r
2205     "outputs": 1,\r
2206     "x": 5338,\r
2207     "y": 1324,\r
2208     "z": "211aaefb.d906ea",\r
2209     "wires": [\r
2210       [\r
2211         "81dadd48.c741d8"\r
2212       ]\r
2213     ]\r
2214   },\r
2215   {\r
2216     "id": "81dadd48.c741d8",\r
2217     "type": "returnFailure",\r
2218     "name": "return failure",\r
2219     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
2220     "comments": "",\r
2221     "x": 5490,\r
2222     "y": 1325,\r
2223     "z": "211aaefb.d906ea",\r
2224     "wires": []\r
2225   },\r
2226   {\r
2227     "id": "1793a855.2047c",\r
2228     "type": "returnFailure",\r
2229     "name": "return failure",\r
2230     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
2231     "comments": "",\r
2232     "x": 5501,\r
2233     "y": 1270,\r
2234     "z": "211aaefb.d906ea",\r
2235     "wires": []\r
2236   },\r
2237   {\r
2238     "id": "e7e5466f.7658a",\r
2239     "type": "block",\r
2240     "name": "block",\r
2241     "xml": "<block>\n",\r
2242     "atomic": "false",\r
2243     "comments": "",\r
2244     "outputs": 1,\r
2245     "x": 5485.38232421875,\r
2246     "y": 1209.6556701660156,\r
2247     "z": "211aaefb.d906ea",\r
2248     "wires": [\r
2249       [\r
2250         "dde9f23c.0ef22"\r
2251       ]\r
2252     ]\r
2253   },\r
2254   {\r
2255     "id": "fbf0fc4a.17b5c8",\r
2256     "type": "set",\r
2257     "name": "set domainA ethernet layer network-id",\r
2258     "xml": "<set>\n<parameter name='tmp.domainA.eth-network-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
2259     "comments": "",\r
2260     "x": 5161,\r
2261     "y": 1412,\r
2262     "z": "211aaefb.d906ea",\r
2263     "wires": []\r
2264   },\r
2265   {\r
2266     "id": "dde9f23c.0ef22",\r
2267     "type": "set",\r
2268     "name": "set controller domainA data",\r
2269     "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.url' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.user' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.password' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
2270     "comments": "",\r
2271     "x": 5700,\r
2272     "y": 1206,\r
2273     "z": "211aaefb.d906ea",\r
2274     "wires": []\r
2275   },\r
2276   {\r
2277     "id": "f4910610.e101b8",\r
2278     "type": "set",\r
2279     "name": "set network-route-B",\r
2280     "xml": "<set>\n<parameter name='tmp.aai.network-route-B.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
2281     "comments": "",\r
2282     "x": 4284,\r
2283     "y": 860,\r
2284     "z": "211aaefb.d906ea",\r
2285     "wires": []\r
2286   },\r
2287   {\r
2288     "id": "f3cd87cd.165138",\r
2289     "type": "set",\r
2290     "name": "set network-route-A",\r
2291     "xml": "<set>\n<parameter name='tmp.aai.network-route-A.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
2292     "comments": "",\r
2293     "x": 4275,\r
2294     "y": 958,\r
2295     "z": "211aaefb.d906ea",\r
2296     "wires": []\r
2297   },\r
2298   {\r
2299     "id": "e77feac5.4ef39",\r
2300     "type": "block",\r
2301     "name": "block",\r
2302     "xml": "<block>\n",\r
2303     "atomic": "false",\r
2304     "comments": "",\r
2305     "outputs": 1,\r
2306     "x": 4109,\r
2307     "y": 866,\r
2308     "z": "211aaefb.d906ea",\r
2309     "wires": [\r
2310       [\r
2311         "985f8e8b.05bee8",\r
2312         "f4910610.e101b8"\r
2313       ]\r
2314     ]\r
2315   },\r
2316   {\r
2317     "id": "dc5de667.94277",\r
2318     "type": "block",\r
2319     "name": "block",\r
2320     "xml": "<block>\n",\r
2321     "atomic": "false",\r
2322     "comments": "",\r
2323     "outputs": 1,\r
2324     "x": 4115,\r
2325     "y": 930,\r
2326     "z": "211aaefb.d906ea",\r
2327     "wires": [\r
2328       [\r
2329         "f70bc04c.4e53a8",\r
2330         "f3cd87cd.165138"\r
2331       ]\r
2332     ]\r
2333   },\r
2334   {\r
2335     "id": "79d85b32.4dba8c",\r
2336     "type": "block",\r
2337     "name": "block",\r
2338     "xml": "<block>\n",\r
2339     "atomic": "false",\r
2340     "comments": "",\r
2341     "outputs": 1,\r
2342     "x": 4115,\r
2343     "y": 1036,\r
2344     "z": "211aaefb.d906ea",\r
2345     "wires": [\r
2346       [\r
2347         "279fdf30.7efb5",\r
2348         "746b1d51.0e2bec"\r
2349       ]\r
2350     ]\r
2351   },\r
2352   {\r
2353     "id": "5799e4b6.bb5c84",\r
2354     "type": "block",\r
2355     "name": "block",\r
2356     "xml": "<block>\n",\r
2357     "atomic": "false",\r
2358     "comments": "",\r
2359     "outputs": 1,\r
2360     "x": 4118,\r
2361     "y": 1089,\r
2362     "z": "211aaefb.d906ea",\r
2363     "wires": [\r
2364       [\r
2365         "59ab7a89.d7cd04",\r
2366         "b63e0082.68a46"\r
2367       ]\r
2368     ]\r
2369   },\r
2370   {\r
2371     "id": "746b1d51.0e2bec",\r
2372     "type": "set",\r
2373     "name": "set network-route-B",\r
2374     "xml": "<set>\n<parameter name='tmp.aai.network-route-B.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
2375     "comments": "",\r
2376     "x": 4275,\r
2377     "y": 1049,\r
2378     "z": "211aaefb.d906ea",\r
2379     "wires": []\r
2380   },\r
2381   {\r
2382     "id": "b63e0082.68a46",\r
2383     "type": "set",\r
2384     "name": "set network-route-A",\r
2385     "xml": "<set>\n<parameter name='tmp.aai.network-route-A.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
2386     "comments": "",\r
2387     "x": 4278,\r
2388     "y": 1140,\r
2389     "z": "211aaefb.d906ea",\r
2390     "wires": []\r
2391   },\r
2392   {\r
2393     "id": "87a4f79d.f1b41",\r
2394     "type": "block",\r
2395     "name": "block : atomic",\r
2396     "xml": "<block atomic=\"true\">",\r
2397     "atomic": "true",\r
2398     "outputs": 1,\r
2399     "x": 3650,\r
2400     "y": 2350,\r
2401     "z": "211aaefb.d906ea",\r
2402     "wires": [\r
2403       [\r
2404         "8613884a.623e8",\r
2405         "df0137f0.20c7a8"\r
2406       ]\r
2407     ]\r
2408   },\r
2409   {\r
2410     "id": "af9ecc7.c2e763",\r
2411     "type": "success",\r
2412     "name": "success",\r
2413     "xml": "<outcome value='success'>\n",\r
2414     "comments": "",\r
2415     "outputs": 1,\r
2416     "x": 3477.33349609375,\r
2417     "y": 2351,\r
2418     "z": "211aaefb.d906ea",\r
2419     "wires": [\r
2420       [\r
2421         "87a4f79d.f1b41"\r
2422       ]\r
2423     ]\r
2424   },\r
2425   {\r
2426     "id": "53f2a3cf.4dd8a4",\r
2427     "type": "not-found",\r
2428     "name": "not-found",\r
2429     "xml": "<outcome value='not-found'>\n",\r
2430     "comments": "",\r
2431     "outputs": 1,\r
2432     "x": 3486.824462890625,\r
2433     "y": 2393.5740356445312,\r
2434     "z": "211aaefb.d906ea",\r
2435     "wires": [\r
2436       [\r
2437         "50bbbd16.7373fc"\r
2438       ]\r
2439     ]\r
2440   },\r
2441   {\r
2442     "id": "aba66972.a33e38",\r
2443     "type": "failure",\r
2444     "name": "failure",\r
2445     "xml": "<outcome value='failure'>\n",\r
2446     "comments": "",\r
2447     "outputs": 1,\r
2448     "x": 3475.33349609375,\r
2449     "y": 2440,\r
2450     "z": "211aaefb.d906ea",\r
2451     "wires": [\r
2452       [\r
2453         "6c045770.56d3d"\r
2454       ]\r
2455     ]\r
2456   },\r
2457   {\r
2458     "id": "50bbbd16.7373fc",\r
2459     "type": "returnFailure",\r
2460     "name": "return failure",\r
2461     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
2462     "comments": "",\r
2463     "x": 3640.3958740234375,\r
2464     "y": 2396.8597717285156,\r
2465     "z": "211aaefb.d906ea",\r
2466     "wires": []\r
2467   },\r
2468   {\r
2469     "id": "6c045770.56d3d",\r
2470     "type": "returnFailure",\r
2471     "name": "return failure",\r
2472     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
2473     "comments": "",\r
2474     "x": 3644.33349609375,\r
2475     "y": 2441,\r
2476     "z": "211aaefb.d906ea",\r
2477     "wires": []\r
2478   },\r
2479   {\r
2480     "id": "8613884a.623e8",\r
2481     "type": "execute",\r
2482     "name": "execute split tp-id to get pnf-name",\r
2483     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-B.p-interface-dst.interface-name`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainB\"/>\n\n\n",\r
2484     "comments": "",\r
2485     "outputs": 1,\r
2486     "x": 3936.33349609375,\r
2487     "y": 2354.0001220703125,\r
2488     "z": "211aaefb.d906ea",\r
2489     "wires": [\r
2490       [\r
2491         "d23083de.2cf1e",\r
2492         "7516fca6.f7fc04"\r
2493       ]\r
2494     ]\r
2495   },\r
2496   {\r
2497     "id": "7516fca6.f7fc04",\r
2498     "type": "failure",\r
2499     "name": "success",\r
2500     "xml": "<outcome value='success'>\n",\r
2501     "comments": "",\r
2502     "outputs": 1,\r
2503     "x": 4159.33349609375,\r
2504     "y": 2309.0001220703125,\r
2505     "z": "211aaefb.d906ea",\r
2506     "wires": [\r
2507       [\r
2508         "c66357b4.73185"\r
2509       ]\r
2510     ]\r
2511   },\r
2512   {\r
2513     "id": "d23083de.2cf1e",\r
2514     "type": "failure",\r
2515     "name": "failure",\r
2516     "xml": "<outcome value='failure'>\n",\r
2517     "comments": "",\r
2518     "outputs": 1,\r
2519     "x": 4161.33349609375,\r
2520     "y": 2373.0001220703125,\r
2521     "z": "211aaefb.d906ea",\r
2522     "wires": [\r
2523       [\r
2524         "a82df7d1.ae6a"\r
2525       ]\r
2526     ]\r
2527   },\r
2528   {\r
2529     "id": "a82df7d1.ae6a",\r
2530     "type": "returnFailure",\r
2531     "name": "return failure",\r
2532     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",\r
2533     "comments": "",\r
2534     "x": 4320.33349609375,\r
2535     "y": 2392.0001220703125,\r
2536     "z": "211aaefb.d906ea",\r
2537     "wires": []\r
2538   },\r
2539   {\r
2540     "id": "c66357b4.73185",\r
2541     "type": "block",\r
2542     "name": "block : atomic",\r
2543     "xml": "<block atomic=\"true\">",\r
2544     "atomic": "true",\r
2545     "outputs": 1,\r
2546     "x": 4324.33349609375,\r
2547     "y": 2306.0001220703125,\r
2548     "z": "211aaefb.d906ea",\r
2549     "wires": [\r
2550       [\r
2551         "dffb0ed6.823ba",\r
2552         "1dd3dd1b.7300fb"\r
2553       ]\r
2554     ]\r
2555   },\r
2556   {\r
2557     "id": "634f24c.033d45c",\r
2558     "type": "save",\r
2559     "name": "save connectivity resource in AAI",\r
2560     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
2561     "comments": "",\r
2562     "outputs": 1,\r
2563     "x": 3938.33349609375,\r
2564     "y": 2513.0001220703125,\r
2565     "z": "211aaefb.d906ea",\r
2566     "wires": [\r
2567       []\r
2568     ]\r
2569   },\r
2570   {\r
2571     "id": "165310c1.3dcf57",\r
2572     "type": "execute",\r
2573     "name": "execute UUID generator for connectivity domainB",\r
2574     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainB-uuid\"/>\n",\r
2575     "comments": "",\r
2576     "outputs": 1,\r
2577     "x": 3983.33349609375,\r
2578     "y": 2423.0001220703125,\r
2579     "z": "211aaefb.d906ea",\r
2580     "wires": [\r
2581       []\r
2582     ]\r
2583   },\r
2584   {\r
2585     "id": "1c4663ba.666f24",\r
2586     "type": "save",\r
2587     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
2588     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-domainB-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
2589     "comments": "",\r
2590     "outputs": 1,\r
2591     "x": 4065.33349609375,\r
2592     "y": 2578.0001220703125,\r
2593     "z": "211aaefb.d906ea",\r
2594     "wires": [\r
2595       []\r
2596     ]\r
2597   },\r
2598   {\r
2599     "id": "6481b806.b26798",\r
2600     "type": "save",\r
2601     "name": "get p-interface-dst from aai",\r
2602     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t    key=\"pnf.pnf-name = $tmp.dst.domainB.pnf-name\n\t        AND p-interface.interface-name = $tmp.aai.network-route-B.next-hop\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.network-route-B.p-interface-dst\" >\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"p-interface\"-->\n<!--\t    key=\"pnf.pnf-name = $unique-src-node-Id-->\n<!--\t        and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"-->\n<!--\t\tlocal-only=\"false\" -->\n<!--\t\tpfx=\"tmp.aai.endpointA.p-interface-src\" >-->\n",\r
2603     "comments": "",\r
2604     "outputs": 1,\r
2605     "x": 3249.33349609375,\r
2606     "y": 2386,\r
2607     "z": "211aaefb.d906ea",\r
2608     "wires": [\r
2609       [\r
2610         "af9ecc7.c2e763",\r
2611         "53f2a3cf.4dd8a4",\r
2612         "aba66972.a33e38"\r
2613       ]\r
2614     ]\r
2615   },\r
2616   {\r
2617     "id": "357b021d.ccef76",\r
2618     "type": "comment",\r
2619     "name": "Question?",\r
2620     "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
2621     "comments": "",\r
2622     "x": 3210.33349609375,\r
2623     "y": 2330,\r
2624     "z": "211aaefb.d906ea",\r
2625     "wires": []\r
2626   },\r
2627   {\r
2628     "id": "d2628754.9207b8",\r
2629     "type": "execute",\r
2630     "name": "execute split tp-id to get pnf-name",\r
2631     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-B.next-hop`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainB-pnfName\"/>\n\n",\r
2632     "comments": "",\r
2633     "outputs": 1,\r
2634     "x": 3267.33349609375,\r
2635     "y": 2048.9998779296875,\r
2636     "z": "211aaefb.d906ea",\r
2637     "wires": [\r
2638       [\r
2639         "f940533a.3599b",\r
2640         "b0b7c077.9433c"\r
2641       ]\r
2642     ]\r
2643   },\r
2644   {\r
2645     "id": "b0b7c077.9433c",\r
2646     "type": "failure",\r
2647     "name": "success",\r
2648     "xml": "<outcome value='success'>\n",\r
2649     "comments": "",\r
2650     "outputs": 1,\r
2651     "x": 3490.33349609375,\r
2652     "y": 2034.9998779296875,\r
2653     "z": "211aaefb.d906ea",\r
2654     "wires": [\r
2655       [\r
2656         "c06f7f13.a06918"\r
2657       ]\r
2658     ]\r
2659   },\r
2660   {\r
2661     "id": "f940533a.3599b",\r
2662     "type": "failure",\r
2663     "name": "failure",\r
2664     "xml": "<outcome value='failure'>\n",\r
2665     "comments": "",\r
2666     "outputs": 1,\r
2667     "x": 3492.33349609375,\r
2668     "y": 2067.9998779296875,\r
2669     "z": "211aaefb.d906ea",\r
2670     "wires": [\r
2671       [\r
2672         "1b16d50a.3ac5a3"\r
2673       ]\r
2674     ]\r
2675   },\r
2676   {\r
2677     "id": "1b16d50a.3ac5a3",\r
2678     "type": "returnFailure",\r
2679     "name": "return failure",\r
2680     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",\r
2681     "comments": "",\r
2682     "x": 3635.33349609375,\r
2683     "y": 2064.9998779296875,\r
2684     "z": "211aaefb.d906ea",\r
2685     "wires": []\r
2686   },\r
2687   {\r
2688     "id": "c06f7f13.a06918",\r
2689     "type": "block",\r
2690     "name": "block : atomic",\r
2691     "xml": "<block atomic=\"true\">",\r
2692     "atomic": "true",\r
2693     "outputs": 1,\r
2694     "x": 3638.33349609375,\r
2695     "y": 2027.9998779296875,\r
2696     "z": "211aaefb.d906ea",\r
2697     "wires": [\r
2698       [\r
2699         "f576457.60ef6b8",\r
2700         "57336dca.385a1c"\r
2701       ]\r
2702     ]\r
2703   },\r
2704   {\r
2705     "id": "f576457.60ef6b8",\r
2706     "type": "set",\r
2707     "name": "set pnf-name",\r
2708     "xml": "<set>\n<parameter name='tmp.dst.domainB.pnf-name' value=\"`$param-prefix-domainB-pnfName[0] + '-' +\n                                                   $param-prefix-domainB-pnfName[1] + '-' +\n                                                   $param-prefix-domainB-pnfName[2] + '-' +\n                                                   $param-prefix-domainB-pnfName[3] + '-' +\n                                                   $param-prefix-domainB-pnfName[4] + '-' +\n                                                   $param-prefix-domainB-pnfName[5] + '-' +\n                                                   $param-prefix-domainB-pnfName[6] + '-' +\n                                                   $param-prefix-domainB-pnfName[7] + '-' +\n                                                   $param-prefix-domainB-pnfName[8]`\" />\n",\r
2709     "comments": "",\r
2710     "x": 3832.33349609375,\r
2711     "y": 2031,\r
2712     "z": "211aaefb.d906ea",\r
2713     "wires": []\r
2714   },\r
2715   {\r
2716     "id": "df0137f0.20c7a8",\r
2717     "type": "for",\r
2718     "name": "for each relationship",\r
2719     "xml": "<for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship_length`' >\n",\r
2720     "comments": "",\r
2721     "outputs": 1,\r
2722     "x": 3895.33349609375,\r
2723     "y": 2663,\r
2724     "z": "211aaefb.d906ea",\r
2725     "wires": [\r
2726       [\r
2727         "e2836384.c2ccb8"\r
2728       ]\r
2729     ]\r
2730   },\r
2731   {\r
2732     "id": "e2836384.c2ccb8",\r
2733     "type": "switchNode",\r
2734     "name": "switch related-to",\r
2735     "xml": "<switch test='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].related-to`'>\n",\r
2736     "comments": "",\r
2737     "outputs": 1,\r
2738     "x": 4101.33349609375,\r
2739     "y": 2663,\r
2740     "z": "211aaefb.d906ea",\r
2741     "wires": [\r
2742       [\r
2743         "fca69a38.03a91"\r
2744       ]\r
2745     ]\r
2746   },\r
2747   {\r
2748     "id": "fca69a38.03a91",\r
2749     "type": "outcome",\r
2750     "name": "tunnel-termination-point",\r
2751     "xml": "<outcome value='tunnel-termination-point'>\n",\r
2752     "comments": "",\r
2753     "outputs": 1,\r
2754     "x": 4318.619140625,\r
2755     "y": 2661.82177734375,\r
2756     "z": "211aaefb.d906ea",\r
2757     "wires": [\r
2758       [\r
2759         "7ea58eaa.2fe4c8"\r
2760       ]\r
2761     ]\r
2762   },\r
2763   {\r
2764     "id": "57336dca.385a1c",\r
2765     "type": "get-resource",\r
2766     "name": "get-resource src pnf",\r
2767     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.dst.domainB.pnf-name\"\n        pfx='tmp.aai.destination-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
2768     "comments": "",\r
2769     "outputs": 1,\r
2770     "x": 3854.33349609375,\r
2771     "y": 2099,\r
2772     "z": "211aaefb.d906ea",\r
2773     "wires": [\r
2774       [\r
2775         "4f2611a4.8dfaa",\r
2776         "d01e89f4.899b8",\r
2777         "4dbe2024.2418c8"\r
2778       ]\r
2779     ]\r
2780   },\r
2781   {\r
2782     "id": "4f2611a4.8dfaa",\r
2783     "type": "success",\r
2784     "name": "success",\r
2785     "xml": "<outcome value='success'>\n",\r
2786     "comments": "",\r
2787     "outputs": 1,\r
2788     "x": 4049.8336181640625,\r
2789     "y": 2051,\r
2790     "z": "211aaefb.d906ea",\r
2791     "wires": [\r
2792       [\r
2793         "c7fe21e9.219fb"\r
2794       ]\r
2795     ]\r
2796   },\r
2797   {\r
2798     "id": "d01e89f4.899b8",\r
2799     "type": "not-found",\r
2800     "name": "not-found",\r
2801     "xml": "<outcome value='not-found'>\n",\r
2802     "comments": "",\r
2803     "outputs": 1,\r
2804     "x": 4041.8336181640625,\r
2805     "y": 2106,\r
2806     "z": "211aaefb.d906ea",\r
2807     "wires": [\r
2808       [\r
2809         "711f5b9.04549a4"\r
2810       ]\r
2811     ]\r
2812   },\r
2813   {\r
2814     "id": "4dbe2024.2418c8",\r
2815     "type": "other",\r
2816     "name": "other",\r
2817     "xml": "<outcome value='Other'>\n",\r
2818     "comments": "",\r
2819     "outputs": 1,\r
2820     "x": 4046.8336181640625,\r
2821     "y": 2163,\r
2822     "z": "211aaefb.d906ea",\r
2823     "wires": [\r
2824       [\r
2825         "7a110b6a.211174"\r
2826       ]\r
2827     ]\r
2828   },\r
2829   {\r
2830     "id": "7a110b6a.211174",\r
2831     "type": "returnFailure",\r
2832     "name": "return failure",\r
2833     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
2834     "comments": "",\r
2835     "x": 4198.8336181640625,\r
2836     "y": 2164,\r
2837     "z": "211aaefb.d906ea",\r
2838     "wires": []\r
2839   },\r
2840   {\r
2841     "id": "711f5b9.04549a4",\r
2842     "type": "returnFailure",\r
2843     "name": "return failure",\r
2844     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
2845     "comments": "",\r
2846     "x": 4209.8336181640625,\r
2847     "y": 2109,\r
2848     "z": "211aaefb.d906ea",\r
2849     "wires": []\r
2850   },\r
2851   {\r
2852     "id": "c7fe21e9.219fb",\r
2853     "type": "block",\r
2854     "name": "block",\r
2855     "xml": "<block>\n",\r
2856     "atomic": "false",\r
2857     "comments": "",\r
2858     "outputs": 1,\r
2859     "x": 4194.2159423828125,\r
2860     "y": 2048.6556701660156,\r
2861     "z": "211aaefb.d906ea",\r
2862     "wires": [\r
2863       [\r
2864         "5f7a4387.8903dc"\r
2865       ]\r
2866     ]\r
2867   },\r
2868   {\r
2869     "id": "dffb0ed6.823ba",\r
2870     "type": "set",\r
2871     "name": "set ltpId",\r
2872     "xml": "<set>\n<parameter name='tmp.dst.ltpId' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n",\r
2873     "comments": "",\r
2874     "x": 4494.33349609375,\r
2875     "y": 2267.0001220703125,\r
2876     "z": "211aaefb.d906ea",\r
2877     "wires": []\r
2878   },\r
2879   {\r
2880     "id": "1dd3dd1b.7300fb",\r
2881     "type": "set",\r
2882     "name": "set pnf-name",\r
2883     "xml": "<set>\n<parameter name='tmp.dst.pnf-name' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n",\r
2884     "comments": "",\r
2885     "x": 4495.33349609375,\r
2886     "y": 2372.0001220703125,\r
2887     "z": "211aaefb.d906ea",\r
2888     "wires": []\r
2889   },\r
2890   {\r
2891     "id": "132cb9b4.8d2256",\r
2892     "type": "comment",\r
2893     "name": "TODO: FIXME",\r
2894     "info": "using the output of regex string arrays,\nconcatinate index 0 to index[length-2] all together\nin order to assemble the correct pnf-name",\r
2895     "comments": "",\r
2896     "x": 4490.33349609375,\r
2897     "y": 2321.0001220703125,\r
2898     "z": "211aaefb.d906ea",\r
2899     "wires": []\r
2900   },\r
2901   {\r
2902     "id": "7ea58eaa.2fe4c8",\r
2903     "type": "block",\r
2904     "name": "block : atomic",\r
2905     "xml": "<block atomic=\"true\">",\r
2906     "atomic": "true",\r
2907     "outputs": 1,\r
2908     "x": 4525.45068359375,\r
2909     "y": 2651.3404541015625,\r
2910     "z": "211aaefb.d906ea",\r
2911     "wires": [\r
2912       [\r
2913         "9217eff0.7fa96",\r
2914         "965ae906.eae45",\r
2915         "1b19b6f0.8ece39"\r
2916       ]\r
2917     ]\r
2918   },\r
2919   {\r
2920     "id": "9217eff0.7fa96",\r
2921     "type": "set",\r
2922     "name": "set destination ttp-id",\r
2923     "xml": "<set>\n<parameter name='tmp.destination.ttp-id' value=\"`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].relationship-data[0].relationship-value`\" />\n",\r
2924     "comments": "",\r
2925     "x": 4740.45068359375,\r
2926     "y": 2613.3404541015625,\r
2927     "z": "211aaefb.d906ea",\r
2928     "wires": []\r
2929   },\r
2930   {\r
2931     "id": "965ae906.eae45",\r
2932     "type": "get-resource",\r
2933     "name": "get-resource src TTP",\r
2934     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"tunnel-termination-point\" \n\t\tkey=\"tunnel-termination-point.ttp-id = $tmp.destination.ttp-id \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.destination-ttp' local-only='false' >\n\n\n",\r
2935     "comments": "",\r
2936     "outputs": 1,\r
2937     "x": 4737.45068359375,\r
2938     "y": 2652.3404541015625,\r
2939     "z": "211aaefb.d906ea",\r
2940     "wires": [\r
2941       [\r
2942         "87f8942.95038e8"\r
2943       ]\r
2944     ]\r
2945   },\r
2946   {\r
2947     "id": "1b19b6f0.8ece39",\r
2948     "type": "break",\r
2949     "name": "break",\r
2950     "xml": "<break>\n",\r
2951     "comments": "",\r
2952     "x": 4692.95068359375,\r
2953     "y": 2694.3404541015625,\r
2954     "z": "211aaefb.d906ea",\r
2955     "wires": []\r
2956   },\r
2957   {\r
2958     "id": "87f8942.95038e8",\r
2959     "type": "success",\r
2960     "name": "success",\r
2961     "xml": "<outcome value='success'>\n",\r
2962     "comments": "",\r
2963     "outputs": 1,\r
2964     "x": 4917.95068359375,\r
2965     "y": 2651.3404541015625,\r
2966     "z": "211aaefb.d906ea",\r
2967     "wires": [\r
2968       [\r
2969         "65d1ff2e.3f2e18"\r
2970       ]\r
2971     ]\r
2972   },\r
2973   {\r
2974     "id": "65d1ff2e.3f2e18",\r
2975     "type": "block",\r
2976     "name": "block : atomic",\r
2977     "xml": "<block atomic=\"true\">",\r
2978     "atomic": "true",\r
2979     "outputs": 1,\r
2980     "x": 5075.95068359375,\r
2981     "y": 2651.3404541015625,\r
2982     "z": "211aaefb.d906ea",\r
2983     "wires": [\r
2984       [\r
2985         "fedf1a96.f1456"\r
2986       ]\r
2987     ]\r
2988   },\r
2989   {\r
2990     "id": "fedf1a96.f1456",\r
2991     "type": "set",\r
2992     "name": "set destination tunnel tp ip",\r
2993     "xml": "<set>\n<parameter name='destination.tunnel-tp-id' value=\"`$tmp.aai.destination-ttp.tunnel-tp-id`\" />\n",\r
2994     "comments": "",\r
2995     "x": 5282.95068359375,\r
2996     "y": 2651.3404541015625,\r
2997     "z": "211aaefb.d906ea",\r
2998     "wires": []\r
2999   },\r
3000   {\r
3001     "id": "115bab50.32a055",\r
3002     "type": "outcome",\r
3003     "name": "esr-thirdparty-sdnc",\r
3004     "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
3005     "comments": "",\r
3006     "outputs": 1,\r
3007     "x": 4776.33349609375,\r
3008     "y": 2067,\r
3009     "z": "211aaefb.d906ea",\r
3010     "wires": [\r
3011       [\r
3012         "e64c3553.0ae97"\r
3013       ]\r
3014     ]\r
3015   },\r
3016   {\r
3017     "id": "e64c3553.0ae97",\r
3018     "type": "block",\r
3019     "name": "block : atomic",\r
3020     "xml": "<block atomic=\"true\">",\r
3021     "atomic": "true",\r
3022     "outputs": 1,\r
3023     "x": 4953.33349609375,\r
3024     "y": 2059,\r
3025     "z": "211aaefb.d906ea",\r
3026     "wires": [\r
3027       [\r
3028         "a2d6f837.6f757",\r
3029         "eeac3b28.315368"\r
3030       ]\r
3031     ]\r
3032   },\r
3033   {\r
3034     "id": "5f7a4387.8903dc",\r
3035     "type": "for",\r
3036     "name": "for each relationship",\r
3037     "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",\r
3038     "comments": "",\r
3039     "outputs": 1,\r
3040     "x": 4378.33349609375,\r
3041     "y": 2063,\r
3042     "z": "211aaefb.d906ea",\r
3043     "wires": [\r
3044       [\r
3045         "bd77f52.650d108"\r
3046       ]\r
3047     ]\r
3048   },\r
3049   {\r
3050     "id": "bd77f52.650d108",\r
3051     "type": "switchNode",\r
3052     "name": "switch related-to",\r
3053     "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",\r
3054     "comments": "",\r
3055     "outputs": 1,\r
3056     "x": 4573.33349609375,\r
3057     "y": 2063,\r
3058     "z": "211aaefb.d906ea",\r
3059     "wires": [\r
3060       [\r
3061         "115bab50.32a055",\r
3062         "c1dba387.605d3"\r
3063       ]\r
3064     ]\r
3065   },\r
3066   {\r
3067     "id": "eeac3b28.315368",\r
3068     "type": "execute",\r
3069     "name": "get esr-thirdparty-sdnc",\r
3070     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainB.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainB.esr-thirdparty-sdnc' local-only='false' >",\r
3071     "comments": "",\r
3072     "outputs": 1,\r
3073     "x": 5161.33349609375,\r
3074     "y": 2066,\r
3075     "z": "211aaefb.d906ea",\r
3076     "wires": [\r
3077       [\r
3078         "fa5ccc46.c0c8e8",\r
3079         "7f544ab3.a923ac",\r
3080         "629c31b0.bf54b"\r
3081       ]\r
3082     ]\r
3083   },\r
3084   {\r
3085     "id": "3e060ac3.b125d6",\r
3086     "type": "block",\r
3087     "name": "block : atomic",\r
3088     "xml": "<block atomic=\"true\">",\r
3089     "atomic": "true",\r
3090     "outputs": 1,\r
3091     "x": 4955.33349609375,\r
3092     "y": 2132,\r
3093     "z": "211aaefb.d906ea",\r
3094     "wires": [\r
3095       [\r
3096         "a8b3b7de.4e882"\r
3097       ]\r
3098     ]\r
3099   },\r
3100   {\r
3101     "id": "c1dba387.605d3",\r
3102     "type": "outcome",\r
3103     "name": "network-resource",\r
3104     "xml": "<outcome value='network-resource'>",\r
3105     "comments": "",\r
3106     "outputs": 1,\r
3107     "x": 4778.33349609375,\r
3108     "y": 2140,\r
3109     "z": "211aaefb.d906ea",\r
3110     "wires": [\r
3111       [\r
3112         "3e060ac3.b125d6"\r
3113       ]\r
3114     ]\r
3115   },\r
3116   {\r
3117     "id": "a2d6f837.6f757",\r
3118     "type": "set",\r
3119     "name": "set esr-thirdparty-sdnc domainB id",\r
3120     "xml": "<set>\n<parameter name='tmp.domainB.esr-thirdparty-id' value=\"`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",\r
3121     "comments": "",\r
3122     "x": 5191.33349609375,\r
3123     "y": 2014,\r
3124     "z": "211aaefb.d906ea",\r
3125     "wires": []\r
3126   },\r
3127   {\r
3128     "id": "a8b3b7de.4e882",\r
3129     "type": "set",\r
3130     "name": "set domainB ethernet layer network-id",\r
3131     "xml": "<set>\n<parameter name='tmp.domainB.eth-network-id' value=\"`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",\r
3132     "comments": "",\r
3133     "x": 5190.33349609375,\r
3134     "y": 2256,\r
3135     "z": "211aaefb.d906ea",\r
3136     "wires": []\r
3137   },\r
3138   {\r
3139     "id": "fa5ccc46.c0c8e8",\r
3140     "type": "success",\r
3141     "name": "success",\r
3142     "xml": "<outcome value='success'>\n",\r
3143     "comments": "",\r
3144     "outputs": 1,\r
3145     "x": 5371.33349609375,\r
3146     "y": 2057,\r
3147     "z": "211aaefb.d906ea",\r
3148     "wires": [\r
3149       [\r
3150         "58f99424.7527f4"\r
3151       ]\r
3152     ]\r
3153   },\r
3154   {\r
3155     "id": "7f544ab3.a923ac",\r
3156     "type": "not-found",\r
3157     "name": "not-found",\r
3158     "xml": "<outcome value='not-found'>\n",\r
3159     "comments": "",\r
3160     "outputs": 1,\r
3161     "x": 5363.33349609375,\r
3162     "y": 2112,\r
3163     "z": "211aaefb.d906ea",\r
3164     "wires": [\r
3165       [\r
3166         "ffe0cce7.8e8ca"\r
3167       ]\r
3168     ]\r
3169   },\r
3170   {\r
3171     "id": "629c31b0.bf54b",\r
3172     "type": "other",\r
3173     "name": "other",\r
3174     "xml": "<outcome value='Other'>\n",\r
3175     "comments": "",\r
3176     "outputs": 1,\r
3177     "x": 5368.33349609375,\r
3178     "y": 2169,\r
3179     "z": "211aaefb.d906ea",\r
3180     "wires": [\r
3181       [\r
3182         "cc8477b8.611dc8"\r
3183       ]\r
3184     ]\r
3185   },\r
3186   {\r
3187     "id": "cc8477b8.611dc8",\r
3188     "type": "returnFailure",\r
3189     "name": "return failure",\r
3190     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
3191     "comments": "",\r
3192     "x": 5520.33349609375,\r
3193     "y": 2170,\r
3194     "z": "211aaefb.d906ea",\r
3195     "wires": []\r
3196   },\r
3197   {\r
3198     "id": "ffe0cce7.8e8ca",\r
3199     "type": "returnFailure",\r
3200     "name": "return failure",\r
3201     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
3202     "comments": "",\r
3203     "x": 5531.33349609375,\r
3204     "y": 2115,\r
3205     "z": "211aaefb.d906ea",\r
3206     "wires": []\r
3207   },\r
3208   {\r
3209     "id": "58f99424.7527f4",\r
3210     "type": "block",\r
3211     "name": "block",\r
3212     "xml": "<block>\n",\r
3213     "atomic": "false",\r
3214     "comments": "",\r
3215     "outputs": 1,\r
3216     "x": 5515.7158203125,\r
3217     "y": 2054.6556701660156,\r
3218     "z": "211aaefb.d906ea",\r
3219     "wires": [\r
3220       [\r
3221         "f5242e64.71f82"\r
3222       ]\r
3223     ]\r
3224   },\r
3225   {\r
3226     "id": "f5242e64.71f82",\r
3227     "type": "set",\r
3228     "name": "set controller domainB data",\r
3229     "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.url' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.user' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.password' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
3230     "comments": "",\r
3231     "x": 5730.33349609375,\r
3232     "y": 2051,\r
3233     "z": "211aaefb.d906ea",\r
3234     "wires": []\r
3235   },\r
3236   {\r
3237     "id": "20bb7eae.be3a32",\r
3238     "type": "set",\r
3239     "name": "set LEAF stuff",\r
3240     "xml": "<set>\n<parameter name='tmp.LEAF.pnf-name-long' value=\"`$param-prefix-domainA-pnfName[0] + '-' +\n                                                   $param-prefix-domainA-pnfName[1] + '-' +\n                                                   $param-prefix-domainA-pnfName[2] + '-' +\n                                                   $param-prefix-domainA-pnfName[3] + '-' +\n                                                   $param-prefix-domainA-pnfName[4] + '-' +\n                                                   $param-prefix-domainA-pnfName[5] + '-' +\n                                                   $param-prefix-domainA-pnfName[6] + '-' +\n                                                   $param-prefix-domainA-pnfName[7] + '-' +\n                                                   $param-prefix-domainA-pnfName[8]`\" />\n\n<!--<parameter name='tmp.LEAF.pnf-name-short' value=\"`$param-prefix-domainA-pnfName[8]`\" />-->\n<parameter name='tmp.LEAF.pnf-name-short' value=\"`$tmp.src.pnf-name`\" />\n\n<parameter name='tmp.LEAF.uni-p-interface-long' value=\"`$tmp.aai.network-route-A.next-hop`\" />\n<parameter name='tmp.LEAF.uni-tp-id' value=\"`$tmp.src.ltpId`\" />\n",\r
3241     "comments": "",\r
3242     "x": 3229,\r
3243     "y": 1661,\r
3244     "z": "211aaefb.d906ea",\r
3245     "wires": []\r
3246   },\r
3247   {\r
3248     "id": "7762f3ae.52a254",\r
3249     "type": "comment",\r
3250     "name": "This is it (should be)",\r
3251     "info": "",\r
3252     "comments": "",\r
3253     "x": 4451,\r
3254     "y": 944,\r
3255     "z": "211aaefb.d906ea",\r
3256     "wires": []\r
3257   },\r
3258   {\r
3259     "id": "edff520.fc6aeb",\r
3260     "type": "comment",\r
3261     "name": "This is it (should be)",\r
3262     "info": "",\r
3263     "comments": "",\r
3264     "x": 4443,\r
3265     "y": 1034,\r
3266     "z": "211aaefb.d906ea",\r
3267     "wires": []\r
3268   },\r
3269   {\r
3270     "id": "9fcb0922.e08ed",\r
3271     "type": "set",\r
3272     "name": "set ROOT stuff",\r
3273     "xml": "<set>\n<parameter name='tmp.ROOT.pnf-name-long' value=\"`$param-prefix-domainB-pnfName[0] + '-' +\n                                                   $param-prefix-domainB-pnfName[1] + '-' +\n                                                   $param-prefix-domainB-pnfName[2] + '-' +\n                                                   $param-prefix-domainB-pnfName[3] + '-' +\n                                                   $param-prefix-domainB-pnfName[4] + '-' +\n                                                   $param-prefix-domainB-pnfName[5] + '-' +\n                                                   $param-prefix-domainB-pnfName[6] + '-' +\n                                                   $param-prefix-domainB-pnfName[7] + '-' +\n                                                   $param-prefix-domainB-pnfName[8]`\" />\n\n<!--<parameter name='tmp.ROOT.pnf-name-short' value=\"`$param-prefix-domainB-pnfName[8]`\" />-->\n<parameter name='tmp.ROOT.pnf-name-short' value=\"`$tmp.dst.pnf-name`\" />\n\n<parameter name='tmp.ROOT.uni-p-interface-long' value=\"`$tmp.aai.network-route-B.next-hop`\" />\n<parameter name='tmp.ROOT.uni-tp-id' value=\"`$tmp.dst.ltpId`\" />\n",\r
3274     "comments": "",\r
3275     "x": 3210,\r
3276     "y": 2517,\r
3277     "z": "211aaefb.d906ea",\r
3278     "wires": []\r
3279   },\r
3280   {\r
3281     "id": "3db2acf8.6fe83c",\r
3282     "type": "call",\r
3283     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-logic",\r
3284     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-logic' mode='sync' >\n\n",\r
3285     "comments": "",\r
3286     "outputs": 1,\r
3287     "x": 3361,\r
3288     "y": 2765,\r
3289     "z": "211aaefb.d906ea",\r
3290     "wires": [\r
3291       []\r
3292     ]\r
3293   },\r
3294   {\r
3295     "id": "d8a34ec.a6346b",\r
3296     "type": "switchNode",\r
3297     "name": "switch found-middle-man?",\r
3298     "xml": "<switch test='`$found-middle-man`'>\n",\r
3299     "comments": "",\r
3300     "outputs": 1,\r
3301     "x": 3238,\r
3302     "y": 2875,\r
3303     "z": "211aaefb.d906ea",\r
3304     "wires": [\r
3305       [\r
3306         "52347f79.8db4f",\r
3307         "cd09ff82.d8b0a8"\r
3308       ]\r
3309     ]\r
3310   },\r
3311   {\r
3312     "id": "52347f79.8db4f",\r
3313     "type": "outcomeFalse",\r
3314     "name": "false",\r
3315     "xml": "<outcome value='false'>\n",\r
3316     "comments": "",\r
3317     "outputs": 1,\r
3318     "x": 3422,\r
3319     "y": 2854,\r
3320     "z": "211aaefb.d906ea",\r
3321     "wires": [\r
3322       [\r
3323         "2a86c6f9.428e32"\r
3324       ]\r
3325     ]\r
3326   },\r
3327   {\r
3328     "id": "cd09ff82.d8b0a8",\r
3329     "type": "outcomeTrue",\r
3330     "name": "true",\r
3331     "xml": "<outcome value='true'>\n",\r
3332     "comments": "",\r
3333     "outputs": 1,\r
3334     "x": 3314,\r
3335     "y": 5032,\r
3336     "z": "211aaefb.d906ea",\r
3337     "wires": [\r
3338       [\r
3339         "36762610.1073d2"\r
3340       ]\r
3341     ]\r
3342   },\r
3343   {\r
3344     "id": "36762610.1073d2",\r
3345     "type": "block",\r
3346     "name": "block : atomic",\r
3347     "xml": "<block atomic='true'>",\r
3348     "atomic": "true",\r
3349     "comments": "",\r
3350     "outputs": 1,\r
3351     "x": 3469,\r
3352     "y": 5025,\r
3353     "z": "211aaefb.d906ea",\r
3354     "wires": [\r
3355       [\r
3356         "ae52f9b0.eb7378",\r
3357         "6bdb71eb.cd7da",\r
3358         "5ba113f8.d2a564",\r
3359         "536ae5e9.b25a04",\r
3360         "5c19cae5.23f224"\r
3361       ]\r
3362     ]\r
3363   },\r
3364   {\r
3365     "id": "2a86c6f9.428e32",\r
3366     "type": "block",\r
3367     "name": "block : atomic",\r
3368     "xml": "<block atomic='true'>",\r
3369     "atomic": "true",\r
3370     "comments": "",\r
3371     "outputs": 1,\r
3372     "x": 3565,\r
3373     "y": 2854,\r
3374     "z": "211aaefb.d906ea",\r
3375     "wires": [\r
3376       [\r
3377         "60b7b56f.adea4c",\r
3378         "bdc41b3b.e9f9e8",\r
3379         "9a7dac44.d03ca8",\r
3380         "bedde447.35d04",\r
3381         "7fc21231.2a386c",\r
3382         "541e3cf1.3cdc4c",\r
3383         "8e19f306.cd166",\r
3384         "7aa2001.036a58",\r
3385         "fd1584d2.77bd18",\r
3386         "4d65e0ad.f66548",\r
3387         "799454e3.25827c",\r
3388         "ca44c46f.688fa8",\r
3389         "3e5313a9.d78034",\r
3390         "3f9a9e6f.0fc392",\r
3391         "f035278d.c09ef",\r
3392         "c934426f.9b2fb",\r
3393         "a387df7d.b7b76",\r
3394         "944ed400.3d2108",\r
3395         "e04ee2dc.c84258"\r
3396       ]\r
3397     ]\r
3398   },\r
3399   {\r
3400     "id": "fd1584d2.77bd18",\r
3401     "type": "execute",\r
3402     "name": "execute UUID generator for connectivity domainB",\r
3403     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainB-uuid\"/>\n",\r
3404     "comments": "",\r
3405     "outputs": 1,\r
3406     "x": 3876,\r
3407     "y": 3209,\r
3408     "z": "211aaefb.d906ea",\r
3409     "wires": [\r
3410       []\r
3411     ]\r
3412   },\r
3413   {\r
3414     "id": "60b7b56f.adea4c",\r
3415     "type": "save",\r
3416     "name": "save connectivity resource in AAI",\r
3417     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' -->\n<!--      key='connectivity.connectivity-id = $tmp.ROOT.uni-p-interface-long'>-->\n<!--<parameter name='connectivity-id' value='`$tmp.ROOT.uni-p-interface-long`' />-->\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n<parameter name='color-aware' value='`$tmp.ROOT.uni-p-interface-long`' />\n<parameter name='vpn-type' value='root' />\n\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
3418     "comments": "",\r
3419     "outputs": 1,\r
3420     "x": 3830,\r
3421     "y": 3307,\r
3422     "z": "211aaefb.d906ea",\r
3423     "wires": [\r
3424       []\r
3425     ]\r
3426   },\r
3427   {\r
3428     "id": "bdc41b3b.e9f9e8",\r
3429     "type": "save",\r
3430     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
3431     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-domainB-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
3432     "comments": "",\r
3433     "outputs": 1,\r
3434     "x": 3966,\r
3435     "y": 3354,\r
3436     "z": "211aaefb.d906ea",\r
3437     "wires": [\r
3438       []\r
3439     ]\r
3440   },\r
3441   {\r
3442     "id": "335c026d.7b6e86",\r
3443     "type": "comment",\r
3444     "name": "Create ROOT connectivity",\r
3445     "info": "",\r
3446     "comments": "",\r
3447     "x": 3797,\r
3448     "y": 3158,\r
3449     "z": "211aaefb.d906ea",\r
3450     "wires": []\r
3451   },\r
3452   {\r
3453     "id": "15801117.33a03f",\r
3454     "type": "comment",\r
3455     "name": "create middle man connectivity and ...",\r
3456     "info": "1- create middle man connectivity\n2- create relation with all connectivities\n   in the path\n3- put srcTtp (+dstTtp) somewhere in the\n   vpn-binding -> this is for later on to find\n   which OTN tunnel's bandwidth has to be increased.\n5- create UNIs\n4- create relationship to UNIs",\r
3457     "comments": "",\r
3458     "x": 4323,\r
3459     "y": 3649,\r
3460     "z": "211aaefb.d906ea",\r
3461     "wires": []\r
3462   },\r
3463   {\r
3464     "id": "9a7dac44.d03ca8",\r
3465     "type": "execute",\r
3466     "name": "execute UUID generator for connectivity middle-man",\r
3467     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-middle-man-uuid\"/>\n",\r
3468     "comments": "",\r
3469     "outputs": 1,\r
3470     "x": 3887,\r
3471     "y": 3688,\r
3472     "z": "211aaefb.d906ea",\r
3473     "wires": [\r
3474       []\r
3475     ]\r
3476   },\r
3477   {\r
3478     "id": "bedde447.35d04",\r
3479     "type": "save",\r
3480     "name": "save connectivity resource in AAI",\r
3481     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $prop.connectivity-middle-man-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-middle-man-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<!--The followings are not needed for the middle-man-connectivity-->\n<!--<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />-->\n<!--<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />-->\n<!--<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />-->\n<!--<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />-->\n<!--<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />-->\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n<parameter name='color-aware' value='`$tmp.ROOT.uni-p-interface-long`' />\n<parameter name='vpn-type' value='mdsc' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
3482     "comments": "",\r
3483     "outputs": 1,\r
3484     "x": 3835,\r
3485     "y": 3739,\r
3486     "z": "211aaefb.d906ea",\r
3487     "wires": [\r
3488       []\r
3489     ]\r
3490   },\r
3491   {\r
3492     "id": "7fc21231.2a386c",\r
3493     "type": "save",\r
3494     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
3495     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-middle-man-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-middle-man-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
3496     "comments": "",\r
3497     "outputs": 1,\r
3498     "x": 3971,\r
3499     "y": 3786,\r
3500     "z": "211aaefb.d906ea",\r
3501     "wires": [\r
3502       []\r
3503     ]\r
3504   },\r
3505   {\r
3506     "id": "9c57f099.e1906",\r
3507     "type": "comment",\r
3508     "name": "Create MIDDLE-MAN connectivity",\r
3509     "info": "",\r
3510     "comments": "",\r
3511     "x": 3828,\r
3512     "y": 3648,\r
3513     "z": "211aaefb.d906ea",\r
3514     "wires": []\r
3515   },\r
3516   {\r
3517     "id": "c4862f6c.a2a29",\r
3518     "type": "block",\r
3519     "name": "block : atomic",\r
3520     "xml": "<block atomic='true'>",\r
3521     "atomic": "true",\r
3522     "comments": "",\r
3523     "outputs": 1,\r
3524     "x": 4258,\r
3525     "y": 3845,\r
3526     "z": "211aaefb.d906ea",\r
3527     "wires": [\r
3528       []\r
3529     ]\r
3530   },\r
3531   {\r
3532     "id": "541e3cf1.3cdc4c",\r
3533     "type": "save",\r
3534     "name": "get middle-man connectivity from aai",\r
3535     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t    key=\"connectivity.connectivity-id = $prop.connectivity-middle-man-uuid\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"middle-man-conn\" >\n",\r
3536     "comments": "",\r
3537     "outputs": 1,\r
3538     "x": 3849,\r
3539     "y": 3892,\r
3540     "z": "211aaefb.d906ea",\r
3541     "wires": [\r
3542       [\r
3543         "42cf0b77.2dec84",\r
3544         "81ea64e.302c518",\r
3545         "1a138015.57b74"\r
3546       ]\r
3547     ]\r
3548   },\r
3549   {\r
3550     "id": "42cf0b77.2dec84",\r
3551     "type": "success",\r
3552     "name": "success",\r
3553     "xml": "<outcome value='success'>\n",\r
3554     "comments": "",\r
3555     "outputs": 1,\r
3556     "x": 4096,\r
3557     "y": 3846,\r
3558     "z": "211aaefb.d906ea",\r
3559     "wires": [\r
3560       [\r
3561         "c4862f6c.a2a29"\r
3562       ]\r
3563     ]\r
3564   },\r
3565   {\r
3566     "id": "81ea64e.302c518",\r
3567     "type": "not-found",\r
3568     "name": "not-found",\r
3569     "xml": "<outcome value='not-found'>\n",\r
3570     "comments": "",\r
3571     "outputs": 1,\r
3572     "x": 4096.490966796875,\r
3573     "y": 3891.5740356445312,\r
3574     "z": "211aaefb.d906ea",\r
3575     "wires": [\r
3576       [\r
3577         "396ed743.e6ca6"\r
3578       ]\r
3579     ]\r
3580   },\r
3581   {\r
3582     "id": "1a138015.57b74",\r
3583     "type": "failure",\r
3584     "name": "failure",\r
3585     "xml": "<outcome value='failure'>\n",\r
3586     "comments": "",\r
3587     "outputs": 1,\r
3588     "x": 4094,\r
3589     "y": 3935,\r
3590     "z": "211aaefb.d906ea",\r
3591     "wires": [\r
3592       [\r
3593         "f5385619.47f03"\r
3594       ]\r
3595     ]\r
3596   },\r
3597   {\r
3598     "id": "396ed743.e6ca6",\r
3599     "type": "returnFailure",\r
3600     "name": "return failure",\r
3601     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
3602     "comments": "",\r
3603     "x": 4259.0623779296875,\r
3604     "y": 3891.8597717285156,\r
3605     "z": "211aaefb.d906ea",\r
3606     "wires": []\r
3607   },\r
3608   {\r
3609     "id": "f5385619.47f03",\r
3610     "type": "returnFailure",\r
3611     "name": "return failure",\r
3612     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
3613     "comments": "",\r
3614     "x": 4263,\r
3615     "y": 3936,\r
3616     "z": "211aaefb.d906ea",\r
3617     "wires": []\r
3618   },\r
3619   {\r
3620     "id": "f035278d.c09ef",\r
3621     "type": "save",\r
3622     "name": "save middle-man-conn relationship to connectivity-LEAF, in AAI",\r
3623     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-domainA-uuid`\" />",\r
3624     "comments": "",\r
3625     "outputs": 1,\r
3626     "x": 3906,\r
3627     "y": 4171,\r
3628     "z": "211aaefb.d906ea",\r
3629     "wires": [\r
3630       []\r
3631     ]\r
3632   },\r
3633   {\r
3634     "id": "c934426f.9b2fb",\r
3635     "type": "save",\r
3636     "name": "save middle-man-conn relationship to connectivity-ROOT, in AAI",\r
3637     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-domainB-uuid`\" />",\r
3638     "comments": "",\r
3639     "outputs": 1,\r
3640     "x": 3909,\r
3641     "y": 4216,\r
3642     "z": "211aaefb.d906ea",\r
3643     "wires": [\r
3644       []\r
3645     ]\r
3646   },\r
3647   {\r
3648     "id": "944ed400.3d2108",\r
3649     "type": "save",\r
3650     "name": "save middle-man-conn relationship to UNI-LEAF, in AAI",\r
3651     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"uni\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/unis/uni/' + $tmp.LEAF.uni-p-interface-long`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"uni.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.LEAF.uni-p-interface-long`\" />",\r
3652     "comments": "",\r
3653     "outputs": 1,\r
3654     "x": 3898,\r
3655     "y": 4007,\r
3656     "z": "211aaefb.d906ea",\r
3657     "wires": [\r
3658       []\r
3659     ]\r
3660   },\r
3661   {\r
3662     "id": "e04ee2dc.c84258",\r
3663     "type": "save",\r
3664     "name": "save middle-man-conn relationship to UNI-ROOT, in AAI",\r
3665     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"uni\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/unis/uni/' + $tmp.ROOT.uni-p-interface-long`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"uni.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.ROOT.uni-p-interface-long`\" />",\r
3666     "comments": "",\r
3667     "outputs": 1,\r
3668     "x": 3900,\r
3669     "y": 4054,\r
3670     "z": "211aaefb.d906ea",\r
3671     "wires": [\r
3672       []\r
3673     ]\r
3674   },\r
3675   {\r
3676     "id": "49a17204.cabfec",\r
3677     "type": "comment",\r
3678     "name": "The following two will be done in F1",\r
3679     "info": "",\r
3680     "comments": "",\r
3681     "x": 3822,\r
3682     "y": 4124,\r
3683     "z": "211aaefb.d906ea",\r
3684     "wires": []\r
3685   },\r
3686   {\r
3687     "id": "f9147a44.abd5d",\r
3688     "type": "save",\r
3689     "name": "save middle-man-conn relationship to UNI-LEAF, in AAI",\r
3690     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"uni\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/unis/uni/' + $tmp.LEAF.uni-p-interface-long`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"uni.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.LEAF.uni-p-interface-long`\" />",\r
3691     "comments": "",\r
3692     "outputs": 1,\r
3693     "x": 4429,\r
3694     "y": 4853,\r
3695     "z": "211aaefb.d906ea",\r
3696     "wires": [\r
3697       []\r
3698     ]\r
3699   },\r
3700   {\r
3701     "id": "ae52f9b0.eb7378",\r
3702     "type": "switchNode",\r
3703     "name": "switch no-pce-call",\r
3704     "xml": "<switch test='`$no-pce-call`'>\n",\r
3705     "comments": "",\r
3706     "outputs": 1,\r
3707     "x": 3684,\r
3708     "y": 5006,\r
3709     "z": "211aaefb.d906ea",\r
3710     "wires": [\r
3711       [\r
3712         "2031568b.5c466a",\r
3713         "d5c3bda4.9d44d"\r
3714       ]\r
3715     ]\r
3716   },\r
3717   {\r
3718     "id": "d5c3bda4.9d44d",\r
3719     "type": "outcomeFalse",\r
3720     "name": "false",\r
3721     "xml": "<outcome value='false'>\n",\r
3722     "comments": "",\r
3723     "outputs": 1,\r
3724     "x": 3856,\r
3725     "y": 5003,\r
3726     "z": "211aaefb.d906ea",\r
3727     "wires": [\r
3728       [\r
3729         "3fb1d79b.8d6fb8"\r
3730       ]\r
3731     ]\r
3732   },\r
3733   {\r
3734     "id": "2031568b.5c466a",\r
3735     "type": "outcomeFalse",\r
3736     "name": "true",\r
3737     "xml": "<outcome value='true'>\n",\r
3738     "comments": "",\r
3739     "outputs": 1,\r
3740     "x": 3808,\r
3741     "y": 5850,\r
3742     "z": "211aaefb.d906ea",\r
3743     "wires": [\r
3744       [\r
3745         "ff5eb6bb.d3898"\r
3746       ]\r
3747     ]\r
3748   },\r
3749   {\r
3750     "id": "35005760.153d9",\r
3751     "type": "comment",\r
3752     "name": "1 --> PCE is needed",\r
3753     "info": "",\r
3754     "comments": "",\r
3755     "x": 3869,\r
3756     "y": 4973,\r
3757     "z": "211aaefb.d906ea",\r
3758     "wires": []\r
3759   },\r
3760   {\r
3761     "id": "53b6adea.273794",\r
3762     "type": "comment",\r
3763     "name": "2 --> no need to call PCE",\r
3764     "info": "",\r
3765     "comments": "",\r
3766     "x": 3879,\r
3767     "y": 5808,\r
3768     "z": "211aaefb.d906ea",\r
3769     "wires": []\r
3770   },\r
3771   {\r
3772     "id": "8e19f306.cd166",\r
3773     "type": "call",\r
3774     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-F1",\r
3775     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1' mode='sync' >\n\n",\r
3776     "comments": "",\r
3777     "outputs": 1,\r
3778     "x": 3906,\r
3779     "y": 4280,\r
3780     "z": "211aaefb.d906ea",\r
3781     "wires": [\r
3782       []\r
3783     ]\r
3784   },\r
3785   {\r
3786     "id": "3fb1d79b.8d6fb8",\r
3787     "type": "block",\r
3788     "name": "block : atomic",\r
3789     "xml": "<block atomic='true'>",\r
3790     "atomic": "true",\r
3791     "comments": "",\r
3792     "outputs": 1,\r
3793     "x": 4032,\r
3794     "y": 5005,\r
3795     "z": "211aaefb.d906ea",\r
3796     "wires": [\r
3797       [\r
3798         "a4f5d754.33c548",\r
3799         "77d0a120.a8d4c8",\r
3800         "ea3dea31.55403",\r
3801         "faf54698.eda79",\r
3802         "e80f8be5.03c42",\r
3803         "3b266df3.e7977a",\r
3804         "f9147a44.abd5d"\r
3805       ]\r
3806     ]\r
3807   },\r
3808   {\r
3809     "id": "30197835.1bf978",\r
3810     "type": "comment",\r
3811     "name": "Use the middle-man-conn.eth-srv-name for the LEAF connectivity's eth srv name",\r
3812     "info": "",\r
3813     "comments": "",\r
3814     "x": 5477,\r
3815     "y": 4478,\r
3816     "z": "211aaefb.d906ea",\r
3817     "wires": []\r
3818   },\r
3819   {\r
3820     "id": "a4f5d754.33c548",\r
3821     "type": "call",\r
3822     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-F1",\r
3823     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1' mode='sync' >\n\n",\r
3824     "comments": "",\r
3825     "outputs": 1,\r
3826     "x": 4424,\r
3827     "y": 5156,\r
3828     "z": "211aaefb.d906ea",\r
3829     "wires": [\r
3830       []\r
3831     ]\r
3832   },\r
3833   {\r
3834     "id": "cce2d7d9.b9218",\r
3835     "type": "call",\r
3836     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-F1-activate",\r
3837     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1-activate' mode='sync' >\n\n",\r
3838     "comments": "",\r
3839     "outputs": 1,\r
3840     "x": 3916,\r
3841     "y": 4335,\r
3842     "z": "211aaefb.d906ea",\r
3843     "wires": [\r
3844       []\r
3845     ]\r
3846   },\r
3847   {\r
3848     "id": "7aa2001.036a58",\r
3849     "type": "save",\r
3850     "name": "save connectivityB relationship to UNI-ROOT, in AAI",\r
3851     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $prop.connectivity-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
3852     "comments": "",\r
3853     "outputs": 1,\r
3854     "x": 3882,\r
3855     "y": 3548,\r
3856     "z": "211aaefb.d906ea",\r
3857     "wires": [\r
3858       []\r
3859     ]\r
3860   },\r
3861   {\r
3862     "id": "2d8b9b70.b52efc",\r
3863     "type": "save",\r
3864     "name": "save connectivityA relationship to UNI-LEAF, in AAI",\r
3865     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $prop.connectivity-domainA-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"uni\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/unis/uni/' + $tmp.LEAF.uni-p-interface-long`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"uni.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.LEAF.uni-p-interface-long`\" />",\r
3866     "comments": "",\r
3867     "outputs": 1,\r
3868     "x": 3342,\r
3869     "y": 1767,\r
3870     "z": "211aaefb.d906ea",\r
3871     "wires": [\r
3872       []\r
3873     ]\r
3874   },\r
3875   {\r
3876     "id": "26382876.b9a68",\r
3877     "type": "save",\r
3878     "name": "save LEAF UNI in AAI",\r
3879     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n      key='uni.id = $tmp.LEAF.uni-p-interface-long'>\n<parameter name='id' value='`$tmp.LEAF.uni-p-interface-long`' />\n<parameter name='tp-id' value='`$tmp.LEAF.uni-p-interface-short`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n",\r
3880     "comments": "",\r
3881     "outputs": 1,\r
3882     "x": 3249,\r
3883     "y": 1714,\r
3884     "z": "211aaefb.d906ea",\r
3885     "wires": [\r
3886       []\r
3887     ]\r
3888   },\r
3889   {\r
3890     "id": "31c62db7.5b8522",\r
3891     "type": "set",\r
3892     "name": "set prop.connectivity-domainB-uuid=tmp.ROOT.uni-p-interface-long",\r
3893     "xml": "<set>\n<parameter name='prop.connectivity-domainB-uuid' value=\"`$tmp.ROOT.uni-p-interface-long`\" />\n",\r
3894     "comments": "",\r
3895     "x": 3932,\r
3896     "y": 3251,\r
3897     "z": "211aaefb.d906ea",\r
3898     "wires": []\r
3899   },\r
3900   {\r
3901     "id": "4d65e0ad.f66548",\r
3902     "type": "execute",\r
3903     "name": "execute UUID generator for connectivity domainA",\r
3904     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-domainA-uuid\"/>\n",\r
3905     "comments": "",\r
3906     "outputs": 1,\r
3907     "x": 3879,\r
3908     "y": 2839,\r
3909     "z": "211aaefb.d906ea",\r
3910     "wires": [\r
3911       []\r
3912     ]\r
3913   },\r
3914   {\r
3915     "id": "799454e3.25827c",\r
3916     "type": "save",\r
3917     "name": "save connectivity resource in AAI",\r
3918     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n<parameter name='vpn-type' value='leaf' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
3919     "comments": "",\r
3920     "outputs": 1,\r
3921     "x": 3827,\r
3922     "y": 2887,\r
3923     "z": "211aaefb.d906ea",\r
3924     "wires": [\r
3925       []\r
3926     ]\r
3927   },\r
3928   {\r
3929     "id": "ca44c46f.688fa8",\r
3930     "type": "save",\r
3931     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
3932     "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
3933     "comments": "",\r
3934     "outputs": 1,\r
3935     "x": 3955,\r
3936     "y": 2934,\r
3937     "z": "211aaefb.d906ea",\r
3938     "wires": [\r
3939       []\r
3940     ]\r
3941   },\r
3942   {\r
3943     "id": "c038b97c.5e298",\r
3944     "type": "comment",\r
3945     "name": "Create LEAF connectivity",\r
3946     "info": "",\r
3947     "comments": "",\r
3948     "x": 3792,\r
3949     "y": 2797,\r
3950     "z": "211aaefb.d906ea",\r
3951     "wires": []\r
3952   },\r
3953   {\r
3954     "id": "3e5313a9.d78034",\r
3955     "type": "save",\r
3956     "name": "save LEAF UNI in AAI",\r
3957     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n      key='uni.id = $tmp.LEAF.uni-p-interface-long'>\n<parameter name='id' value='`$tmp.LEAF.uni-p-interface-long`' />\n<parameter name='tp-id' value='`$tmp.LEAF.uni-tp-id`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n<parameter name='data-source' value='`$gfp`' />",\r
3958     "comments": "",\r
3959     "outputs": 1,\r
3960     "x": 3789,\r
3961     "y": 3025,\r
3962     "z": "211aaefb.d906ea",\r
3963     "wires": [\r
3964       []\r
3965     ]\r
3966   },\r
3967   {\r
3968     "id": "3f9a9e6f.0fc392",\r
3969     "type": "save",\r
3970     "name": "save connectivityA relationship to UNI-LEAF, in AAI",\r
3971     "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
3972     "comments": "",\r
3973     "outputs": 1,\r
3974     "x": 3882,\r
3975     "y": 3078,\r
3976     "z": "211aaefb.d906ea",\r
3977     "wires": [\r
3978       []\r
3979     ]\r
3980   },\r
3981   {\r
3982     "id": "281fc4fa.e1a84c",\r
3983     "type": "comment",\r
3984     "name": "Create LEAF UNI",\r
3985     "info": "",\r
3986     "comments": "",\r
3987     "x": 3773,\r
3988     "y": 2981,\r
3989     "z": "211aaefb.d906ea",\r
3990     "wires": []\r
3991   },\r
3992   {\r
3993     "id": "9dc1c6e1.2dba4",\r
3994     "type": "comment",\r
3995     "name": "Create ROOT UNI",\r
3996     "info": "",\r
3997     "comments": "",\r
3998     "x": 3779,\r
3999     "y": 3431,\r
4000     "z": "211aaefb.d906ea",\r
4001     "wires": []\r
4002   },\r
4003   {\r
4004     "id": "faf54698.eda79",\r
4005     "type": "save",\r
4006     "name": "save LEAF UNI in AAI",\r
4007     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n      key='uni.id = $tmp.LEAF.uni-p-interface-long'>\n<parameter name='id' value='`$tmp.LEAF.uni-p-interface-long`' />\n<parameter name='tp-id' value='`$tmp.LEAF.uni-tp-id`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n<parameter name='data-source' value='`$gfp`' />\n",\r
4008     "comments": "",\r
4009     "outputs": 1,\r
4010     "x": 4346,\r
4011     "y": 4486,\r
4012     "z": "211aaefb.d906ea",\r
4013     "wires": [\r
4014       []\r
4015     ]\r
4016   },\r
4017   {\r
4018     "id": "eb955021.5749d",\r
4019     "type": "comment",\r
4020     "name": "Create LEAF UNI",\r
4021     "info": "",\r
4022     "comments": "",\r
4023     "x": 4330,\r
4024     "y": 4442,\r
4025     "z": "211aaefb.d906ea",\r
4026     "wires": []\r
4027   },\r
4028   {\r
4029     "id": "b9a6d392.b28d6",\r
4030     "type": "comment",\r
4031     "name": "Create LEAF connectivity",\r
4032     "info": "",\r
4033     "comments": "",\r
4034     "x": 5077,\r
4035     "y": 4473,\r
4036     "z": "211aaefb.d906ea",\r
4037     "wires": []\r
4038   },\r
4039   {\r
4040     "id": "bed8a2a5.609b9",\r
4041     "type": "execute",\r
4042     "name": "execute UUID generator for connectivity domainA",\r
4043     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-domainA-uuid\"/>\n",\r
4044     "comments": "",\r
4045     "outputs": 1,\r
4046     "x": 5164,\r
4047     "y": 4515,\r
4048     "z": "211aaefb.d906ea",\r
4049     "wires": [\r
4050       []\r
4051     ]\r
4052   },\r
4053   {\r
4054     "id": "bbe5119a.b6b9a",\r
4055     "type": "save",\r
4056     "name": "save connectivity resource in AAI",\r
4057     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$middle-man-conn.etht-svc-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n<parameter name='vpn-type' value='leaf' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
4058     "comments": "",\r
4059     "outputs": 1,\r
4060     "x": 5112,\r
4061     "y": 4563,\r
4062     "z": "211aaefb.d906ea",\r
4063     "wires": [\r
4064       []\r
4065     ]\r
4066   },\r
4067   {\r
4068     "id": "2aa44f99.3f02c8",\r
4069     "type": "save",\r
4070     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
4071     "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
4072     "comments": "",\r
4073     "outputs": 1,\r
4074     "x": 5240,\r
4075     "y": 4610,\r
4076     "z": "211aaefb.d906ea",\r
4077     "wires": [\r
4078       []\r
4079     ]\r
4080   },\r
4081   {\r
4082     "id": "3b266df3.e7977a",\r
4083     "type": "save",\r
4084     "name": "save connectivityA relationship to UNI-LEAF, in AAI",\r
4085     "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
4086     "comments": "",\r
4087     "outputs": 1,\r
4088     "x": 4417,\r
4089     "y": 4895,\r
4090     "z": "211aaefb.d906ea",\r
4091     "wires": [\r
4092       []\r
4093     ]\r
4094   },\r
4095   {\r
4096     "id": "bd185a34.34e6a8",\r
4097     "type": "comment",\r
4098     "name": "populate connectivity-B variable in the context map",\r
4099     "info": "",\r
4100     "comments": "",\r
4101     "x": 4400,\r
4102     "y": 4957,\r
4103     "z": "211aaefb.d906ea",\r
4104     "wires": []\r
4105   },\r
4106   {\r
4107     "id": "77d0a120.a8d4c8",\r
4108     "type": "call",\r
4109     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-ROOT-conn",\r
4110     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-ROOT-conn' mode='sync' >\n\n",\r
4111     "comments": "",\r
4112     "outputs": 1,\r
4113     "x": 4511,\r
4114     "y": 4999,\r
4115     "z": "211aaefb.d906ea",\r
4116     "wires": [\r
4117       []\r
4118     ]\r
4119   },\r
4120   {\r
4121     "id": "915b754b.45601",\r
4122     "type": "set",\r
4123     "name": "set prop.connectivity-domainB-uuid",\r
4124     "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
4125     "comments": "",\r
4126     "x": 4959,\r
4127     "y": 5052,\r
4128     "z": "211aaefb.d906ea",\r
4129     "wires": []\r
4130   },\r
4131   {\r
4132     "id": "8cb093f8.38739",\r
4133     "type": "save",\r
4134     "name": "save middle-man-conn relationship to UNI-LEAF, in AAI",\r
4135     "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
4136     "comments": "",\r
4137     "outputs": 1,\r
4138     "x": 4269,\r
4139     "y": 5750,\r
4140     "z": "211aaefb.d906ea",\r
4141     "wires": [\r
4142       []\r
4143     ]\r
4144   },\r
4145   {\r
4146     "id": "90b420e2.468d1",\r
4147     "type": "save",\r
4148     "name": "save LEAF UNI in AAI",\r
4149     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n      key='uni.id = $tmp.LEAF.uni-p-interface-long'>\n<parameter name='id' value='`$tmp.LEAF.uni-p-interface-long`' />\n<parameter name='tp-id' value='`$tmp.LEAF.uni-tp-id`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n<parameter name='data-source' value='`$gfp`' />\n",\r
4150     "comments": "",\r
4151     "outputs": 1,\r
4152     "x": 4167,\r
4153     "y": 5699,\r
4154     "z": "211aaefb.d906ea",\r
4155     "wires": [\r
4156       []\r
4157     ]\r
4158   },\r
4159   {\r
4160     "id": "e890a410.6577f8",\r
4161     "type": "comment",\r
4162     "name": "Create LEAF UNI",\r
4163     "info": "",\r
4164     "comments": "",\r
4165     "x": 4151,\r
4166     "y": 5655,\r
4167     "z": "211aaefb.d906ea",\r
4168     "wires": []\r
4169   },\r
4170   {\r
4171     "id": "ca407fe0.a74b58",\r
4172     "type": "save",\r
4173     "name": "save the-connectivity relationship to UNI-LEAF, in AAI",\r
4174     "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
4175     "comments": "",\r
4176     "outputs": 1,\r
4177     "x": 4957.999755859375,\r
4178     "y": 5853,\r
4179     "z": "211aaefb.d906ea",\r
4180     "wires": [\r
4181       []\r
4182     ]\r
4183   },\r
4184   {\r
4185     "id": "ea3dea31.55403",\r
4186     "type": "switchNode",\r
4187     "name": "switch found-root-connectivity",\r
4188     "xml": "\n<switch test=\"`$found-root-connectivity`\">\n\n",\r
4189     "comments": "",\r
4190     "outputs": 1,\r
4191     "x": 4338,\r
4192     "y": 5056,\r
4193     "z": "211aaefb.d906ea",\r
4194     "wires": [\r
4195       [\r
4196         "130129c6.4e6896",\r
4197         "c2790bbb.b39ef"\r
4198       ]\r
4199     ]\r
4200   },\r
4201   {\r
4202     "id": "130129c6.4e6896",\r
4203     "type": "outcomeTrue",\r
4204     "name": "true",\r
4205     "xml": "<outcome value='true'>\n",\r
4206     "comments": "",\r
4207     "outputs": 1,\r
4208     "x": 4549,\r
4209     "y": 5056,\r
4210     "z": "211aaefb.d906ea",\r
4211     "wires": [\r
4212       [\r
4213         "b2be4205.132768"\r
4214       ]\r
4215     ]\r
4216   },\r
4217   {\r
4218     "id": "b2be4205.132768",\r
4219     "type": "block",\r
4220     "name": "block : atomic",\r
4221     "xml": "<block atomic='true'>",\r
4222     "atomic": "true",\r
4223     "comments": "",\r
4224     "outputs": 1,\r
4225     "x": 4705,\r
4226     "y": 5052,\r
4227     "z": "211aaefb.d906ea",\r
4228     "wires": [\r
4229       [\r
4230         "915b754b.45601",\r
4231         "3264661d.b6671a",\r
4232         "cf1a8f36.08af8"\r
4233       ]\r
4234     ]\r
4235   },\r
4236   {\r
4237     "id": "c2790bbb.b39ef",\r
4238     "type": "outcomeFalse",\r
4239     "name": "false",\r
4240     "xml": "<outcome value='false'>\n",\r
4241     "comments": "",\r
4242     "outputs": 1,\r
4243     "x": 4545,\r
4244     "y": 5104,\r
4245     "z": "211aaefb.d906ea",\r
4246     "wires": [\r
4247       [\r
4248         "1090c9ed.cf8dde"\r
4249       ]\r
4250     ]\r
4251   },\r
4252   {\r
4253     "id": "1090c9ed.cf8dde",\r
4254     "type": "returnFailure",\r
4255     "name": "return failure",\r
4256     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='Root Connectivity was not found' />\n",\r
4257     "comments": "",\r
4258     "x": 4693,\r
4259     "y": 5099,\r
4260     "z": "211aaefb.d906ea",\r
4261     "wires": []\r
4262   },\r
4263   {\r
4264     "id": "53ad7751.2dcd08",\r
4265     "type": "save",\r
4266     "name": "save middle-man-conn relationship to connectivity-LEAF, in AAI",\r
4267     "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
4268     "comments": "",\r
4269     "outputs": 1,\r
4270     "x": 5201,\r
4271     "y": 4681,\r
4272     "z": "211aaefb.d906ea",\r
4273     "wires": [\r
4274       []\r
4275     ]\r
4276   },\r
4277   {\r
4278     "id": "59db3330.69645c",\r
4279     "type": "execute",\r
4280     "name": "execute UUID generator for ethernet-service-name",\r
4281     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.ethernet-service-name\"/>\n",\r
4282     "comments": "",\r
4283     "outputs": 1,\r
4284     "x": 2367,\r
4285     "y": 92,\r
4286     "z": "211aaefb.d906ea",\r
4287     "wires": [\r
4288       []\r
4289     ]\r
4290   },\r
4291   {\r
4292     "id": "4ebbcee7.69b52",\r
4293     "type": "set",\r
4294     "name": "set new ethernet-service-name",\r
4295     "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
4296     "comments": "",\r
4297     "x": 2301,\r
4298     "y": 128,\r
4299     "z": "211aaefb.d906ea",\r
4300     "wires": []\r
4301   },\r
4302   {\r
4303     "id": "4ea5390e.a52cc",\r
4304     "type": "comment",\r
4305     "name": "The following two nodes are to make sure all connectivities for an E-Tree have same etht-srv-name",\r
4306     "info": "",\r
4307     "comments": "",\r
4308     "x": 2486,\r
4309     "y": 55,\r
4310     "z": "211aaefb.d906ea",\r
4311     "wires": []\r
4312   },\r
4313   {\r
4314     "id": "37299dd0.22785a",\r
4315     "type": "set",\r
4316     "name": "set current-provider-id and current-cvlan-id",\r
4317     "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
4318     "comments": "",\r
4319     "x": 4236,\r
4320     "y": 5816,\r
4321     "z": "211aaefb.d906ea",\r
4322     "wires": []\r
4323   },\r
4324   {\r
4325     "id": "606aa5ab.2206bc",\r
4326     "type": "call",\r
4327     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-connectivity",\r
4328     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-connectivity' mode='sync' >\n\n",\r
4329     "comments": "",\r
4330     "outputs": 1,\r
4331     "x": 4369,\r
4332     "y": 5864,\r
4333     "z": "211aaefb.d906ea",\r
4334     "wires": [\r
4335       []\r
4336     ]\r
4337   },\r
4338   {\r
4339     "id": "17ac1f1.6d565e1",\r
4340     "type": "switchNode",\r
4341     "name": "switch found-connectivity?",\r
4342     "xml": "\n<switch test=\"`$found-connectivity`\">\n\n",\r
4343     "comments": "",\r
4344     "outputs": 1,\r
4345     "x": 4188,\r
4346     "y": 5922,\r
4347     "z": "211aaefb.d906ea",\r
4348     "wires": [\r
4349       [\r
4350         "7b13241a.22fd54",\r
4351         "f9b4895b.fbea48"\r
4352       ]\r
4353     ]\r
4354   },\r
4355   {\r
4356     "id": "7b13241a.22fd54",\r
4357     "type": "outcomeFalse",\r
4358     "name": "false",\r
4359     "xml": "<outcome value='false'>\n",\r
4360     "comments": "",\r
4361     "outputs": 1,\r
4362     "x": 4381,\r
4363     "y": 5923,\r
4364     "z": "211aaefb.d906ea",\r
4365     "wires": [\r
4366       [\r
4367         "827a3a72.ba4bd8"\r
4368       ]\r
4369     ]\r
4370   },\r
4371   {\r
4372     "id": "827a3a72.ba4bd8",\r
4373     "type": "returnFailure",\r
4374     "name": "return failure",\r
4375     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='Connectivity should have been created' />\n",\r
4376     "comments": "",\r
4377     "x": 4537,\r
4378     "y": 5920,\r
4379     "z": "211aaefb.d906ea",\r
4380     "wires": []\r
4381   },\r
4382   {\r
4383     "id": "f9b4895b.fbea48",\r
4384     "type": "outcomeTrue",\r
4385     "name": "true",\r
4386     "xml": "<outcome value='true'>\n",\r
4387     "comments": "",\r
4388     "outputs": 1,\r
4389     "x": 4385,\r
4390     "y": 5967,\r
4391     "z": "211aaefb.d906ea",\r
4392     "wires": [\r
4393       [\r
4394         "4c414c23.1dfa5c"\r
4395       ]\r
4396     ]\r
4397   },\r
4398   {\r
4399     "id": "4c414c23.1dfa5c",\r
4400     "type": "block",\r
4401     "name": "block",\r
4402     "xml": "<block>\n",\r
4403     "atomic": "false",\r
4404     "comments": "",\r
4405     "outputs": 1,\r
4406     "x": 4524,\r
4407     "y": 5962,\r
4408     "z": "211aaefb.d906ea",\r
4409     "wires": [\r
4410       [\r
4411         "ca407fe0.a74b58",\r
4412         "87b885a5.5cf0c8",\r
4413         "7c94a6cd.50e738",\r
4414         "9f0fa012.5d1bf",\r
4415         "fafaba2.e8268c8",\r
4416         "25a2525f.49399e",\r
4417         "593dba4.344bf44",\r
4418         "90f4ba85.137fb",\r
4419         "52c2d3cf.976804",\r
4420         "274ef282.e256ee",\r
4421         "eba4a386.8ade58",\r
4422         "91ff8ca0.2410d8"\r
4423       ]\r
4424     ]\r
4425   },\r
4426   {\r
4427     "id": "593dba4.344bf44",\r
4428     "type": "save",\r
4429     "name": "get all-vpn-bindings from aai",\r
4430     "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
4431     "comments": "",\r
4432     "outputs": 1,\r
4433     "x": 4721,\r
4434     "y": 6641,\r
4435     "z": "211aaefb.d906ea",\r
4436     "wires": [\r
4437       [\r
4438         "a83c7fc2.c5da78",\r
4439         "914d2791.9def8",\r
4440         "a0fd345.ac08f48"\r
4441       ]\r
4442     ]\r
4443   },\r
4444   {\r
4445     "id": "a83c7fc2.c5da78",\r
4446     "type": "success",\r
4447     "name": "success",\r
4448     "xml": "<outcome value='success'>\n",\r
4449     "comments": "",\r
4450     "outputs": 1,\r
4451     "x": 4926,\r
4452     "y": 6638,\r
4453     "z": "211aaefb.d906ea",\r
4454     "wires": [\r
4455       [\r
4456         "c1df45ea.8ba52"\r
4457       ]\r
4458     ]\r
4459   },\r
4460   {\r
4461     "id": "914d2791.9def8",\r
4462     "type": "not-found",\r
4463     "name": "not-found",\r
4464     "xml": "<outcome value='not-found'>\n",\r
4465     "comments": "",\r
4466     "outputs": 1,\r
4467     "x": 4909.490966796875,\r
4468     "y": 6699.574035644531,\r
4469     "z": "211aaefb.d906ea",\r
4470     "wires": [\r
4471       [\r
4472         "119f1b5d.4e6f5d"\r
4473       ]\r
4474     ]\r
4475   },\r
4476   {\r
4477     "id": "a0fd345.ac08f48",\r
4478     "type": "failure",\r
4479     "name": "failure",\r
4480     "xml": "<outcome value='failure'>\n",\r
4481     "comments": "",\r
4482     "outputs": 1,\r
4483     "x": 4907,\r
4484     "y": 6743,\r
4485     "z": "211aaefb.d906ea",\r
4486     "wires": [\r
4487       [\r
4488         "3791525f.f4d3fe"\r
4489       ]\r
4490     ]\r
4491   },\r
4492   {\r
4493     "id": "c1df45ea.8ba52",\r
4494     "type": "block",\r
4495     "name": "block : atomic",\r
4496     "xml": "<block atomic=\"true\">",\r
4497     "atomic": "true",\r
4498     "outputs": 1,\r
4499     "x": 5082,\r
4500     "y": 6652,\r
4501     "z": "211aaefb.d906ea",\r
4502     "wires": [\r
4503       [\r
4504         "78ac2a8d.cd0874"\r
4505       ]\r
4506     ]\r
4507   },\r
4508   {\r
4509     "id": "119f1b5d.4e6f5d",\r
4510     "type": "returnFailure",\r
4511     "name": "return failure",\r
4512     "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
4513     "comments": "",\r
4514     "x": 5072.0623779296875,\r
4515     "y": 6699.859771728516,\r
4516     "z": "211aaefb.d906ea",\r
4517     "wires": []\r
4518   },\r
4519   {\r
4520     "id": "3791525f.f4d3fe",\r
4521     "type": "returnFailure",\r
4522     "name": "return failure",\r
4523     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
4524     "comments": "",\r
4525     "x": 5074,\r
4526     "y": 6742,\r
4527     "z": "211aaefb.d906ea",\r
4528     "wires": []\r
4529   },\r
4530   {\r
4531     "id": "78ac2a8d.cd0874",\r
4532     "type": "for",\r
4533     "name": "for vpnidx in all-vpn-bindings",\r
4534     "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",\r
4535     "comments": "",\r
4536     "outputs": 1,\r
4537     "x": 5329,\r
4538     "y": 6649,\r
4539     "z": "211aaefb.d906ea",\r
4540     "wires": [\r
4541       [\r
4542         "110b3f91.4725e8"\r
4543       ]\r
4544     ]\r
4545   },\r
4546   {\r
4547     "id": "110b3f91.4725e8",\r
4548     "type": "block",\r
4549     "name": "block : atomic",\r
4550     "xml": "<block atomic='true'>",\r
4551     "atomic": "true",\r
4552     "comments": "",\r
4553     "outputs": 1,\r
4554     "x": 5566,\r
4555     "y": 6645,\r
4556     "z": "211aaefb.d906ea",\r
4557     "wires": [\r
4558       [\r
4559         "e53605cc.b83c3"\r
4560       ]\r
4561     ]\r
4562   },\r
4563   {\r
4564     "id": "cf79f711.acd51",\r
4565     "type": "switchNode",\r
4566     "name": "switch vpnuuid is for this slice",\r
4567     "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
4568     "comments": "",\r
4569     "outputs": 1,\r
4570     "x": 5809,\r
4571     "y": 6617,\r
4572     "z": "211aaefb.d906ea",\r
4573     "wires": [\r
4574       [\r
4575         "f8a0a965.9fe23",\r
4576         "b32c6358.b77858"\r
4577       ]\r
4578     ]\r
4579   },\r
4580   {\r
4581     "id": "f8a0a965.9fe23",\r
4582     "type": "outcomeTrue",\r
4583     "name": "true",\r
4584     "xml": "<outcome value='true'>\n",\r
4585     "comments": "",\r
4586     "outputs": 1,\r
4587     "x": 6014,\r
4588     "y": 6637,\r
4589     "z": "211aaefb.d906ea",\r
4590     "wires": [\r
4591       [\r
4592         "e53605cc.b83c3"\r
4593       ]\r
4594     ]\r
4595   },\r
4596   {\r
4597     "id": "b32c6358.b77858",\r
4598     "type": "outcomeFalse",\r
4599     "name": "false",\r
4600     "xml": "<outcome value='false'>\n",\r
4601     "comments": "",\r
4602     "outputs": 1,\r
4603     "x": 6013,\r
4604     "y": 6590,\r
4605     "z": "211aaefb.d906ea",\r
4606     "wires": [\r
4607       []\r
4608     ]\r
4609   },\r
4610   {\r
4611     "id": "e53605cc.b83c3",\r
4612     "type": "block",\r
4613     "name": "block : atomic",\r
4614     "xml": "<block atomic='true'>",\r
4615     "atomic": "true",\r
4616     "comments": "",\r
4617     "outputs": 1,\r
4618     "x": 4757,\r
4619     "y": 6912,\r
4620     "z": "211aaefb.d906ea",\r
4621     "wires": [\r
4622       [\r
4623         "d173aa3d.6dc13"\r
4624       ]\r
4625     ]\r
4626   },\r
4627   {\r
4628     "id": "fdc415c8.6a0598",\r
4629     "type": "set",\r
4630     "name": "set tmp.aai.the-vpn-binding",\r
4631     "xml": "<set>\n<parameter name='tmp.aai.the-vpn-binding.' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].`\" />\n",\r
4632     "comments": "",\r
4633     "x": 5606,\r
4634     "y": 6817,\r
4635     "z": "211aaefb.d906ea",\r
4636     "wires": []\r
4637   },\r
4638   {\r
4639     "id": "37d800ad.83215",\r
4640     "type": "comment",\r
4641     "name": "find all OTNs that have srcTtpOtnLayer and increase their bandwidth",\r
4642     "info": "",\r
4643     "comments": "",\r
4644     "x": 4819,\r
4645     "y": 6588,\r
4646     "z": "211aaefb.d906ea",\r
4647     "wires": []\r
4648   },\r
4649   {\r
4650     "id": "25a2525f.49399e",\r
4651     "type": "set",\r
4652     "name": "set srcTtp OTN layer",\r
4653     "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
4654     "comments": "",\r
4655     "x": 4703,\r
4656     "y": 6437,\r
4657     "z": "211aaefb.d906ea",\r
4658     "wires": []\r
4659   },\r
4660   {\r
4661     "id": "5323ec48.960894",\r
4662     "type": "switchNode",\r
4663     "name": "switch provider-id domainA",\r
4664     "xml": "<switch test='`$allNetworksList.network-resource[$netwidx].provider-id == $param-prefix-domainA-pnfName[2]`'>\n",\r
4665     "comments": "",\r
4666     "outputs": 1,\r
4667     "x": 5048,\r
4668     "y": 6268,\r
4669     "z": "211aaefb.d906ea",\r
4670     "wires": [\r
4671       [\r
4672         "de0031e3.730958"\r
4673       ]\r
4674     ]\r
4675   },\r
4676   {\r
4677     "id": "de0031e3.730958",\r
4678     "type": "outcomeTrue",\r
4679     "name": "true",\r
4680     "xml": "<outcome value='true'>\n",\r
4681     "comments": "",\r
4682     "outputs": 1,\r
4683     "x": 5268,\r
4684     "y": 6274,\r
4685     "z": "211aaefb.d906ea",\r
4686     "wires": [\r
4687       [\r
4688         "2707e8d8.7ec9d"\r
4689       ]\r
4690     ]\r
4691   },\r
4692   {\r
4693     "id": "2707e8d8.7ec9d",\r
4694     "type": "switchNode",\r
4695     "name": "switch te-topo-id",\r
4696     "xml": "<switch test='`$allNetworksList.network-resource[$netwidx].te-topo-id != $param-prefix-domainA-pnfName[6]`'>\n",\r
4697     "comments": "",\r
4698     "outputs": 1,\r
4699     "x": 5453,\r
4700     "y": 6273,\r
4701     "z": "211aaefb.d906ea",\r
4702     "wires": [\r
4703       [\r
4704         "37890125.bbe60e"\r
4705       ]\r
4706     ]\r
4707   },\r
4708   {\r
4709     "id": "37890125.bbe60e",\r
4710     "type": "outcomeTrue",\r
4711     "name": "true",\r
4712     "xml": "<outcome value='true'>\n",\r
4713     "comments": "",\r
4714     "outputs": 1,\r
4715     "x": 5645,\r
4716     "y": 6276,\r
4717     "z": "211aaefb.d906ea",\r
4718     "wires": [\r
4719       [\r
4720         "95332efd.102e7"\r
4721       ]\r
4722     ]\r
4723   },\r
4724   {\r
4725     "id": "95332efd.102e7",\r
4726     "type": "set",\r
4727     "name": "set otnTopoIdSrc",\r
4728     "xml": "<set>\n<parameter name='otnTopoIdSrc' value='`$allNetworksList.network-resource[$netwidx].te-topo-id`' />\n",\r
4729     "comments": "",\r
4730     "x": 5854,\r
4731     "y": 6274,\r
4732     "z": "211aaefb.d906ea",\r
4733     "wires": []\r
4734   },\r
4735   {\r
4736     "id": "90f4ba85.137fb",\r
4737     "type": "for",\r
4738     "name": "for netwidx..allNetworksList_length",\r
4739     "xml": "<for index='netwidx' start='0' end='`$allNetworksList.network-resource_length`' >",\r
4740     "comments": "",\r
4741     "outputs": 1,\r
4742     "x": 4755,\r
4743     "y": 6262,\r
4744     "z": "211aaefb.d906ea",\r
4745     "wires": [\r
4746       [\r
4747         "5323ec48.960894"\r
4748       ]\r
4749     ]\r
4750   },\r
4751   {\r
4752     "id": "7c94a6cd.50e738",\r
4753     "type": "get-resource",\r
4754     "name": "get-resource network-resources-list",\r
4755     "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
4756     "comments": "",\r
4757     "outputs": 1,\r
4758     "x": 4763,\r
4759     "y": 6155,\r
4760     "z": "211aaefb.d906ea",\r
4761     "wires": [\r
4762       [\r
4763         "b0864a09.98f318",\r
4764         "a95b7f6b.2686a",\r
4765         "109466fa.601861"\r
4766       ]\r
4767     ]\r
4768   },\r
4769   {\r
4770     "id": "b0864a09.98f318",\r
4771     "type": "success",\r
4772     "name": "success",\r
4773     "xml": "<outcome value='success'>\n",\r
4774     "comments": "",\r
4775     "outputs": 1,\r
4776     "x": 4999,\r
4777     "y": 6138,\r
4778     "z": "211aaefb.d906ea",\r
4779     "wires": [\r
4780       []\r
4781     ]\r
4782   },\r
4783   {\r
4784     "id": "a95b7f6b.2686a",\r
4785     "type": "other",\r
4786     "name": "other",\r
4787     "xml": "<outcome value='Other'>\n",\r
4788     "comments": "",\r
4789     "outputs": 1,\r
4790     "x": 4996,\r
4791     "y": 6179,\r
4792     "z": "211aaefb.d906ea",\r
4793     "wires": [\r
4794       []\r
4795     ]\r
4796   },\r
4797   {\r
4798     "id": "109466fa.601861",\r
4799     "type": "not-found",\r
4800     "name": "not-found",\r
4801     "xml": "<outcome value='not-found'>\n",\r
4802     "comments": "",\r
4803     "outputs": 1,\r
4804     "x": 5010,\r
4805     "y": 6219,\r
4806     "z": "211aaefb.d906ea",\r
4807     "wires": [\r
4808       []\r
4809     ]\r
4810   },\r
4811   {\r
4812     "id": "9f0fa012.5d1bf",\r
4813     "type": "set",\r
4814     "name": "unset parameters",\r
4815     "xml": "<set>\n<parameter name='tmp.pce-src-node.' value='' />\n",\r
4816     "comments": "",\r
4817     "x": 4699,\r
4818     "y": 6314,\r
4819     "z": "211aaefb.d906ea",\r
4820     "wires": []\r
4821   },\r
4822   {\r
4823     "id": "fafaba2.e8268c8",\r
4824     "type": "set",\r
4825     "name": "set tmp.pce-src-node",\r
4826     "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
4827     "comments": "",\r
4828     "x": 4707,\r
4829     "y": 6372,\r
4830     "z": "211aaefb.d906ea",\r
4831     "wires": []\r
4832   },\r
4833   {\r
4834     "id": "87b885a5.5cf0c8",\r
4835     "type": "set",\r
4836     "name": "unset parameters",\r
4837     "xml": "<set>\n<parameter name='allNetworksList.' value='' />\n",\r
4838     "comments": "",\r
4839     "x": 4712,\r
4840     "y": 6112,\r
4841     "z": "211aaefb.d906ea",\r
4842     "wires": []\r
4843   },\r
4844   {\r
4845     "id": "aa72fa33.6435d",\r
4846     "type": "comment",\r
4847     "name": "The following section is to find srcTtp OTN layer (its long name)",\r
4848     "info": "The following section is to find srcTtp OTN layer (its long name)",\r
4849     "comments": "",\r
4850     "x": 4827,\r
4851     "y": 6064,\r
4852     "z": "211aaefb.d906ea",\r
4853     "wires": []\r
4854   },\r
4855   {\r
4856     "id": "d173aa3d.6dc13",\r
4857     "type": "switchNode",\r
4858     "name": "switch ops-note is srcTtpOtnLayer",\r
4859     "xml": "<switch test=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].ops-note == $tmp.srcTtpOtnLayer `\">\n\n",\r
4860     "comments": "",\r
4861     "outputs": 1,\r
4862     "x": 5000,\r
4863     "y": 6909,\r
4864     "z": "211aaefb.d906ea",\r
4865     "wires": [\r
4866       [\r
4867         "cecd58a1.5c073",\r
4868         "a1afbc37.0664b8"\r
4869       ]\r
4870     ]\r
4871   },\r
4872   {\r
4873     "id": "cecd58a1.5c073",\r
4874     "type": "outcomeTrue",\r
4875     "name": "true",\r
4876     "xml": "<outcome value='true'>\n",\r
4877     "comments": "",\r
4878     "outputs": 1,\r
4879     "x": 5229,\r
4880     "y": 6886,\r
4881     "z": "211aaefb.d906ea",\r
4882     "wires": [\r
4883       [\r
4884         "217cc28.e6a45be"\r
4885       ]\r
4886     ]\r
4887   },\r
4888   {\r
4889     "id": "a1afbc37.0664b8",\r
4890     "type": "outcomeFalse",\r
4891     "name": "false",\r
4892     "xml": "<outcome value='false'>\n",\r
4893     "comments": "",\r
4894     "outputs": 1,\r
4895     "x": 5229,\r
4896     "y": 6935,\r
4897     "z": "211aaefb.d906ea",\r
4898     "wires": [\r
4899       []\r
4900     ]\r
4901   },\r
4902   {\r
4903     "id": "217cc28.e6a45be",\r
4904     "type": "block",\r
4905     "name": "block : atomic",\r
4906     "xml": "<block atomic='true'>",\r
4907     "atomic": "true",\r
4908     "comments": "",\r
4909     "outputs": 1,\r
4910     "x": 5390,\r
4911     "y": 6891,\r
4912     "z": "211aaefb.d906ea",\r
4913     "wires": [\r
4914       [\r
4915         "efcdc93a.a5e52",\r
4916         "fdc415c8.6a0598",\r
4917         "1d0e63ee.415bac"\r
4918       ]\r
4919     ]\r
4920   },\r
4921   {\r
4922     "id": "3c8e9462.ad4a14",\r
4923     "type": "comment",\r
4924     "name": "increase the bw of the-vpn-binding and change status to modified",\r
4925     "info": "increase the bw of the-vpn-binding\nchange status to modified\n",\r
4926     "comments": "",\r
4927     "x": 5734,\r
4928     "y": 6871,\r
4929     "z": "211aaefb.d906ea",\r
4930     "wires": []\r
4931   },\r
4932   {\r
4933     "id": "1d0e63ee.415bac",\r
4934     "type": "save",\r
4935     "name": "update vpn-binding otnIdx resource (aka. OTN) in AAI",\r
4936     "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
4937     "comments": "",\r
4938     "outputs": 1,\r
4939     "x": 5704,\r
4940     "y": 6931,\r
4941     "z": "211aaefb.d906ea",\r
4942     "wires": [\r
4943       []\r
4944     ]\r
4945   },\r
4946   {\r
4947     "id": "efcdc93a.a5e52",\r
4948     "type": "set",\r
4949     "name": "unset tmp.aai.the-vpn-binding",\r
4950     "xml": "<set>\n<parameter name='tmp.aai.the-vpn-binding.' value=\"\" />\n",\r
4951     "comments": "",\r
4952     "x": 5611,\r
4953     "y": 6759,\r
4954     "z": "211aaefb.d906ea",\r
4955     "wires": []\r
4956   },\r
4957   {\r
4958     "id": "ff5eb6bb.d3898",\r
4959     "type": "block",\r
4960     "name": "block : atomic",\r
4961     "xml": "<block atomic='true'>",\r
4962     "atomic": "true",\r
4963     "comments": "",\r
4964     "outputs": 1,\r
4965     "x": 3960,\r
4966     "y": 5849,\r
4967     "z": "211aaefb.d906ea",\r
4968     "wires": [\r
4969       [\r
4970         "90b420e2.468d1",\r
4971         "37299dd0.22785a",\r
4972         "606aa5ab.2206bc",\r
4973         "17ac1f1.6d565e1",\r
4974         "8cb093f8.38739"\r
4975       ]\r
4976     ]\r
4977   },\r
4978   {\r
4979     "id": "754638fa.2f5ed",\r
4980     "type": "set",\r
4981     "name": "unset otnTopoIdSrc",\r
4982     "xml": "<set>\n<parameter name='otnTopoIdSrc' value='' />\n",\r
4983     "comments": "",\r
4984     "x": 4704,\r
4985     "y": 6212,\r
4986     "z": "211aaefb.d906ea",\r
4987     "wires": []\r
4988   },\r
4989   {\r
4990     "id": "52c2d3cf.976804",\r
4991     "type": "save",\r
4992     "name": "update connectivity resource in AAI",\r
4993     "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
4994     "comments": "",\r
4995     "outputs": 1,\r
4996     "x": 4850.999755859375,\r
4997     "y": 5934,\r
4998     "z": "211aaefb.d906ea",\r
4999     "wires": [\r
5000       []\r
5001     ]\r
5002   },\r
5003   {\r
5004     "id": "6227c2aa.a1e1a4",\r
5005     "type": "comment",\r
5006     "name": "Update the existing eth-srv by adding the new LEAF UNI into its list of endpoints",\r
5007     "info": "Update the existing eth-srv by adding the new LEAF UNI into its list of endpoints",\r
5008     "comments": "",\r
5009     "x": 4987.999755859375,\r
5010     "y": 5884,\r
5011     "z": "211aaefb.d906ea",\r
5012     "wires": []\r
5013   },\r
5014   {\r
5015     "id": "a387df7d.b7b76",\r
5016     "type": "save",\r
5017     "name": "save ROOT UNI in AAI",\r
5018     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n      key='uni.id = $tmp.ROOT.uni-p-interface-long'>\n<parameter name='id' value='`$tmp.ROOT.uni-p-interface-long`' />\n<parameter name='tp-id' value='`$tmp.ROOT.uni-tp-id`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n<parameter name='data-source' value='`$gfp`' />\n",\r
5019     "comments": "",\r
5020     "outputs": 1,\r
5021     "x": 3795,\r
5022     "y": 3490,\r
5023     "z": "211aaefb.d906ea",\r
5024     "wires": [\r
5025       []\r
5026     ]\r
5027   },\r
5028   {\r
5029     "id": "a7eb3fa1.887168",\r
5030     "type": "comment",\r
5031     "name": "NOT NEEDED ANYMORE?",\r
5032     "info": "",\r
5033     "comments": "",\r
5034     "x": 3977,\r
5035     "y": 1745,\r
5036     "z": "211aaefb.d906ea",\r
5037     "wires": []\r
5038   },\r
5039   {\r
5040     "id": "c5a9fcf9.09d1b",\r
5041     "type": "comment",\r
5042     "name": "NOT NEEDED ANYMORE?",\r
5043     "info": "",\r
5044     "comments": "",\r
5045     "x": 3955,\r
5046     "y": 2615,\r
5047     "z": "211aaefb.d906ea",\r
5048     "wires": []\r
5049   },\r
5050   {\r
5051     "id": "7010bc9b.4157a4",\r
5052     "type": "comment",\r
5053     "name": "TEMPORARY REMOVING THE FOLLOWING TWO NODES",\r
5054     "info": "",\r
5055     "comments": "",\r
5056     "x": 3786,\r
5057     "y": 3957,\r
5058     "z": "211aaefb.d906ea",\r
5059     "wires": []\r
5060   },\r
5061   {\r
5062     "id": "2c9dde75.d2cff2",\r
5063     "type": "call",\r
5064     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-F1-activate",\r
5065     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1-activate' mode='sync' >\n\n",\r
5066     "comments": "",\r
5067     "outputs": 1,\r
5068     "x": 3467,\r
5069     "y": 5989,\r
5070     "z": "211aaefb.d906ea",\r
5071     "wires": [\r
5072       []\r
5073     ]\r
5074   },\r
5075   {\r
5076     "id": "6bdb71eb.cd7da",\r
5077     "type": "set",\r
5078     "name": "set current-provider-id and current-cvlan-id",\r
5079     "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
5080     "comments": "",\r
5081     "x": 3678,\r
5082     "y": 4866,\r
5083     "z": "211aaefb.d906ea",\r
5084     "wires": []\r
5085   },\r
5086   {\r
5087     "id": "5ba113f8.d2a564",\r
5088     "type": "call",\r
5089     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-connectivity",\r
5090     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-connectivity' mode='sync' >\n\n",\r
5091     "comments": "",\r
5092     "outputs": 1,\r
5093     "x": 3811,\r
5094     "y": 4914,\r
5095     "z": "211aaefb.d906ea",\r
5096     "wires": [\r
5097       []\r
5098     ]\r
5099   },\r
5100   {\r
5101     "id": "e80f8be5.03c42",\r
5102     "type": "switchNode",\r
5103     "name": "switch found-connectivity?",\r
5104     "xml": "\n<switch test=\"`$found-connectivity`\">\n\n",\r
5105     "comments": "",\r
5106     "outputs": 1,\r
5107     "x": 4357,\r
5108     "y": 4542,\r
5109     "z": "211aaefb.d906ea",\r
5110     "wires": [\r
5111       [\r
5112         "8d6edd02.689f",\r
5113         "977606e5.20b248"\r
5114       ]\r
5115     ]\r
5116   },\r
5117   {\r
5118     "id": "8d6edd02.689f",\r
5119     "type": "outcomeFalse",\r
5120     "name": "false",\r
5121     "xml": "<outcome value='false'>\n",\r
5122     "comments": "",\r
5123     "outputs": 1,\r
5124     "x": 4550,\r
5125     "y": 4543,\r
5126     "z": "211aaefb.d906ea",\r
5127     "wires": [\r
5128       [\r
5129         "5ee87f24.28a388"\r
5130       ]\r
5131     ]\r
5132   },\r
5133   {\r
5134     "id": "977606e5.20b248",\r
5135     "type": "outcomeTrue",\r
5136     "name": "true",\r
5137     "xml": "<outcome value='true'>\n",\r
5138     "comments": "",\r
5139     "outputs": 1,\r
5140     "x": 4554,\r
5141     "y": 4587,\r
5142     "z": "211aaefb.d906ea",\r
5143     "wires": [\r
5144       [\r
5145         "89bf54cd.2d4a38"\r
5146       ]\r
5147     ]\r
5148   },\r
5149   {\r
5150     "id": "89bf54cd.2d4a38",\r
5151     "type": "block",\r
5152     "name": "block : atomic",\r
5153     "xml": "<block atomic='true'>",\r
5154     "atomic": "true",\r
5155     "comments": "",\r
5156     "outputs": 1,\r
5157     "x": 4693,\r
5158     "y": 4582,\r
5159     "z": "211aaefb.d906ea",\r
5160     "wires": [\r
5161       [\r
5162         "32dd4db5.fb786a",\r
5163         "c09e6974.d8d248",\r
5164         "47355e53.0b694"\r
5165       ]\r
5166     ]\r
5167   },\r
5168   {\r
5169     "id": "5ee87f24.28a388",\r
5170     "type": "block",\r
5171     "name": "block : atomic",\r
5172     "xml": "<block atomic='true'>",\r
5173     "atomic": "true",\r
5174     "comments": "",\r
5175     "outputs": 1,\r
5176     "x": 4693,\r
5177     "y": 4539,\r
5178     "z": "211aaefb.d906ea",\r
5179     "wires": [\r
5180       [\r
5181         "bed8a2a5.609b9",\r
5182         "bbe5119a.b6b9a",\r
5183         "2aa44f99.3f02c8",\r
5184         "53ad7751.2dcd08"\r
5185       ]\r
5186     ]\r
5187   },\r
5188   {\r
5189     "id": "32dd4db5.fb786a",\r
5190     "type": "set",\r
5191     "name": "set prop.connectivity-domainA-uuid",\r
5192     "xml": "<set>\n<parameter name='uuid.connectivity-domainA-uuid' value=\"`$tmp.the-connectivity.connectivity-id`\" />\n\n\n",\r
5193     "comments": "",\r
5194     "x": 5095.000244140625,\r
5195     "y": 4804,\r
5196     "z": "211aaefb.d906ea",\r
5197     "wires": []\r
5198   },\r
5199   {\r
5200     "id": "62f002ed.2a5444",\r
5201     "type": "comment",\r
5202     "name": "populate connectivity-A variable in the context map",\r
5203     "info": "",\r
5204     "comments": "",\r
5205     "x": 5102.000244140625,\r
5206     "y": 4758,\r
5207     "z": "211aaefb.d906ea",\r
5208     "wires": []\r
5209   },\r
5210   {\r
5211     "id": "274ef282.e256ee",\r
5212     "type": "call",\r
5213     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-find-maximum-used-tpn",\r
5214     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-find-maximum-used-tpn' mode='sync' >\n\n",\r
5215     "comments": "",\r
5216     "outputs": 1,\r
5217     "x": 4892,\r
5218     "y": 6537,\r
5219     "z": "211aaefb.d906ea",\r
5220     "wires": [\r
5221       []\r
5222     ]\r
5223   },\r
5224   {\r
5225     "id": "c09e6974.d8d248",\r
5226     "type": "save",\r
5227     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
5228     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $tmp.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
5229     "comments": "",\r
5230     "outputs": 1,\r
5231     "x": 5213.000244140625,\r
5232     "y": 4846,\r
5233     "z": "211aaefb.d906ea",\r
5234     "wires": [\r
5235       []\r
5236     ]\r
5237   },\r
5238   {\r
5239     "id": "3264661d.b6671a",\r
5240     "type": "save",\r
5241     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
5242     "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
5243     "comments": "",\r
5244     "outputs": 1,\r
5245     "x": 5088,\r
5246     "y": 5104,\r
5247     "z": "211aaefb.d906ea",\r
5248     "wires": [\r
5249       []\r
5250     ]\r
5251   },\r
5252   {\r
5253     "id": "7ec54c4d.3b77ec",\r
5254     "type": "comment",\r
5255     "name": "Update ROOT UNI's bw",\r
5256     "info": "",\r
5257     "comments": "",\r
5258     "x": 3642,\r
5259     "y": 4464,\r
5260     "z": "211aaefb.d906ea",\r
5261     "wires": []\r
5262   },\r
5263   {\r
5264     "id": "f9f5a12a.cd0cc",\r
5265     "type": "save",\r
5266     "name": "update ROOT UNI in AAI",\r
5267     "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
5268     "comments": "",\r
5269     "outputs": 1,\r
5270     "x": 3976,\r
5271     "y": 4647,\r
5272     "z": "211aaefb.d906ea",\r
5273     "wires": [\r
5274       []\r
5275     ]\r
5276   },\r
5277   {\r
5278     "id": "536ae5e9.b25a04",\r
5279     "type": "save",\r
5280     "name": "get root uni from aai",\r
5281     "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
5282     "comments": "",\r
5283     "outputs": 1,\r
5284     "x": 3588,\r
5285     "y": 4514,\r
5286     "z": "211aaefb.d906ea",\r
5287     "wires": [\r
5288       [\r
5289         "d61393d.72bde7",\r
5290         "afea424c.c72b88",\r
5291         "48da2e94.b0d678"\r
5292       ]\r
5293     ]\r
5294   },\r
5295   {\r
5296     "id": "afea424c.c72b88",\r
5297     "type": "not-found",\r
5298     "name": "not-found",\r
5299     "xml": "<outcome value='not-found'>\n",\r
5300     "comments": "",\r
5301     "outputs": 1,\r
5302     "x": 3815.490966796875,\r
5303     "y": 4486.573974609375,\r
5304     "z": "211aaefb.d906ea",\r
5305     "wires": [\r
5306       [\r
5307         "74d191cb.7bdf48"\r
5308       ]\r
5309     ]\r
5310   },\r
5311   {\r
5312     "id": "48da2e94.b0d678",\r
5313     "type": "failure",\r
5314     "name": "failure",\r
5315     "xml": "<outcome value='failure'>\n",\r
5316     "comments": "",\r
5317     "outputs": 1,\r
5318     "x": 3811,\r
5319     "y": 4530.999938964844,\r
5320     "z": "211aaefb.d906ea",\r
5321     "wires": [\r
5322       [\r
5323         "d340d8ff.74286"\r
5324       ]\r
5325     ]\r
5326   },\r
5327   {\r
5328     "id": "74d191cb.7bdf48",\r
5329     "type": "returnFailure",\r
5330     "name": "return failure",\r
5331     "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
5332     "comments": "",\r
5333     "x": 3978.0625,\r
5334     "y": 4485.859680175781,\r
5335     "z": "211aaefb.d906ea",\r
5336     "wires": []\r
5337   },\r
5338   {\r
5339     "id": "d340d8ff.74286",\r
5340     "type": "returnFailure",\r
5341     "name": "return failure",\r
5342     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
5343     "comments": "",\r
5344     "x": 3979,\r
5345     "y": 4530.999938964844,\r
5346     "z": "211aaefb.d906ea",\r
5347     "wires": []\r
5348   },\r
5349   {\r
5350     "id": "60eac93d.331ca",\r
5351     "type": "block",\r
5352     "name": "block : atomic",\r
5353     "xml": "<block atomic=\"true\">",\r
5354     "atomic": "true",\r
5355     "outputs": 1,\r
5356     "x": 3764,\r
5357     "y": 4604,\r
5358     "z": "211aaefb.d906ea",\r
5359     "wires": [\r
5360       [\r
5361         "a693b00.ef5e95",\r
5362         "f9f5a12a.cd0cc"\r
5363       ]\r
5364     ]\r
5365   },\r
5366   {\r
5367     "id": "d61393d.72bde7",\r
5368     "type": "success",\r
5369     "name": "success",\r
5370     "xml": "<outcome value='success'>\n",\r
5371     "comments": "",\r
5372     "outputs": 1,\r
5373     "x": 3595,\r
5374     "y": 4604,\r
5375     "z": "211aaefb.d906ea",\r
5376     "wires": [\r
5377       [\r
5378         "60eac93d.331ca"\r
5379       ]\r
5380     ]\r
5381   },\r
5382   {\r
5383     "id": "a693b00.ef5e95",\r
5384     "type": "set",\r
5385     "name": "set new bw",\r
5386     "xml": "<set>\n<parameter name='tmp.newbw' value='`$tmp.aai.rootuni.data-source + $gfp`' />\n",\r
5387     "comments": "",\r
5388     "x": 3953,\r
5389     "y": 4596,\r
5390     "z": "211aaefb.d906ea",\r
5391     "wires": []\r
5392   },\r
5393   {\r
5394     "id": "5c19cae5.23f224",\r
5395     "type": "save",\r
5396     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
5397     "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
5398     "comments": "",\r
5399     "outputs": 1,\r
5400     "x": 3786,\r
5401     "y": 4742,\r
5402     "z": "211aaefb.d906ea",\r
5403     "wires": [\r
5404       []\r
5405     ]\r
5406   },\r
5407   {\r
5408     "id": "a02818b5.44468",\r
5409     "type": "comment",\r
5410     "name": "Temporary skipping this check - to support multiple instances in one slice",\r
5411     "info": "",\r
5412     "comments": "",\r
5413     "x": 5892.88330078125,\r
5414     "y": 6554.88330078125,\r
5415     "z": "211aaefb.d906ea",\r
5416     "wires": []\r
5417   },\r
5418   {\r
5419     "id": "47355e53.0b694",\r
5420     "type": "save",\r
5421     "name": "update connectivity resource in AAI",\r
5422     "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
5423     "comments": "",\r
5424     "outputs": 1,\r
5425     "x": 5092.667236328125,\r
5426     "y": 4942.08349609375,\r
5427     "z": "211aaefb.d906ea",\r
5428     "wires": [\r
5429       []\r
5430     ]\r
5431   },\r
5432   {\r
5433     "id": "be1641a6.50b31",\r
5434     "type": "comment",\r
5435     "name": "Update connectivity status to modified",\r
5436     "info": "",\r
5437     "comments": "",\r
5438     "x": 5094.884033203125,\r
5439     "y": 4901.88330078125,\r
5440     "z": "211aaefb.d906ea",\r
5441     "wires": []\r
5442   },\r
5443   {\r
5444     "id": "cf1a8f36.08af8",\r
5445     "type": "save",\r
5446     "name": "update connectivity resource in AAI",\r
5447     "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
5448     "comments": "",\r
5449     "outputs": 1,\r
5450     "x": 4968.6669921875,\r
5451     "y": 5192.08349609375,\r
5452     "z": "211aaefb.d906ea",\r
5453     "wires": [\r
5454       []\r
5455     ]\r
5456   },\r
5457   {\r
5458     "id": "19ccdaa7.ec1b4d",\r
5459     "type": "comment",\r
5460     "name": "Update connectivity status to modified",\r
5461     "info": "",\r
5462     "comments": "",\r
5463     "x": 4970.8837890625,\r
5464     "y": 5151.88330078125,\r
5465     "z": "211aaefb.d906ea",\r
5466     "wires": []\r
5467   },\r
5468   {\r
5469     "id": "66b615d7.25ca4c",\r
5470     "type": "call",\r
5471     "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-ROOT-conn",\r
5472     "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-ROOT-conn' mode='sync' >\n\n",\r
5473     "comments": "",\r
5474     "outputs": 1,\r
5475     "x": 5063.466796875,\r
5476     "y": 5647.5166015625,\r
5477     "z": "211aaefb.d906ea",\r
5478     "wires": [\r
5479       []\r
5480     ]\r
5481   },\r
5482   {\r
5483     "id": "ea12eeb9.12b1f",\r
5484     "type": "switchNode",\r
5485     "name": "switch found-root-connectivity",\r
5486     "xml": "\n<switch test=\"`$found-root-connectivity`\">\n\n",\r
5487     "comments": "",\r
5488     "outputs": 1,\r
5489     "x": 4890.466796875,\r
5490     "y": 5704.5166015625,\r
5491     "z": "211aaefb.d906ea",\r
5492     "wires": [\r
5493       [\r
5494         "7690697f.9ce41",\r
5495         "27f9c6d9.503242"\r
5496       ]\r
5497     ]\r
5498   },\r
5499   {\r
5500     "id": "7690697f.9ce41",\r
5501     "type": "outcomeTrue",\r
5502     "name": "true",\r
5503     "xml": "<outcome value='true'>\n",\r
5504     "comments": "",\r
5505     "outputs": 1,\r
5506     "x": 5101.466796875,\r
5507     "y": 5704.5166015625,\r
5508     "z": "211aaefb.d906ea",\r
5509     "wires": [\r
5510       [\r
5511         "714a5cc9.4d7a1c"\r
5512       ]\r
5513     ]\r
5514   },\r
5515   {\r
5516     "id": "27f9c6d9.503242",\r
5517     "type": "outcomeFalse",\r
5518     "name": "false",\r
5519     "xml": "<outcome value='false'>\n",\r
5520     "comments": "",\r
5521     "outputs": 1,\r
5522     "x": 5097.466796875,\r
5523     "y": 5752.5166015625,\r
5524     "z": "211aaefb.d906ea",\r
5525     "wires": [\r
5526       [\r
5527         "b6a962d8.a724e8"\r
5528       ]\r
5529     ]\r
5530   },\r
5531   {\r
5532     "id": "714a5cc9.4d7a1c",\r
5533     "type": "block",\r
5534     "name": "block : atomic",\r
5535     "xml": "<block atomic='true'>",\r
5536     "atomic": "true",\r
5537     "comments": "",\r
5538     "outputs": 1,\r
5539     "x": 5257.466796875,\r
5540     "y": 5700.5166015625,\r
5541     "z": "211aaefb.d906ea",\r
5542     "wires": [\r
5543       [\r
5544         "1ac18bef.6e71e4",\r
5545         "b2d3bd46.bdd318",\r
5546         "7d68f1ff.1c9d18"\r
5547       ]\r
5548     ]\r
5549   },\r
5550   {\r
5551     "id": "b6a962d8.a724e8",\r
5552     "type": "returnFailure",\r
5553     "name": "return failure",\r
5554     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='Root Connectivity was not found' />\n",\r
5555     "comments": "",\r
5556     "x": 5245.466796875,\r
5557     "y": 5747.5166015625,\r
5558     "z": "211aaefb.d906ea",\r
5559     "wires": []\r
5560   },\r
5561   {\r
5562     "id": "a02cbc6f.9fe0b8",\r
5563     "type": "comment",\r
5564     "name": "Update connectivity status to modified",\r
5565     "info": "",\r
5566     "comments": "",\r
5567     "x": 5523.3505859375,\r
5568     "y": 5800.39990234375,\r
5569     "z": "211aaefb.d906ea",\r
5570     "wires": []\r
5571   },\r
5572   {\r
5573     "id": "7d68f1ff.1c9d18",\r
5574     "type": "save",\r
5575     "name": "update connectivity resource in AAI",\r
5576     "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
5577     "comments": "",\r
5578     "outputs": 1,\r
5579     "x": 5521.1337890625,\r
5580     "y": 5840.60009765625,\r
5581     "z": "211aaefb.d906ea",\r
5582     "wires": [\r
5583       []\r
5584     ]\r
5585   },\r
5586   {\r
5587     "id": "b2d3bd46.bdd318",\r
5588     "type": "save",\r
5589     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
5590     "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
5591     "comments": "",\r
5592     "outputs": 1,\r
5593     "x": 5640.466796875,\r
5594     "y": 5752.5166015625,\r
5595     "z": "211aaefb.d906ea",\r
5596     "wires": [\r
5597       []\r
5598     ]\r
5599   },\r
5600   {\r
5601     "id": "1ac18bef.6e71e4",\r
5602     "type": "set",\r
5603     "name": "set prop.connectivity-domainB-uuid",\r
5604     "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
5605     "comments": "",\r
5606     "x": 5511.466796875,\r
5607     "y": 5700.5166015625,\r
5608     "z": "211aaefb.d906ea",\r
5609     "wires": []\r
5610   },\r
5611   {\r
5612     "id": "a899461.9a784b8",\r
5613     "type": "comment",\r
5614     "name": "populate connectivity-B variable in the context map",\r
5615     "info": "",\r
5616     "comments": "",\r
5617     "x": 4952.466796875,\r
5618     "y": 5605.5166015625,\r
5619     "z": "211aaefb.d906ea",\r
5620     "wires": []\r
5621   },\r
5622   {\r
5623     "id": "eba4a386.8ade58",\r
5624     "type": "block",\r
5625     "name": "block",\r
5626     "xml": "<block>\n",\r
5627     "atomic": "false",\r
5628     "comments": "",\r
5629     "outputs": 1,\r
5630     "x": 4659.7998046875,\r
5631     "y": 5687.5166015625,\r
5632     "z": "211aaefb.d906ea",\r
5633     "wires": [\r
5634       [\r
5635         "66b615d7.25ca4c",\r
5636         "ea12eeb9.12b1f"\r
5637       ]\r
5638     ]\r
5639   },\r
5640   {\r
5641     "id": "91ff8ca0.2410d8",\r
5642     "type": "save",\r
5643     "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
5644     "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
5645     "comments": "",\r
5646     "outputs": 1,\r
5647     "x": 4980.832763671875,\r
5648     "y": 5989.2001953125,\r
5649     "z": "211aaefb.d906ea",\r
5650     "wires": [\r
5651       []\r
5652     ]\r
5653   }\r
5654 ]