Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_contrail-route-topology-operation-unassign.json
1 [
2     {
3         "id": "cf211855.5ed1f8",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 168.57142639160156,
8         "y": 75.71428775787354,
9         "z": "124cd5eb.a6beaa",
10         "wires": [
11             [
12                 "bc882a0e.799dc8"
13             ]
14         ]
15     },
16     {
17         "id": "bc882a0e.799dc8",
18         "type": "service-logic",
19         "name": "GENERIC-RESOURCE-API ${project.version}",
20         "module": "GENERIC-RESOURCE-API",
21         "version": "${project.version}",
22         "comments": "",
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}'>",
24         "outputs": 1,
25         "x": 314.80950927734375,
26         "y": 150.66668128967285,
27         "z": "124cd5eb.a6beaa",
28         "wires": [
29             [
30                 "49d2f441.d1158c"
31             ]
32         ]
33     },
34     {
35         "id": "49d2f441.d1158c",
36         "type": "method",
37         "name": "contrail-route-topology-operation-unassign",
38         "xml": "<method rpc='contrail-route-topology-operation-unassign' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 394.7262763977051,
42         "y": 219.90472984313965,
43         "z": "124cd5eb.a6beaa",
44         "wires": [
45             [
46                 "851e5011.006bf"
47             ]
48         ]
49     },
50     {
51         "id": "851e5011.006bf",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic=\"true\">",
55         "atomic": "true",
56         "comments": "",
57         "outputs": 1,
58         "x": 303.04761123657227,
59         "y": 363.23807191848755,
60         "z": "124cd5eb.a6beaa",
61         "wires": [
62             [
63                 "7f6e26b0.fa04c8",
64                 "e1f61957.040858",
65                 "52c8941e.34706c",
66                 "9fe9d7fd.07e6d8",
67                 "e043065a.680238",
68                 "6a751595.cd154c",
69                 "e915cfb.5954f3",
70                 "216c3eb7.9d46c2",
71                 "856fcfb5.c8342",
72                 "6247b30a.8bdabc",
73                 "250f7992.c6d986",
74                 "a787f7d2.22c9c8",
75                 "e991aac8.552e48",
76                 "36023b8e.b1c6e4",
77                 "ba43457f.b66688",
78                 "64afab36.0ce6d4",
79                 "a5078016.a7585",
80                 "9190dbed.f454e8"
81             ]
82         ]
83     },
84     {
85         "id": "e1f61957.040858",
86         "type": "returnSuccess",
87         "name": "return success",
88         "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",
89         "comments": "",
90         "x": 541.1588745117188,
91         "y": 1725.2621965408325,
92         "z": "124cd5eb.a6beaa",
93         "wires": []
94     },
95     {
96         "id": "7f6e26b0.fa04c8",
97         "type": "set",
98         "name": "set output to api handler",
99         "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $contrail-route-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
100         "comments": "",
101         "x": 569.9127807617188,
102         "y": 1687.7179899215698,
103         "z": "124cd5eb.a6beaa",
104         "wires": []
105     },
106     {
107         "id": "9fe9d7fd.07e6d8",
108         "type": "set",
109         "name": "set tmp.ar.self-link",
110         "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/contrail-route-topology/'` \" />\n\n",
111         "comments": "",
112         "x": 565.3094825744629,
113         "y": 337.04760932922363,
114         "z": "124cd5eb.a6beaa",
115         "wires": []
116     },
117     {
118         "id": "52c8941e.34706c",
119         "type": "set",
120         "name": "set tmp.ar.allotted-resource-id,etc",
121         "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$contrail-route-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$contrail-route-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
122         "comments": "",
123         "x": 612.5687446594238,
124         "y": 303.30687522888184,
125         "z": "124cd5eb.a6beaa",
126         "wires": []
127     },
128     {
129         "id": "e043065a.680238",
130         "type": "execute",
131         "name": "execute Properties - pull properties file",
132         "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' />\n",
133         "comments": "",
134         "outputs": 1,
135         "x": 628.8981494903564,
136         "y": 369.6125030517578,
137         "z": "124cd5eb.a6beaa",
138         "wires": [
139             []
140         ]
141     },
142     {
143         "id": "e915cfb.5954f3",
144         "type": "execute",
145         "name": "execute RestApiCallNode - Get AR by id",
146         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
147         "comments": "",
148         "outputs": 1,
149         "x": 629.8679656982422,
150         "y": 683.3960418701172,
151         "z": "124cd5eb.a6beaa",
152         "wires": [
153             [
154                 "1a91ce88.4d2c91",
155                 "bb4b7f07.d9ff6"
156             ]
157         ]
158     },
159     {
160         "id": "6a751595.cd154c",
161         "type": "execute",
162         "name": "generate allotted-resource url",
163         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.cr-allottedresource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
164         "comments": "",
165         "outputs": 1,
166         "x": 599.6362724304199,
167         "y": 432.73151302337646,
168         "z": "124cd5eb.a6beaa",
169         "wires": [
170             []
171         ]
172     },
173     {
174         "id": "1a91ce88.4d2c91",
175         "type": "success",
176         "name": "success",
177         "xml": "<outcome value='success'>\n",
178         "comments": "",
179         "outputs": 1,
180         "x": 875.1640701293945,
181         "y": 684.2038555145264,
182         "z": "124cd5eb.a6beaa",
183         "wires": [
184             [
185                 "55fcf194.b47d5"
186             ]
187         ]
188     },
189     {
190         "id": "55fcf194.b47d5",
191         "type": "block",
192         "name": "block: atomic",
193         "xml": "<block atomic=\"true\">\n",
194         "atomic": "false",
195         "comments": "",
196         "outputs": 1,
197         "x": 1044.1640739440918,
198         "y": 682.7037563323975,
199         "z": "124cd5eb.a6beaa",
200         "wires": [
201             [
202                 "5479fd32.f72504"
203             ]
204         ]
205     },
206     {
207         "id": "5479fd32.f72504",
208         "type": "switchNode",
209         "name": "switch cr length",
210         "xml": "<switch test='`$mdsal-ar.contrail-route-allotted-resource_length`'>\n",
211         "comments": "",
212         "outputs": 1,
213         "x": 1255.0213165283203,
214         "y": 682.3228855133057,
215         "z": "124cd5eb.a6beaa",
216         "wires": [
217             [
218                 "9300342b.83b788",
219                 "d9b9b305.104fe"
220             ]
221         ]
222     },
223     {
224         "id": "9300342b.83b788",
225         "type": "other",
226         "name": "outcome 1",
227         "xml": "<outcome value='1'>\n",
228         "comments": "",
229         "outputs": 1,
230         "x": 1444.354621887207,
231         "y": 682.3228435516357,
232         "z": "124cd5eb.a6beaa",
233         "wires": [
234             [
235                 "8a8034cd.f86478"
236             ]
237         ]
238     },
239     {
240         "id": "81b74a81.710da8",
241         "type": "set",
242         "name": "set ar from get",
243         "xml": "<set>\n<parameter name='ar.' value='$mdsal-ar.contrail-route-allotted-resource[0].' />\n",
244         "comments": "",
245         "x": 1839.7677383422852,
246         "y": 711.1165752410889,
247         "z": "124cd5eb.a6beaa",
248         "wires": []
249     },
250     {
251         "id": "8a8034cd.f86478",
252         "type": "block",
253         "name": "block: atomic",
254         "xml": "<block atomic='true'>\n",
255         "atomic": "false",
256         "comments": "",
257         "outputs": 1,
258         "x": 1628.878511428833,
259         "y": 679.2276773452759,
260         "z": "124cd5eb.a6beaa",
261         "wires": [
262             [
263                 "81b74a81.710da8",
264                 "ae3a9c95.9f86f",
265                 "1b54a40a.1567fc",
266                 "8dd6e424.319b18"
267             ]
268         ]
269     },
270     {
271         "id": "ae3a9c95.9f86f",
272         "type": "set",
273         "name": "set oper-status",
274         "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$sz-ar.allotted-resource-status.rpc-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$sz-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
275         "comments": "",
276         "x": 1847.767665863037,
277         "y": 775.2117185592651,
278         "z": "124cd5eb.a6beaa",
279         "wires": []
280     },
281     {
282         "id": "6d24bc6e.b432b4",
283         "type": "comment",
284         "name": "GET contrail-route-allotted-resource from mdsal",
285         "info": "",
286         "comments": "",
287         "x": 643.1640129089355,
288         "y": 650.7037448883057,
289         "z": "124cd5eb.a6beaa",
290         "wires": []
291     },
292     {
293         "id": "8dd6e424.319b18",
294         "type": "switchNode",
295         "name": "switch order-status",
296         "xml": "<switch test='`$ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
297         "comments": "",
298         "outputs": 1,
299         "x": 1861.4817581176758,
300         "y": 742.1165647506714,
301         "z": "124cd5eb.a6beaa",
302         "wires": [
303             [
304                 "f8de75cd.7a7528",
305                 "395f6853.653ed8"
306             ]
307         ]
308     },
309     {
310         "id": "f8de75cd.7a7528",
311         "type": "outcome",
312         "name": "outcome Created",
313         "xml": "<outcome value='Created'>\n",
314         "comments": "",
315         "outputs": 1,
316         "x": 2094.7487030029297,
317         "y": 730.4975290298462,
318         "z": "124cd5eb.a6beaa",
319         "wires": [
320             [
321                 "525c5ee0.9d3fa"
322             ]
323         ]
324     },
325     {
326         "id": "395f6853.653ed8",
327         "type": "outcome",
328         "name": "outcome Other",
329         "xml": "<outcome value='Other'>\n",
330         "comments": "",
331         "outputs": 1,
332         "x": 2091.415626525879,
333         "y": 769.4023504257202,
334         "z": "124cd5eb.a6beaa",
335         "wires": [
336             [
337                 "c5891364.a15db"
338             ]
339         ]
340     },
341     {
342         "id": "525c5ee0.9d3fa",
343         "type": "returnFailure",
344         "name": "return failure",
345         "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\" \n    value=\"`'Existing contrail-route-allotted-resource with order status of ' + $ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
346         "comments": "",
347         "x": 2317.748405456543,
348         "y": 729.7355508804321,
349         "z": "124cd5eb.a6beaa",
350         "wires": []
351     },
352     {
353         "id": "1b54a40a.1567fc",
354         "type": "set",
355         "name": "save backup copy of mdsal-ar for rollback",
356         "xml": "<set>\n<parameter name='bk-cr-ar' value='$mdsal-ar.' />\n",
357         "comments": "",
358         "x": 1927.6247901916504,
359         "y": 677.9260673522949,
360         "z": "124cd5eb.a6beaa",
361         "wires": []
362     },
363     {
364         "id": "12dc5691.1f3bf9",
365         "type": "comment",
366         "name": "Create urls for restapi",
367         "info": "",
368         "comments": "",
369         "x": 570.5290794372559,
370         "y": 402.3386402130127,
371         "z": "124cd5eb.a6beaa",
372         "wires": []
373     },
374     {
375         "id": "45ecfa97.8bea64",
376         "type": "returnFailure",
377         "name": "return failure",
378         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: Contrail Route not found\" />\n    \n",
379         "comments": "",
380         "x": 1628.0162181854248,
381         "y": 795.2699184417725,
382         "z": "124cd5eb.a6beaa",
383         "wires": []
384     },
385     {
386         "id": "bb4b7f07.d9ff6",
387         "type": "other",
388         "name": "other",
389         "xml": "<outcome value='Other'>\n",
390         "comments": "",
391         "outputs": 1,
392         "x": 867.0158729553223,
393         "y": 719.2699403762817,
394         "z": "124cd5eb.a6beaa",
395         "wires": [
396             [
397                 "c4bc3964.e647b8"
398             ]
399         ]
400     },
401     {
402         "id": "c4bc3964.e647b8",
403         "type": "block",
404         "name": "block: atomic",
405         "xml": "<block atomic=\"true\">\n",
406         "atomic": "false",
407         "comments": "",
408         "outputs": 1,
409         "x": 1047.0158233642578,
410         "y": 719.9364910125732,
411         "z": "124cd5eb.a6beaa",
412         "wires": [
413             [
414                 "45ecfa97.8bea64"
415             ]
416         ]
417     },
418     {
419         "id": "216c3eb7.9d46c2",
420         "type": "set",
421         "name": "set ar data",
422         "xml": "<set>\n<parameter name='ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='ar.allotted-resource-status.action' value=\"`$contrail-route-topology-operation-input.request-information.request-action` \" />\n<parameter name='ar.allotted-resource-status.rpc-name' value=\"contrail-route-topology-operation\" />\n<parameter name='ar.allotted-resource-status.rpc-action' value=\"`$contrail-route-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$contrail-route-topology-operation-input.request-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$contrail-route-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$contrail-route-topology-operation-input.service-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$contrail-route-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.contrail-route-request-input.' value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.` \" />\n<parameter name='tmp.dest-network-id' value='`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.dest-network.network-id`' />\n",
423         "comments": "",
424         "x": 532.5713729858398,
425         "y": 752.0475673675537,
426         "z": "124cd5eb.a6beaa",
427         "wires": []
428     },
429     {
430         "id": "d9b9b305.104fe",
431         "type": "other",
432         "name": "other",
433         "xml": "<outcome value='Other'>\n",
434         "comments": "",
435         "outputs": 1,
436         "x": 1432.68257522583,
437         "y": 719.6032037734985,
438         "z": "124cd5eb.a6beaa",
439         "wires": [
440             [
441                 "45ecfa97.8bea64"
442             ]
443         ]
444     },
445     {
446         "id": "c5891364.a15db",
447         "type": "block",
448         "name": "block",
449         "xml": "<block>\n",
450         "atomic": "false",
451         "comments": "",
452         "outputs": 1,
453         "x": 2295.9051361083984,
454         "y": 769.5873670578003,
455         "z": "124cd5eb.a6beaa",
456         "wires": [
457             []
458         ]
459     },
460     {
461         "id": "36023b8e.b1c6e4",
462         "type": "execute",
463         "name": "execute RestApiCallNode - DELETE AR by id",
464         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='DELETE' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
465         "comments": "",
466         "outputs": 1,
467         "x": 654.1865539550781,
468         "y": 1205.833387374878,
469         "z": "124cd5eb.a6beaa",
470         "wires": [
471             [
472                 "9feba3d6.f55d3",
473                 "8704b793.312ca8",
474                 "11ed62bd.b7f16d"
475             ]
476         ]
477     },
478     {
479         "id": "4768fe31.b5a5c",
480         "type": "comment",
481         "name": "Delete AR from mdsal",
482         "info": "",
483         "comments": "",
484         "x": 602.9168090820312,
485         "y": 1176.4682731628418,
486         "z": "124cd5eb.a6beaa",
487         "wires": []
488     },
489     {
490         "id": "64afab36.0ce6d4",
491         "type": "execute",
492         "name": "execute RestApiCallNode - Delete parent provided service AR",
493         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='DELETE' />\n    <parameter name=\"responsePrefix\" value=\"parent\" />\n\n",
494         "comments": "",
495         "outputs": 1,
496         "x": 688.9484634399414,
497         "y": 835.3571434020996,
498         "z": "124cd5eb.a6beaa",
499         "wires": [
500             [
501                 "dcd0467e.92fe18",
502                 "3ff5c872.9a1a18",
503                 "b114286b.199858"
504             ]
505         ]
506     },
507     {
508         "id": "dcd0467e.92fe18",
509         "type": "not-found",
510         "name": "not-found",
511         "xml": "<outcome value='not-found'>\n",
512         "comments": "",
513         "outputs": 1,
514         "x": 1006.2565650939941,
515         "y": 884.7996797561646,
516         "z": "124cd5eb.a6beaa",
517         "wires": [
518             [
519                 "38844671.fda6da"
520             ]
521         ]
522     },
523     {
524         "id": "3ff5c872.9a1a18",
525         "type": "failure",
526         "name": "failure",
527         "xml": "<outcome value='failure'>\n",
528         "comments": "",
529         "outputs": 1,
530         "x": 1002.2565307617188,
531         "y": 848.8553867340088,
532         "z": "124cd5eb.a6beaa",
533         "wires": [
534             [
535                 "38844671.fda6da"
536             ]
537         ]
538     },
539     {
540         "id": "b114286b.199858",
541         "type": "success",
542         "name": "success",
543         "xml": "<outcome value='success'>\n",
544         "comments": "",
545         "outputs": 1,
546         "x": 1006.0065689086914,
547         "y": 819.2124916091561,
548         "z": "124cd5eb.a6beaa",
549         "wires": [
550             [
551                 "ac08724a.8c537"
552             ]
553         ]
554     },
555     {
556         "id": "38844671.fda6da",
557         "type": "returnFailure",
558         "name": "return failure",
559         "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=\"Error updating md-sal for contrail-route-allotted-resource\" />\n",
560         "comments": "",
561         "x": 1172.0065689086914,
562         "y": 849.6054105758667,
563         "z": "124cd5eb.a6beaa",
564         "wires": []
565     },
566     {
567         "id": "ac08724a.8c537",
568         "type": "block",
569         "name": "block",
570         "xml": "<block>\n",
571         "atomic": "false",
572         "comments": "",
573         "outputs": 1,
574         "x": 1147.6625366210938,
575         "y": 815.4046607986093,
576         "z": "124cd5eb.a6beaa",
577         "wires": [
578             []
579         ]
580     },
581     {
582         "id": "470f34a0.7311bc",
583         "type": "comment",
584         "name": "Delete the parent allotted resource from mdsal ",
585         "info": "",
586         "comments": "",
587         "x": 631.5039825439453,
588         "y": 803.3570127487183,
589         "z": "124cd5eb.a6beaa",
590         "wires": []
591     },
592     {
593         "id": "febec64d.8ef9d8",
594         "type": "comment",
595         "name": "Create urls for restapi",
596         "info": "",
597         "comments": "",
598         "x": 956.8214263916016,
599         "y": 336.21428775787354,
600         "z": "124cd5eb.a6beaa",
601         "wires": []
602     },
603     {
604         "id": "a5078016.a7585",
605         "type": "execute",
606         "name": "generate parent-network url",
607         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.network`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-parentnetwork-url\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
608         "comments": "",
609         "outputs": 1,
610         "x": 599.3083038330078,
611         "y": 533.3676280975342,
612         "z": "124cd5eb.a6beaa",
613         "wires": [
614             []
615         ]
616     },
617     {
618         "id": "856fcfb5.c8342",
619         "type": "execute",
620         "name": "generate parent-ar url - replace service-instance-id",
621         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.parent-provided-resource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
622         "comments": "",
623         "outputs": 1,
624         "x": 668.3972930908203,
625         "y": 466.70129585266113,
626         "z": "124cd5eb.a6beaa",
627         "wires": [
628             []
629         ]
630     },
631     {
632         "id": "6247b30a.8bdabc",
633         "type": "execute",
634         "name": "generate parent-ar url - replace allotted-resource-id",
635         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.parent-ar-url`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
636         "comments": "",
637         "outputs": 1,
638         "x": 672.5991821289062,
639         "y": 498.2142753601074,
640         "z": "124cd5eb.a6beaa",
641         "wires": [
642             []
643         ]
644     },
645     {
646         "id": "250f7992.c6d986",
647         "type": "execute",
648         "name": "generate network-ar url - replace service-instance-id",
649         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.network-provided-resource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.network-ar-url\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
650         "comments": "",
651         "outputs": 1,
652         "x": 672.5991668701172,
653         "y": 570.4364900588989,
654         "z": "124cd5eb.a6beaa",
655         "wires": [
656             []
657         ]
658     },
659     {
660         "id": "a787f7d2.22c9c8",
661         "type": "execute",
662         "name": "generate network-ar url - replace network-id",
663         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.network-ar-url`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.network-ar-url\"/>\n    <parameter name=\"target\" value=\"{network-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.dest-network-id`\"/>\n",
664         "comments": "",
665         "outputs": 1,
666         "x": 632.3769683837891,
667         "y": 1029.769829750061,
668         "z": "124cd5eb.a6beaa",
669         "wires": [
670             []
671         ]
672     },
673     {
674         "id": "e991aac8.552e48",
675         "type": "execute",
676         "name": "execute RestApiCallNode - GET parent network provided AR",
677         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.network-ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"net-ar\" />\n\n",
678         "comments": "",
679         "outputs": 1,
680         "x": 687.9324493408203,
681         "y": 1062.7697076797485,
682         "z": "124cd5eb.a6beaa",
683         "wires": [
684             [
685                 "b4567206.fa863",
686                 "a71a40c5.88def",
687                 "554f70e5.d5d85"
688             ]
689         ]
690     },
691     {
692         "id": "a71a40c5.88def",
693         "type": "not-found",
694         "name": "not-found",
695         "xml": "<outcome value='not-found'>\n",
696         "comments": "",
697         "outputs": 1,
698         "x": 1099.2405281066895,
699         "y": 1063.4353370666504,
700         "z": "124cd5eb.a6beaa",
701         "wires": [
702             [
703                 "499ec72d.b02448"
704             ]
705         ]
706     },
707     {
708         "id": "554f70e5.d5d85",
709         "type": "failure",
710         "name": "failure",
711         "xml": "<outcome value='failure'>\n",
712         "comments": "",
713         "outputs": 1,
714         "x": 1091.9072380065918,
715         "y": 1098.6017951965332,
716         "z": "124cd5eb.a6beaa",
717         "wires": [
718             [
719                 "499ec72d.b02448"
720             ]
721         ]
722     },
723     {
724         "id": "b4567206.fa863",
725         "type": "success",
726         "name": "success",
727         "xml": "<outcome value='success'>\n",
728         "comments": "",
729         "outputs": 1,
730         "x": 1093.9905624389648,
731         "y": 1028.9588814750314,
732         "z": "124cd5eb.a6beaa",
733         "wires": [
734             [
735                 "f1a4599b.49b4d8"
736             ]
737         ]
738     },
739     {
740         "id": "499ec72d.b02448",
741         "type": "block",
742         "name": "block: atomic",
743         "xml": "<block atomic=\"true\">\n",
744         "atomic": "false",
745         "comments": "",
746         "outputs": 1,
747         "x": 1273.646499633789,
748         "y": 1063.484673500061,
749         "z": "124cd5eb.a6beaa",
750         "wires": [
751             []
752         ]
753     },
754     {
755         "id": "9c979e8d.9ba31",
756         "type": "comment",
757         "name": "Delete AR from parent network allotted resource from mdsal",
758         "info": "",
759         "comments": "",
760         "x": 671.0434722900391,
761         "y": 998.9922933578491,
762         "z": "124cd5eb.a6beaa",
763         "wires": []
764     },
765     {
766         "id": "6c0f7db7.db6b84",
767         "type": "for",
768         "name": "for snidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
769         "xml": "<for silentFailure='true' index='snidx' start='`$tmp.sdidx + 1`' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
770         "comments": "",
771         "outputs": 1,
772         "x": 1642.4245147705078,
773         "y": 1583.7696347236633,
774         "z": "124cd5eb.a6beaa",
775         "wires": [
776             [
777                 "9dfc230a.0b6c1"
778             ]
779         ]
780     },
781     {
782         "id": "e8ab0dfb.30e2a",
783         "type": "comment",
784         "name": "Remove CAR from service data",
785         "info": "",
786         "comments": "",
787         "x": 594.2659225463867,
788         "y": 1416.8652505874634,
789         "z": "124cd5eb.a6beaa",
790         "wires": []
791     },
792     {
793         "id": "ba43457f.b66688",
794         "type": "switchNode",
795         "name": "switch $service-data.consumed-allotted-resource.length",
796         "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
797         "comments": "",
798         "outputs": 1,
799         "x": 671.0316925048828,
800         "y": 1449.3177938461304,
801         "z": "124cd5eb.a6beaa",
802         "wires": [
803             [
804                 "883c0f9b.2274b",
805                 "7e619691.b53748"
806             ]
807         ]
808     },
809     {
810         "id": "883c0f9b.2274b",
811         "type": "outcome",
812         "name": "1",
813         "xml": "<outcome value='1'>\n",
814         "comments": "",
815         "outputs": 1,
816         "x": 1027.4125289916992,
817         "y": 1455.9842100143433,
818         "z": "124cd5eb.a6beaa",
819         "wires": [
820             [
821                 "d2f770e7.24326"
822             ]
823         ]
824     },
825     {
826         "id": "d11a120d.f125a",
827         "type": "set",
828         "name": "Remove AR",
829         "xml": "<set>\n\t<parameter name=\"service-data.consumed-allotted-resources.\" value=\"\"/>\n\n",
830         "comments": "",
831         "x": 1415.5869064331055,
832         "y": 1458.5399341583252,
833         "z": "124cd5eb.a6beaa",
834         "wires": []
835     },
836     {
837         "id": "7e619691.b53748",
838         "type": "other",
839         "name": "other",
840         "xml": "<outcome value='Other'>\n",
841         "comments": "",
842         "outputs": 1,
843         "x": 1021.5712547302246,
844         "y": 1582.7619514465332,
845         "z": "124cd5eb.a6beaa",
846         "wires": [
847             [
848                 "37a9c9fb.ba1086"
849             ]
850         ]
851     },
852     {
853         "id": "e96ed39b.1e002",
854         "type": "set",
855         "name": "set new CAR length",
856         "xml": "<set>\n\t<parameter name=\"service-data.consumed-allotted-resources.consumed-allotted-resource_length\" value=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource_length - 1`\"/>\n\n\t\n",
857         "comments": "",
858         "x": 1448.5500106811523,
859         "y": 1612.7621221542358,
860         "z": "124cd5eb.a6beaa",
861         "wires": []
862     },
863     {
864         "id": "237fb279.27975e",
865         "type": "set",
866         "name": "Remove CAR",
867         "xml": "<set>\n\t<parameter name=\"service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.new_length].\" value=\"\"/>\n\n",
868         "comments": "",
869         "x": 1430.6186714172363,
870         "y": 1644.0633525848389,
871         "z": "124cd5eb.a6beaa",
872         "wires": []
873     },
874     {
875         "id": "37a9c9fb.ba1086",
876         "type": "block",
877         "name": "block : atomic",
878         "xml": "<block atomic=\"true\">",
879         "atomic": "true",
880         "outputs": 1,
881         "x": 1205.793441772461,
882         "y": 1582.6507930755615,
883         "z": "124cd5eb.a6beaa",
884         "wires": [
885             [
886                 "6c0f7db7.db6b84",
887                 "237fb279.27975e",
888                 "e96ed39b.1e002",
889                 "b0a56887.03df98"
890             ]
891         ]
892     },
893     {
894         "id": "93c6f0ff.65042",
895         "type": "set",
896         "name": "set new consumed allotted resource length",
897         "xml": "<set>\n\t<parameter name=\"service-data.consumed-allotted-resources.consumed-allotted-resource_length\" value=\"0\"/>\n\n\t\n",
898         "comments": "",
899         "x": 1511.92041015625,
900         "y": 1489.9102430343628,
901         "z": "124cd5eb.a6beaa",
902         "wires": []
903     },
904     {
905         "id": "d2f770e7.24326",
906         "type": "block",
907         "name": "block : atomic",
908         "xml": "<block atomic=\"true\">",
909         "atomic": "true",
910         "outputs": 1,
911         "x": 1206.7458419799805,
912         "y": 1456.688006401062,
913         "z": "124cd5eb.a6beaa",
914         "wires": [
915             [
916                 "d11a120d.f125a",
917                 "93c6f0ff.65042"
918             ]
919         ]
920     },
921     {
922         "id": "446a27f7.923d98",
923         "type": "comment",
924         "name": "If only one remove all networks",
925         "info": "",
926         "comments": "",
927         "x": 1098.7828903198242,
928         "y": 1420.5769834518433,
929         "z": "124cd5eb.a6beaa",
930         "wires": []
931     },
932     {
933         "id": "b0a56887.03df98",
934         "type": "set",
935         "name": "Set new length",
936         "xml": "<set>\n\t<parameter name=\"tmp.new_length\" value=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource_length - 1`\"/>\n\t\n\t\n",
937         "comments": "",
938         "x": 1432.4970474243164,
939         "y": 1551.2434558868408,
940         "z": "124cd5eb.a6beaa",
941         "wires": []
942     },
943     {
944         "id": "c78ea6ce.ed3d88",
945         "type": "set",
946         "name": "move CAR to remove one",
947         "xml": "<set>\n\t<parameter name=\"service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.newidx].\" value=\"$service-data.consumed-allotted-resources.consumed-allotted-resource[$snidx].\" />\n\t\n",
948         "comments": "",
949         "x": 2278.154495239258,
950         "y": 1613.7696771621704,
951         "z": "124cd5eb.a6beaa",
952         "wires": []
953     },
954     {
955         "id": "9dfc230a.0b6c1",
956         "type": "block",
957         "name": "block : atomic",
958         "xml": "<block atomic=\"true\">",
959         "atomic": "true",
960         "outputs": 1,
961         "x": 2038.7102508544922,
962         "y": 1583.5473852157593,
963         "z": "124cd5eb.a6beaa",
964         "wires": [
965             [
966                 "c78ea6ce.ed3d88",
967                 "9fa5c66e.e79918"
968             ]
969         ]
970     },
971     {
972         "id": "9fa5c66e.e79918",
973         "type": "set",
974         "name": "Set new index",
975         "xml": "<set>\n\t<parameter name=\"tmp.newidx\" value=\"`$snidx - 1`\"/>\n\t\n\t\n",
976         "comments": "",
977         "x": 2242.3027267456055,
978         "y": 1583.3623399734497,
979         "z": "124cd5eb.a6beaa",
980         "wires": []
981     },
982     {
983         "id": "95095ce2.63d2c",
984         "type": "switchNode",
985         "name": "switch net-ar_length",
986         "xml": "<switch test='`$net-ar.network-provided-allotted-resources.network-provided-ar-id_length`'>\n",
987         "comments": "",
988         "outputs": 1,
989         "x": 1527.4880981445312,
990         "y": 1065.2143659591675,
991         "z": "124cd5eb.a6beaa",
992         "wires": [
993             [
994                 "daff076a.52d9c8",
995                 "3e839fd2.eaab4"
996             ]
997         ]
998     },
999     {
1000         "id": "b833a46f.312d28",
1001         "type": "for",
1002         "name": "for nidx..net-ar[]",
1003         "xml": "<for index='nidx' start='0' end='`$net-ar.network-provided-allotted-resources.network-provided-ar-id_length`' >\n",
1004         "comments": "",
1005         "outputs": 1,
1006         "x": 2223.821563720703,
1007         "y": 1075.214337348938,
1008         "z": "124cd5eb.a6beaa",
1009         "wires": [
1010             [
1011                 "56f3d41c.41b2ec"
1012             ]
1013         ]
1014     },
1015     {
1016         "id": "daff076a.52d9c8",
1017         "type": "other",
1018         "name": "outcome Null",
1019         "xml": "<outcome value=''>\n",
1020         "comments": "",
1021         "outputs": 1,
1022         "x": 1813.4399795532227,
1023         "y": 1059.2143049240112,
1024         "z": "124cd5eb.a6beaa",
1025         "wires": [
1026             [
1027                 "4b792998.db27c8"
1028             ]
1029         ]
1030     },
1031     {
1032         "id": "3e839fd2.eaab4",
1033         "type": "other",
1034         "name": "other",
1035         "xml": "<outcome value='Other'>\n",
1036         "comments": "",
1037         "outputs": 1,
1038         "x": 1796.9638061523438,
1039         "y": 1092.4524030685425,
1040         "z": "124cd5eb.a6beaa",
1041         "wires": [
1042             [
1043                 "12f12009.d4012"
1044             ]
1045         ]
1046     },
1047     {
1048         "id": "56f3d41c.41b2ec",
1049         "type": "switchNode",
1050         "name": "switch allotted-resource-id",
1051         "xml": "<switch test=\"`$net-ar.network-provided-allotted-resources.network-provided-ar-id[$nidx] == $tmp.ar.allotted-resource-id`\">\n\n",
1052         "comments": "",
1053         "outputs": 1,
1054         "x": 2452.916534423828,
1055         "y": 1074.2742738723755,
1056         "z": "124cd5eb.a6beaa",
1057         "wires": [
1058             [
1059                 "d553befb.edc66"
1060             ]
1061         ]
1062     },
1063     {
1064         "id": "12f12009.d4012",
1065         "type": "block",
1066         "name": "block : atomic",
1067         "xml": "<block atomic=\"true\">",
1068         "atomic": "true",
1069         "outputs": 1,
1070         "x": 2012.852783203125,
1071         "y": 1092.673376083374,
1072         "z": "124cd5eb.a6beaa",
1073         "wires": [
1074             [
1075                 "b833a46f.312d28",
1076                 "63eb735f.7f9c2c"
1077             ]
1078         ]
1079     },
1080     {
1081         "id": "a142704e.b2dcd",
1082         "type": "outcomeTrue",
1083         "name": "true",
1084         "xml": "<outcome value='true'>\n",
1085         "comments": "",
1086         "outputs": 1,
1087         "x": 2422.7298698425293,
1088         "y": 1151.3517026901245,
1089         "z": "124cd5eb.a6beaa",
1090         "wires": [
1091             [
1092                 "6f7d4fb7.127fe"
1093             ]
1094         ]
1095     },
1096     {
1097         "id": "6f7d4fb7.127fe",
1098         "type": "block",
1099         "name": "block : atomic",
1100         "xml": "<block atomic=\"true\">",
1101         "atomic": "true",
1102         "outputs": 1,
1103         "x": 2588.0631217956543,
1104         "y": 1150.6849546432495,
1105         "z": "124cd5eb.a6beaa",
1106         "wires": [
1107             [
1108                 "33a44101.5b5f8e",
1109                 "95a9abab.e40798",
1110                 "b54f3c4c.94e97"
1111             ]
1112         ]
1113     },
1114     {
1115         "id": "847a6eca.9652",
1116         "type": "comment",
1117         "name": "allotted resource already exists- remove it",
1118         "info": "",
1119         "comments": "",
1120         "x": 2280.4881286621094,
1121         "y": 1117.6428899765015,
1122         "z": "124cd5eb.a6beaa",
1123         "wires": []
1124     },
1125     {
1126         "id": "63eb735f.7f9c2c",
1127         "type": "switchNode",
1128         "name": "switch tmp.found-nidx",
1129         "xml": "<switch test='`$tmp.found-nidx`'>\n",
1130         "comments": "",
1131         "outputs": 1,
1132         "x": 2235.7298698425293,
1133         "y": 1151.684832572937,
1134         "z": "124cd5eb.a6beaa",
1135         "wires": [
1136             [
1137                 "a142704e.b2dcd"
1138             ]
1139         ]
1140     },
1141     {
1142         "id": "7e3be93c.b00018",
1143         "type": "set",
1144         "name": "set tmp.found-nidx = false",
1145         "xml": "<set>\n<parameter name='tmp.found-nidx' value='false' />",
1146         "comments": "",
1147         "x": 1544.1548461914062,
1148         "y": 1027.548228263855,
1149         "z": "124cd5eb.a6beaa",
1150         "wires": []
1151     },
1152     {
1153         "id": "4b792998.db27c8",
1154         "type": "block",
1155         "name": "block : atomic",
1156         "xml": "<block atomic=\"true\">",
1157         "atomic": "true",
1158         "outputs": 1,
1159         "x": 2006.6790924072266,
1160         "y": 1057.880581855774,
1161         "z": "124cd5eb.a6beaa",
1162         "wires": [
1163             []
1164         ]
1165     },
1166     {
1167         "id": "8704b793.312ca8",
1168         "type": "not-found",
1169         "name": "not-found",
1170         "xml": "<outcome value='not-found'>\n",
1171         "comments": "",
1172         "outputs": 1,
1173         "x": 944.3928985595703,
1174         "y": 1206.0714263916016,
1175         "z": "124cd5eb.a6beaa",
1176         "wires": [
1177             [
1178                 "ee0682c4.4dd54"
1179             ]
1180         ]
1181     },
1182     {
1183         "id": "11ed62bd.b7f16d",
1184         "type": "failure",
1185         "name": "failure",
1186         "xml": "<outcome value='failure'>\n",
1187         "comments": "",
1188         "outputs": 1,
1189         "x": 937.0596084594727,
1190         "y": 1241.2378845214844,
1191         "z": "124cd5eb.a6beaa",
1192         "wires": [
1193             [
1194                 "ee0682c4.4dd54"
1195             ]
1196         ]
1197     },
1198     {
1199         "id": "9feba3d6.f55d3",
1200         "type": "success",
1201         "name": "success",
1202         "xml": "<outcome value='success'>\n",
1203         "comments": "",
1204         "outputs": 1,
1205         "x": 939.1429328918457,
1206         "y": 1171.5949707999825,
1207         "z": "124cd5eb.a6beaa",
1208         "wires": [
1209             [
1210                 "ee0682c4.4dd54"
1211             ]
1212         ]
1213     },
1214     {
1215         "id": "ee0682c4.4dd54",
1216         "type": "block",
1217         "name": "block: atomic",
1218         "xml": "<block atomic=\"true\">\n",
1219         "atomic": "false",
1220         "comments": "",
1221         "outputs": 1,
1222         "x": 1110.798828125,
1223         "y": 1176.1207542419434,
1224         "z": "124cd5eb.a6beaa",
1225         "wires": [
1226             []
1227         ]
1228     },
1229     {
1230         "id": "d553befb.edc66",
1231         "type": "outcomeTrue",
1232         "name": "true",
1233         "xml": "<outcome value='true'>\n",
1234         "comments": "",
1235         "outputs": 1,
1236         "x": 2664.7266120910645,
1237         "y": 1074.7383260726929,
1238         "z": "124cd5eb.a6beaa",
1239         "wires": [
1240             [
1241                 "940eba69.169448"
1242             ]
1243         ]
1244     },
1245     {
1246         "id": "940eba69.169448",
1247         "type": "block",
1248         "name": "block : atomic",
1249         "xml": "<block atomic=\"true\">",
1250         "atomic": "true",
1251         "outputs": 1,
1252         "x": 2831.487575531006,
1253         "y": 1076.2622215747833,
1254         "z": "124cd5eb.a6beaa",
1255         "wires": [
1256             [
1257                 "5177c11e.0b323",
1258                 "ddf3d738.471938"
1259             ]
1260         ]
1261     },
1262     {
1263         "id": "5177c11e.0b323",
1264         "type": "set",
1265         "name": "set tmp.nidx ",
1266         "xml": "<set>\n<parameter name='tmp.found-nidx' value='true' />\n<parameter name='tmp.nidx' value='`$nidx`' />",
1267         "comments": "",
1268         "x": 3043.487968444824,
1269         "y": 1067.5474972724915,
1270         "z": "124cd5eb.a6beaa",
1271         "wires": []
1272     },
1273     {
1274         "id": "ddf3d738.471938",
1275         "type": "break",
1276         "name": "break",
1277         "xml": "<break>\n",
1278         "comments": "",
1279         "x": 3027.824966430664,
1280         "y": 1099.5421304702759,
1281         "z": "124cd5eb.a6beaa",
1282         "wires": []
1283     },
1284     {
1285         "id": "92537a13.9547c8",
1286         "type": "execute",
1287         "name": "execute RestApiCallNode - Update parent network provided AR",
1288         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.network-ar.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.network-ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='PUT' />\n    <parameter name=\"responsePrefix\" value=\"p-network-ar\" />\n\n",
1289         "comments": "",
1290         "outputs": 1,
1291         "x": 3978.821517944336,
1292         "y": 1252.261715888977,
1293         "z": "124cd5eb.a6beaa",
1294         "wires": [
1295             [
1296                 "64bea154.8f9d5",
1297                 "b00d1773.aa42c8",
1298                 "3e77dced.50ab64"
1299             ]
1300         ]
1301     },
1302     {
1303         "id": "33a44101.5b5f8e",
1304         "type": "set",
1305         "name": "set length",
1306         "xml": "<set>\n<parameter name='net-ar.network-provided-allotted-resources.network-provided-ar-id_length' value='`$net-ar.network-provided-allotted-resources.network-provided-ar-id_length - 1`' />\n\n",
1307         "comments": "",
1308         "x": 2834.0590324401855,
1309         "y": 1186.7385053634644,
1310         "z": "124cd5eb.a6beaa",
1311         "wires": []
1312     },
1313     {
1314         "id": "f1a4599b.49b4d8",
1315         "type": "block",
1316         "name": "block: atomic",
1317         "xml": "<block atomic=\"true\">\n",
1318         "atomic": "false",
1319         "comments": "",
1320         "outputs": 1,
1321         "x": 1270.8214263916016,
1322         "y": 1030.2142877578735,
1323         "z": "124cd5eb.a6beaa",
1324         "wires": [
1325             [
1326                 "7e3be93c.b00018",
1327                 "95095ce2.63d2c"
1328             ]
1329         ]
1330     },
1331     {
1332         "id": "95a9abab.e40798",
1333         "type": "for",
1334         "name": "for snidx..",
1335         "xml": "<for silentFailure='true' index='snidx' start='`$tmp.nidx + 1`' end='`$net-ar.network-provided-allotted-resources.network-provided-ar-id_length`' >\n",
1336         "comments": "",
1337         "outputs": 1,
1338         "x": 2829.1074752807617,
1339         "y": 1153.9285192489624,
1340         "z": "124cd5eb.a6beaa",
1341         "wires": [
1342             [
1343                 "509eacd6.5c68f4"
1344             ]
1345         ]
1346     },
1347     {
1348         "id": "509eacd6.5c68f4",
1349         "type": "block",
1350         "name": "block : atomic",
1351         "xml": "<block atomic=\"true\">",
1352         "atomic": "true",
1353         "outputs": 1,
1354         "x": 3003.9157524108887,
1355         "y": 1154.9764223098755,
1356         "z": "124cd5eb.a6beaa",
1357         "wires": [
1358             [
1359                 "98719d81.af49e",
1360                 "a96a395d.a9c718"
1361             ]
1362         ]
1363     },
1364     {
1365         "id": "a96a395d.a9c718",
1366         "type": "set",
1367         "name": "move ar to remove one",
1368         "xml": "<set>\n\t<parameter name=\"$net-ar.network-provided-allotted-resources.network-provided-ar-id[$tmp.newidx]\" value=\"$net-ar.network-provided-allotted-resources.network-provided-ar-id[$snidx]\" />\n\t\n",
1369         "comments": "",
1370         "x": 3233.3929748535156,
1371         "y": 1181.071322441101,
1372         "z": "124cd5eb.a6beaa",
1373         "wires": []
1374     },
1375     {
1376         "id": "98719d81.af49e",
1377         "type": "set",
1378         "name": "Set new index",
1379         "xml": "<set>\n\t<parameter name=\"tmp.newidx\" value=\"`$snidx - 1`\"/>\n\t\n\t\n",
1380         "comments": "",
1381         "x": 3203.0965881347656,
1382         "y": 1151.4576597213745,
1383         "z": "124cd5eb.a6beaa",
1384         "wires": []
1385     },
1386     {
1387         "id": "b54f3c4c.94e97",
1388         "type": "switchNode",
1389         "name": "switch net-ar.network-provided-allotted-resources.network-provided-ar-id_length",
1390         "xml": "<switch test='`$net-ar.network-provided-allotted-resources.network-provided-ar-id_length == 0`'>\n",
1391         "comments": "",
1392         "outputs": 1,
1393         "x": 3056.250045776367,
1394         "y": 1219.6427507400513,
1395         "z": "124cd5eb.a6beaa",
1396         "wires": [
1397             [
1398                 "ca553a96.f4df98",
1399                 "db554f7.968feb"
1400             ]
1401         ]
1402     },
1403     {
1404         "id": "ca553a96.f4df98",
1405         "type": "outcomeTrue",
1406         "name": "true",
1407         "xml": "<outcome value='true'>\n",
1408         "comments": "",
1409         "outputs": 1,
1410         "x": 3449.1073150634766,
1411         "y": 1218.2142877578735,
1412         "z": "124cd5eb.a6beaa",
1413         "wires": [
1414             [
1415                 "5cf72e29.a46dc"
1416             ]
1417         ]
1418     },
1419     {
1420         "id": "5cf72e29.a46dc",
1421         "type": "block",
1422         "name": "block : atomic",
1423         "xml": "<block atomic=\"true\">",
1424         "atomic": "true",
1425         "outputs": 1,
1426         "x": 3614.4405670166016,
1427         "y": 1217.5475397109985,
1428         "z": "124cd5eb.a6beaa",
1429         "wires": [
1430             [
1431                 "5a4fd640.a50a38"
1432             ]
1433         ]
1434     },
1435     {
1436         "id": "db554f7.968feb",
1437         "type": "outcomeTrue",
1438         "name": "false",
1439         "xml": "<outcome value='false'>\n",
1440         "comments": "",
1441         "outputs": 1,
1442         "x": 3453.3929595947266,
1443         "y": 1253.9286432266235,
1444         "z": "124cd5eb.a6beaa",
1445         "wires": [
1446             [
1447                 "86504a83.f25a68"
1448             ]
1449         ]
1450     },
1451     {
1452         "id": "86504a83.f25a68",
1453         "type": "block",
1454         "name": "block : atomic",
1455         "xml": "<block atomic=\"true\">",
1456         "atomic": "true",
1457         "outputs": 1,
1458         "x": 3618.7262115478516,
1459         "y": 1253.2618951797485,
1460         "z": "124cd5eb.a6beaa",
1461         "wires": [
1462             [
1463                 "92537a13.9547c8"
1464             ]
1465         ]
1466     },
1467     {
1468         "id": "5a4fd640.a50a38",
1469         "type": "execute",
1470         "name": "execute RestApiCallNode - Delete parent network provided AR",
1471         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.network-ar.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.network-ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='DELETE' />\n    <parameter name=\"responsePrefix\" value=\"p-network-ar\" />\n\n",
1472         "comments": "",
1473         "outputs": 1,
1474         "x": 3980.5357818603516,
1475         "y": 1218.500054359436,
1476         "z": "124cd5eb.a6beaa",
1477         "wires": [
1478             [
1479                 "64bea154.8f9d5",
1480                 "b00d1773.aa42c8",
1481                 "3e77dced.50ab64"
1482             ]
1483         ]
1484     },
1485     {
1486         "id": "3e77dced.50ab64",
1487         "type": "not-found",
1488         "name": "not-found",
1489         "xml": "<outcome value='not-found'>\n",
1490         "comments": "",
1491         "outputs": 1,
1492         "x": 4370.535781860352,
1493         "y": 1289.642876625061,
1494         "z": "124cd5eb.a6beaa",
1495         "wires": [
1496             [
1497                 "5ab14fa1.280a3"
1498             ]
1499         ]
1500     },
1501     {
1502         "id": "b00d1773.aa42c8",
1503         "type": "failure",
1504         "name": "failure",
1505         "xml": "<outcome value='failure'>\n",
1506         "comments": "",
1507         "outputs": 1,
1508         "x": 4366.535747528076,
1509         "y": 1253.6985836029053,
1510         "z": "124cd5eb.a6beaa",
1511         "wires": [
1512             [
1513                 "5ab14fa1.280a3"
1514             ]
1515         ]
1516     },
1517     {
1518         "id": "64bea154.8f9d5",
1519         "type": "success",
1520         "name": "success",
1521         "xml": "<outcome value='success'>\n",
1522         "comments": "",
1523         "outputs": 1,
1524         "x": 4370.285785675049,
1525         "y": 1224.0556884780526,
1526         "z": "124cd5eb.a6beaa",
1527         "wires": [
1528             [
1529                 "5ab14fa1.280a3"
1530             ]
1531         ]
1532     },
1533     {
1534         "id": "5ab14fa1.280a3",
1535         "type": "block",
1536         "name": "block",
1537         "xml": "<block>\n",
1538         "atomic": "false",
1539         "comments": "",
1540         "outputs": 1,
1541         "x": 4511.941753387451,
1542         "y": 1220.2478576675057,
1543         "z": "124cd5eb.a6beaa",
1544         "wires": [
1545             []
1546         ]
1547     },
1548     {
1549         "id": "9190dbed.f454e8",
1550         "type": "for",
1551         "name": "for snidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
1552         "xml": "<for silentFailure='true' index='snidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
1553         "comments": "",
1554         "outputs": 1,
1555         "x": 762.857177734375,
1556         "y": 1350,
1557         "z": "124cd5eb.a6beaa",
1558         "wires": [
1559             [
1560                 "9666f99.8880108"
1561             ]
1562         ]
1563     },
1564     {
1565         "id": "9666f99.8880108",
1566         "type": "block",
1567         "name": "block : atomic",
1568         "xml": "<block atomic=\"true\">",
1569         "atomic": "true",
1570         "outputs": 1,
1571         "x": 1198.825813293457,
1572         "y": 1348.206350326538,
1573         "z": "124cd5eb.a6beaa",
1574         "wires": [
1575             [
1576                 "82b75bd4.03ad58"
1577             ]
1578         ]
1579     },
1580     {
1581         "id": "82b75bd4.03ad58",
1582         "type": "switchNode",
1583         "name": "switch AR found",
1584         "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource[$sdix].allotted-resource-id == $tmp.ar.allotted-resource-id`'>\n",
1585         "comments": "",
1586         "outputs": 1,
1587         "x": 1401.4285316467285,
1588         "y": 1348.5714282989502,
1589         "z": "124cd5eb.a6beaa",
1590         "wires": [
1591             [
1592                 "516d19eb.7811d8"
1593             ]
1594         ]
1595     },
1596     {
1597         "id": "5240ee4d.031fa",
1598         "type": "block",
1599         "name": "block : atomic",
1600         "xml": "<block atomic=\"true\">",
1601         "atomic": "true",
1602         "outputs": 1,
1603         "x": 1778.571434020996,
1604         "y": 1347.1429796218872,
1605         "z": "124cd5eb.a6beaa",
1606         "wires": [
1607             [
1608                 "62717720.864aa8",
1609                 "9074a0fd.53bf6"
1610             ]
1611         ]
1612     },
1613     {
1614         "id": "62717720.864aa8",
1615         "type": "set",
1616         "name": "Set sdidx",
1617         "xml": "<set>\n\t<parameter name=\"tmp.sdidx\" value=\"`$snidx`\"/>\n\t\n\t\n",
1618         "comments": "",
1619         "x": 1992.8571434020996,
1620         "y": 1311.4287633895874,
1621         "z": "124cd5eb.a6beaa",
1622         "wires": []
1623     },
1624     {
1625         "id": "9074a0fd.53bf6",
1626         "type": "break",
1627         "name": "break",
1628         "xml": "<break>\n",
1629         "comments": "",
1630         "x": 1984.2856636047363,
1631         "y": 1345.7144775390625,
1632         "z": "124cd5eb.a6beaa",
1633         "wires": []
1634     },
1635     {
1636         "id": "6edc1d83.b18194",
1637         "type": "comment",
1638         "name": "Find AR idx in consumed allotted resource list",
1639         "info": "",
1640         "comments": "",
1641         "x": 679.9999389648438,
1642         "y": 1315.714391708374,
1643         "z": "124cd5eb.a6beaa",
1644         "wires": []
1645     },
1646     {
1647         "id": "516d19eb.7811d8",
1648         "type": "outcomeTrue",
1649         "name": "true",
1650         "xml": "<outcome value='true'>\n",
1651         "comments": "",
1652         "outputs": 1,
1653         "x": 1589.999885559082,
1654         "y": 1347.142997264862,
1655         "z": "124cd5eb.a6beaa",
1656         "wires": [
1657             [
1658                 "5240ee4d.031fa"
1659             ]
1660         ]
1661     }
1662 ]