Adding DGs to support Transport Slicing operations.
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / trans_slicing / GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.json
1 [\r
2     {\r
3         "id": "c7ab28db.5fa9f8",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 108,\r
8         "y": 69,\r
9         "z": "5b68e0d.bd97b2",\r
10         "wires": [\r
11             [\r
12                 "b4f2bafa.fe95a"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "b4f2bafa.fe95a",\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": 392.2856903076172,\r
26         "y": 130.23810863494873,\r
27         "z": "5b68e0d.bd97b2",\r
28         "wires": [\r
29             [\r
30                 "5dd33274.e7d4cc"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "5dd33274.e7d4cc",\r
36         "type": "method",\r
37         "name": "method tsli-vnf-topology-operation-trans-slice-allocate",\r
38         "xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-allocate' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 398.42860412597656,\r
42         "y": 215.00003051757812,\r
43         "z": "5b68e0d.bd97b2",\r
44         "wires": [\r
45             [\r
46                 "28d22516.fc87aa"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "28d22516.fc87aa",\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": 768.238037109375,\r
58         "y": 239.66668701171875,\r
59         "z": "5b68e0d.bd97b2",\r
60         "wires": [\r
61             [\r
62                 "7c0b6069.496758",\r
63                 "11269eb9.b73d59",\r
64                 "b98a68a9.509cb8",\r
65                 "18445def.73c80a",\r
66                 "703f0f3.2526ff",\r
67                 "d4cb43.708284c",\r
68                 "9006694b.0db0e8",\r
69                 "e3c7ee55.46e6f8",\r
70                 "efeb4f56.d9cc7",\r
71                 "4948ae3d.2fb728",\r
72                 "e0ae06d.cc68bf8",\r
73                 "fd6957d.13c0a28",\r
74                 "8c69784a.6fe62",\r
75                 "e181a758.620248"\r
76             ]\r
77         ]\r
78     },\r
79     {\r
80         "id": "11269eb9.b73d59",\r
81         "type": "set",\r
82         "name": "set vnf-level-oper-status to Created",\r
83         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='Created' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n",\r
84         "comments": "",\r
85         "x": 1190.3848495483398,\r
86         "y": 603.6706197531894,\r
87         "z": "5b68e0d.bd97b2",\r
88         "wires": []\r
89     },\r
90     {\r
91         "id": "7c0b6069.496758",\r
92         "type": "set",\r
93         "name": "copy input data to service data",\r
94         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id' value='`$prop.vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.' value='$vnf-topology-operation-input.vnf-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.' value='$vnf-topology-operation-input.vnf-request-input.' />\n\n",\r
95         "comments": "",\r
96         "x": 1182.238037109375,\r
97         "y": 498.6668718131259,\r
98         "z": "5b68e0d.bd97b2",\r
99         "wires": []\r
100     },\r
101     {\r
102         "id": "703f0f3.2526ff",\r
103         "type": "execute",\r
104         "name": "execute generate-vnf-index",\r
105         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vnf-id\"/>\n",\r
106         "comments": "",\r
107         "outputs": 1,\r
108         "x": 1170.5715408325195,\r
109         "y": 448.3334558280185,\r
110         "z": "5b68e0d.bd97b2",\r
111         "wires": [\r
112             []\r
113         ]\r
114     },\r
115     {\r
116         "id": "4948ae3d.2fb728",\r
117         "type": "set",\r
118         "name": "set vnf-index to service data",\r
119         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.vnf-id' value='`$prop.vnf-id`' />\n",\r
120         "comments": "",\r
121         "x": 1181.5716171264648,\r
122         "y": 555.3334596427158,\r
123         "z": "5b68e0d.bd97b2",\r
124         "wires": []\r
125     },\r
126     {\r
127         "id": "b98a68a9.509cb8",\r
128         "type": "switchNode",\r
129         "name": "switch service-data.vnfs.vnf_length",\r
130         "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
131         "comments": "",\r
132         "outputs": 1,\r
133         "x": 1197.5713577270508,\r
134         "y": 118.33337858039886,\r
135         "z": "5b68e0d.bd97b2",\r
136         "wires": [\r
137             [\r
138                 "45cce5a8.451aac",\r
139                 "48e9b931.dabab8"\r
140             ]\r
141         ]\r
142     },\r
143     {\r
144         "id": "45cce5a8.451aac",\r
145         "type": "other",\r
146         "name": "NULL",\r
147         "xml": "<outcome value=''>\n",\r
148         "comments": "",\r
149         "outputs": 1,\r
150         "x": 1432.285743713379,\r
151         "y": 113.47619893867522,\r
152         "z": "5b68e0d.bd97b2",\r
153         "wires": [\r
154             [\r
155                 "6299edd9.775e24"\r
156             ]\r
157         ]\r
158     },\r
159     {\r
160         "id": "6299edd9.775e24",\r
161         "type": "set",\r
162         "name": "set vnf-index=0",\r
163         "xml": "<set>\n<parameter name='vnf-index' value='0' />\n",\r
164         "comments": "",\r
165         "x": 1592.5714492797852,\r
166         "y": 113.4762904914096,\r
167         "z": "5b68e0d.bd97b2",\r
168         "wires": []\r
169     },\r
170     {\r
171         "id": "48e9b931.dabab8",\r
172         "type": "other",\r
173         "name": "other",\r
174         "xml": "<outcome value='Other'>\n",\r
175         "comments": "",\r
176         "outputs": 1,\r
177         "x": 1428.714282989502,\r
178         "y": 146.76203039009124,\r
179         "z": "5b68e0d.bd97b2",\r
180         "wires": [\r
181             [\r
182                 "777ae1e9.6bbca"\r
183             ]\r
184         ]\r
185     },\r
186     {\r
187         "id": "6abef48d.2c4e6c",\r
188         "type": "set",\r
189         "name": "set vnf-index = vnf_length",\r
190         "xml": "<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n",\r
191         "comments": "",\r
192         "x": 1821.5715255737305,\r
193         "y": 125.04775598365813,\r
194         "z": "5b68e0d.bd97b2",\r
195         "wires": []\r
196     },\r
197     {\r
198         "id": "8a52abb7.25d258",\r
199         "type": "for",\r
200         "name": "for each existing VNF",\r
201         "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
202         "comments": "",\r
203         "outputs": 1,\r
204         "x": 1810.000144958496,\r
205         "y": 160.0477278502658,\r
206         "z": "5b68e0d.bd97b2",\r
207         "wires": [\r
208             [\r
209                 "1ea03c6.7395dc4"\r
210             ]\r
211         ]\r
212     },\r
213     {\r
214         "id": "777ae1e9.6bbca",\r
215         "type": "block",\r
216         "name": "block",\r
217         "xml": "<block>\n",\r
218         "atomic": "false",\r
219         "comments": "",\r
220         "outputs": 1,\r
221         "x": 1563.428565979004,\r
222         "y": 148.76199987251312,\r
223         "z": "5b68e0d.bd97b2",\r
224         "wires": [\r
225             [\r
226                 "6abef48d.2c4e6c",\r
227                 "8a52abb7.25d258"\r
228             ]\r
229         ]\r
230     },\r
231     {\r
232         "id": "1ea03c6.7395dc4",\r
233         "type": "switchNode",\r
234         "name": "switch vnf-information.vnf-id == service-data.vnfs.vnf[].vnf-id",\r
235         "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>\n",\r
236         "comments": "",\r
237         "outputs": 1,\r
238         "x": 2203.2858810424805,\r
239         "y": 160.6192119391635,\r
240         "z": "5b68e0d.bd97b2",\r
241         "wires": [\r
242             [\r
243                 "95d50976.54cf58"\r
244             ]\r
245         ]\r
246     },\r
247     {\r
248         "id": "95d50976.54cf58",\r
249         "type": "outcomeTrue",\r
250         "name": "true",\r
251         "xml": "<outcome value='true'>\n",\r
252         "comments": "",\r
253         "outputs": 1,\r
254         "x": 2484.5715827941895,\r
255         "y": 159.1906173499301,\r
256         "z": "5b68e0d.bd97b2",\r
257         "wires": [\r
258             [\r
259                 "19c5d87f.a3e7b"\r
260             ]\r
261         ]\r
262     },\r
263     {\r
264         "id": "78e378bf.79cf5",\r
265         "type": "comment",\r
266         "name": "make sure this vnf-id doesn't exist already",\r
267         "info": "",\r
268         "comments": "",\r
269         "x": 2172.428497314453,\r
270         "y": 124.19060399848968,\r
271         "z": "5b68e0d.bd97b2",\r
272         "wires": []\r
273     },\r
274     {\r
275         "id": "18445def.73c80a",\r
276         "type": "set",\r
277         "name": "set new vnf_length",\r
278         "xml": "<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\n",\r
279         "comments": "",\r
280         "x": 1128.571533203125,\r
281         "y": 396.33343505859375,\r
282         "z": "5b68e0d.bd97b2",\r
283         "wires": []\r
284     },\r
285     {\r
286         "id": "d4cb43.708284c",\r
287         "type": "returnSuccess",\r
288         "name": "return success",\r
289         "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
290         "comments": "",\r
291         "x": 1124.571533203125,\r
292         "y": 1344.5969848632812,\r
293         "z": "5b68e0d.bd97b2",\r
294         "wires": []\r
295     },\r
296     {\r
297         "id": "efeb4f56.d9cc7",\r
298         "type": "save",\r
299         "name": "save service relationship in AAI",\r
300         "xml": "<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.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      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"generic-vnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/generic-vnfs/generic-vnf/' + $prop.vnf-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"generic-vnf.vnf-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vnf-id`\" />\n\n\n<!--key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--key='service-instance.service-instance-id = $service-data.service-instance-id -->\n",\r
301         "comments": "",\r
302         "outputs": 1,\r
303         "x": 1162.2382736206055,\r
304         "y": 815.5968644889072,\r
305         "z": "5b68e0d.bd97b2",\r
306         "wires": [\r
307             []\r
308         ]\r
309     },\r
310     {\r
311         "id": "9006694b.0db0e8",\r
312         "type": "set",\r
313         "name": "set vnf-index and vnf-object-path",\r
314         "xml": "<set>\n<parameter name='vnfId' value='`$prop.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $prop.vnf-id  + '/vnf-data/'` \" />",\r
315         "comments": "",\r
316         "x": 1183.571533203125,\r
317         "y": 644.5968902381137,\r
318         "z": "5b68e0d.bd97b2",\r
319         "wires": []\r
320     },\r
321     {\r
322         "id": "19c5d87f.a3e7b",\r
323         "type": "returnFailure",\r
324         "name": "return failure",\r
325         "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=\"`'VNF id ' + $service-data.vnfs.vnf[$idx].vnf-id\n      + ' already exists, and has order status ' + $service-data.vnfs.vnf[$idx].vnf-data.vnf-level-oper-status.order-status`\" />\n",\r
326         "comments": "",\r
327         "x": 2613.142951965332,\r
328         "y": 210.19063165504485,\r
329         "z": "5b68e0d.bd97b2",\r
330         "wires": []\r
331     },\r
332     {\r
333         "id": "e3c7ee55.46e6f8",\r
334         "type": "save",\r
335         "name": "save AnAI - vnf-instance.orchestration-status",\r
336         "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\"   \n\t\tkey='generic-vnf.vnf-id = $prop.vnf-id' >\n<parameter name=\"orchestration-status\" value=\"Created\" />\n<parameter name=\"in-maint\" value = \"true\" />\n<parameter name=\"vnf-type\" value='`$prop.vnfName`' />\n<parameter name=\"vnf-name\" value = \"`$prop.vnfName`\"/>\n<parameter name=\"model-invariant-id\" value = \"`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`\"/>\n<parameter name=\"model-version-id\" value = \"`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`\"/>\n<parameter name=\"model-customization-id\" value = \"`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`\"/>",\r
337         "comments": "",\r
338         "outputs": 1,\r
339         "x": 1238.5458374023438,\r
340         "y": 754.2471072943881,\r
341         "z": "5b68e0d.bd97b2",\r
342         "wires": [\r
343             []\r
344         ]\r
345     },\r
346     {\r
347         "id": "8b2c577f.aa706",\r
348         "type": "comment",\r
349         "name": "TODO: change AAI models",\r
350         "info": "",\r
351         "comments": "",\r
352         "x": 1172.1820983886719,\r
353         "y": 713.9743230612949,\r
354         "z": "5b68e0d.bd97b2",\r
355         "wires": []\r
356     },\r
357     {\r
358         "id": "d58f334a.ba5338",\r
359         "type": "execute",\r
360         "name": "execute split parameterName",\r
361         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n",\r
362         "comments": "",\r
363         "outputs": 1,\r
364         "x": 1598.7395858764648,\r
365         "y": 207.75002291519195,\r
366         "z": "5b68e0d.bd97b2",\r
367         "wires": [\r
368             []\r
369         ]\r
370     },\r
371     {\r
372         "id": "889ccd2d.4a8fe8",\r
373         "type": "block",\r
374         "name": "block",\r
375         "xml": "<block>\n",\r
376         "atomic": "false",\r
377         "comments": "",\r
378         "outputs": 1,\r
379         "x": 1402.483383178711,\r
380         "y": 212.00189593154937,\r
381         "z": "5b68e0d.bd97b2",\r
382         "wires": [\r
383             [\r
384                 "d58f334a.ba5338",\r
385                 "e9083033.2291c8"\r
386             ]\r
387         ]\r
388     },\r
389     {\r
390         "id": "e0ae06d.cc68bf8",\r
391         "type": "for",\r
392         "name": "for loop idx - VNF input parameters",\r
393         "xml": "<for index=\"idx\" start=\"0\" end=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`\">\n",\r
394         "comments": "",\r
395         "outputs": 1,\r
396         "x": 1187.7050399780273,\r
397         "y": 214.44631197769195,\r
398         "z": "5b68e0d.bd97b2",\r
399         "wires": [\r
400             [\r
401                 "889ccd2d.4a8fe8"\r
402             ]\r
403         ]\r
404     },\r
405     {\r
406         "id": "fd6957d.13c0a28",\r
407         "type": "set",\r
408         "name": "set vnf-request-input.",\r
409         "xml": "<set>\n<parameter name='vnf-request-input.' value='`$vnf-topology-operation-input.vnf-request-input.`' />\n",\r
410         "comments": "",\r
411         "x": 1144.7046737670898,\r
412         "y": 284.77101900894195,\r
413         "z": "5b68e0d.bd97b2",\r
414         "wires": []\r
415     },\r
416     {\r
417         "id": "e9083033.2291c8",\r
418         "type": "set",\r
419         "name": "set parameterName",\r
420         "xml": "<set>\n<parameter name=\"`vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n",\r
421         "comments": "",\r
422         "x": 1575.7395858764648,\r
423         "y": 253.75002291519195,\r
424         "z": "5b68e0d.bd97b2",\r
425         "wires": []\r
426     },\r
427     {\r
428         "id": "8c69784a.6fe62",\r
429         "type": "for",\r
430         "name": "for each sdwan-get-request-input-param",\r
431         "xml": "<for index=\"idx\" start=\"0\" end=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`\">\n",\r
432         "comments": "",\r
433         "outputs": 1,\r
434         "x": 1200.7395858764648,\r
435         "y": 336.75002291519195,\r
436         "z": "5b68e0d.bd97b2",\r
437         "wires": [\r
438             [\r
439                 "ab7df566.3e05d"\r
440             ]\r
441         ]\r
442     },\r
443     {\r
444         "id": "ab7df566.3e05d",\r
445         "type": "block",\r
446         "name": "block",\r
447         "xml": "<block>\n",\r
448         "atomic": "false",\r
449         "comments": "",\r
450         "outputs": 1,\r
451         "x": 1426.9722518920898,\r
452         "y": 335.09377291519195,\r
453         "z": "5b68e0d.bd97b2",\r
454         "wires": [\r
455             [\r
456                 "352dca87.707f0e"\r
457             ]\r
458         ]\r
459     },\r
460     {\r
461         "id": "352dca87.707f0e",\r
462         "type": "switchNode",\r
463         "name": "switch vnf name",\r
464         "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'name'`\">\n",\r
465         "comments": "",\r
466         "outputs": 1,\r
467         "x": 1583.4722518920898,\r
468         "y": 333.0938339503482,\r
469         "z": "5b68e0d.bd97b2",\r
470         "wires": [\r
471             [\r
472                 "590b3579.cf8c54"\r
473             ]\r
474         ]\r
475     },\r
476     {\r
477         "id": "590b3579.cf8c54",\r
478         "type": "outcomeTrue",\r
479         "name": "true",\r
480         "xml": "<outcome value='true'>\n",\r
481         "comments": "",\r
482         "outputs": 1,\r
483         "x": 1744.4726181030273,\r
484         "y": 333.09389498550445,\r
485         "z": "5b68e0d.bd97b2",\r
486         "wires": [\r
487             [\r
488                 "63083064.a23a18"\r
489             ]\r
490         ]\r
491     },\r
492     {\r
493         "id": "63083064.a23a18",\r
494         "type": "set",\r
495         "name": "set vnf name",\r
496         "xml": "<set>\n<parameter name='prop.vnfName' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",\r
497         "comments": "",\r
498         "x": 1902.4727401733398,\r
499         "y": 331.6939316065982,\r
500         "z": "5b68e0d.bd97b2",\r
501         "wires": []\r
502     },\r
503     {\r
504         "id": "e181a758.620248",\r
505         "type": "save",\r
506         "name": "get service-instance from aai",\r
507         "xml": "<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
508         "comments": "",\r
509         "outputs": 1,\r
510         "x": 1155,\r
511         "y": 940,\r
512         "z": "5b68e0d.bd97b2",\r
513         "wires": [\r
514             [\r
515                 "5d430eb5.2b236",\r
516                 "4db06806.f53418",\r
517                 "95ae5b5a.c22a4"\r
518             ]\r
519         ]\r
520     },\r
521     {\r
522         "id": "5d430eb5.2b236",\r
523         "type": "success",\r
524         "name": "success",\r
525         "xml": "<outcome value='success'>\n",\r
526         "comments": "",\r
527         "outputs": 1,\r
528         "x": 1371,\r
529         "y": 905,\r
530         "z": "5b68e0d.bd97b2",\r
531         "wires": [\r
532             [\r
533                 "53896828.686ee8"\r
534             ]\r
535         ]\r
536     },\r
537     {\r
538         "id": "4db06806.f53418",\r
539         "type": "not-found",\r
540         "name": "not-found",\r
541         "xml": "<outcome value='not-found'>\n",\r
542         "comments": "",\r
543         "outputs": 1,\r
544         "x": 1380.490966796875,\r
545         "y": 947.5740356445312,\r
546         "z": "5b68e0d.bd97b2",\r
547         "wires": [\r
548             [\r
549                 "2be30b71.aee02c"\r
550             ]\r
551         ]\r
552     },\r
553     {\r
554         "id": "95ae5b5a.c22a4",\r
555         "type": "failure",\r
556         "name": "failure",\r
557         "xml": "<outcome value='failure'>\n",\r
558         "comments": "",\r
559         "outputs": 1,\r
560         "x": 1369,\r
561         "y": 994,\r
562         "z": "5b68e0d.bd97b2",\r
563         "wires": [\r
564             [\r
565                 "ecad310e.0677"\r
566             ]\r
567         ]\r
568     },\r
569     {\r
570         "id": "53896828.686ee8",\r
571         "type": "switchNode",\r
572         "name": "switch allotted-resources_length != 0",\r
573         "xml": "<switch test='`$tmp.aai.service-instance.allotted-resources_length != 0`'>\n",\r
574         "comments": "",\r
575         "outputs": 1,\r
576         "x": 1610,\r
577         "y": 902,\r
578         "z": "5b68e0d.bd97b2",\r
579         "wires": [\r
580             [\r
581                 "a4b1136f.62ed08",\r
582                 "46b85697.e69b9"\r
583             ]\r
584         ]\r
585     },\r
586     {\r
587         "id": "2be30b71.aee02c",\r
588         "type": "returnFailure",\r
589         "name": "return failure",\r
590         "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
591         "comments": "",\r
592         "x": 1534.0623779296875,\r
593         "y": 950.8597717285156,\r
594         "z": "5b68e0d.bd97b2",\r
595         "wires": []\r
596     },\r
597     {\r
598         "id": "ecad310e.0677",\r
599         "type": "returnFailure",\r
600         "name": "return failure",\r
601         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
602         "comments": "",\r
603         "x": 1538,\r
604         "y": 995,\r
605         "z": "5b68e0d.bd97b2",\r
606         "wires": []\r
607     },\r
608     {\r
609         "id": "a019135.4f8ccf",\r
610         "type": "set",\r
611         "name": "set the 1st allotted-resource-id",\r
612         "xml": "<set>\n<parameter name='allotted-resource-id' value=\"`$tmp.aai.service-instance.allotted-resources[0]`\" />\n\n\n",\r
613         "comments": "",\r
614         "x": 2009,\r
615         "y": 969,\r
616         "z": "5b68e0d.bd97b2",\r
617         "wires": []\r
618     },\r
619     {\r
620         "id": "a4b1136f.62ed08",\r
621         "type": "outcomeTrue",\r
622         "name": "true",\r
623         "xml": "<outcome value='true'>\n",\r
624         "comments": "",\r
625         "outputs": 1,\r
626         "x": 1823,\r
627         "y": 926,\r
628         "z": "5b68e0d.bd97b2",\r
629         "wires": [\r
630             [\r
631                 "cb1b8f06.47ef2"\r
632             ]\r
633         ]\r
634     },\r
635     {\r
636         "id": "46b85697.e69b9",\r
637         "type": "outcomeFalse",\r
638         "name": "false",\r
639         "xml": "<outcome value='false'>\n",\r
640         "comments": "",\r
641         "outputs": 1,\r
642         "x": 1825,\r
643         "y": 866,\r
644         "z": "5b68e0d.bd97b2",\r
645         "wires": [\r
646             []\r
647         ]\r
648     },\r
649     {\r
650         "id": "67d7c08a.0b2928",\r
651         "type": "comment",\r
652         "name": "new for TransportSlicing",\r
653         "info": "",\r
654         "comments": "",\r
655         "x": 1144,\r
656         "y": 890,\r
657         "z": "5b68e0d.bd97b2",\r
658         "wires": []\r
659     },\r
660     {\r
661         "id": "457beb03.a98104",\r
662         "type": "switchNode",\r
663         "name": "switch logical-links_length != 0",\r
664         "xml": "<switch test='`$tmp.aai.allotted-resource.logical-links_length != 0`'>\n",\r
665         "comments": "",\r
666         "outputs": 1,\r
667         "x": 1270,\r
668         "y": 1266,\r
669         "z": "5b68e0d.bd97b2",\r
670         "wires": [\r
671             [\r
672                 "643d2cea.4605b4",\r
673                 "7caeb522.7a961c"\r
674             ]\r
675         ]\r
676     },\r
677     {\r
678         "id": "643d2cea.4605b4",\r
679         "type": "outcomeTrue",\r
680         "name": "true",\r
681         "xml": "<outcome value='true'>\n",\r
682         "comments": "",\r
683         "outputs": 1,\r
684         "x": 1464,\r
685         "y": 1400,\r
686         "z": "5b68e0d.bd97b2",\r
687         "wires": [\r
688             [\r
689                 "152d2d7d.5e3893"\r
690             ]\r
691         ]\r
692     },\r
693     {\r
694         "id": "7caeb522.7a961c",\r
695         "type": "outcomeFalse",\r
696         "name": "false",\r
697         "xml": "<outcome value='false'>\n",\r
698         "comments": "",\r
699         "outputs": 1,\r
700         "x": 1467,\r
701         "y": 1354,\r
702         "z": "5b68e0d.bd97b2",\r
703         "wires": [\r
704             []\r
705         ]\r
706     },\r
707     {\r
708         "id": "814386d7.12d29",\r
709         "type": "set",\r
710         "name": "set the 1st logical-link-name",\r
711         "xml": "<set>\n<parameter name='logical-link-name' value=\"`$tmp.aai.allotted-resource.logical-links[0]`\" />\n\n\n",\r
712         "comments": "",\r
713         "x": 1804,\r
714         "y": 1372,\r
715         "z": "5b68e0d.bd97b2",\r
716         "wires": []\r
717     },\r
718     {\r
719         "id": "cb1b8f06.47ef2",\r
720         "type": "block",\r
721         "name": "block",\r
722         "xml": "<block>\n",\r
723         "atomic": "false",\r
724         "comments": "",\r
725         "outputs": 1,\r
726         "x": 1808,\r
727         "y": 1014,\r
728         "z": "5b68e0d.bd97b2",\r
729         "wires": [\r
730             [\r
731                 "a019135.4f8ccf",\r
732                 "e575462e.50d5b"\r
733             ]\r
734         ]\r
735     },\r
736     {\r
737         "id": "152d2d7d.5e3893",\r
738         "type": "block",\r
739         "name": "block",\r
740         "xml": "<block>\n",\r
741         "atomic": "false",\r
742         "comments": "",\r
743         "outputs": 1,\r
744         "x": 1595,\r
745         "y": 1405,\r
746         "z": "5b68e0d.bd97b2",\r
747         "wires": [\r
748             [\r
749                 "814386d7.12d29",\r
750                 "fecafec9.0d1c5"\r
751             ]\r
752         ]\r
753     },\r
754     {\r
755         "id": "67195ddd.58b94c",\r
756         "type": "set",\r
757         "name": "set EndpointA",\r
758         "xml": "<set>\n<parameter name='endpointA' value=\"`$tmp.aai.logical-link.name`\" />\n\n\n",\r
759         "comments": "",\r
760         "x": 2350,\r
761         "y": 1468,\r
762         "z": "5b68e0d.bd97b2",\r
763         "wires": []\r
764     },\r
765     {\r
766         "id": "3cb07e0e.1a73c2",\r
767         "type": "set",\r
768         "name": "set EndpointB",\r
769         "xml": "<set>\n<parameter name='endpointB' value=\"`$tmp.aai.logical-link.name2`\" />\n\n\n",\r
770         "comments": "",\r
771         "x": 2351,\r
772         "y": 1515,\r
773         "z": "5b68e0d.bd97b2",\r
774         "wires": []\r
775     },\r
776     {\r
777         "id": "e575462e.50d5b",\r
778         "type": "save",\r
779         "name": "get allotted-resource from aai",\r
780         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"allotted-resource\"\n\tkey='allotted-resource.id = $allotted-resource-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">",\r
781         "comments": "",\r
782         "outputs": 1,\r
783         "x": 2012,\r
784         "y": 1044,\r
785         "z": "5b68e0d.bd97b2",\r
786         "wires": [\r
787             [\r
788                 "9038c1c3.67b67",\r
789                 "d5fe3cc1.f1ab58",\r
790                 "3a3c5476.f230dc"\r
791             ]\r
792         ]\r
793     },\r
794     {\r
795         "id": "9038c1c3.67b67",\r
796         "type": "success",\r
797         "name": "success",\r
798         "xml": "<outcome value='success'>\n",\r
799         "comments": "",\r
800         "outputs": 1,\r
801         "x": 2228,\r
802         "y": 1111,\r
803         "z": "5b68e0d.bd97b2",\r
804         "wires": [\r
805             [\r
806                 "457beb03.a98104"\r
807             ]\r
808         ]\r
809     },\r
810     {\r
811         "id": "d5fe3cc1.f1ab58",\r
812         "type": "not-found",\r
813         "name": "not-found",\r
814         "xml": "<outcome value='not-found'>\n",\r
815         "comments": "",\r
816         "outputs": 1,\r
817         "x": 2228.490966796875,\r
818         "y": 1010.573974609375,\r
819         "z": "5b68e0d.bd97b2",\r
820         "wires": [\r
821             [\r
822                 "d1ddfc7b.e8b11"\r
823             ]\r
824         ]\r
825     },\r
826     {\r
827         "id": "3a3c5476.f230dc",\r
828         "type": "failure",\r
829         "name": "failure",\r
830         "xml": "<outcome value='failure'>\n",\r
831         "comments": "",\r
832         "outputs": 1,\r
833         "x": 2224,\r
834         "y": 1060,\r
835         "z": "5b68e0d.bd97b2",\r
836         "wires": [\r
837             [\r
838                 "5d76fda0.b3386c"\r
839             ]\r
840         ]\r
841     },\r
842     {\r
843         "id": "d1ddfc7b.e8b11",\r
844         "type": "returnFailure",\r
845         "name": "return failure",\r
846         "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
847         "comments": "",\r
848         "x": 2377.0625,\r
849         "y": 1009.8597412109375,\r
850         "z": "5b68e0d.bd97b2",\r
851         "wires": []\r
852     },\r
853     {\r
854         "id": "5d76fda0.b3386c",\r
855         "type": "returnFailure",\r
856         "name": "return failure",\r
857         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
858         "comments": "",\r
859         "x": 2367,\r
860         "y": 1060,\r
861         "z": "5b68e0d.bd97b2",\r
862         "wires": []\r
863     },\r
864     {\r
865         "id": "9b0fc370.e7b168",\r
866         "type": "comment",\r
867         "name": "Question?",\r
868         "info": "Can we assume ....logical-links[0] would have \nthe whole object or it is only a pointer to \nlogical-link name in AAI?\nIf only name, then we have to retrieve it from \nAAI",\r
869         "comments": "",\r
870         "x": 1837,\r
871         "y": 1325,\r
872         "z": "5b68e0d.bd97b2",\r
873         "wires": []\r
874     },\r
875     {\r
876         "id": "fecafec9.0d1c5",\r
877         "type": "save",\r
878         "name": "get logical-link from aai",\r
879         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\"\n\tkey='logical-link.name = $logical-link-name'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.logical-link\">",\r
880         "comments": "",\r
881         "outputs": 1,\r
882         "x": 1791,\r
883         "y": 1444,\r
884         "z": "5b68e0d.bd97b2",\r
885         "wires": [\r
886             [\r
887                 "c3decf76.de238",\r
888                 "cbe9f0d3.03cae",\r
889                 "f1d67d6b.7b18f8"\r
890             ]\r
891         ]\r
892     },\r
893     {\r
894         "id": "cbe9f0d3.03cae",\r
895         "type": "not-found",\r
896         "name": "not-found",\r
897         "xml": "<outcome value='not-found'>\n",\r
898         "comments": "",\r
899         "outputs": 1,\r
900         "x": 2056.490966796875,\r
901         "y": 1366.573974609375,\r
902         "z": "5b68e0d.bd97b2",\r
903         "wires": [\r
904             [\r
905                 "df9ad0cd.393e9"\r
906             ]\r
907         ]\r
908     },\r
909     {\r
910         "id": "f1d67d6b.7b18f8",\r
911         "type": "failure",\r
912         "name": "failure",\r
913         "xml": "<outcome value='failure'>\n",\r
914         "comments": "",\r
915         "outputs": 1,\r
916         "x": 2045,\r
917         "y": 1411,\r
918         "z": "5b68e0d.bd97b2",\r
919         "wires": [\r
920             [\r
921                 "387801a6.c55046"\r
922             ]\r
923         ]\r
924     },\r
925     {\r
926         "id": "df9ad0cd.393e9",\r
927         "type": "returnFailure",\r
928         "name": "return failure",\r
929         "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
930         "comments": "",\r
931         "x": 2205.0625,\r
932         "y": 1366.8597412109375,\r
933         "z": "5b68e0d.bd97b2",\r
934         "wires": []\r
935     },\r
936     {\r
937         "id": "387801a6.c55046",\r
938         "type": "returnFailure",\r
939         "name": "return failure",\r
940         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
941         "comments": "",\r
942         "x": 2204,\r
943         "y": 1411,\r
944         "z": "5b68e0d.bd97b2",\r
945         "wires": []\r
946     },\r
947     {\r
948         "id": "c3decf76.de238",\r
949         "type": "success",\r
950         "name": "success",\r
951         "xml": "<outcome value='success'>\n",\r
952         "comments": "",\r
953         "outputs": 1,\r
954         "x": 2052,\r
955         "y": 1490,\r
956         "z": "5b68e0d.bd97b2",\r
957         "wires": [\r
958             [\r
959                 "85643202.66a9f8"\r
960             ]\r
961         ]\r
962     },\r
963     {\r
964         "id": "85643202.66a9f8",\r
965         "type": "block",\r
966         "name": "block",\r
967         "xml": "<block>\n",\r
968         "atomic": "false",\r
969         "comments": "",\r
970         "outputs": 1,\r
971         "x": 2191,\r
972         "y": 1490,\r
973         "z": "5b68e0d.bd97b2",\r
974         "wires": [\r
975             [\r
976                 "67195ddd.58b94c",\r
977                 "3cb07e0e.1a73c2",\r
978                 "e13bd0db.73d81",\r
979                 "44095776.64c828",\r
980                 "3eb8bee0.c23c0a",\r
981                 "e199c2c7.64ce48",\r
982                 "4e9e1552.e1012c",\r
983                 "879bdb34.60c748",\r
984                 "ccc984ea.946438",\r
985                 "3824458b.0c70c2"\r
986             ]\r
987         ]\r
988     },\r
989     {\r
990         "id": "e13bd0db.73d81",\r
991         "type": "save",\r
992         "name": "get EndpointA from aai",\r
993         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"endpoint\"\n\tkey='endpoint.endpoint-id = $endpointA'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.endpointA\">",\r
994         "comments": "",\r
995         "outputs": 1,\r
996         "x": 2399,\r
997         "y": 1573,\r
998         "z": "5b68e0d.bd97b2",\r
999         "wires": [\r
1000             [\r
1001                 "6b7f9293.5e4b3c",\r
1002                 "271678cd.b7a718",\r
1003                 "fda0cd5e.c574c8"\r
1004             ]\r
1005         ]\r
1006     },\r
1007     {\r
1008         "id": "44095776.64c828",\r
1009         "type": "save",\r
1010         "name": "get EndpointB from aai",\r
1011         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"endpoint\"\n\tkey='endpoint.endpoint-id = $endpointB'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.endpointB\">",\r
1012         "comments": "",\r
1013         "outputs": 1,\r
1014         "x": 2413,\r
1015         "y": 1845,\r
1016         "z": "5b68e0d.bd97b2",\r
1017         "wires": [\r
1018             [\r
1019                 "cac7dfa0.02314",\r
1020                 "cd4a18c4.24c5e8",\r
1021                 "b2a92c1e.f10cd8"\r
1022             ]\r
1023         ]\r
1024     },\r
1025     {\r
1026         "id": "6b7f9293.5e4b3c",\r
1027         "type": "not-found",\r
1028         "name": "not-found",\r
1029         "xml": "<outcome value='not-found'>\n",\r
1030         "comments": "",\r
1031         "outputs": 1,\r
1032         "x": 2621,\r
1033         "y": 1455,\r
1034         "z": "5b68e0d.bd97b2",\r
1035         "wires": [\r
1036             [\r
1037                 "6df2f8ce.f4df28"\r
1038             ]\r
1039         ]\r
1040     },\r
1041     {\r
1042         "id": "271678cd.b7a718",\r
1043         "type": "failure",\r
1044         "name": "failure",\r
1045         "xml": "<outcome value='failure'>\n",\r
1046         "comments": "",\r
1047         "outputs": 1,\r
1048         "x": 2616.509033203125,\r
1049         "y": 1504.426025390625,\r
1050         "z": "5b68e0d.bd97b2",\r
1051         "wires": [\r
1052             [\r
1053                 "a0e96fb5.85588"\r
1054             ]\r
1055         ]\r
1056     },\r
1057     {\r
1058         "id": "fda0cd5e.c574c8",\r
1059         "type": "success",\r
1060         "name": "success",\r
1061         "xml": "<outcome value='success'>\n",\r
1062         "comments": "",\r
1063         "outputs": 1,\r
1064         "x": 2620.509033203125,\r
1065         "y": 1555.426025390625,\r
1066         "z": "5b68e0d.bd97b2",\r
1067         "wires": [\r
1068             [\r
1069                 "57154704.0e805"\r
1070             ]\r
1071         ]\r
1072     },\r
1073     {\r
1074         "id": "6df2f8ce.f4df28",\r
1075         "type": "returnFailure",\r
1076         "name": "return failure",\r
1077         "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
1078         "comments": "",\r
1079         "x": 2769.571533203125,\r
1080         "y": 1454.2857666015625,\r
1081         "z": "5b68e0d.bd97b2",\r
1082         "wires": []\r
1083     },\r
1084     {\r
1085         "id": "a0e96fb5.85588",\r
1086         "type": "returnFailure",\r
1087         "name": "return failure",\r
1088         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1089         "comments": "",\r
1090         "x": 2759.509033203125,\r
1091         "y": 1504.426025390625,\r
1092         "z": "5b68e0d.bd97b2",\r
1093         "wires": []\r
1094     },\r
1095     {\r
1096         "id": "cac7dfa0.02314",\r
1097         "type": "not-found",\r
1098         "name": "not-found",\r
1099         "xml": "<outcome value='not-found'>\n",\r
1100         "comments": "",\r
1101         "outputs": 1,\r
1102         "x": 2636,\r
1103         "y": 1815,\r
1104         "z": "5b68e0d.bd97b2",\r
1105         "wires": [\r
1106             [\r
1107                 "857e5bf7.e021b"\r
1108             ]\r
1109         ]\r
1110     },\r
1111     {\r
1112         "id": "cd4a18c4.24c5e8",\r
1113         "type": "failure",\r
1114         "name": "failure",\r
1115         "xml": "<outcome value='failure'>\n",\r
1116         "comments": "",\r
1117         "outputs": 1,\r
1118         "x": 2631.509033203125,\r
1119         "y": 1864.426025390625,\r
1120         "z": "5b68e0d.bd97b2",\r
1121         "wires": [\r
1122             [\r
1123                 "68a88270.f542bc"\r
1124             ]\r
1125         ]\r
1126     },\r
1127     {\r
1128         "id": "b2a92c1e.f10cd8",\r
1129         "type": "success",\r
1130         "name": "success",\r
1131         "xml": "<outcome value='success'>\n",\r
1132         "comments": "",\r
1133         "outputs": 1,\r
1134         "x": 2635.509033203125,\r
1135         "y": 1915.426025390625,\r
1136         "z": "5b68e0d.bd97b2",\r
1137         "wires": [\r
1138             [\r
1139                 "4220b72.dbed048"\r
1140             ]\r
1141         ]\r
1142     },\r
1143     {\r
1144         "id": "857e5bf7.e021b",\r
1145         "type": "returnFailure",\r
1146         "name": "return failure",\r
1147         "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
1148         "comments": "",\r
1149         "x": 2784.571533203125,\r
1150         "y": 1814.2857666015625,\r
1151         "z": "5b68e0d.bd97b2",\r
1152         "wires": []\r
1153     },\r
1154     {\r
1155         "id": "68a88270.f542bc",\r
1156         "type": "returnFailure",\r
1157         "name": "return failure",\r
1158         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1159         "comments": "",\r
1160         "x": 2774.509033203125,\r
1161         "y": 1864.426025390625,\r
1162         "z": "5b68e0d.bd97b2",\r
1163         "wires": []\r
1164     },\r
1165     {\r
1166         "id": "404469ae.c8a71",\r
1167         "type": "for",\r
1168         "name": "for each relationship",\r
1169         "xml": "<for index='rel-index' start='0' end='`$tmp.aai.endpointA.relationship-list.relationship_length`' >\n",\r
1170         "comments": "",\r
1171         "outputs": 1,\r
1172         "x": 2993,\r
1173         "y": 1556,\r
1174         "z": "5b68e0d.bd97b2",\r
1175         "wires": [\r
1176             [\r
1177                 "ca5e0e2a.2b9fd8"\r
1178             ]\r
1179         ]\r
1180     },\r
1181     {\r
1182         "id": "ca5e0e2a.2b9fd8",\r
1183         "type": "switchNode",\r
1184         "name": "switch related-to",\r
1185         "xml": "<switch test='`$tmp.aai.endpointA.relationship-list.relationship[$rel-index].related-to`'>\n",\r
1186         "comments": "",\r
1187         "outputs": 1,\r
1188         "x": 3206.3334426879883,\r
1189         "y": 1555.9999389648438,\r
1190         "z": "5b68e0d.bd97b2",\r
1191         "wires": [\r
1192             [\r
1193                 "20488961.beb436"\r
1194             ]\r
1195         ]\r
1196     },\r
1197     {\r
1198         "id": "20488961.beb436",\r
1199         "type": "outcome",\r
1200         "name": "p-interface",\r
1201         "xml": "<outcome value='p-interface'>\n",\r
1202         "comments": "",\r
1203         "outputs": 1,\r
1204         "x": 3378.0000801086426,\r
1205         "y": 1556.000020980835,\r
1206         "z": "5b68e0d.bd97b2",\r
1207         "wires": [\r
1208             [\r
1209                 "3536184f.ec7b9"\r
1210             ]\r
1211         ]\r
1212     },\r
1213     {\r
1214         "id": "6bc94704.d03de",\r
1215         "type": "block",\r
1216         "name": "block : atomic",\r
1217         "xml": "<block atomic=\"true\">",\r
1218         "atomic": "true",\r
1219         "outputs": 1,\r
1220         "x": 4040.66650390625,\r
1221         "y": 1548,\r
1222         "z": "5b68e0d.bd97b2",\r
1223         "wires": [\r
1224             [\r
1225                 "b0648d5.a5c8bf",\r
1226                 "502adfb6.94aa38",\r
1227                 "6f6a8b61.fa1ffc",\r
1228                 "24d9a7fc.8cd3f8"\r
1229             ]\r
1230         ]\r
1231     },\r
1232     {\r
1233         "id": "3536184f.ec7b9",\r
1234         "type": "save",\r
1235         "name": "get p-interface-src from aai",\r
1236         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t    key=\"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\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
1237         "comments": "",\r
1238         "outputs": 1,\r
1239         "x": 3625,\r
1240         "y": 1554,\r
1241         "z": "5b68e0d.bd97b2",\r
1242         "wires": [\r
1243             [\r
1244                 "d439294.8fb6358",\r
1245                 "5c59ee09.9262d",\r
1246                 "f82521c.310fee"\r
1247             ]\r
1248         ]\r
1249     },\r
1250     {\r
1251         "id": "d439294.8fb6358",\r
1252         "type": "success",\r
1253         "name": "success",\r
1254         "xml": "<outcome value='success'>\n",\r
1255         "comments": "",\r
1256         "outputs": 1,\r
1257         "x": 3868,\r
1258         "y": 1549,\r
1259         "z": "5b68e0d.bd97b2",\r
1260         "wires": [\r
1261             [\r
1262                 "6bc94704.d03de"\r
1263             ]\r
1264         ]\r
1265     },\r
1266     {\r
1267         "id": "f82521c.310fee",\r
1268         "type": "not-found",\r
1269         "name": "not-found",\r
1270         "xml": "<outcome value='not-found'>\n",\r
1271         "comments": "",\r
1272         "outputs": 1,\r
1273         "x": 3877.490966796875,\r
1274         "y": 1591.5740356445312,\r
1275         "z": "5b68e0d.bd97b2",\r
1276         "wires": [\r
1277             [\r
1278                 "da7fc859.beff18"\r
1279             ]\r
1280         ]\r
1281     },\r
1282     {\r
1283         "id": "5c59ee09.9262d",\r
1284         "type": "failure",\r
1285         "name": "failure",\r
1286         "xml": "<outcome value='failure'>\n",\r
1287         "comments": "",\r
1288         "outputs": 1,\r
1289         "x": 3866,\r
1290         "y": 1638,\r
1291         "z": "5b68e0d.bd97b2",\r
1292         "wires": [\r
1293             [\r
1294                 "872414be.4b5f28"\r
1295             ]\r
1296         ]\r
1297     },\r
1298     {\r
1299         "id": "da7fc859.beff18",\r
1300         "type": "returnFailure",\r
1301         "name": "return failure",\r
1302         "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
1303         "comments": "",\r
1304         "x": 4031.0623779296875,\r
1305         "y": 1594.8597717285156,\r
1306         "z": "5b68e0d.bd97b2",\r
1307         "wires": []\r
1308     },\r
1309     {\r
1310         "id": "872414be.4b5f28",\r
1311         "type": "returnFailure",\r
1312         "name": "return failure",\r
1313         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1314         "comments": "",\r
1315         "x": 4035,\r
1316         "y": 1639,\r
1317         "z": "5b68e0d.bd97b2",\r
1318         "wires": []\r
1319     },\r
1320     {\r
1321         "id": "57154704.0e805",\r
1322         "type": "block",\r
1323         "name": "block : atomic",\r
1324         "xml": "<block atomic=\"true\">",\r
1325         "atomic": "true",\r
1326         "outputs": 1,\r
1327         "x": 2782,\r
1328         "y": 1557,\r
1329         "z": "5b68e0d.bd97b2",\r
1330         "wires": [\r
1331             [\r
1332                 "404469ae.c8a71"\r
1333             ]\r
1334         ]\r
1335     },\r
1336     {\r
1337         "id": "85084de0.cfb7d",\r
1338         "type": "comment",\r
1339         "name": "Question?",\r
1340         "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
1341         "comments": "",\r
1342         "x": 3568,\r
1343         "y": 1507,\r
1344         "z": "5b68e0d.bd97b2",\r
1345         "wires": []\r
1346     },\r
1347     {\r
1348         "id": "4220b72.dbed048",\r
1349         "type": "block",\r
1350         "name": "block : atomic",\r
1351         "xml": "<block atomic=\"true\">",\r
1352         "atomic": "true",\r
1353         "outputs": 1,\r
1354         "x": 2786,\r
1355         "y": 1917,\r
1356         "z": "5b68e0d.bd97b2",\r
1357         "wires": [\r
1358             [\r
1359                 "8dfc41f6.4f4f"\r
1360             ]\r
1361         ]\r
1362     },\r
1363     {\r
1364         "id": "8dfc41f6.4f4f",\r
1365         "type": "for",\r
1366         "name": "for each relationship",\r
1367         "xml": "<for index='rel-index' start='0' end='`$tmp.aai.endpointB.relationship-list.relationship_length`' >\n",\r
1368         "comments": "",\r
1369         "outputs": 1,\r
1370         "x": 2997,\r
1371         "y": 1916,\r
1372         "z": "5b68e0d.bd97b2",\r
1373         "wires": [\r
1374             [\r
1375                 "5452c2da.11d5dc"\r
1376             ]\r
1377         ]\r
1378     },\r
1379     {\r
1380         "id": "5452c2da.11d5dc",\r
1381         "type": "switchNode",\r
1382         "name": "switch related-to",\r
1383         "xml": "<switch test='`$tmp.aai.endpointB.relationship-list.relationship[$rel-index].related-to`'>\n",\r
1384         "comments": "",\r
1385         "outputs": 1,\r
1386         "x": 3210.3334426879883,\r
1387         "y": 1915.9999389648438,\r
1388         "z": "5b68e0d.bd97b2",\r
1389         "wires": [\r
1390             [\r
1391                 "cb7a504b.d626a"\r
1392             ]\r
1393         ]\r
1394     },\r
1395     {\r
1396         "id": "cb7a504b.d626a",\r
1397         "type": "outcome",\r
1398         "name": "p-interface",\r
1399         "xml": "<outcome value='p-interface'>\n",\r
1400         "comments": "",\r
1401         "outputs": 1,\r
1402         "x": 3382.0000801086426,\r
1403         "y": 1916.000020980835,\r
1404         "z": "5b68e0d.bd97b2",\r
1405         "wires": [\r
1406             [\r
1407                 "8fa1d382.ebbb3"\r
1408             ]\r
1409         ]\r
1410     },\r
1411     {\r
1412         "id": "825ff590.84496",\r
1413         "type": "block",\r
1414         "name": "block : atomic",\r
1415         "xml": "<block atomic=\"true\">",\r
1416         "atomic": "true",\r
1417         "outputs": 1,\r
1418         "x": 4044.66650390625,\r
1419         "y": 1908,\r
1420         "z": "5b68e0d.bd97b2",\r
1421         "wires": [\r
1422             [\r
1423                 "674b1eb0.174b2",\r
1424                 "f4b1b11a.276db8",\r
1425                 "485a23dc.9461bc",\r
1426                 "a54100e4.bdfd8"\r
1427             ]\r
1428         ]\r
1429     },\r
1430     {\r
1431         "id": "8fa1d382.ebbb3",\r
1432         "type": "save",\r
1433         "name": "get p-interface-dst from aai",\r
1434         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t    key=\"p-interface.interface-name = $tmp.aai.endpointB.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.endpointB.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.endpointB.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"-->\n<!--\t\tlocal-only=\"false\" -->\n<!--\t\tpfx=\"tmp.aai.endpointB.p-interface-dst\" >-->\n",\r
1435         "comments": "",\r
1436         "outputs": 1,\r
1437         "x": 3629,\r
1438         "y": 1914,\r
1439         "z": "5b68e0d.bd97b2",\r
1440         "wires": [\r
1441             [\r
1442                 "e30b52f2.d3bd18",\r
1443                 "2a8a7b32.c6c034",\r
1444                 "95395b70.5ce658"\r
1445             ]\r
1446         ]\r
1447     },\r
1448     {\r
1449         "id": "e30b52f2.d3bd18",\r
1450         "type": "success",\r
1451         "name": "success",\r
1452         "xml": "<outcome value='success'>\n",\r
1453         "comments": "",\r
1454         "outputs": 1,\r
1455         "x": 3872,\r
1456         "y": 1909,\r
1457         "z": "5b68e0d.bd97b2",\r
1458         "wires": [\r
1459             [\r
1460                 "825ff590.84496"\r
1461             ]\r
1462         ]\r
1463     },\r
1464     {\r
1465         "id": "95395b70.5ce658",\r
1466         "type": "not-found",\r
1467         "name": "not-found",\r
1468         "xml": "<outcome value='not-found'>\n",\r
1469         "comments": "",\r
1470         "outputs": 1,\r
1471         "x": 3881.490966796875,\r
1472         "y": 1951.5740356445312,\r
1473         "z": "5b68e0d.bd97b2",\r
1474         "wires": [\r
1475             [\r
1476                 "ec0be134.e7e7f8"\r
1477             ]\r
1478         ]\r
1479     },\r
1480     {\r
1481         "id": "2a8a7b32.c6c034",\r
1482         "type": "failure",\r
1483         "name": "failure",\r
1484         "xml": "<outcome value='failure'>\n",\r
1485         "comments": "",\r
1486         "outputs": 1,\r
1487         "x": 3870,\r
1488         "y": 1998,\r
1489         "z": "5b68e0d.bd97b2",\r
1490         "wires": [\r
1491             [\r
1492                 "5f44beb8.f571"\r
1493             ]\r
1494         ]\r
1495     },\r
1496     {\r
1497         "id": "ec0be134.e7e7f8",\r
1498         "type": "returnFailure",\r
1499         "name": "return failure",\r
1500         "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
1501         "comments": "",\r
1502         "x": 4035.0623779296875,\r
1503         "y": 1954.8597717285156,\r
1504         "z": "5b68e0d.bd97b2",\r
1505         "wires": []\r
1506     },\r
1507     {\r
1508         "id": "5f44beb8.f571",\r
1509         "type": "returnFailure",\r
1510         "name": "return failure",\r
1511         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1512         "comments": "",\r
1513         "x": 4039,\r
1514         "y": 1999,\r
1515         "z": "5b68e0d.bd97b2",\r
1516         "wires": []\r
1517     },\r
1518     {\r
1519         "id": "18f16001.6c653",\r
1520         "type": "comment",\r
1521         "name": "Question?",\r
1522         "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
1523         "comments": "",\r
1524         "x": 3572,\r
1525         "y": 1867,\r
1526         "z": "5b68e0d.bd97b2",\r
1527         "wires": []\r
1528     },\r
1529     {\r
1530         "id": "b0648d5.a5c8bf",\r
1531         "type": "execute",\r
1532         "name": "execute split tp-id to get pnf-name",\r
1533         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.endpointA.p-interface-src`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[^-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainA\"/>\n\n",\r
1534         "comments": "",\r
1535         "outputs": 1,\r
1536         "x": 4301,\r
1537         "y": 1546,\r
1538         "z": "5b68e0d.bd97b2",\r
1539         "wires": [\r
1540             [\r
1541                 "6bf39cd9.c078dc",\r
1542                 "1f241f8d.ded588"\r
1543             ]\r
1544         ]\r
1545     },\r
1546     {\r
1547         "id": "1f241f8d.ded588",\r
1548         "type": "failure",\r
1549         "name": "success",\r
1550         "xml": "<outcome value='success'>\n",\r
1551         "comments": "",\r
1552         "outputs": 1,\r
1553         "x": 4524,\r
1554         "y": 1501,\r
1555         "z": "5b68e0d.bd97b2",\r
1556         "wires": [\r
1557             [\r
1558                 "711e2d50.cbfec4"\r
1559             ]\r
1560         ]\r
1561     },\r
1562     {\r
1563         "id": "6bf39cd9.c078dc",\r
1564         "type": "failure",\r
1565         "name": "failure",\r
1566         "xml": "<outcome value='failure'>\n",\r
1567         "comments": "",\r
1568         "outputs": 1,\r
1569         "x": 4526,\r
1570         "y": 1565,\r
1571         "z": "5b68e0d.bd97b2",\r
1572         "wires": [\r
1573             [\r
1574                 "d87f8a80.c2edb8"\r
1575             ]\r
1576         ]\r
1577     },\r
1578     {\r
1579         "id": "8f149145.0a9d38",\r
1580         "type": "set",\r
1581         "name": "set ltpId",\r
1582         "xml": "<set>\n<parameter name='tmp.src.ltpId' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n",\r
1583         "comments": "",\r
1584         "x": 4859,\r
1585         "y": 1459,\r
1586         "z": "5b68e0d.bd97b2",\r
1587         "wires": []\r
1588     },\r
1589     {\r
1590         "id": "d87f8a80.c2edb8",\r
1591         "type": "returnFailure",\r
1592         "name": "return failure",\r
1593         "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
1594         "comments": "",\r
1595         "x": 4685,\r
1596         "y": 1584,\r
1597         "z": "5b68e0d.bd97b2",\r
1598         "wires": []\r
1599     },\r
1600     {\r
1601         "id": "711e2d50.cbfec4",\r
1602         "type": "block",\r
1603         "name": "block : atomic",\r
1604         "xml": "<block atomic=\"true\">",\r
1605         "atomic": "true",\r
1606         "outputs": 1,\r
1607         "x": 4689,\r
1608         "y": 1498,\r
1609         "z": "5b68e0d.bd97b2",\r
1610         "wires": [\r
1611             [\r
1612                 "8f149145.0a9d38",\r
1613                 "ed673da0.d5043"\r
1614             ]\r
1615         ]\r
1616     },\r
1617     {\r
1618         "id": "ed673da0.d5043",\r
1619         "type": "set",\r
1620         "name": "set pnf-name",\r
1621         "xml": "<set>\n<parameter name='tmp.src.pnf-name' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n",\r
1622         "comments": "",\r
1623         "x": 4860,\r
1624         "y": 1564,\r
1625         "z": "5b68e0d.bd97b2",\r
1626         "wires": []\r
1627     },\r
1628     {\r
1629         "id": "5bd7fa96.a6e064",\r
1630         "type": "comment",\r
1631         "name": "TODO: FIXME",\r
1632         "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
1633         "comments": "",\r
1634         "x": 4859,\r
1635         "y": 1525,\r
1636         "z": "5b68e0d.bd97b2",\r
1637         "wires": []\r
1638     },\r
1639     {\r
1640         "id": "6f6a8b61.fa1ffc",\r
1641         "type": "save",\r
1642         "name": "save connectivity resource in AAI",\r
1643         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $prop.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainA-uuid`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='' />\n<parameter name='access-client-id' value='' />\n<parameter name='access-topology-id' value='' />\n<parameter name='access-node-id' value='' />\n<parameter name='access-ltp-id' value='' />\n<parameter name='cvlan' value='' />\n\n<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='CIR' value='`$prop.sotn.cir`' />\n<parameter name='EIR' value='`$prop.sotn.eir`' />\n<parameter name='CBS' value='`$prop.sotn.cbs`' />\n<parameter name='EBS' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
1644         "comments": "",\r
1645         "outputs": 1,\r
1646         "x": 4303,\r
1647         "y": 1705,\r
1648         "z": "5b68e0d.bd97b2",\r
1649         "wires": [\r
1650             []\r
1651         ]\r
1652     },\r
1653     {\r
1654         "id": "502adfb6.94aa38",\r
1655         "type": "execute",\r
1656         "name": "execute UUID generator for connectivity domainA",\r
1657         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainA-uuid\"/>\n",\r
1658         "comments": "",\r
1659         "outputs": 1,\r
1660         "x": 4348,\r
1661         "y": 1615,\r
1662         "z": "5b68e0d.bd97b2",\r
1663         "wires": [\r
1664             []\r
1665         ]\r
1666     },\r
1667     {\r
1668         "id": "2f48d78c.e343f8",\r
1669         "type": "comment",\r
1670         "name": "TODO: FIXME",\r
1671         "info": "using the output of regex string arrays,\nconcatinate index 0 to index[?] all together\nin order to assemble the correct values for provider-id, \ntopology-id, node-id, etc.",\r
1672         "comments": "",\r
1673         "x": 4238,\r
1674         "y": 1671,\r
1675         "z": "5b68e0d.bd97b2",\r
1676         "wires": []\r
1677     },\r
1678     {\r
1679         "id": "674b1eb0.174b2",\r
1680         "type": "execute",\r
1681         "name": "execute split tp-id to get pnf-name",\r
1682         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.endpointB.p-interface-dst`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[^-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainB\"/>\n\n",\r
1683         "comments": "",\r
1684         "outputs": 1,\r
1685         "x": 4299,\r
1686         "y": 1904,\r
1687         "z": "5b68e0d.bd97b2",\r
1688         "wires": [\r
1689             [\r
1690                 "bf4f2038.8bcc6",\r
1691                 "816a3f3d.c967d"\r
1692             ]\r
1693         ]\r
1694     },\r
1695     {\r
1696         "id": "816a3f3d.c967d",\r
1697         "type": "failure",\r
1698         "name": "success",\r
1699         "xml": "<outcome value='success'>\n",\r
1700         "comments": "",\r
1701         "outputs": 1,\r
1702         "x": 4522,\r
1703         "y": 1859,\r
1704         "z": "5b68e0d.bd97b2",\r
1705         "wires": [\r
1706             [\r
1707                 "bbb7eb1.f117918"\r
1708             ]\r
1709         ]\r
1710     },\r
1711     {\r
1712         "id": "bf4f2038.8bcc6",\r
1713         "type": "failure",\r
1714         "name": "failure",\r
1715         "xml": "<outcome value='failure'>\n",\r
1716         "comments": "",\r
1717         "outputs": 1,\r
1718         "x": 4524,\r
1719         "y": 1923,\r
1720         "z": "5b68e0d.bd97b2",\r
1721         "wires": [\r
1722             [\r
1723                 "3fe77c2.445af04"\r
1724             ]\r
1725         ]\r
1726     },\r
1727     {\r
1728         "id": "2024c7b6.3996d",\r
1729         "type": "set",\r
1730         "name": "set ltpId",\r
1731         "xml": "<set>\n<parameter name='tmp.dst.ltpId' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n",\r
1732         "comments": "",\r
1733         "x": 4857,\r
1734         "y": 1817,\r
1735         "z": "5b68e0d.bd97b2",\r
1736         "wires": []\r
1737     },\r
1738     {\r
1739         "id": "3fe77c2.445af04",\r
1740         "type": "returnFailure",\r
1741         "name": "return failure",\r
1742         "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
1743         "comments": "",\r
1744         "x": 4683,\r
1745         "y": 1942,\r
1746         "z": "5b68e0d.bd97b2",\r
1747         "wires": []\r
1748     },\r
1749     {\r
1750         "id": "bbb7eb1.f117918",\r
1751         "type": "block",\r
1752         "name": "block : atomic",\r
1753         "xml": "<block atomic=\"true\">",\r
1754         "atomic": "true",\r
1755         "outputs": 1,\r
1756         "x": 4687,\r
1757         "y": 1856,\r
1758         "z": "5b68e0d.bd97b2",\r
1759         "wires": [\r
1760             [\r
1761                 "2024c7b6.3996d",\r
1762                 "e7f53e76.5ddf"\r
1763             ]\r
1764         ]\r
1765     },\r
1766     {\r
1767         "id": "e7f53e76.5ddf",\r
1768         "type": "set",\r
1769         "name": "set pnf-name",\r
1770         "xml": "<set>\n<parameter name='tmp.dst.pnf-name' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n",\r
1771         "comments": "",\r
1772         "x": 4858,\r
1773         "y": 1922,\r
1774         "z": "5b68e0d.bd97b2",\r
1775         "wires": []\r
1776     },\r
1777     {\r
1778         "id": "71ef13be.57065c",\r
1779         "type": "comment",\r
1780         "name": "TODO: FIXME",\r
1781         "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
1782         "comments": "",\r
1783         "x": 4857,\r
1784         "y": 1883,\r
1785         "z": "5b68e0d.bd97b2",\r
1786         "wires": []\r
1787     },\r
1788     {\r
1789         "id": "485a23dc.9461bc",\r
1790         "type": "save",\r
1791         "name": "save connectivity resource in AAI",\r
1792         "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='operational-status' value='Created' />\n<parameter name='access-provider-id' value='' />\n<parameter name='access-client-id' value='' />\n<parameter name='access-topology-id' value='' />\n<parameter name='access-node-id' value='' />\n<parameter name='access-ltp-id' value='' />\n<parameter name='cvlan' value='' />\n\n\n<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='CIR' value='`$prop.sotn.cir`' />\n<parameter name='EIR' value='`$prop.sotn.eir`' />\n<parameter name='CBS' value='`$prop.sotn.cbs`' />\n<parameter name='EBS' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
1793         "comments": "",\r
1794         "outputs": 1,\r
1795         "x": 4301,\r
1796         "y": 2063,\r
1797         "z": "5b68e0d.bd97b2",\r
1798         "wires": [\r
1799             []\r
1800         ]\r
1801     },\r
1802     {\r
1803         "id": "f4b1b11a.276db8",\r
1804         "type": "execute",\r
1805         "name": "execute UUID generator for connectivity domainB",\r
1806         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainB-uuid\"/>\n",\r
1807         "comments": "",\r
1808         "outputs": 1,\r
1809         "x": 4346,\r
1810         "y": 1973,\r
1811         "z": "5b68e0d.bd97b2",\r
1812         "wires": [\r
1813             []\r
1814         ]\r
1815     },\r
1816     {\r
1817         "id": "985d1e1b.82a998",\r
1818         "type": "comment",\r
1819         "name": "TODO: FIXME",\r
1820         "info": "using the output of regex string arrays,\nconcatinate index 0 to index[?] all together\nin order to assemble the correct values for provider-id, \ntopology-id, node-id, etc.",\r
1821         "comments": "",\r
1822         "x": 4236,\r
1823         "y": 2029,\r
1824         "z": "5b68e0d.bd97b2",\r
1825         "wires": []\r
1826     },\r
1827     {\r
1828         "id": "3eb8bee0.c23c0a",\r
1829         "type": "call",\r
1830         "name": "call GENERIC-RESOURCE-API:sotn-get-otn-tunnel-path-from-oof",\r
1831         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-otn-tunnel-path-from-oof' mode='sync' >\n",\r
1832         "comments": "",\r
1833         "outputs": 1,\r
1834         "x": 2518,\r
1835         "y": 2064,\r
1836         "z": "5b68e0d.bd97b2",\r
1837         "wires": [\r
1838             []\r
1839         ]\r
1840     },\r
1841     {\r
1842         "id": "e199c2c7.64ce48",\r
1843         "type": "set",\r
1844         "name": "set attachment_param",\r
1845         "xml": "<set>\n<parameter name='prop.connection-attachment.access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='prop.connection-attachment.access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='prop.connection-attachment.access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='prop.connection-attachment.access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='prop.connection-attachment.access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n\n<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='prop.remote.connection-attachment.access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='prop.remote.connection-attachment.access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n",\r
1846         "comments": "",\r
1847         "x": 2381,\r
1848         "y": 2024,\r
1849         "z": "5b68e0d.bd97b2",\r
1850         "wires": []\r
1851     },\r
1852     {\r
1853         "id": "50e758b0.2c60a",\r
1854         "type": "comment",\r
1855         "name": "TODO: FIXME",\r
1856         "info": "put proper values for src topology-id, node-id, ltp-id, etc (in domain A)\nand dst topology-id, node-id, ltp-id, etc (in domain B)",\r
1857         "comments": "",\r
1858         "x": 2353,\r
1859         "y": 1988,\r
1860         "z": "5b68e0d.bd97b2",\r
1861         "wires": []\r
1862     },\r
1863     {\r
1864         "id": "4e9e1552.e1012c",\r
1865         "type": "save",\r
1866         "name": "save vpn-binding A resource (aka. OTN domainA) in AAI",\r
1867         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.vpnName' >\n<parameter name='vpn-id' value='`$tmp.vpnName`' />\n<parameter name='vpn-name' value='`$tmp.vpnName`' />\n<parameter name='access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='src-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='dst-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n<parameter name='vpn-type' value='`$prop.global.sotn.vpnType`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />",\r
1868         "comments": "",\r
1869         "outputs": 1,\r
1870         "x": 2483,\r
1871         "y": 2168,\r
1872         "z": "5b68e0d.bd97b2",\r
1873         "wires": [\r
1874             [\r
1875                 "eee018f4.9abed"\r
1876             ]\r
1877         ]\r
1878     },\r
1879     {\r
1880         "id": "879bdb34.60c748",\r
1881         "type": "save",\r
1882         "name": "save connectivity-A relationship to vpn-binding-A, in AAI",\r
1883         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $tmp.vpnName' \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/' + $mdsal-psd.service-data.networks.network[0].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=\"`$mdsal-psd.service-data.networks.network[0].network-id`\" />",\r
1884         "comments": "",\r
1885         "outputs": 1,\r
1886         "x": 2481.5,\r
1887         "y": 2211,\r
1888         "z": "5b68e0d.bd97b2",\r
1889         "wires": [\r
1890             []\r
1891         ]\r
1892     },\r
1893     {\r
1894         "id": "5ac2c26e.60f274",\r
1895         "type": "save",\r
1896         "name": "save srcLTP relationship in AAI",\r
1897         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $tmp.vpnName' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $src-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$src-ltpId`\" />\n\n\n\n",\r
1898         "comments": "",\r
1899         "outputs": 1,\r
1900         "x": 3134.5,\r
1901         "y": 2149,\r
1902         "z": "5b68e0d.bd97b2",\r
1903         "wires": [\r
1904             []\r
1905         ]\r
1906     },\r
1907     {\r
1908         "id": "481b1bdc.29fad4",\r
1909         "type": "save",\r
1910         "name": "save dstLTP relationship in AAI",\r
1911         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $tmp.vpnName' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $dst-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$dst-ltpId`\" />",\r
1912         "comments": "",\r
1913         "outputs": 1,\r
1914         "x": 3136.5,\r
1915         "y": 2188,\r
1916         "z": "5b68e0d.bd97b2",\r
1917         "wires": [\r
1918             []\r
1919         ]\r
1920     },\r
1921     {\r
1922         "id": "24d9a7fc.8cd3f8",\r
1923         "type": "save",\r
1924         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
1925         "xml": "<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.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      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-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=\"`$prop.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
1926         "comments": "",\r
1927         "outputs": 1,\r
1928         "x": 4431,\r
1929         "y": 1753,\r
1930         "z": "5b68e0d.bd97b2",\r
1931         "wires": [\r
1932             []\r
1933         ]\r
1934     },\r
1935     {\r
1936         "id": "a54100e4.bdfd8",\r
1937         "type": "save",\r
1938         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
1939         "xml": "<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.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      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<!--<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
1940         "comments": "",\r
1941         "outputs": 1,\r
1942         "x": 4428,\r
1943         "y": 2128,\r
1944         "z": "5b68e0d.bd97b2",\r
1945         "wires": [\r
1946             []\r
1947         ]\r
1948     },\r
1949     {\r
1950         "id": "eee018f4.9abed",\r
1951         "type": "success",\r
1952         "name": "success",\r
1953         "xml": "<outcome value='success'>\n",\r
1954         "comments": "",\r
1955         "outputs": 1,\r
1956         "x": 2783,\r
1957         "y": 2167,\r
1958         "z": "5b68e0d.bd97b2",\r
1959         "wires": [\r
1960             [\r
1961                 "60c98c50.d9d324"\r
1962             ]\r
1963         ]\r
1964     },\r
1965     {\r
1966         "id": "60c98c50.d9d324",\r
1967         "type": "block",\r
1968         "name": "block",\r
1969         "xml": "<block>\n",\r
1970         "atomic": "false",\r
1971         "comments": "",\r
1972         "outputs": 1,\r
1973         "x": 2923.500244140625,\r
1974         "y": 2168.25390625,\r
1975         "z": "5b68e0d.bd97b2",\r
1976         "wires": [\r
1977             []\r
1978         ]\r
1979     },\r
1980     {\r
1981         "id": "99e923c8.5700b8",\r
1982         "type": "comment",\r
1983         "name": "TODO: FIXME: do we need this relationship?",\r
1984         "info": "",\r
1985         "comments": "",\r
1986         "x": 3171,\r
1987         "y": 2108,\r
1988         "z": "5b68e0d.bd97b2",\r
1989         "wires": []\r
1990     },\r
1991     {\r
1992         "id": "debe7c1a.c25a08",\r
1993         "type": "comment",\r
1994         "name": "TODO: FIXME: put proper values",\r
1995         "info": "",\r
1996         "comments": "",\r
1997         "x": 2409,\r
1998         "y": 2130,\r
1999         "z": "5b68e0d.bd97b2",\r
2000         "wires": []\r
2001     },\r
2002     {\r
2003         "id": "ccc984ea.946438",\r
2004         "type": "save",\r
2005         "name": "save vpn-binding B resource (aka. OTN domainB) in AAI",\r
2006         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.vpnName' >\n<parameter name='vpn-id' value='`$tmp.vpnName`' />\n<parameter name='vpn-name' value='`$tmp.vpnName`' />\n<parameter name='access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='src-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='dst-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n<parameter name='vpn-type' value='`$prop.global.sotn.vpnType`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />",\r
2007         "comments": "",\r
2008         "outputs": 1,\r
2009         "x": 2465,\r
2010         "y": 2348,\r
2011         "z": "5b68e0d.bd97b2",\r
2012         "wires": [\r
2013             [\r
2014                 "de2c330e.390d88"\r
2015             ]\r
2016         ]\r
2017     },\r
2018     {\r
2019         "id": "ff4306de.40969",\r
2020         "type": "comment",\r
2021         "name": "TODO: FIXME: do we need this relationship?",\r
2022         "info": "",\r
2023         "comments": "",\r
2024         "x": 3153,\r
2025         "y": 2288,\r
2026         "z": "5b68e0d.bd97b2",\r
2027         "wires": []\r
2028     },\r
2029     {\r
2030         "id": "bddb99db.4eee1",\r
2031         "type": "save",\r
2032         "name": "save srcLTP relationship in AAI",\r
2033         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $tmp.vpnName' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $src-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$src-ltpId`\" />\n\n\n\n",\r
2034         "comments": "",\r
2035         "outputs": 1,\r
2036         "x": 3116.5,\r
2037         "y": 2329,\r
2038         "z": "5b68e0d.bd97b2",\r
2039         "wires": [\r
2040             []\r
2041         ]\r
2042     },\r
2043     {\r
2044         "id": "4e5e60ab.6592a8",\r
2045         "type": "save",\r
2046         "name": "save dstLTP relationship in AAI",\r
2047         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $tmp.vpnName' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $dst-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$dst-ltpId`\" />",\r
2048         "comments": "",\r
2049         "outputs": 1,\r
2050         "x": 3118.5,\r
2051         "y": 2368,\r
2052         "z": "5b68e0d.bd97b2",\r
2053         "wires": [\r
2054             []\r
2055         ]\r
2056     },\r
2057     {\r
2058         "id": "82297458.0d3c48",\r
2059         "type": "block",\r
2060         "name": "block",\r
2061         "xml": "<block>\n",\r
2062         "atomic": "false",\r
2063         "comments": "",\r
2064         "outputs": 1,\r
2065         "x": 2905.500244140625,\r
2066         "y": 2348.25390625,\r
2067         "z": "5b68e0d.bd97b2",\r
2068         "wires": [\r
2069             []\r
2070         ]\r
2071     },\r
2072     {\r
2073         "id": "de2c330e.390d88",\r
2074         "type": "success",\r
2075         "name": "success",\r
2076         "xml": "<outcome value='success'>\n",\r
2077         "comments": "",\r
2078         "outputs": 1,\r
2079         "x": 2765,\r
2080         "y": 2347,\r
2081         "z": "5b68e0d.bd97b2",\r
2082         "wires": [\r
2083             [\r
2084                 "82297458.0d3c48"\r
2085             ]\r
2086         ]\r
2087     },\r
2088     {\r
2089         "id": "8b5978da.cf55b8",\r
2090         "type": "comment",\r
2091         "name": "TODO: FIXME: put proper values",\r
2092         "info": "",\r
2093         "comments": "",\r
2094         "x": 2386,\r
2095         "y": 2308,\r
2096         "z": "5b68e0d.bd97b2",\r
2097         "wires": []\r
2098     },\r
2099     {\r
2100         "id": "3824458b.0c70c2",\r
2101         "type": "save",\r
2102         "name": "save connectivity-B relationship to vpn-binding-B, in AAI",\r
2103         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $tmp.vpnName' \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/' + $mdsal-psd.service-data.networks.network[0].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=\"`$mdsal-psd.service-data.networks.network[0].network-id`\" />",\r
2104         "comments": "",\r
2105         "outputs": 1,\r
2106         "x": 2463.5,\r
2107         "y": 2388,\r
2108         "z": "5b68e0d.bd97b2",\r
2109         "wires": [\r
2110             []\r
2111         ]\r
2112     },\r
2113     {\r
2114         "id": "ed749360.08754",\r
2115         "type": "comment",\r
2116         "name": "TODO: FIXME:",\r
2117         "info": "set attachment param and send request to NCE-T\nfor bandwidth matrix\nmay require a new template for JSON body",\r
2118         "comments": "",\r
2119         "x": 2337,\r
2120         "y": 2471,\r
2121         "z": "5b68e0d.bd97b2",\r
2122         "wires": []\r
2123     },\r
2124     {\r
2125         "id": "97832dc3.63313",\r
2126         "type": "set",\r
2127         "name": "set attachment_param",\r
2128         "xml": "<set>\n<parameter name='prop.connection-attachment.access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='prop.connection-attachment.access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='prop.connection-attachment.access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='prop.connection-attachment.access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='prop.connection-attachment.access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n\n<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='prop.remote.connection-attachment.access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='prop.remote.connection-attachment.access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n",\r
2129         "comments": "",\r
2130         "x": 2360,\r
2131         "y": 2511,\r
2132         "z": "5b68e0d.bd97b2",\r
2133         "wires": []\r
2134     },\r
2135     {\r
2136         "id": "f27e6517.ff7968",\r
2137         "type": "execute",\r
2138         "name": "get parent-service-data tmp.ar-url-psd",\r
2139         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",\r
2140         "comments": "",\r
2141         "outputs": 1,\r
2142         "x": 5071,\r
2143         "y": 1523,\r
2144         "z": "5b68e0d.bd97b2",\r
2145         "wires": [\r
2146             []\r
2147         ]\r
2148     }\r
2149 ]