17 "id":"ba9c043e.e07f58",
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":511.2380790710449,
26 "y":410.95239067077637,
27 "z":"6d778d5b.c45f64",
35 "id":"249d942d.c245dc",
37 "name":"tunnelxconn-topology-operation-assign",
38 "xml":"<method rpc='tunnelxconn-topology-operation-assign' mode='sync'>\n",
42 "y":446.1904458999634,
43 "z":"6d778d5b.c45f64",
51 "id":"6d5b29f7.7a4718",
53 "name":"block : atomic",
54 "xml":"<block atomic=\"true\">",
58 "x":465.47619247436523,
59 "y":589.5237879753113,
60 "z":"6d778d5b.c45f64",
72 "id":"d0d44753.44ba98",
73 "type":"returnSuccess",
74 "name":"return success",
75 "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",
77 "x":1308.6666564941406,
78 "y":2516.5477046966553,
79 "z":"6d778d5b.c45f64",
85 "id":"8469024b.7a82b",
87 "name":"set output to api handler",
88 "xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='tunnelxconn-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $tunnelxconn-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
90 "x":1345.7540550231934,
91 "y":2395.432439804077,
92 "z":"6d778d5b.c45f64",
98 "id":"2132e3dd.5539fc",
100 "name":"set allotted-resource-oper-status",
101 "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingCreate' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tunnelxconn-topology-operation-input.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
103 "x":1417.468376159668,
104 "y":1812.6228160858154,
105 "z":"6d778d5b.c45f64",
111 "id":"e75e77ea.b57f18",
113 "name":"set tmp.ar.self-link",
114 "xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/tunnelxconn-topology/'` \" />\n\n",
116 "x":911.738037109375,
117 "y":457.33331298828125,
118 "z":"6d778d5b.c45f64",
124 "id":"3003211a.e085be",
126 "name":"set tmp.ar.allotted-resource-id,etc",
127 "xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
129 "x":959.997314453125,
130 "y":413.59259033203125,
131 "z":"6d778d5b.c45f64",
137 "id":"eb1ff0c9.ef38e",
140 "xml":"<outcome value='success'>\n",
143 "x":1098.8148803710938,
144 "y":629.2672729492188,
145 "z":"6d778d5b.c45f64",
153 "id":"4e2ca4b9.af9d2c",
155 "name":"execute RestApiCallNode - PUT AR by id",
156 "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.tx.templatefile`\" />\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='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
159 "x":1438.8626251220703,
160 "y":2037.1008231639862,
161 "z":"6d778d5b.c45f64",
171 "id":"aff222bc.8e6d2",
174 "xml":"<outcome value='not-found'>\n",
177 "x":1707.5040016174316,
178 "y":2088.43223490566,
179 "z":"6d778d5b.c45f64",
187 "id":"d2e716e0.ea3f78",
190 "xml":"<outcome value='failure'>\n",
193 "x":1698.504051208496,
194 "y":2056.9322606548667,
195 "z":"6d778d5b.c45f64",
203 "id":"52261953.a9dda8",
206 "xml":"<outcome value='success'>\n",
209 "x":1702.2540893554688,
210 "y":2027.289365530014,
211 "z":"6d778d5b.c45f64",
219 "id":"39f6948c.62523c",
220 "type":"returnFailure",
221 "name":"return failure",
222 "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 tunnelxconn-allotted-resource\" />\n",
224 "x":1868.2540893554688,
225 "y":2057.6822844967246,
226 "z":"6d778d5b.c45f64",
232 "id":"c1360476.7b6098",
234 "name":"set oper-status",
235 "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tx-ar.allotted-resource-status.rpc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
237 "x":1448.5294189453125,
238 "y":730.0529174804688,
239 "z":"6d778d5b.c45f64",
245 "id":"f35d4335.54c9c",
247 "name":"Save consumed-allotted-resources to mdsal",
250 "x":1475.2435302734375,
251 "y":1552.7196044921875,
252 "z":"6d778d5b.c45f64",
258 "id":"655635e7.0e3eec",
260 "name":"GET tunnelxconn-allotted-resource from mdsal",
263 "x":821.8148193359375,
264 "y":599.7672119140625,
265 "z":"6d778d5b.c45f64",
271 "id":"c02bbcdf.bc013",
272 "type":"returnFailure",
273 "name":"return failure - tunnelxconn already exists",
274 "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 tunnelxconn-allotted-resource with order status of ' + $mdsal-ar.tunnelxconn-allotted-resource.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
276 "x":1408.129150390625,
277 "y":624.6243896484375,
278 "z":"6d778d5b.c45f64",
284 "id":"573f6a07.f17fd4",
286 "name":"set tx-ar-identifiers",
287 "xml":"<set>\n<parameter name='tx-ar-identifiers.consuming-service-instance-id' value=\"`$tunnelxconn-topology-operation-input.service-information.service-instance-id` \" />\n<parameter name='tx-ar-identifiers.parent-service-instance-id' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n<parameter name='tx-ar-identifiers.allotted-resource-type' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='tx-ar-identifiers.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n\n",
289 "x":1458.38623046875,
290 "y":823.6243896484375,
291 "z":"6d778d5b.c45f64",
297 "id":"d7829a8.d904768",
299 "name":"Set allotted-resource-identifiers",
302 "x":1485.338623046875,
303 "y":782.338623046875,
304 "z":"6d778d5b.c45f64",
310 "id":"42c79ea2.81985",
312 "name":"set identifiers in overall structure",
313 "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.allotted-resource-identifiers.' value=\"`$tx-ar-identifiers.`\" />\n\n\n",
315 "x":1475.38623046875,
316 "y":1131.910400390625,
317 "z":"6d778d5b.c45f64",
323 "id":"d8d243c1.7bb7e",
325 "name":"set ecomp model information from input",
326 "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.onap-model-information.' \nvalue=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.onap-model-information.`\" />\n\n\n",
328 "x":1503.957763671875,
329 "y":866.9100952148438,
330 "z":"6d778d5b.c45f64",
336 "id":"388bbf45.722ad",
338 "name":"switch model-invariant-uuid is null",
339 "xml":"<switch test='$tunnelxconn-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid'>\n",
342 "x":1484.8148193359375,
343 "y":906.195809841156,
344 "z":"6d778d5b.c45f64",
352 "id":"61c62608.d61778",
354 "name":"outcome null",
355 "xml":"<outcome value=''>\n",
358 "x":1711.9576988220215,
359 "y":907.6243271827698,
360 "z":"6d778d5b.c45f64",
368 "id":"39e6f667.b8ce5a",
370 "name":"set model-invariant-uuid",
371 "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.onap-model-information.model-invariant-uuid' \nvalue=\"`$ar-model.invariant-uuid`\" />\n\n\n",
373 "x":1913.38627243042,
374 "y":907.0528798103333,
375 "z":"6d778d5b.c45f64",
381 "id":"e8848901.4775c8",
383 "name":"switch model-uuid is null",
384 "xml":"<switch test='$tunnelxconn-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid'>\n",
387 "x":1456.2434158325195,
388 "y":940.4815106391907,
389 "z":"6d778d5b.c45f64",
397 "id":"d9785a66.79e3a8",
399 "name":"outcome null",
400 "xml":"<outcome value=''>\n",
403 "x":1657.6719818115234,
404 "y":941.0529322624207,
405 "z":"6d778d5b.c45f64",
413 "id":"1427b5c2.d5936a",
415 "name":"set model-uuid",
416 "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.onap-model-information.model-uuid' \nvalue=\"`$ar-model.uuid`\" />\n\n\n",
418 "x":1850.529140472412,
419 "y":941.0528540611267,
420 "z":"6d778d5b.c45f64",
426 "id":"109fba97.f782b5",
428 "name":"switch model-version is null",
429 "xml":"<switch test='$tunnelxconn-topology-operation-input.allotted-resource-information.onap-model-information.model-version'>\n",
432 "x":1464.8148193359375,
433 "y":982.338623046875,
434 "z":"6d778d5b.c45f64",
442 "id":"3f70eb82.810ee4",
444 "name":"outcome null",
445 "xml":"<outcome value=''>\n",
448 "x":1714.8148002624512,
449 "y":973.3386225700378,
450 "z":"6d778d5b.c45f64",
458 "id":"dc565eb7.6c9dc",
460 "name":"set model-version",
461 "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.onap-model-information.model-version' \nvalue=\"`$ar-model.version`\" />\n\n\n",
463 "x":1907.6719589233398,
464 "y":973.3385443687439,
465 "z":"6d778d5b.c45f64",
471 "id":"1d9a0b0d.a6f8f5",
473 "name":"switch ar-model.ecomp-generated-naming",
474 "xml":"<switch test='`$ar-model.ecomp-generated-naming`'>\n",
477 "x":1528.38623046875,
478 "y":1075.7672729492188,
479 "z":"6d778d5b.c45f64",
488 "id":"5928be3a.62e24",
491 "xml":"<outcome value='Y'>\n",
494 "x":1814.3862915039062,
495 "y":1075.1958618164062,
496 "z":"6d778d5b.c45f64",
504 "id":"7b105e84.481c9",
506 "name":"block : atomic",
507 "xml":"<block atomic=\"true\">\n",
511 "x":1968.1363525390625,
512 "y":1077.69580078125,
513 "z":"6d778d5b.c45f64",
521 "id":"297d3bf7.200674",
524 "xml":"<outcome value='Other'>\n",
527 "x":1833.608642578125,
528 "y":1164.1958618164062,
529 "z":"6d778d5b.c45f64",
537 "id":"3e840127.e2aa3e",
538 "type":"returnFailure",
539 "name":"return failure",
540 "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 in allotted-resource-model data. Ecomp-generated-naming should be true\" />\n\n",
542 "x":2016.608642578125,
543 "y":1169.1958618164062,
544 "z":"6d778d5b.c45f64",
550 "id":"92b98902.431af8",
552 "name":"switch ar-model.ecomp-generated-naming",
553 "xml":"<switch test='`$ar-model.naming-policy`'>\n",
556 "x":2104.38623046875,
557 "y":1126.767333984375,
558 "z":"6d778d5b.c45f64",
567 "id":"26eb7249.47e7fe",
569 "name":"outcome oam_network_policy",
570 "xml":"<outcome value='oam_network_policy'>\n",
574 "y":1130.3453369140625,
575 "z":"6d778d5b.c45f64",
583 "id":"f1043fa9.14b2e",
586 "xml":"<outcome value='Other'>\n",
590 "y":1207.1958618164062,
591 "z":"6d778d5b.c45f64",
599 "id":"1d6e2e9f.9f6281",
601 "name":"set ar_name",
602 "xml":"<set>\n<parameter name='tmp.ar-name' value='$TenantOAMNetworkRole_$LandingNetworkRole_SZ' />\n",
604 "x":2785.100830078125,
605 "y":1165.7672729492188,
606 "z":"6d778d5b.c45f64",
612 "id":"d37d22cd.5e612",
614 "name":"execute SliStringUtils - replace TenantOAMNetworkRole",
615 "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n <parameter name=\"target\" value=\"$TenantOAMNetworkRole\"/>\n <parameter name=\"replacement\" value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.untrusted-network-role`\"/>\n\n",
618 "x":2929.2437858581543,
619 "y":1209.6244196891785,
620 "z":"6d778d5b.c45f64",
628 "id":"ef7b09c8.6b36b8",
630 "name":"execute SliStringUtils - replace LandingNetworkRole",
631 "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n <parameter name=\"target\" value=\"$LandingNetworkRole\"/>\n <parameter name=\"replacement\" value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.trusted-network-role`\"/>\n\n",
634 "x":2916.243896484375,
635 "y":1249.7672729492188,
636 "z":"6d778d5b.c45f64",
644 "id":"e7502764.f34288",
646 "name":"block: atomic",
647 "xml":"<block atomic='true'>\n",
651 "x":2593.5292015075684,
652 "y":1205.3387522697449,
653 "z":"6d778d5b.c45f64",
664 "id":"49ad4058.d0089",
666 "name":"set identifiers.allotted-resource-name",
667 "xml":"<set>\n<parameter name='tx-ar-identifiers.allotted-resource-name' value='`$tmp.ar-name`' />\n",
670 "y":1300.052978515625,
671 "z":"6d778d5b.c45f64",
677 "id":"d092a98.3446758",
679 "name":"set assignments in overall structure",
680 "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.' \nvalue=\"`$tx-ar-assignments.`\" />\n\n\n",
682 "x":1460.8624267578125,
683 "y":1498.6246337890625,
684 "z":"6d778d5b.c45f64",
690 "id":"add28223.49736",
692 "name":"Handle tx-ar-assignments",
693 "xml":"<set>\n<parameter name='tx-ar-assignments.vni' value='`$tmp.manageVni.vni`'/>\n<parameter name='tx-ar-assignments.vgmux-bearer-ip' value='`$tmp.vgmux-bearer-ip`'/>\n<parameter name='tx-ar-assignments.vgmux-lan-ip' value='`$tmp.vgmux-lan-ip`'/>\n<parameter name='tx-ar-assignments.vg-ip' value='`$tmp.manageIpaddr.ip`'/>\n\n",
695 "x":1428.529052734375,
696 "y":1418.052978515625,
697 "z":"6d778d5b.c45f64",
703 "id":"6d7c9c61.51b0b4",
705 "name":"for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
706 "xml":"<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
709 "x":2501.8155822753906,
710 "y":1610.0411586761475,
711 "z":"6d778d5b.c45f64",
719 "id":"c057b9c3.dc3768",
721 "name":"switch service-data.consumed-allotted-resources_length",
722 "xml":"<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
725 "x":1507.8148193359375,
726 "y":1603.505126953125,
727 "z":"6d778d5b.c45f64",
736 "id":"62b02de0.0af454",
738 "name":"outcome Null",
739 "xml":"<outcome value=''>\n",
742 "x":1908.207763671875,
743 "y":1582.1124267578125,
744 "z":"6d778d5b.c45f64",
752 "id":"26557b09.94a7f4",
755 "xml":"<outcome value='Other'>\n",
758 "x":1900.957763671875,
759 "y":1663.1124267578125,
760 "z":"6d778d5b.c45f64",
768 "id":"70f7bb5e.ea0274",
770 "name":"switch allotted-resource-id",
771 "xml":"<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
774 "x":2936.4106826782227,
775 "y":1611.85085105896,
776 "z":"6d778d5b.c45f64",
784 "id":"a8f61abf.fcd308",
785 "type":"outcomeTrue",
787 "xml":"<outcome value='true'>\n",
790 "x":3143.220375061035,
791 "y":1615.064962387085,
792 "z":"6d778d5b.c45f64",
800 "id":"670fdc23.c2e944",
802 "name":"block : atomic",
803 "xml":"<block atomic=\"true\">",
807 "y":1657.488525390625,
808 "z":"6d778d5b.c45f64",
817 "id":"df6d8539.73d218",
819 "name":"block : atomic",
820 "xml":"<block atomic=\"true\">",
823 "x":3311.4817276000977,
824 "y":1619.9222631454468,
825 "z":"6d778d5b.c45f64",
833 "id":"b0181993.439998",
836 "xml":"<set>\n<parameter name='tmp.cidx' value=\"`0`\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value=\"1\" />\n\n\n",
838 "x":2093.0648193359375,
839 "y":1585.32666015625,
840 "z":"6d778d5b.c45f64",
846 "id":"cf90980d.2f50b8",
848 "name":"set tmp.cidx and ctx.consumed-ar",
849 "xml":"<set>\n<parameter name='tmp.cidx' value='`$cidx`' />\n<parameter name='ctx.consumed-ar.' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].`' />\n<parameter name='tmp.found-cidx' value='true' />",
851 "x":3557.3391876220703,
852 "y":1614.4937419891357,
853 "z":"6d778d5b.c45f64",
859 "id":"9e1a3f00.67db8",
861 "name":"set consumed allotted resources",
862 "xml":"<set>\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-type' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-pointer' value=\"`$tmp.ar.self-link` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$tmp.cidx + 1`' />\n\n",
864 "x":1443.6720123291016,
865 "y":1662.826681137085,
866 "z":"6d778d5b.c45f64",
872 "id":"dcd5ec61.1101",
879 "x":1843.910057067871,
880 "y":2023.4815347194672,
881 "z":"6d778d5b.c45f64",
889 "id":"1b2081c9.a5da5e",
891 "name":"Add SZ AR to mdsal",
894 "x":1370.148193359375,
895 "y":1973.1956787109375,
896 "z":"6d778d5b.c45f64",
902 "id":"7aaed588.63511c",
904 "name":"execute getTime",
905 "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
908 "x":1384.4814224243164,
909 "y":1736.671986579895,
910 "z":"6d778d5b.c45f64",
918 "id":"99804d99.5a352",
921 "xml":"<outcome value='Other'>\n",
924 "x":1104.57666015625,
926 "z":"6d778d5b.c45f64",
934 "id":"aae390e8.74c6e",
936 "name":"block: atomic",
937 "xml":"<block atomic=\"true\">\n",
941 "x":1052.57666015625,
942 "y":1176.2908325195312,
943 "z":"6d778d5b.c45f64",
975 "id":"d7a47b9d.32cb28",
978 "xml":"<set>\n<parameter name='tx-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='tx-ar.allotted-resource-status.action' value=\"`$tunnelxconn-topology-operation-input.request-information.request-action` \" />\n<parameter name='tx-ar.allotted-resource-status.rpc-name' value=\"tunnelxconn-topology-operation\" />\n<parameter name='tx-ar.allotted-resource-status.rpc-action' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$tunnelxconn-topology-operation-input.request-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$tunnelxconn-topology-operation-input.service-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.tunnelxconn-request-input.' value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.` \" />",
980 "x":1423.2434387207031,
981 "y":686.433837890625,
982 "z":"6d778d5b.c45f64",
988 "id":"f623a457.d69fb8",
990 "name":"update AAI allotted-resource",
991 "xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-data.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"description\" value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$ar-model.invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$ar-model.uuid`\" />\n\t<parameter name=\"operational-status\" value=\"null\" />\n",
994 "x":1411.052978515625,
995 "y":1888.5767822265625,
996 "z":"6d778d5b.c45f64",
1005 "id":"34d1f7b2.8b87a8",
1008 "xml":"<outcome value='failure'>\n",
1011 "x":1660.814842224121,
1012 "y":1887.5292553901672,
1013 "z":"6d778d5b.c45f64",
1021 "id":"a85cc318.f284a",
1022 "type":"returnFailure",
1023 "name":"return failure",
1024 "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=\"AAI failed\" />\n",
1026 "x":1827.338722229004,
1027 "y":1899.1483263969421,
1028 "z":"6d778d5b.c45f64",
1034 "id":"b3d34689.7dc1b8",
1037 "xml":"<outcome value='not-found'>\n",
1040 "x":1667.9101295471191,
1041 "y":1920.2912230491638,
1042 "z":"6d778d5b.c45f64",
1050 "id":"a831b9c8.902e48",
1051 "type":"switchNode",
1052 "name":"switch tmp.found-cidx",
1053 "xml":"<switch test='`$tmp.found-cidx`'>\n",
1056 "x":2316.743423461914,
1057 "y":1856.2315921783447,
1058 "z":"6d778d5b.c45f64",
1066 "id":"7ea3dd53.4333f4",
1067 "type":"outcomeTrue",
1069 "xml":"<outcome value='false'>\n",
1072 "x":2506.743377685547,
1073 "y":1856.2315292358398,
1074 "z":"6d778d5b.c45f64",
1082 "id":"b69b3a44.e782b8",
1084 "name":"block : atomic",
1085 "xml":"<block atomic=\"true\">",
1088 "x":2672.743377685547,
1089 "y":1856.2315292358398,
1090 "z":"6d778d5b.c45f64",
1098 "id":"b4e6550a.303748",
1100 "name":"set tmp.cidx ",
1101 "xml":"<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
1103 "x":2918.600706100464,
1104 "y":1856.8030033111572,
1105 "z":"6d778d5b.c45f64",
1111 "id":"995e10ab.ef2f6",
1116 "x":3476.243408203125,
1117 "y":1659.731689453125,
1118 "z":"6d778d5b.c45f64",
1124 "id":"ad2c1042.ffcf4",
1126 "name":"execute RestApiCallNode - Update parent provided service AR",
1127 "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",
1130 "x":2194.9521980285645,
1131 "y":2023.1904199123383,
1132 "z":"6d778d5b.c45f64",
1142 "id":"f9d8c7c9.5d1db8",
1144 "name":"Rollback parent",
1147 "x":2038.9521255493164,
1148 "y":1992.8570504188538,
1149 "z":"6d778d5b.c45f64",
1155 "id":"473b0bea.e2adf4",
1158 "xml":"<outcome value='not-found'>\n",
1161 "x":2566.2602462768555,
1162 "y":2083.8553862571716,
1163 "z":"6d778d5b.c45f64",
1171 "id":"7b199046.8906d",
1174 "xml":"<outcome value='failure'>\n",
1177 "x":2557.26029586792,
1178 "y":2052.355412006378,
1179 "z":"6d778d5b.c45f64",
1187 "id":"416141e2.fa511",
1190 "xml":"<outcome value='success'>\n",
1193 "x":2561.0103340148926,
1194 "y":2022.7125168815255,
1195 "z":"6d778d5b.c45f64",
1203 "id":"4115590f.ef7568",
1210 "x":2702.666301727295,
1211 "y":2018.9046860709786,
1212 "z":"6d778d5b.c45f64",
1220 "id":"bf37a377.dd8a4",
1222 "name":"Generate naming",
1225 "x":1459.3862762451172,
1226 "y":1033.767225265503,
1227 "z":"6d778d5b.c45f64",
1233 "id":"f5d1d70b.ddc6f8",
1235 "name":"execute Properties",
1236 "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",
1241 "z":"6d778d5b.c45f64",
1249 "id":"e8c6a2dd.e4b3e",
1250 "type":"get-resource",
1251 "name":"get-resource parent service instance",
1252 "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='VNF-API' key='vnfs/vnf-list/$tmp.ar.parent-service-instance-id/service-data/' pfx='parent-service-instance' >\n",
1257 "z":"6d778d5b.c45f64",
1266 "id":"dbef2e21.0da74",
1269 "xml":"<outcome value='success'>\n",
1274 "z":"6d778d5b.c45f64",
1282 "id":"8991d34b.f48af",
1285 "xml":"<outcome value='Other'>\n",
1290 "z":"6d778d5b.c45f64",
1298 "id":"d4ea2429.a9c908",
1299 "type":"returnFailure",
1300 "name":"return failure - parent service instance not found",
1301 "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=\"`'No entry found for parent service instance id ' + $tmp.ar.parent-service-instance-id + '.'`\" />\n",
1305 "z":"6d778d5b.c45f64",
1311 "id":"be6a5ce7.0ed",
1313 "name":"for parent vnf parameters",
1314 "xml":"<for index='curidx' start='0' end='`$parent-service-instance.service-data.vnf-topology-information.vnf-parameters_length`' >\n",
1319 "z":"6d778d5b.c45f64",
1327 "id":"95805190.debbe",
1328 "type":"switchNode",
1329 "name":"switch parameter name",
1330 "xml":"<switch test='`$parent-service-instance.service-data.vnf-topology-information.vnf-parameters[$curidx].vnf-parameter-name`'>\n",
1335 "z":"6d778d5b.c45f64",
1344 "id":"508d4d24.3b9154",
1346 "name":"vgmux_private_ip_0",
1347 "xml":"<outcome value='vgmux_private_ip_0'>\n",
1352 "z":"6d778d5b.c45f64",
1360 "id":"755943b8.1a105c",
1362 "name":"set tmp.vgmux-bearer-ip",
1363 "xml":"<set>\n<parameter name='tmp.vgmux-bearer-ip' value='`$parent-service-instance.service-data.vnf-topology-information.vnf-parameters[$curidx].vnf-parameter-value`'/>\n\n",
1365 "x":2550.9999771118164,
1366 "y":1380.0000400543213,
1367 "z":"6d778d5b.c45f64",
1373 "id":"1ac32417.a325dc",
1375 "name":"vgmux_private_ip_2",
1376 "xml":"<outcome value='vgmux_private_ip_2'>\n",
1381 "z":"6d778d5b.c45f64",
1389 "id":"861fd9c6.6015f8",
1391 "name":"set tmp.vgmux-lan-ip",
1392 "xml":"<set>\n<parameter name='tmp.vgmux-lan-ip' value='`$parent-service-instance.service-data.vnf-topology-information.vnf-parameters[$curidx].vnf-parameter-value`'/>\n\n",
1394 "x":2540.9999771118164,
1395 "y":1322.0000381469727,
1396 "z":"6d778d5b.c45f64",
1402 "id":"59dac422.4bc30c",
1404 "name":"set default assignments",
1405 "xml":"<set>\n<parameter name='tmp.vni' value='123' />\n<parameter name='tmp.vgmux-bearer-ip' value='127.0.0.1' />\n<parameter name='tmp.vgmux-lan-ip' value='127.0.0.1' />",
1409 "z":"6d778d5b.c45f64",
1415 "id":"338371c3.03166e",
1417 "name":"generate allotted-resource url",
1418 "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.tx-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",
1423 "z":"6d778d5b.c45f64",
1431 "id":"40af5f1c.9055f",
1433 "name":"call GENERIC-RESOURCE-API:manage-vni-assignment",
1434 "xml":"<call module='GENERIC-RESOURCE-API' rpc='manage-vni-assignment' mode='sync' >\n",
1439 "z":"6d778d5b.c45f64",
1447 "id":"d857982b.5cce48",
1449 "name":"set actions = reserve, pools = VNI, VGW",
1450 "xml":"<set>\n<parameter name='tmp.manageVni.action' value='reserve' />\n<parameter name='tmp.manageIpaddr.action' value='reserve' />\n<parameter name='tmp.manageVni.pool' value='VNI'/>\n<parameter name='tmp.manageIpaddr.pool' value='VGW'/>",
1454 "z":"6d778d5b.c45f64",
1460 "id":"bec51e2f.be8cc",
1462 "name":"execute RestApiCallNode - Get AR by id",
1463 "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",
1468 "z":"6d778d5b.c45f64",
1477 "id":"30b6665f.e4a89a",
1478 "type":"switchNode",
1479 "name":"Does parent service instance have vnf parameters?",
1480 "xml":"<switch test=\"`$parent-service-instance.service-data.vnf-topology-information.vnf-parameters_length != ''`\">\n",
1485 "z":"6d778d5b.c45f64",
1493 "id":"a8ab7150.c4542",
1494 "type":"outcomeTrue",
1496 "xml":"<outcome value='true'>\n",
1501 "z":"6d778d5b.c45f64",
1509 "id":"de53cfb9.dddbd",
1511 "name":"call GENERIC-RESOURCE-API:manage-ipaddr-assignment",
1512 "xml":"<call module='GENERIC-RESOURCE-API' rpc='manage-ipaddr-assignment' mode='sync' >\n",
1517 "z":"6d778d5b.c45f64",
1525 "id":"abea3cf1.3111d",
1527 "name":"Handle tx parameters",
1528 "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[0].name' value='VNI'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[0].value' value='`$tmp.manageVni.vni`'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[1].name' value='vgmux_private_ip_2'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[1].value' value='`$tmp.vgmux-bearer-ip`'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[2].name' value='vgmux_private_ip_0'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[2].value' value='`$tmp.vgmux-lan-ip`'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[3].name' value='vgw_private_ip_0'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[3].value' value='`$tmp.manageIpaddr.ip`'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters_length' value='4'/>\n\n",
1532 "z":"6d778d5b.c45f64",