New DGs required for deletion and bandwidth modification of a given cloud leased...
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / cloud_leased_line / GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-modify.json
1 [\r
2     {\r
3         "id": "9eb6465b.8231d",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 174,\r
8         "y": 129,\r
9         "z": "7b5a733a.b08434",\r
10         "wires": [\r
11             [\r
12                 "c7ce6b7b.48fc18"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "c7ce6b7b.48fc18",\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": 399.2856903076172,\r
26         "y": 203.23810863494873,\r
27         "z": "7b5a733a.b08434",\r
28         "wires": [\r
29             [\r
30                 "5b4de938.1f507"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "5b4de938.1f507",\r
36         "type": "method",\r
37         "name": "method cll-vnf-topology-operation-cll-modify",\r
38         "xml": "<method rpc='cll-vnf-topology-operation-cll-modify' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 405.42860412597656,\r
42         "y": 288.0000305175781,\r
43         "z": "7b5a733a.b08434",\r
44         "wires": [\r
45             [\r
46                 "4dc62efc.c83c"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "4dc62efc.c83c",\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": 775.238037109375,\r
58         "y": 312.66668701171875,\r
59         "z": "7b5a733a.b08434",\r
60         "wires": [\r
61             [\r
62                 "967b1057.e0a818",\r
63                 "c598fe83.44b4b8",\r
64                 "14de5c82.464f93"\r
65             ]\r
66         ]\r
67     },\r
68     {\r
69         "id": "967b1057.e0a818",\r
70         "type": "returnSuccess",\r
71         "name": "return success",\r
72         "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",\r
73         "comments": "",\r
74         "x": 1030.571533203125,\r
75         "y": 466.59698486328125,\r
76         "z": "7b5a733a.b08434",\r
77         "wires": []\r
78     },\r
79     {\r
80         "id": "c598fe83.44b4b8",\r
81         "type": "save",\r
82         "name": "get service-instance from aai",\r
83         "xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.service-instance\">\n\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->",\r
84         "comments": "",\r
85         "outputs": 1,\r
86         "x": 1098,\r
87         "y": 286,\r
88         "z": "7b5a733a.b08434",\r
89         "wires": [\r
90             [\r
91                 "be5a0198.1ba518",\r
92                 "d9138d20.e2fc8",\r
93                 "91625785.c9ff18"\r
94             ]\r
95         ]\r
96     },\r
97     {\r
98         "id": "91625785.c9ff18",\r
99         "type": "failure",\r
100         "name": "failure",\r
101         "xml": "<outcome value='failure'>\n",\r
102         "comments": "",\r
103         "outputs": 1,\r
104         "x": 1307,\r
105         "y": 260,\r
106         "z": "7b5a733a.b08434",\r
107         "wires": [\r
108             [\r
109                 "d564baab.1e6f6"\r
110             ]\r
111         ]\r
112     },\r
113     {\r
114         "id": "4d990b70.47f5fc",\r
115         "type": "outcome",\r
116         "name": "logical-link",\r
117         "xml": "<outcome value='logical-link'>\n",\r
118         "comments": "",\r
119         "outputs": 1,\r
120         "x": 1039.0001220703125,\r
121         "y": 766.0001220703125,\r
122         "z": "7b5a733a.b08434",\r
123         "wires": [\r
124             [\r
125                 "5e1ad592.41ee24"\r
126             ]\r
127         ]\r
128     },\r
129     {\r
130         "id": "5e1ad592.41ee24",\r
131         "type": "block",\r
132         "name": "block : atomic",\r
133         "xml": "<block atomic=\"true\">",\r
134         "atomic": "true",\r
135         "outputs": 1,\r
136         "x": 1216,\r
137         "y": 759,\r
138         "z": "7b5a733a.b08434",\r
139         "wires": [\r
140             [\r
141                 "e398aae7.45cbf8",\r
142                 "a04e6833.e4988",\r
143                 "5187f08e.74ac2"\r
144             ]\r
145         ]\r
146     },\r
147     {\r
148         "id": "d902fdae.cea3e8",\r
149         "type": "for",\r
150         "name": "for each allotted-resource relationship",\r
151         "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",\r
152         "comments": "",\r
153         "outputs": 1,\r
154         "x": 814,\r
155         "y": 695,\r
156         "z": "7b5a733a.b08434",\r
157         "wires": [\r
158             [\r
159                 "4648afd9.f59d38"\r
160             ]\r
161         ]\r
162     },\r
163     {\r
164         "id": "4648afd9.f59d38",\r
165         "type": "switchNode",\r
166         "name": "switch related-to",\r
167         "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",\r
168         "comments": "",\r
169         "outputs": 1,\r
170         "x": 1085,\r
171         "y": 691,\r
172         "z": "7b5a733a.b08434",\r
173         "wires": [\r
174             [\r
175                 "4d990b70.47f5fc"\r
176             ]\r
177         ]\r
178     },\r
179     {\r
180         "id": "14de5c82.464f93",\r
181         "type": "execute",\r
182         "name": "execute properties",\r
183         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />",\r
184         "comments": "",\r
185         "outputs": 1,\r
186         "x": 1065,\r
187         "y": 226,\r
188         "z": "7b5a733a.b08434",\r
189         "wires": [\r
190             []\r
191         ]\r
192     },\r
193     {\r
194         "id": "aaa9891e.70ccc8",\r
195         "type": "block",\r
196         "name": "block : atomic",\r
197         "xml": "<block atomic=\"true\">",\r
198         "atomic": "true",\r
199         "outputs": 1,\r
200         "x": 362,\r
201         "y": 671,\r
202         "z": "7b5a733a.b08434",\r
203         "wires": [\r
204             [\r
205                 "d7003a6e.38b288",\r
206                 "cee9d4f6.bc12e8"\r
207             ]\r
208         ]\r
209     },\r
210     {\r
211         "id": "d7003a6e.38b288",\r
212         "type": "for",\r
213         "name": "for each allotted-resource relationship",\r
214         "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",\r
215         "comments": "",\r
216         "outputs": 1,\r
217         "x": 808,\r
218         "y": 530,\r
219         "z": "7b5a733a.b08434",\r
220         "wires": [\r
221             [\r
222                 "23206dde.76caa2"\r
223             ]\r
224         ]\r
225     },\r
226     {\r
227         "id": "9cc7d8a0.338888",\r
228         "type": "switchNode",\r
229         "name": "switch related-to",\r
230         "xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",\r
231         "comments": "",\r
232         "outputs": 1,\r
233         "x": 1290.33349609375,\r
234         "y": 1177,\r
235         "z": "7b5a733a.b08434",\r
236         "wires": [\r
237             [\r
238                 "361c81d1.d1312e"\r
239             ]\r
240         ]\r
241     },\r
242     {\r
243         "id": "cee9d4f6.bc12e8",\r
244         "type": "block",\r
245         "name": "block : atomic",\r
246         "xml": "<block atomic='true'>",\r
247         "atomic": "true",\r
248         "comments": "",\r
249         "outputs": 1,\r
250         "x": 781,\r
251         "y": 1176,\r
252         "z": "7b5a733a.b08434",\r
253         "wires": [\r
254             [\r
255                 "80751e9a.0057d8",\r
256                 "26d1ad19.58f772"\r
257             ]\r
258         ]\r
259     },\r
260     {\r
261         "id": "80751e9a.0057d8",\r
262         "type": "for",\r
263         "name": "for each svc-instance relationship",\r
264         "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",\r
265         "comments": "",\r
266         "outputs": 1,\r
267         "x": 1055,\r
268         "y": 1176,\r
269         "z": "7b5a733a.b08434",\r
270         "wires": [\r
271             [\r
272                 "9cc7d8a0.338888"\r
273             ]\r
274         ]\r
275     },\r
276     {\r
277         "id": "361c81d1.d1312e",\r
278         "type": "outcome",\r
279         "name": "connectivity",\r
280         "xml": "<outcome value='connectivity'>\n",\r
281         "comments": "",\r
282         "outputs": 1,\r
283         "x": 574.000244140625,\r
284         "y": 1330,\r
285         "z": "7b5a733a.b08434",\r
286         "wires": [\r
287             [\r
288                 "eead4d83.93ec08"\r
289             ]\r
290         ]\r
291     },\r
292     {\r
293         "id": "fba02c9f.91f47",\r
294         "type": "save",\r
295         "name": "get connectivity from aai",\r
296         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t    key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivity\" >\n",\r
297         "comments": "",\r
298         "outputs": 1,\r
299         "x": 963,\r
300         "y": 1335,\r
301         "z": "7b5a733a.b08434",\r
302         "wires": [\r
303             [\r
304                 "dbda7d85.ee895",\r
305                 "4ef19f13.4e41a8",\r
306                 "2ea82e0b.cdf21a"\r
307             ]\r
308         ]\r
309     },\r
310     {\r
311         "id": "dbda7d85.ee895",\r
312         "type": "success",\r
313         "name": "success",\r
314         "xml": "<outcome value='success'>\n",\r
315         "comments": "",\r
316         "outputs": 1,\r
317         "x": 1159,\r
318         "y": 1300,\r
319         "z": "7b5a733a.b08434",\r
320         "wires": [\r
321             [\r
322                 "8ba3755.a15c088"\r
323             ]\r
324         ]\r
325     },\r
326     {\r
327         "id": "4ef19f13.4e41a8",\r
328         "type": "not-found",\r
329         "name": "not-found",\r
330         "xml": "<outcome value='not-found'>\n",\r
331         "comments": "",\r
332         "outputs": 1,\r
333         "x": 1159.490966796875,\r
334         "y": 1345.5740356445312,\r
335         "z": "7b5a733a.b08434",\r
336         "wires": [\r
337             [\r
338                 "729746db.d253f"\r
339             ]\r
340         ]\r
341     },\r
342     {\r
343         "id": "2ea82e0b.cdf21a",\r
344         "type": "failure",\r
345         "name": "failure",\r
346         "xml": "<outcome value='failure'>\n",\r
347         "comments": "",\r
348         "outputs": 1,\r
349         "x": 1124,\r
350         "y": 1391,\r
351         "z": "7b5a733a.b08434",\r
352         "wires": [\r
353             [\r
354                 "4b0e29e1.6abb78"\r
355             ]\r
356         ]\r
357     },\r
358     {\r
359         "id": "729746db.d253f",\r
360         "type": "returnFailure",\r
361         "name": "return failure",\r
362         "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
363         "comments": "",\r
364         "x": 1319.0625,\r
365         "y": 1342.8597412109375,\r
366         "z": "7b5a733a.b08434",\r
367         "wires": []\r
368     },\r
369     {\r
370         "id": "4b0e29e1.6abb78",\r
371         "type": "returnFailure",\r
372         "name": "return failure",\r
373         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
374         "comments": "",\r
375         "x": 1277,\r
376         "y": 1393,\r
377         "z": "7b5a733a.b08434",\r
378         "wires": []\r
379     },\r
380     {\r
381         "id": "8ba3755.a15c088",\r
382         "type": "block",\r
383         "name": "block : atomic",\r
384         "xml": "<block atomic=\"true\">",\r
385         "atomic": "true",\r
386         "outputs": 1,\r
387         "x": 1323,\r
388         "y": 1284,\r
389         "z": "7b5a733a.b08434",\r
390         "wires": [\r
391             [\r
392                 "5032e132.b50ce8"\r
393             ]\r
394         ]\r
395     },\r
396     {\r
397         "id": "eead4d83.93ec08",\r
398         "type": "block",\r
399         "name": "block : atomic",\r
400         "xml": "<block atomic=\"true\">",\r
401         "atomic": "true",\r
402         "outputs": 1,\r
403         "x": 746,\r
404         "y": 1330,\r
405         "z": "7b5a733a.b08434",\r
406         "wires": [\r
407             [\r
408                 "fba02c9f.91f47",\r
409                 "8f9d786c.56a8b8"\r
410             ]\r
411         ]\r
412     },\r
413     {\r
414         "id": "8f9d786c.56a8b8",\r
415         "type": "set",\r
416         "name": "unset tmp.aai.connectivity",\r
417         "xml": "<set>\n<parameter name='tmp.aai.connectivity.' value='' />\n",\r
418         "comments": "",\r
419         "x": 966,\r
420         "y": 1278,\r
421         "z": "7b5a733a.b08434",\r
422         "wires": []\r
423     },\r
424     {\r
425         "id": "e398aae7.45cbf8",\r
426         "type": "set",\r
427         "name": "set the current logical-link-name",\r
428         "xml": "<set>\n<parameter name='logical-link-name' value=\"`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`\" />\n<parameter name='currLinkIsFound' value=\"false\" />\n\n\n",\r
429         "comments": "",\r
430         "x": 1462,\r
431         "y": 669,\r
432         "z": "7b5a733a.b08434",\r
433         "wires": []\r
434     },\r
435     {\r
436         "id": "a04e6833.e4988",\r
437         "type": "save",\r
438         "name": "get logical-link from aai",\r
439         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\"\n\tkey='logical-link.link-name = $logical-link-name'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.logical-link\">",\r
440         "comments": "",\r
441         "outputs": 1,\r
442         "x": 1429,\r
443         "y": 783,\r
444         "z": "7b5a733a.b08434",\r
445         "wires": [\r
446             [\r
447                 "49053c81.8b87cc",\r
448                 "6a35a06.779ac6",\r
449                 "64bb497.5849e38"\r
450             ]\r
451         ]\r
452     },\r
453     {\r
454         "id": "49053c81.8b87cc",\r
455         "type": "not-found",\r
456         "name": "not-found",\r
457         "xml": "<outcome value='not-found'>\n",\r
458         "comments": "",\r
459         "outputs": 1,\r
460         "x": 1641.490966796875,\r
461         "y": 749.573974609375,\r
462         "z": "7b5a733a.b08434",\r
463         "wires": [\r
464             [\r
465                 "7b3cd426.944f0c"\r
466             ]\r
467         ]\r
468     },\r
469     {\r
470         "id": "6a35a06.779ac6",\r
471         "type": "failure",\r
472         "name": "failure",\r
473         "xml": "<outcome value='failure'>\n",\r
474         "comments": "",\r
475         "outputs": 1,\r
476         "x": 1630,\r
477         "y": 794,\r
478         "z": "7b5a733a.b08434",\r
479         "wires": [\r
480             [\r
481                 "715fffb0.0dd628"\r
482             ]\r
483         ]\r
484     },\r
485     {\r
486         "id": "7b3cd426.944f0c",\r
487         "type": "returnFailure",\r
488         "name": "return failure",\r
489         "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
490         "comments": "",\r
491         "x": 1790.0625,\r
492         "y": 749.8597412109375,\r
493         "z": "7b5a733a.b08434",\r
494         "wires": []\r
495     },\r
496     {\r
497         "id": "715fffb0.0dd628",\r
498         "type": "returnFailure",\r
499         "name": "return failure",\r
500         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
501         "comments": "",\r
502         "x": 1789,\r
503         "y": 794,\r
504         "z": "7b5a733a.b08434",\r
505         "wires": []\r
506     },\r
507     {\r
508         "id": "64bb497.5849e38",\r
509         "type": "success",\r
510         "name": "success",\r
511         "xml": "<outcome value='success'>\n",\r
512         "comments": "",\r
513         "outputs": 1,\r
514         "x": 1635,\r
515         "y": 837,\r
516         "z": "7b5a733a.b08434",\r
517         "wires": [\r
518             []\r
519         ]\r
520     },\r
521     {\r
522         "id": "cb0d7b9d.4f62",\r
523         "type": "switchNode",\r
524         "name": "switch loglink-id exists in conn",\r
525         "xml": "<switch test='`$tmp.aai.logical-link.link-id == $tmp.aai.connectivity.etht-svc-name`'>\n",\r
526         "comments": "",\r
527         "outputs": 1,\r
528         "x": 1552,\r
529         "y": 1283,\r
530         "z": "7b5a733a.b08434",\r
531         "wires": [\r
532             [\r
533                 "ed843baa.4246c",\r
534                 "77db6f07.dbc38"\r
535             ]\r
536         ]\r
537     },\r
538     {\r
539         "id": "ed843baa.4246c",\r
540         "type": "outcomeTrue",\r
541         "name": "true",\r
542         "xml": "<outcome value='true'>\n",\r
543         "comments": "",\r
544         "outputs": 1,\r
545         "x": 1763,\r
546         "y": 1248,\r
547         "z": "7b5a733a.b08434",\r
548         "wires": [\r
549             [\r
550                 "c41e69d5.000d98"\r
551             ]\r
552         ]\r
553     },\r
554     {\r
555         "id": "77db6f07.dbc38",\r
556         "type": "outcomeFalse",\r
557         "name": "false",\r
558         "xml": "<outcome value='false'>\n",\r
559         "comments": "",\r
560         "outputs": 1,\r
561         "x": 1760,\r
562         "y": 1309,\r
563         "z": "7b5a733a.b08434",\r
564         "wires": [\r
565             []\r
566         ]\r
567     },\r
568     {\r
569         "id": "c41e69d5.000d98",\r
570         "type": "block",\r
571         "name": "block : atomic",\r
572         "xml": "<block atomic=\"true\">",\r
573         "atomic": "true",\r
574         "outputs": 1,\r
575         "x": 1915,\r
576         "y": 1249,\r
577         "z": "7b5a733a.b08434",\r
578         "wires": [\r
579             [\r
580                 "b90808de.83d488"\r
581             ]\r
582         ]\r
583     },\r
584     {\r
585         "id": "c0a4cffa.883e98",\r
586         "type": "break",\r
587         "name": "break",\r
588         "xml": "<break>\n",\r
589         "comments": "",\r
590         "x": 2068,\r
591         "y": 1277,\r
592         "z": "7b5a733a.b08434",\r
593         "wires": []\r
594     },\r
595     {\r
596         "id": "1190650a.0a84cb",\r
597         "type": "comment",\r
598         "name": "currLinkIsFound. Go to the next logical-link",\r
599         "info": "",\r
600         "comments": "",\r
601         "x": 2073,\r
602         "y": 1171,\r
603         "z": "7b5a733a.b08434",\r
604         "wires": []\r
605     },\r
606     {\r
607         "id": "5187f08e.74ac2",\r
608         "type": "switchNode",\r
609         "name": "switch currLinkIsFound",\r
610         "xml": "<switch test='`$currLinkIsFound`'>\n",\r
611         "comments": "",\r
612         "outputs": 1,\r
613         "x": 1355,\r
614         "y": 901,\r
615         "z": "7b5a733a.b08434",\r
616         "wires": [\r
617             [\r
618                 "bc7d7df2.5493c",\r
619                 "acacd757.221108"\r
620             ]\r
621         ]\r
622     },\r
623     {\r
624         "id": "bc7d7df2.5493c",\r
625         "type": "outcomeTrue",\r
626         "name": "true",\r
627         "xml": "<outcome value='true'>\n",\r
628         "comments": "",\r
629         "outputs": 1,\r
630         "x": 1541,\r
631         "y": 880,\r
632         "z": "7b5a733a.b08434",\r
633         "wires": [\r
634             [\r
635                 "1afa8a19.4821fe"\r
636             ]\r
637         ]\r
638     },\r
639     {\r
640         "id": "acacd757.221108",\r
641         "type": "outcomeFalse",\r
642         "name": "false",\r
643         "xml": "<outcome value='false'>\n",\r
644         "comments": "",\r
645         "outputs": 1,\r
646         "x": 1538,\r
647         "y": 1016,\r
648         "z": "7b5a733a.b08434",\r
649         "wires": [\r
650             []\r
651         ]\r
652     },\r
653     {\r
654         "id": "1afa8a19.4821fe",\r
655         "type": "block",\r
656         "name": "block : atomic",\r
657         "xml": "<block atomic=\"true\">",\r
658         "atomic": "true",\r
659         "outputs": 1,\r
660         "x": 1783,\r
661         "y": 875,\r
662         "z": "7b5a733a.b08434",\r
663         "wires": [\r
664             []\r
665         ]\r
666     },\r
667     {\r
668         "id": "790c6016.9667b8",\r
669         "type": "comment",\r
670         "name": "A new logical-link has been found: modify process should be triggered",\r
671         "info": "",\r
672         "comments": "",\r
673         "x": 1729,\r
674         "y": 979,\r
675         "z": "7b5a733a.b08434",\r
676         "wires": []\r
677     },\r
678     {\r
679         "id": "5032e132.b50ce8",\r
680         "type": "switchNode",\r
681         "name": "switch connectivityBW == gfp",\r
682         "xml": "<switch test='`$tmp.aai.connectivity.bandwidth-profile-name == $gfp`'>\n",\r
683         "comments": "",\r
684         "outputs": 1,\r
685         "x": 1553,\r
686         "y": 1374,\r
687         "z": "7b5a733a.b08434",\r
688         "wires": [\r
689             [\r
690                 "ee0cb72e.3d8b4",\r
691                 "b958be18.cec7a8"\r
692             ]\r
693         ]\r
694     },\r
695     {\r
696         "id": "ee0cb72e.3d8b4",\r
697         "type": "outcomeTrue",\r
698         "name": "true",\r
699         "xml": "<outcome value='true'>\n",\r
700         "comments": "",\r
701         "outputs": 1,\r
702         "x": 1758,\r
703         "y": 1370,\r
704         "z": "7b5a733a.b08434",\r
705         "wires": [\r
706             []\r
707         ]\r
708     },\r
709     {\r
710         "id": "b958be18.cec7a8",\r
711         "type": "outcomeFalse",\r
712         "name": "false",\r
713         "xml": "<outcome value='false'>\n",\r
714         "comments": "",\r
715         "outputs": 1,\r
716         "x": 1760,\r
717         "y": 1420,\r
718         "z": "7b5a733a.b08434",\r
719         "wires": [\r
720             [\r
721                 "649f93b2.4fa094"\r
722             ]\r
723         ]\r
724     },\r
725     {\r
726         "id": "649f93b2.4fa094",\r
727         "type": "block",\r
728         "name": "block : atomic",\r
729         "xml": "<block atomic=\"true\">",\r
730         "atomic": "true",\r
731         "outputs": 1,\r
732         "x": 1914,\r
733         "y": 1419,\r
734         "z": "7b5a733a.b08434",\r
735         "wires": [\r
736             [\r
737                 "2c6dae30.c090da",\r
738                 "bec6024a.522f"\r
739             ]\r
740         ]\r
741     },\r
742     {\r
743         "id": "b90808de.83d488",\r
744         "type": "set",\r
745         "name": "set currLinkIsFound",\r
746         "xml": "<set>\n<parameter name='currLinkIsFound' value=\"true\" />\n\n\n",\r
747         "comments": "",\r
748         "x": 2101,\r
749         "y": 1221,\r
750         "z": "7b5a733a.b08434",\r
751         "wires": []\r
752     },\r
753     {\r
754         "id": "2c6dae30.c090da",\r
755         "type": "set",\r
756         "name": "set bwModified",\r
757         "xml": "<set>\n<parameter name='bwModified' value=\"true\" />\n\n\n",\r
758         "comments": "",\r
759         "x": 2109,\r
760         "y": 1398,\r
761         "z": "7b5a733a.b08434",\r
762         "wires": []\r
763     },\r
764     {\r
765         "id": "bec6024a.522f",\r
766         "type": "for",\r
767         "name": "for each relationship",\r
768         "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",\r
769         "comments": "",\r
770         "outputs": 1,\r
771         "x": 934,\r
772         "y": 1624,\r
773         "z": "7b5a733a.b08434",\r
774         "wires": [\r
775             [\r
776                 "fa7c4190.123f5"\r
777             ]\r
778         ]\r
779     },\r
780     {\r
781         "id": "fa7c4190.123f5",\r
782         "type": "switchNode",\r
783         "name": "switch related-to",\r
784         "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",\r
785         "comments": "",\r
786         "outputs": 1,\r
787         "x": 1139,\r
788         "y": 1624,\r
789         "z": "7b5a733a.b08434",\r
790         "wires": [\r
791             [\r
792                 "15fdeaff.12dc65"\r
793             ]\r
794         ]\r
795     },\r
796     {\r
797         "id": "15fdeaff.12dc65",\r
798         "type": "outcome",\r
799         "name": "vpn-binding",\r
800         "xml": "<outcome value='vpn-binding'>\n",\r
801         "comments": "",\r
802         "outputs": 1,\r
803         "x": 1305,\r
804         "y": 1624,\r
805         "z": "7b5a733a.b08434",\r
806         "wires": [\r
807             [\r
808                 "23696373.a05af4"\r
809             ]\r
810         ]\r
811     },\r
812     {\r
813         "id": "23696373.a05af4",\r
814         "type": "block",\r
815         "name": "block : atomic",\r
816         "xml": "<block atomic=\"true\">",\r
817         "atomic": "true",\r
818         "outputs": 1,\r
819         "x": 1468,\r
820         "y": 1624,\r
821         "z": "7b5a733a.b08434",\r
822         "wires": [\r
823             [\r
824                 "393b763a.3c031a",\r
825                 "93b6e437.4f099"\r
826             ]\r
827         ]\r
828     },\r
829     {\r
830         "id": "93b6e437.4f099",\r
831         "type": "set",\r
832         "name": "unset tmp.aai.vpn-binding",\r
833         "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",\r
834         "comments": "",\r
835         "x": 1697,\r
836         "y": 1564,\r
837         "z": "7b5a733a.b08434",\r
838         "wires": []\r
839     },\r
840     {\r
841         "id": "393b763a.3c031a",\r
842         "type": "save",\r
843         "name": "get vpn-binding from aai",\r
844         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\"\n\t    key=\"vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-binding\" >\n",\r
845         "comments": "",\r
846         "outputs": 1,\r
847         "x": 1206,\r
848         "y": 1718,\r
849         "z": "7b5a733a.b08434",\r
850         "wires": [\r
851             [\r
852                 "2f327191.83395e",\r
853                 "e7652a9b.a6a5d8",\r
854                 "cbe418b.f7d27e8"\r
855             ]\r
856         ]\r
857     },\r
858     {\r
859         "id": "8a250676.10f76",\r
860         "type": "block",\r
861         "name": "block : atomic",\r
862         "xml": "<block atomic=\"true\">",\r
863         "atomic": "true",\r
864         "outputs": 1,\r
865         "x": 1590,\r
866         "y": 1718,\r
867         "z": "7b5a733a.b08434",\r
868         "wires": [\r
869             [\r
870                 "c8600837.7048d8",\r
871                 "6043cb08.7416ec"\r
872             ]\r
873         ]\r
874     },\r
875     {\r
876         "id": "2f327191.83395e",\r
877         "type": "success",\r
878         "name": "success",\r
879         "xml": "<outcome value='success'>\n",\r
880         "comments": "",\r
881         "outputs": 1,\r
882         "x": 1417,\r
883         "y": 1720,\r
884         "z": "7b5a733a.b08434",\r
885         "wires": [\r
886             [\r
887                 "8a250676.10f76"\r
888             ]\r
889         ]\r
890     },\r
891     {\r
892         "id": "e7652a9b.a6a5d8",\r
893         "type": "not-found",\r
894         "name": "not-found",\r
895         "xml": "<outcome value='not-found'>\n",\r
896         "comments": "",\r
897         "outputs": 1,\r
898         "x": 1417.490966796875,\r
899         "y": 1765.5740356445312,\r
900         "z": "7b5a733a.b08434",\r
901         "wires": [\r
902             [\r
903                 "a94efe89.188bd8"\r
904             ]\r
905         ]\r
906     },\r
907     {\r
908         "id": "cbe418b.f7d27e8",\r
909         "type": "failure",\r
910         "name": "failure",\r
911         "xml": "<outcome value='failure'>\n",\r
912         "comments": "",\r
913         "outputs": 1,\r
914         "x": 1415,\r
915         "y": 1809,\r
916         "z": "7b5a733a.b08434",\r
917         "wires": [\r
918             [\r
919                 "f4d34be9.21913"\r
920             ]\r
921         ]\r
922     },\r
923     {\r
924         "id": "f4d34be9.21913",\r
925         "type": "returnFailure",\r
926         "name": "return failure",\r
927         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
928         "comments": "",\r
929         "x": 1582,\r
930         "y": 1826,\r
931         "z": "7b5a733a.b08434",\r
932         "wires": []\r
933     },\r
934     {\r
935         "id": "a94efe89.188bd8",\r
936         "type": "returnFailure",\r
937         "name": "return failure",\r
938         "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
939         "comments": "",\r
940         "x": 1580.0623779296875,\r
941         "y": 1765.8597717285156,\r
942         "z": "7b5a733a.b08434",\r
943         "wires": []\r
944     },\r
945     {\r
946         "id": "c8600837.7048d8",\r
947         "type": "save",\r
948         "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",\r
949         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-binding.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-binding.vpn-name`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Modified' />\n",\r
950         "comments": "",\r
951         "outputs": 1,\r
952         "x": 1940.5,\r
953         "y": 1713,\r
954         "z": "7b5a733a.b08434",\r
955         "wires": [\r
956             []\r
957         ]\r
958     },\r
959     {\r
960         "id": "6043cb08.7416ec",\r
961         "type": "save",\r
962         "name": "update connectivity resource in AAI",\r
963         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.aai.connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivity.connectivity-id`' />\n<parameter name='operational-status' value='Modified' />\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n",\r
964         "comments": "",\r
965         "outputs": 1,\r
966         "x": 1867.5,\r
967         "y": 1777,\r
968         "z": "7b5a733a.b08434",\r
969         "wires": [\r
970             []\r
971         ]\r
972     },\r
973     {\r
974         "id": "be5a0198.1ba518",\r
975         "type": "success",\r
976         "name": "success",\r
977         "xml": "<outcome value='success'>\n",\r
978         "comments": "",\r
979         "outputs": 1,\r
980         "x": 1323,\r
981         "y": 144,\r
982         "z": "7b5a733a.b08434",\r
983         "wires": [\r
984             [\r
985                 "acd16415.eb51f"\r
986             ]\r
987         ]\r
988     },\r
989     {\r
990         "id": "d9138d20.e2fc8",\r
991         "type": "not-found",\r
992         "name": "not-found",\r
993         "xml": "<outcome value='not-found'>\n",\r
994         "comments": "",\r
995         "outputs": 1,\r
996         "x": 1318.490966796875,\r
997         "y": 213.57403564453125,\r
998         "z": "7b5a733a.b08434",\r
999         "wires": [\r
1000             [\r
1001                 "855114bb.d4b47"\r
1002             ]\r
1003         ]\r
1004     },\r
1005     {\r
1006         "id": "acd16415.eb51f",\r
1007         "type": "switchNode",\r
1008         "name": "switch allotted-resources_length != 0",\r
1009         "xml": "<switch test='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length != 0`'>\n",\r
1010         "comments": "",\r
1011         "outputs": 1,\r
1012         "x": 1562,\r
1013         "y": 141,\r
1014         "z": "7b5a733a.b08434",\r
1015         "wires": [\r
1016             [\r
1017                 "7d32da32.7e3de4",\r
1018                 "7d05195c.3ec52"\r
1019             ]\r
1020         ]\r
1021     },\r
1022     {\r
1023         "id": "855114bb.d4b47",\r
1024         "type": "returnFailure",\r
1025         "name": "return failure",\r
1026         "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
1027         "comments": "",\r
1028         "x": 1472.0623779296875,\r
1029         "y": 216.85977172851562,\r
1030         "z": "7b5a733a.b08434",\r
1031         "wires": []\r
1032     },\r
1033     {\r
1034         "id": "d564baab.1e6f6",\r
1035         "type": "returnFailure",\r
1036         "name": "return failure",\r
1037         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1038         "comments": "",\r
1039         "x": 1476,\r
1040         "y": 261,\r
1041         "z": "7b5a733a.b08434",\r
1042         "wires": []\r
1043     },\r
1044     {\r
1045         "id": "7d32da32.7e3de4",\r
1046         "type": "outcomeTrue",\r
1047         "name": "true",\r
1048         "xml": "<outcome value='true'>\n",\r
1049         "comments": "",\r
1050         "outputs": 1,\r
1051         "x": 1775,\r
1052         "y": 165,\r
1053         "z": "7b5a733a.b08434",\r
1054         "wires": [\r
1055             [\r
1056                 "1771a12b.55c52f"\r
1057             ]\r
1058         ]\r
1059     },\r
1060     {\r
1061         "id": "7d05195c.3ec52",\r
1062         "type": "outcomeFalse",\r
1063         "name": "false",\r
1064         "xml": "<outcome value='false'>\n",\r
1065         "comments": "",\r
1066         "outputs": 1,\r
1067         "x": 1777,\r
1068         "y": 105,\r
1069         "z": "7b5a733a.b08434",\r
1070         "wires": [\r
1071             []\r
1072         ]\r
1073     },\r
1074     {\r
1075         "id": "1771a12b.55c52f",\r
1076         "type": "block",\r
1077         "name": "block",\r
1078         "xml": "<block>\n",\r
1079         "atomic": "false",\r
1080         "comments": "",\r
1081         "outputs": 1,\r
1082         "x": 1720,\r
1083         "y": 347,\r
1084         "z": "7b5a733a.b08434",\r
1085         "wires": [\r
1086             [\r
1087                 "e4c22eb.a2aea5",\r
1088                 "6160b6fc.008b48"\r
1089             ]\r
1090         ]\r
1091     },\r
1092     {\r
1093         "id": "e4c22eb.a2aea5",\r
1094         "type": "for",\r
1095         "name": "for each allotted-resource",\r
1096         "xml": "<for index='aridx' start='0' end='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length`' >\n",\r
1097         "comments": "",\r
1098         "outputs": 1,\r
1099         "x": 1978,\r
1100         "y": 300,\r
1101         "z": "7b5a733a.b08434",\r
1102         "wires": [\r
1103             [\r
1104                 "fc0dfed8.0cac3",\r
1105                 "c57f71e8.93673"\r
1106             ]\r
1107         ]\r
1108     },\r
1109     {\r
1110         "id": "6160b6fc.008b48",\r
1111         "type": "set",\r
1112         "name": "set tmp.arr",\r
1113         "xml": "<set>\n<parameter name='tmp.arr' value='' />\n<parameter name='tmp.arridx' value='0' />\n<parameter name='tmp.arr_length' value='0' />\n\n<parameter name='otn-tunnel-slice' value='' />\n<parameter name='otn-tunnel-slice_length' value='0' />\n\n<!--<parameter name='tmp.slicevpns' value='' />-->\n<!--<parameter name='tmp.slicevpns_length' value='0' />-->\n\n<!--<parameter name='tmp.slicevpnuuids' value='' />-->\n<!--<parameter name='tmp.slicevpnuuids.' value='' />-->\n\n<parameter name='bwModified' value='false' />\n",\r
1114         "comments": "",\r
1115         "x": 1937,\r
1116         "y": 250,\r
1117         "z": "7b5a733a.b08434",\r
1118         "wires": []\r
1119     },\r
1120     {\r
1121         "id": "d51caf90.a463f",\r
1122         "type": "comment",\r
1123         "name": "The following two nodes are for PCE",\r
1124         "info": "",\r
1125         "comments": "",\r
1126         "x": 2012,\r
1127         "y": 105,\r
1128         "z": "7b5a733a.b08434",\r
1129         "wires": []\r
1130     },\r
1131     {\r
1132         "id": "f6765cf8.85e25",\r
1133         "type": "get-resource",\r
1134         "name": "get-resource pnfs-list",\r
1135         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"pnfs\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v21/network/pnfs?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopopnfs\" >",\r
1136         "comments": "",\r
1137         "outputs": 1,\r
1138         "x": 1972,\r
1139         "y": 149,\r
1140         "z": "7b5a733a.b08434",\r
1141         "wires": [\r
1142             []\r
1143         ]\r
1144     },\r
1145     {\r
1146         "id": "66aed450.169b54",\r
1147         "type": "get-resource",\r
1148         "name": "get-resource logical-links",\r
1149         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-links\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v21/network/logical-links?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopologicalLinks\" >",\r
1150         "comments": "",\r
1151         "outputs": 1,\r
1152         "x": 1985,\r
1153         "y": 194,\r
1154         "z": "7b5a733a.b08434",\r
1155         "wires": [\r
1156             []\r
1157         ]\r
1158     },\r
1159     {\r
1160         "id": "c3532310.372288",\r
1161         "type": "switchNode",\r
1162         "name": "switch allotted-resource.relationship-list not empty",\r
1163         "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship_length != 0`'>\n",\r
1164         "comments": "",\r
1165         "outputs": 1,\r
1166         "x": 2205,\r
1167         "y": 465,\r
1168         "z": "7b5a733a.b08434",\r
1169         "wires": [\r
1170             [\r
1171                 "9a292ac4.9b06e",\r
1172                 "35630785.237e1"\r
1173             ]\r
1174         ]\r
1175     },\r
1176     {\r
1177         "id": "c57f71e8.93673",\r
1178         "type": "save",\r
1179         "name": "get allotted-resource from aai",\r
1180         "xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"allotted-resource\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type-->\n<!--         AND allotted-resource.id = $allotted-resource-id'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"allotted-resource\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type\n         AND allotted-resource.id = $allotted-resource-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">\n\n",\r
1181         "comments": "",\r
1182         "outputs": 1,\r
1183         "x": 2246,\r
1184         "y": 304,\r
1185         "z": "7b5a733a.b08434",\r
1186         "wires": [\r
1187             [\r
1188                 "87b192bc.e1f0e",\r
1189                 "d00bb928.2d4ff",\r
1190                 "29adfdf9.b65b62"\r
1191             ]\r
1192         ]\r
1193     },\r
1194     {\r
1195         "id": "87b192bc.e1f0e",\r
1196         "type": "success",\r
1197         "name": "success",\r
1198         "xml": "<outcome value='success'>\n",\r
1199         "comments": "",\r
1200         "outputs": 1,\r
1201         "x": 2462,\r
1202         "y": 371,\r
1203         "z": "7b5a733a.b08434",\r
1204         "wires": [\r
1205             [\r
1206                 "8f69272a.fd278"\r
1207             ]\r
1208         ]\r
1209     },\r
1210     {\r
1211         "id": "d00bb928.2d4ff",\r
1212         "type": "not-found",\r
1213         "name": "not-found",\r
1214         "xml": "<outcome value='not-found'>\n",\r
1215         "comments": "",\r
1216         "outputs": 1,\r
1217         "x": 2462.490966796875,\r
1218         "y": 270.573974609375,\r
1219         "z": "7b5a733a.b08434",\r
1220         "wires": [\r
1221             [\r
1222                 "b5f2de6e.0aa398"\r
1223             ]\r
1224         ]\r
1225     },\r
1226     {\r
1227         "id": "29adfdf9.b65b62",\r
1228         "type": "failure",\r
1229         "name": "failure",\r
1230         "xml": "<outcome value='failure'>\n",\r
1231         "comments": "",\r
1232         "outputs": 1,\r
1233         "x": 2458,\r
1234         "y": 320,\r
1235         "z": "7b5a733a.b08434",\r
1236         "wires": [\r
1237             [\r
1238                 "8aece160.d46958"\r
1239             ]\r
1240         ]\r
1241     },\r
1242     {\r
1243         "id": "b5f2de6e.0aa398",\r
1244         "type": "returnFailure",\r
1245         "name": "return failure",\r
1246         "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
1247         "comments": "",\r
1248         "x": 2640.0625,\r
1249         "y": 270.8597412109375,\r
1250         "z": "7b5a733a.b08434",\r
1251         "wires": []\r
1252     },\r
1253     {\r
1254         "id": "8aece160.d46958",\r
1255         "type": "returnFailure",\r
1256         "name": "return failure",\r
1257         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1258         "comments": "",\r
1259         "x": 2640,\r
1260         "y": 320,\r
1261         "z": "7b5a733a.b08434",\r
1262         "wires": []\r
1263     },\r
1264     {\r
1265         "id": "8f69272a.fd278",\r
1266         "type": "block",\r
1267         "name": "block : atomic",\r
1268         "xml": "<block atomic=\"true\">",\r
1269         "atomic": "true",\r
1270         "outputs": 1,\r
1271         "x": 2642,\r
1272         "y": 371,\r
1273         "z": "7b5a733a.b08434",\r
1274         "wires": [\r
1275             [\r
1276                 "a8018aed.5af3e8"\r
1277             ]\r
1278         ]\r
1279     },\r
1280     {\r
1281         "id": "35630785.237e1",\r
1282         "type": "outcomeFalse",\r
1283         "name": "false",\r
1284         "xml": "<outcome value='false'>\n",\r
1285         "comments": "",\r
1286         "outputs": 1,\r
1287         "x": 2526,\r
1288         "y": 447,\r
1289         "z": "7b5a733a.b08434",\r
1290         "wires": [\r
1291             []\r
1292         ]\r
1293     },\r
1294     {\r
1295         "id": "9a292ac4.9b06e",\r
1296         "type": "outcomeTrue",\r
1297         "name": "true",\r
1298         "xml": "<outcome value='true'>\n",\r
1299         "comments": "",\r
1300         "outputs": 1,\r
1301         "x": 2508,\r
1302         "y": 545,\r
1303         "z": "7b5a733a.b08434",\r
1304         "wires": [\r
1305             [\r
1306                 "aaa9891e.70ccc8"\r
1307             ]\r
1308         ]\r
1309     },\r
1310     {\r
1311         "id": "a8018aed.5af3e8",\r
1312         "type": "save",\r
1313         "name": "get allotted-resource relationship from aai",\r
1314         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"allotted-resource:relationship-list\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type\n         AND allotted-resource.id = $allotted-resource-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.allotted-resource.relationship-list\">\n\n",\r
1315         "comments": "",\r
1316         "outputs": 1,\r
1317         "x": 2935,\r
1318         "y": 318,\r
1319         "z": "7b5a733a.b08434",\r
1320         "wires": [\r
1321             [\r
1322                 "ee26c76e.4e13b",\r
1323                 "ebfa2004.002188",\r
1324                 "d77341f8.228578"\r
1325             ]\r
1326         ]\r
1327     },\r
1328     {\r
1329         "id": "ebfa2004.002188",\r
1330         "type": "not-found",\r
1331         "name": "not-found",\r
1332         "xml": "<outcome value='not-found'>\n",\r
1333         "comments": "",\r
1334         "outputs": 1,\r
1335         "x": 3208.490966796875,\r
1336         "y": 210.573974609375,\r
1337         "z": "7b5a733a.b08434",\r
1338         "wires": [\r
1339             [\r
1340                 "c12dc61.2210b38"\r
1341             ]\r
1342         ]\r
1343     },\r
1344     {\r
1345         "id": "d77341f8.228578",\r
1346         "type": "failure",\r
1347         "name": "failure",\r
1348         "xml": "<outcome value='failure'>\n",\r
1349         "comments": "",\r
1350         "outputs": 1,\r
1351         "x": 3204,\r
1352         "y": 260,\r
1353         "z": "7b5a733a.b08434",\r
1354         "wires": [\r
1355             [\r
1356                 "bd3bae8a.af124"\r
1357             ]\r
1358         ]\r
1359     },\r
1360     {\r
1361         "id": "ee26c76e.4e13b",\r
1362         "type": "success",\r
1363         "name": "success",\r
1364         "xml": "<outcome value='success'>\n",\r
1365         "comments": "",\r
1366         "outputs": 1,\r
1367         "x": 3208,\r
1368         "y": 311,\r
1369         "z": "7b5a733a.b08434",\r
1370         "wires": [\r
1371             [\r
1372                 "de61d430.83d478"\r
1373             ]\r
1374         ]\r
1375     },\r
1376     {\r
1377         "id": "23206dde.76caa2",\r
1378         "type": "switchNode",\r
1379         "name": "switch related-to",\r
1380         "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",\r
1381         "comments": "",\r
1382         "outputs": 1,\r
1383         "x": 3173,\r
1384         "y": 512,\r
1385         "z": "7b5a733a.b08434",\r
1386         "wires": [\r
1387             [\r
1388                 "9e627c37.4741c8"\r
1389             ]\r
1390         ]\r
1391     },\r
1392     {\r
1393         "id": "fc0dfed8.0cac3",\r
1394         "type": "set",\r
1395         "name": "set the current allotted-resource-id",\r
1396         "xml": "<set>\n<parameter name='allotted-resource-id' value=\"`$tmp.aai.service-instance.allotted-resources.allotted-resource[$aridx].id`\" />\n\n\n",\r
1397         "comments": "",\r
1398         "x": 2243,\r
1399         "y": 223,\r
1400         "z": "7b5a733a.b08434",\r
1401         "wires": []\r
1402     },\r
1403     {\r
1404         "id": "c12dc61.2210b38",\r
1405         "type": "returnFailure",\r
1406         "name": "return failure",\r
1407         "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
1408         "comments": "",\r
1409         "x": 3386.0625,\r
1410         "y": 210.8597412109375,\r
1411         "z": "7b5a733a.b08434",\r
1412         "wires": []\r
1413     },\r
1414     {\r
1415         "id": "bd3bae8a.af124",\r
1416         "type": "returnFailure",\r
1417         "name": "return failure",\r
1418         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1419         "comments": "",\r
1420         "x": 3386,\r
1421         "y": 260,\r
1422         "z": "7b5a733a.b08434",\r
1423         "wires": []\r
1424     },\r
1425     {\r
1426         "id": "de61d430.83d478",\r
1427         "type": "block",\r
1428         "name": "block : atomic",\r
1429         "xml": "<block atomic=\"true\">",\r
1430         "atomic": "true",\r
1431         "outputs": 1,\r
1432         "x": 3388,\r
1433         "y": 311,\r
1434         "z": "7b5a733a.b08434",\r
1435         "wires": [\r
1436             [\r
1437                 "c3532310.372288"\r
1438             ]\r
1439         ]\r
1440     },\r
1441     {\r
1442         "id": "9e627c37.4741c8",\r
1443         "type": "outcome",\r
1444         "name": "network-policy",\r
1445         "xml": "<outcome value='network-policy'>\n",\r
1446         "comments": "",\r
1447         "outputs": 1,\r
1448         "x": 3364,\r
1449         "y": 509,\r
1450         "z": "7b5a733a.b08434",\r
1451         "wires": [\r
1452             [\r
1453                 "e7f365c6.bea78"\r
1454             ]\r
1455         ]\r
1456     },\r
1457     {\r
1458         "id": "e7f365c6.bea78",\r
1459         "type": "block",\r
1460         "name": "block : atomic",\r
1461         "xml": "<block atomic=\"true\">",\r
1462         "atomic": "true",\r
1463         "outputs": 1,\r
1464         "x": 3540.9998779296875,\r
1465         "y": 501.9998779296875,\r
1466         "z": "7b5a733a.b08434",\r
1467         "wires": [\r
1468             [\r
1469                 "dc98dc9c.c8fc5",\r
1470                 "d938d57f.cf2528"\r
1471             ]\r
1472         ]\r
1473     },\r
1474     {\r
1475         "id": "dc98dc9c.c8fc5",\r
1476         "type": "set",\r
1477         "name": "set the 1st network-policy-id",\r
1478         "xml": "<set>\n<parameter name='network-policy-id' value=\"`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`\" />\n\n\n",\r
1479         "comments": "",\r
1480         "x": 3783.9998779296875,\r
1481         "y": 458.9998779296875,\r
1482         "z": "7b5a733a.b08434",\r
1483         "wires": []\r
1484     },\r
1485     {\r
1486         "id": "d938d57f.cf2528",\r
1487         "type": "save",\r
1488         "name": "get network-policy from aai",\r
1489         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy\"\n\tkey='network-policy.network-policy-id = $network-policy-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-policy\">",\r
1490         "comments": "",\r
1491         "outputs": 1,\r
1492         "x": 3772.9998779296875,\r
1493         "y": 513.9998779296875,\r
1494         "z": "7b5a733a.b08434",\r
1495         "wires": [\r
1496             [\r
1497                 "21724bd7.b5773c",\r
1498                 "86152ffd.44c928",\r
1499                 "acc93ab6.b56018"\r
1500             ]\r
1501         ]\r
1502     },\r
1503     {\r
1504         "id": "acc93ab6.b56018",\r
1505         "type": "not-found",\r
1506         "name": "not-found",\r
1507         "xml": "<outcome value='not-found'>\n",\r
1508         "comments": "",\r
1509         "outputs": 1,\r
1510         "x": 4026,\r
1511         "y": 400,\r
1512         "z": "7b5a733a.b08434",\r
1513         "wires": [\r
1514             [\r
1515                 "958f19ed.72cb28"\r
1516             ]\r
1517         ]\r
1518     },\r
1519     {\r
1520         "id": "958f19ed.72cb28",\r
1521         "type": "returnFailure",\r
1522         "name": "return failure",\r
1523         "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
1524         "comments": "",\r
1525         "x": 4174.571533203125,\r
1526         "y": 400.2857666015625,\r
1527         "z": "7b5a733a.b08434",\r
1528         "wires": []\r
1529     },\r
1530     {\r
1531         "id": "34514989.26e926",\r
1532         "type": "returnFailure",\r
1533         "name": "return failure",\r
1534         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1535         "comments": "",\r
1536         "x": 4173.509033203125,\r
1537         "y": 444.426025390625,\r
1538         "z": "7b5a733a.b08434",\r
1539         "wires": []\r
1540     },\r
1541     {\r
1542         "id": "86152ffd.44c928",\r
1543         "type": "failure",\r
1544         "name": "failure",\r
1545         "xml": "<outcome value='failure'>\n",\r
1546         "comments": "",\r
1547         "outputs": 1,\r
1548         "x": 4014.509033203125,\r
1549         "y": 444.426025390625,\r
1550         "z": "7b5a733a.b08434",\r
1551         "wires": [\r
1552             [\r
1553                 "34514989.26e926"\r
1554             ]\r
1555         ]\r
1556     },\r
1557     {\r
1558         "id": "21724bd7.b5773c",\r
1559         "type": "success",\r
1560         "name": "success",\r
1561         "xml": "<outcome value='success'>\n",\r
1562         "comments": "",\r
1563         "outputs": 1,\r
1564         "x": 4021.509033203125,\r
1565         "y": 523.426025390625,\r
1566         "z": "7b5a733a.b08434",\r
1567         "wires": [\r
1568             [\r
1569                 "9ee2f354.296c2"\r
1570             ]\r
1571         ]\r
1572     },\r
1573     {\r
1574         "id": "9ee2f354.296c2",\r
1575         "type": "block",\r
1576         "name": "block",\r
1577         "xml": "<block>\n",\r
1578         "atomic": "false",\r
1579         "comments": "",\r
1580         "outputs": 1,\r
1581         "x": 4160.509033203125,\r
1582         "y": 523.426025390625,\r
1583         "z": "7b5a733a.b08434",\r
1584         "wires": [\r
1585             [\r
1586                 "66fe28af.a13018",\r
1587                 "a2cba337.578da8"\r
1588             ]\r
1589         ]\r
1590     },\r
1591     {\r
1592         "id": "66fe28af.a13018",\r
1593         "type": "set",\r
1594         "name": "set the max bandwidth",\r
1595         "xml": "<set>\n<parameter name='maximum-bandwidth' value=\"`$tmp.aai.network-policy.max-bandwidth`\" />\n<parameter name='route-distinguisher' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",\r
1596         "comments": "",\r
1597         "x": 4366,\r
1598         "y": 521,\r
1599         "z": "7b5a733a.b08434",\r
1600         "wires": []\r
1601     },\r
1602     {\r
1603         "id": "a2cba337.578da8",\r
1604         "type": "set",\r
1605         "name": "set the max bandwidth",\r
1606         "xml": "<set>\n<parameter name='gfp' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",\r
1607         "comments": "",\r
1608         "x": 4365,\r
1609         "y": 567,\r
1610         "z": "7b5a733a.b08434",\r
1611         "wires": []\r
1612     },\r
1613     {\r
1614         "id": "26d1ad19.58f772",\r
1615         "type": "call",\r
1616         "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-F1-activate",\r
1617         "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1-activate' mode='sync' >\n\n",\r
1618         "comments": "",\r
1619         "outputs": 1,\r
1620         "x": 838,\r
1621         "y": 2032,\r
1622         "z": "7b5a733a.b08434",\r
1623         "wires": [\r
1624             []\r
1625         ]\r
1626     }\r
1627 ]