3 "id": "cf211855.5ed1f8",
7 "x": 168.57142639160156,
8 "y": 75.71428775787354,
9 "z": "124cd5eb.a6beaa",
17 "id": "bc882a0e.799dc8",
18 "type": "service-logic",
19 "name": "GENERIC-RESOURCE-API ${project.version}",
20 "module": "GENERIC-RESOURCE-API",
21 "version": "${project.version}",
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}'>",
25 "x": 314.80950927734375,
26 "y": 150.66668128967285,
27 "z": "124cd5eb.a6beaa",
35 "id": "49d2f441.d1158c",
37 "name": "contrail-route-topology-operation-unassign",
38 "xml": "<method rpc='contrail-route-topology-operation-unassign' mode='sync'>\n",
41 "x": 394.7262763977051,
42 "y": 219.90472984313965,
43 "z": "124cd5eb.a6beaa",
51 "id": "851e5011.006bf",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
58 "x": 303.04761123657227,
59 "y": 363.23807191848755,
60 "z": "124cd5eb.a6beaa",
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",
90 "x": 541.1588745117188,
91 "y": 1725.2621965408325,
92 "z": "124cd5eb.a6beaa",
96 "id": "7f6e26b0.fa04c8",
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",
101 "x": 569.9127807617188,
102 "y": 1687.7179899215698,
103 "z": "124cd5eb.a6beaa",
107 "id": "9fe9d7fd.07e6d8",
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",
112 "x": 565.3094825744629,
113 "y": 337.04760932922363,
114 "z": "124cd5eb.a6beaa",
118 "id": "52c8941e.34706c",
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",
123 "x": 612.5687446594238,
124 "y": 303.30687522888184,
125 "z": "124cd5eb.a6beaa",
129 "id": "e043065a.680238",
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",
135 "x": 628.8981494903564,
136 "y": 369.6125030517578,
137 "z": "124cd5eb.a6beaa",
143 "id": "e915cfb.5954f3",
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",
149 "x": 629.8679656982422,
150 "y": 683.3960418701172,
151 "z": "124cd5eb.a6beaa",
160 "id": "6a751595.cd154c",
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",
166 "x": 599.6362724304199,
167 "y": 432.73151302337646,
168 "z": "124cd5eb.a6beaa",
174 "id": "1a91ce88.4d2c91",
177 "xml": "<outcome value='success'>\n",
180 "x": 875.1640701293945,
181 "y": 684.2038555145264,
182 "z": "124cd5eb.a6beaa",
190 "id": "55fcf194.b47d5",
192 "name": "block: atomic",
193 "xml": "<block atomic=\"true\">\n",
197 "x": 1044.1640739440918,
198 "y": 682.7037563323975,
199 "z": "124cd5eb.a6beaa",
207 "id": "5479fd32.f72504",
208 "type": "switchNode",
209 "name": "switch cr length",
210 "xml": "<switch test='`$mdsal-ar.contrail-route-allotted-resource_length`'>\n",
213 "x": 1255.0213165283203,
214 "y": 682.3228855133057,
215 "z": "124cd5eb.a6beaa",
224 "id": "9300342b.83b788",
227 "xml": "<outcome value='1'>\n",
230 "x": 1444.354621887207,
231 "y": 682.3228435516357,
232 "z": "124cd5eb.a6beaa",
240 "id": "81b74a81.710da8",
242 "name": "set ar from get",
243 "xml": "<set>\n<parameter name='ar.' value='$mdsal-ar.contrail-route-allotted-resource[0].' />\n",
245 "x": 1839.7677383422852,
246 "y": 711.1165752410889,
247 "z": "124cd5eb.a6beaa",
251 "id": "8a8034cd.f86478",
253 "name": "block: atomic",
254 "xml": "<block atomic='true'>\n",
258 "x": 1628.878511428833,
259 "y": 679.2276773452759,
260 "z": "124cd5eb.a6beaa",
271 "id": "ae3a9c95.9f86f",
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",
276 "x": 1847.767665863037,
277 "y": 775.2117185592651,
278 "z": "124cd5eb.a6beaa",
282 "id": "6d24bc6e.b432b4",
284 "name": "GET contrail-route-allotted-resource from mdsal",
287 "x": 643.1640129089355,
288 "y": 650.7037448883057,
289 "z": "124cd5eb.a6beaa",
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",
299 "x": 1861.4817581176758,
300 "y": 742.1165647506714,
301 "z": "124cd5eb.a6beaa",
310 "id": "f8de75cd.7a7528",
312 "name": "outcome Created",
313 "xml": "<outcome value='Created'>\n",
316 "x": 2094.7487030029297,
317 "y": 730.4975290298462,
318 "z": "124cd5eb.a6beaa",
326 "id": "395f6853.653ed8",
328 "name": "outcome Other",
329 "xml": "<outcome value='Other'>\n",
332 "x": 2091.415626525879,
333 "y": 769.4023504257202,
334 "z": "124cd5eb.a6beaa",
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",
347 "x": 2317.748405456543,
348 "y": 729.7355508804321,
349 "z": "124cd5eb.a6beaa",
353 "id": "1b54a40a.1567fc",
355 "name": "save backup copy of mdsal-ar for rollback",
356 "xml": "<set>\n<parameter name='bk-cr-ar' value='$mdsal-ar.' />\n",
358 "x": 1927.6247901916504,
359 "y": 677.9260673522949,
360 "z": "124cd5eb.a6beaa",
364 "id": "12dc5691.1f3bf9",
366 "name": "Create urls for restapi",
369 "x": 570.5290794372559,
370 "y": 402.3386402130127,
371 "z": "124cd5eb.a6beaa",
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",
380 "x": 1628.0162181854248,
381 "y": 795.2699184417725,
382 "z": "124cd5eb.a6beaa",
386 "id": "bb4b7f07.d9ff6",
389 "xml": "<outcome value='Other'>\n",
392 "x": 867.0158729553223,
393 "y": 719.2699403762817,
394 "z": "124cd5eb.a6beaa",
402 "id": "c4bc3964.e647b8",
404 "name": "block: atomic",
405 "xml": "<block atomic=\"true\">\n",
409 "x": 1047.0158233642578,
410 "y": 719.9364910125732,
411 "z": "124cd5eb.a6beaa",
419 "id": "216c3eb7.9d46c2",
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",
424 "x": 532.5713729858398,
425 "y": 752.0475673675537,
426 "z": "124cd5eb.a6beaa",
430 "id": "d9b9b305.104fe",
433 "xml": "<outcome value='Other'>\n",
436 "x": 1432.68257522583,
437 "y": 719.6032037734985,
438 "z": "124cd5eb.a6beaa",
446 "id": "c5891364.a15db",
453 "x": 2295.9051361083984,
454 "y": 769.5873670578003,
455 "z": "124cd5eb.a6beaa",
461 "id": "36023b8e.b1c6e4",
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",
467 "x": 654.1865539550781,
468 "y": 1205.833387374878,
469 "z": "124cd5eb.a6beaa",
479 "id": "4768fe31.b5a5c",
481 "name": "Delete AR from mdsal",
484 "x": 602.9168090820312,
485 "y": 1176.4682731628418,
486 "z": "124cd5eb.a6beaa",
490 "id": "64afab36.0ce6d4",
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",
496 "x": 688.9484634399414,
497 "y": 835.3571434020996,
498 "z": "124cd5eb.a6beaa",
508 "id": "dcd0467e.92fe18",
511 "xml": "<outcome value='not-found'>\n",
514 "x": 1006.2565650939941,
515 "y": 884.7996797561646,
516 "z": "124cd5eb.a6beaa",
524 "id": "3ff5c872.9a1a18",
527 "xml": "<outcome value='failure'>\n",
530 "x": 1002.2565307617188,
531 "y": 848.8553867340088,
532 "z": "124cd5eb.a6beaa",
540 "id": "b114286b.199858",
543 "xml": "<outcome value='success'>\n",
546 "x": 1006.0065689086914,
547 "y": 819.2124916091561,
548 "z": "124cd5eb.a6beaa",
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",
561 "x": 1172.0065689086914,
562 "y": 849.6054105758667,
563 "z": "124cd5eb.a6beaa",
567 "id": "ac08724a.8c537",
574 "x": 1147.6625366210938,
575 "y": 815.4046607986093,
576 "z": "124cd5eb.a6beaa",
582 "id": "470f34a0.7311bc",
584 "name": "Delete the parent allotted resource from mdsal ",
587 "x": 631.5039825439453,
588 "y": 803.3570127487183,
589 "z": "124cd5eb.a6beaa",
593 "id": "febec64d.8ef9d8",
595 "name": "Create urls for restapi",
598 "x": 956.8214263916016,
599 "y": 336.21428775787354,
600 "z": "124cd5eb.a6beaa",
604 "id": "a5078016.a7585",
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",
610 "x": 599.3083038330078,
611 "y": 533.3676280975342,
612 "z": "124cd5eb.a6beaa",
618 "id": "856fcfb5.c8342",
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",
624 "x": 668.3972930908203,
625 "y": 466.70129585266113,
626 "z": "124cd5eb.a6beaa",
632 "id": "6247b30a.8bdabc",
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",
638 "x": 672.5991821289062,
639 "y": 498.2142753601074,
640 "z": "124cd5eb.a6beaa",
646 "id": "250f7992.c6d986",
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",
652 "x": 672.5991668701172,
653 "y": 570.4364900588989,
654 "z": "124cd5eb.a6beaa",
660 "id": "a787f7d2.22c9c8",
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",
666 "x": 632.3769683837891,
667 "y": 1029.769829750061,
668 "z": "124cd5eb.a6beaa",
674 "id": "e991aac8.552e48",
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",
680 "x": 687.9324493408203,
681 "y": 1062.7697076797485,
682 "z": "124cd5eb.a6beaa",
692 "id": "a71a40c5.88def",
695 "xml": "<outcome value='not-found'>\n",
698 "x": 1099.2405281066895,
699 "y": 1063.4353370666504,
700 "z": "124cd5eb.a6beaa",
708 "id": "554f70e5.d5d85",
711 "xml": "<outcome value='failure'>\n",
714 "x": 1091.9072380065918,
715 "y": 1098.6017951965332,
716 "z": "124cd5eb.a6beaa",
724 "id": "b4567206.fa863",
727 "xml": "<outcome value='success'>\n",
730 "x": 1093.9905624389648,
731 "y": 1028.9588814750314,
732 "z": "124cd5eb.a6beaa",
740 "id": "499ec72d.b02448",
742 "name": "block: atomic",
743 "xml": "<block atomic=\"true\">\n",
747 "x": 1273.646499633789,
748 "y": 1063.484673500061,
749 "z": "124cd5eb.a6beaa",
755 "id": "9c979e8d.9ba31",
757 "name": "Delete AR from parent network allotted resource from mdsal",
760 "x": 671.0434722900391,
761 "y": 998.9922933578491,
762 "z": "124cd5eb.a6beaa",
766 "id": "6c0f7db7.db6b84",
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",
772 "x": 1642.4245147705078,
773 "y": 1583.7696347236633,
774 "z": "124cd5eb.a6beaa",
782 "id": "e8ab0dfb.30e2a",
784 "name": "Remove CAR from service data",
787 "x": 594.2659225463867,
788 "y": 1416.8652505874634,
789 "z": "124cd5eb.a6beaa",
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",
799 "x": 671.0316925048828,
800 "y": 1449.3177938461304,
801 "z": "124cd5eb.a6beaa",
810 "id": "883c0f9b.2274b",
813 "xml": "<outcome value='1'>\n",
816 "x": 1027.4125289916992,
817 "y": 1455.9842100143433,
818 "z": "124cd5eb.a6beaa",
826 "id": "d11a120d.f125a",
829 "xml": "<set>\n\t<parameter name=\"service-data.consumed-allotted-resources.\" value=\"\"/>\n\n",
831 "x": 1415.5869064331055,
832 "y": 1458.5399341583252,
833 "z": "124cd5eb.a6beaa",
837 "id": "7e619691.b53748",
840 "xml": "<outcome value='Other'>\n",
843 "x": 1021.5712547302246,
844 "y": 1582.7619514465332,
845 "z": "124cd5eb.a6beaa",
853 "id": "e96ed39b.1e002",
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",
858 "x": 1448.5500106811523,
859 "y": 1612.7621221542358,
860 "z": "124cd5eb.a6beaa",
864 "id": "237fb279.27975e",
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",
869 "x": 1430.6186714172363,
870 "y": 1644.0633525848389,
871 "z": "124cd5eb.a6beaa",
875 "id": "37a9c9fb.ba1086",
877 "name": "block : atomic",
878 "xml": "<block atomic=\"true\">",
881 "x": 1205.793441772461,
882 "y": 1582.6507930755615,
883 "z": "124cd5eb.a6beaa",
894 "id": "93c6f0ff.65042",
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",
899 "x": 1511.92041015625,
900 "y": 1489.9102430343628,
901 "z": "124cd5eb.a6beaa",
905 "id": "d2f770e7.24326",
907 "name": "block : atomic",
908 "xml": "<block atomic=\"true\">",
911 "x": 1206.7458419799805,
912 "y": 1456.688006401062,
913 "z": "124cd5eb.a6beaa",
922 "id": "446a27f7.923d98",
924 "name": "If only one remove all networks",
927 "x": 1098.7828903198242,
928 "y": 1420.5769834518433,
929 "z": "124cd5eb.a6beaa",
933 "id": "b0a56887.03df98",
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",
938 "x": 1432.4970474243164,
939 "y": 1551.2434558868408,
940 "z": "124cd5eb.a6beaa",
944 "id": "c78ea6ce.ed3d88",
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",
949 "x": 2278.154495239258,
950 "y": 1613.7696771621704,
951 "z": "124cd5eb.a6beaa",
955 "id": "9dfc230a.0b6c1",
957 "name": "block : atomic",
958 "xml": "<block atomic=\"true\">",
961 "x": 2038.7102508544922,
962 "y": 1583.5473852157593,
963 "z": "124cd5eb.a6beaa",
972 "id": "9fa5c66e.e79918",
974 "name": "Set new index",
975 "xml": "<set>\n\t<parameter name=\"tmp.newidx\" value=\"`$snidx - 1`\"/>\n\t\n\t\n",
977 "x": 2242.3027267456055,
978 "y": 1583.3623399734497,
979 "z": "124cd5eb.a6beaa",
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",
989 "x": 1527.4880981445312,
990 "y": 1065.2143659591675,
991 "z": "124cd5eb.a6beaa",
1000 "id": "b833a46f.312d28",
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",
1006 "x": 2223.821563720703,
1007 "y": 1075.214337348938,
1008 "z": "124cd5eb.a6beaa",
1016 "id": "daff076a.52d9c8",
1018 "name": "outcome Null",
1019 "xml": "<outcome value=''>\n",
1022 "x": 1813.4399795532227,
1023 "y": 1059.2143049240112,
1024 "z": "124cd5eb.a6beaa",
1032 "id": "3e839fd2.eaab4",
1035 "xml": "<outcome value='Other'>\n",
1038 "x": 1796.9638061523438,
1039 "y": 1092.4524030685425,
1040 "z": "124cd5eb.a6beaa",
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",
1054 "x": 2452.916534423828,
1055 "y": 1074.2742738723755,
1056 "z": "124cd5eb.a6beaa",
1064 "id": "12f12009.d4012",
1066 "name": "block : atomic",
1067 "xml": "<block atomic=\"true\">",
1070 "x": 2012.852783203125,
1071 "y": 1092.673376083374,
1072 "z": "124cd5eb.a6beaa",
1081 "id": "a142704e.b2dcd",
1082 "type": "outcomeTrue",
1084 "xml": "<outcome value='true'>\n",
1087 "x": 2422.7298698425293,
1088 "y": 1151.3517026901245,
1089 "z": "124cd5eb.a6beaa",
1097 "id": "6f7d4fb7.127fe",
1099 "name": "block : atomic",
1100 "xml": "<block atomic=\"true\">",
1103 "x": 2588.0631217956543,
1104 "y": 1150.6849546432495,
1105 "z": "124cd5eb.a6beaa",
1115 "id": "847a6eca.9652",
1117 "name": "allotted resource already exists- remove it",
1120 "x": 2280.4881286621094,
1121 "y": 1117.6428899765015,
1122 "z": "124cd5eb.a6beaa",
1126 "id": "63eb735f.7f9c2c",
1127 "type": "switchNode",
1128 "name": "switch tmp.found-nidx",
1129 "xml": "<switch test='`$tmp.found-nidx`'>\n",
1132 "x": 2235.7298698425293,
1133 "y": 1151.684832572937,
1134 "z": "124cd5eb.a6beaa",
1142 "id": "7e3be93c.b00018",
1144 "name": "set tmp.found-nidx = false",
1145 "xml": "<set>\n<parameter name='tmp.found-nidx' value='false' />",
1147 "x": 1544.1548461914062,
1148 "y": 1027.548228263855,
1149 "z": "124cd5eb.a6beaa",
1153 "id": "4b792998.db27c8",
1155 "name": "block : atomic",
1156 "xml": "<block atomic=\"true\">",
1159 "x": 2006.6790924072266,
1160 "y": 1057.880581855774,
1161 "z": "124cd5eb.a6beaa",
1167 "id": "8704b793.312ca8",
1168 "type": "not-found",
1169 "name": "not-found",
1170 "xml": "<outcome value='not-found'>\n",
1173 "x": 944.3928985595703,
1174 "y": 1206.0714263916016,
1175 "z": "124cd5eb.a6beaa",
1183 "id": "11ed62bd.b7f16d",
1186 "xml": "<outcome value='failure'>\n",
1189 "x": 937.0596084594727,
1190 "y": 1241.2378845214844,
1191 "z": "124cd5eb.a6beaa",
1199 "id": "9feba3d6.f55d3",
1202 "xml": "<outcome value='success'>\n",
1205 "x": 939.1429328918457,
1206 "y": 1171.5949707999825,
1207 "z": "124cd5eb.a6beaa",
1215 "id": "ee0682c4.4dd54",
1217 "name": "block: atomic",
1218 "xml": "<block atomic=\"true\">\n",
1222 "x": 1110.798828125,
1223 "y": 1176.1207542419434,
1224 "z": "124cd5eb.a6beaa",
1230 "id": "d553befb.edc66",
1231 "type": "outcomeTrue",
1233 "xml": "<outcome value='true'>\n",
1236 "x": 2664.7266120910645,
1237 "y": 1074.7383260726929,
1238 "z": "124cd5eb.a6beaa",
1246 "id": "940eba69.169448",
1248 "name": "block : atomic",
1249 "xml": "<block atomic=\"true\">",
1252 "x": 2831.487575531006,
1253 "y": 1076.2622215747833,
1254 "z": "124cd5eb.a6beaa",
1263 "id": "5177c11e.0b323",
1265 "name": "set tmp.nidx ",
1266 "xml": "<set>\n<parameter name='tmp.found-nidx' value='true' />\n<parameter name='tmp.nidx' value='`$nidx`' />",
1268 "x": 3043.487968444824,
1269 "y": 1067.5474972724915,
1270 "z": "124cd5eb.a6beaa",
1274 "id": "ddf3d738.471938",
1279 "x": 3027.824966430664,
1280 "y": 1099.5421304702759,
1281 "z": "124cd5eb.a6beaa",
1285 "id": "92537a13.9547c8",
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",
1291 "x": 3978.821517944336,
1292 "y": 1252.261715888977,
1293 "z": "124cd5eb.a6beaa",
1303 "id": "33a44101.5b5f8e",
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",
1308 "x": 2834.0590324401855,
1309 "y": 1186.7385053634644,
1310 "z": "124cd5eb.a6beaa",
1314 "id": "f1a4599b.49b4d8",
1316 "name": "block: atomic",
1317 "xml": "<block atomic=\"true\">\n",
1321 "x": 1270.8214263916016,
1322 "y": 1030.2142877578735,
1323 "z": "124cd5eb.a6beaa",
1332 "id": "95a9abab.e40798",
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",
1338 "x": 2829.1074752807617,
1339 "y": 1153.9285192489624,
1340 "z": "124cd5eb.a6beaa",
1348 "id": "509eacd6.5c68f4",
1350 "name": "block : atomic",
1351 "xml": "<block atomic=\"true\">",
1354 "x": 3003.9157524108887,
1355 "y": 1154.9764223098755,
1356 "z": "124cd5eb.a6beaa",
1365 "id": "a96a395d.a9c718",
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",
1370 "x": 3233.3929748535156,
1371 "y": 1181.071322441101,
1372 "z": "124cd5eb.a6beaa",
1376 "id": "98719d81.af49e",
1378 "name": "Set new index",
1379 "xml": "<set>\n\t<parameter name=\"tmp.newidx\" value=\"`$snidx - 1`\"/>\n\t\n\t\n",
1381 "x": 3203.0965881347656,
1382 "y": 1151.4576597213745,
1383 "z": "124cd5eb.a6beaa",
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",
1393 "x": 3056.250045776367,
1394 "y": 1219.6427507400513,
1395 "z": "124cd5eb.a6beaa",
1404 "id": "ca553a96.f4df98",
1405 "type": "outcomeTrue",
1407 "xml": "<outcome value='true'>\n",
1410 "x": 3449.1073150634766,
1411 "y": 1218.2142877578735,
1412 "z": "124cd5eb.a6beaa",
1420 "id": "5cf72e29.a46dc",
1422 "name": "block : atomic",
1423 "xml": "<block atomic=\"true\">",
1426 "x": 3614.4405670166016,
1427 "y": 1217.5475397109985,
1428 "z": "124cd5eb.a6beaa",
1436 "id": "db554f7.968feb",
1437 "type": "outcomeTrue",
1439 "xml": "<outcome value='false'>\n",
1442 "x": 3453.3929595947266,
1443 "y": 1253.9286432266235,
1444 "z": "124cd5eb.a6beaa",
1452 "id": "86504a83.f25a68",
1454 "name": "block : atomic",
1455 "xml": "<block atomic=\"true\">",
1458 "x": 3618.7262115478516,
1459 "y": 1253.2618951797485,
1460 "z": "124cd5eb.a6beaa",
1468 "id": "5a4fd640.a50a38",
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",
1474 "x": 3980.5357818603516,
1475 "y": 1218.500054359436,
1476 "z": "124cd5eb.a6beaa",
1486 "id": "3e77dced.50ab64",
1487 "type": "not-found",
1488 "name": "not-found",
1489 "xml": "<outcome value='not-found'>\n",
1492 "x": 4370.535781860352,
1493 "y": 1289.642876625061,
1494 "z": "124cd5eb.a6beaa",
1502 "id": "b00d1773.aa42c8",
1505 "xml": "<outcome value='failure'>\n",
1508 "x": 4366.535747528076,
1509 "y": 1253.6985836029053,
1510 "z": "124cd5eb.a6beaa",
1518 "id": "64bea154.8f9d5",
1521 "xml": "<outcome value='success'>\n",
1524 "x": 4370.285785675049,
1525 "y": 1224.0556884780526,
1526 "z": "124cd5eb.a6beaa",
1534 "id": "5ab14fa1.280a3",
1541 "x": 4511.941753387451,
1542 "y": 1220.2478576675057,
1543 "z": "124cd5eb.a6beaa",
1549 "id": "9190dbed.f454e8",
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",
1555 "x": 762.857177734375,
1557 "z": "124cd5eb.a6beaa",
1565 "id": "9666f99.8880108",
1567 "name": "block : atomic",
1568 "xml": "<block atomic=\"true\">",
1571 "x": 1198.825813293457,
1572 "y": 1348.206350326538,
1573 "z": "124cd5eb.a6beaa",
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",
1587 "x": 1401.4285316467285,
1588 "y": 1348.5714282989502,
1589 "z": "124cd5eb.a6beaa",
1597 "id": "5240ee4d.031fa",
1599 "name": "block : atomic",
1600 "xml": "<block atomic=\"true\">",
1603 "x": 1778.571434020996,
1604 "y": 1347.1429796218872,
1605 "z": "124cd5eb.a6beaa",
1614 "id": "62717720.864aa8",
1616 "name": "Set sdidx",
1617 "xml": "<set>\n\t<parameter name=\"tmp.sdidx\" value=\"`$snidx`\"/>\n\t\n\t\n",
1619 "x": 1992.8571434020996,
1620 "y": 1311.4287633895874,
1621 "z": "124cd5eb.a6beaa",
1625 "id": "9074a0fd.53bf6",
1630 "x": 1984.2856636047363,
1631 "y": 1345.7144775390625,
1632 "z": "124cd5eb.a6beaa",
1636 "id": "6edc1d83.b18194",
1638 "name": "Find AR idx in consumed allotted resource list",
1641 "x": 679.9999389648438,
1642 "y": 1315.714391708374,
1643 "z": "124cd5eb.a6beaa",
1647 "id": "516d19eb.7811d8",
1648 "type": "outcomeTrue",
1650 "xml": "<outcome value='true'>\n",
1653 "x": 1589.999885559082,
1654 "y": 1347.142997264862,
1655 "z": "124cd5eb.a6beaa",