3 "id": "3aa7dd53.c23282",
7 "x": 113.75662612915039,
8 "y": 48.518513679504395,
17 "id": "d95c10eb.dc1d4",
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": 209.9947052001953,
26 "y": 109.47090435028076,
27 "z": "d9f8bc54.6ca48",
35 "id": "9ec57dff.79a3e",
37 "name": "security-zone-topology-operation-assign",
38 "xml": "<method rpc='security-zone-topology-operation-assign' mode='sync'>\n",
41 "x": 255.91148376464844,
42 "y": 144.70895957946777,
43 "z": "d9f8bc54.6ca48",
51 "id": "b469237.21f31e",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
58 "x": 164.23281860351562,
59 "y": 288.0423016548157,
60 "z": "d9f8bc54.6ca48",
94 "id": "dd46184f.c5ad68",
95 "type": "returnSuccess",
96 "name": "return success",
97 "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",
99 "x": 380.75672149658203,
100 "y": 2301.73295211792,
101 "z": "d9f8bc54.6ca48",
105 "id": "da8bc6b3.f36008",
107 "name": "set output to api handler",
108 "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='security-zone-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $security-zone-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
110 "x": 409.51063537597656,
111 "y": 2265.855498313904,
112 "z": "d9f8bc54.6ca48",
116 "id": "a62f34b1.dd5738",
118 "name": "set allotted-resource-oper-status",
119 "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingCreate' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$security-zone-topology-operation-input.request-information.request-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$security-zone-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$security-zone-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
121 "x": 469.0821876525879,
122 "y": 1642.569899559021,
123 "z": "d9f8bc54.6ca48",
127 "id": "7ff7d11f.c2ff8",
129 "name": "set tmp.ar.self-link",
130 "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/security-zone-topology/'` \" />\n\n",
132 "x": 426.49468994140625,
133 "y": 261.85183906555176,
134 "z": "d9f8bc54.6ca48",
138 "id": "19bd4a95.82d635",
140 "name": "set tmp.ar.allotted-resource-id,etc",
141 "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$security-zone-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$security-zone-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<parameter name='tmp.ar.sz-vnf-id' value='`$security-zone-topology-operation-input.allotted-resource-data.security-zone-topology.security-zone-assignments.security-zone-vnf-id`' />\n\n\n",
143 "x": 473.7539520263672,
144 "y": 228.11110496520996,
145 "z": "d9f8bc54.6ca48",
149 "id": "5082e4fd.fb398c",
151 "name": "execute Properties",
152 "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",
155 "x": 432.7500457763672,
156 "y": 297.75003814697266,
157 "z": "d9f8bc54.6ca48",
163 "id": "3f7399d.1a38166",
165 "name": "execute RestApiCallNode - Get AR by id",
166 "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",
169 "x": 513.2753753662109,
170 "y": 520.9779777526855,
171 "z": "d9f8bc54.6ca48",
180 "id": "44a8ff0c.4ea4",
182 "name": "generate allotted-resource url",
183 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.sz-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",
186 "x": 460.8214797973633,
187 "y": 357.5357427597046,
188 "z": "d9f8bc54.6ca48",
194 "id": "5afe88e8.32e0a8",
197 "xml": "<outcome value='success'>\n",
200 "x": 758.5715179443359,
201 "y": 523.7857661247253,
202 "z": "d9f8bc54.6ca48",
210 "id": "14e2f5f2.92d2fa",
212 "name": "execute RestApiCallNode - PUT AR by id",
213 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sz.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",
216 "x": 487.61922454833984,
217 "y": 1847.2859721183777,
218 "z": "d9f8bc54.6ca48",
228 "id": "975af54b.31fe88",
231 "xml": "<outcome value='not-found'>\n",
234 "x": 756.2606010437012,
235 "y": 1898.6173838600516,
236 "z": "d9f8bc54.6ca48",
244 "id": "615e377.16035c8",
247 "xml": "<outcome value='failure'>\n",
250 "x": 747.2606506347656,
251 "y": 1867.1174096092582,
252 "z": "d9f8bc54.6ca48",
260 "id": "3777cc93.f26b94",
263 "xml": "<outcome value='success'>\n",
266 "x": 751.0106887817383,
267 "y": 1837.4745144844055,
268 "z": "d9f8bc54.6ca48",
276 "id": "a456aa59.071ed8",
277 "type": "returnFailure",
278 "name": "return failure",
279 "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 security-zone-allotted-resource\" />\n",
281 "x": 917.0106887817383,
282 "y": 1867.867433451116,
283 "z": "d9f8bc54.6ca48",
287 "id": "b6853767.ffe678",
289 "name": "block: atomic",
290 "xml": "<block atomic=\"true\">\n",
294 "x": 939.5714721679688,
295 "y": 524.2857155799866,
296 "z": "d9f8bc54.6ca48",
305 "id": "f8ae24aa.f00bb8",
306 "type": "switchNode",
307 "name": "switch sz length",
308 "xml": "<switch test='`$mdsal-ar.security-zone-allotted-resource_length`'>\n",
311 "x": 1185.4287185668945,
312 "y": 558.571478843689,
313 "z": "d9f8bc54.6ca48",
321 "id": "b691cae6.eefd08",
324 "xml": "<outcome value='1'>\n",
327 "x": 1376.4287223815918,
328 "y": 558.5714764595032,
329 "z": "d9f8bc54.6ca48",
337 "id": "9e2ca7ca.004578",
339 "name": "set sz-ar from get",
340 "xml": "<set>\n<parameter name='sz-ar.' value='$mdsal-ar.security-zone-allotted-resource[0].' />\n",
342 "x": 1770.286018371582,
343 "y": 493.14292335510254,
344 "z": "d9f8bc54.6ca48",
348 "id": "c71c7fc0.fb074",
350 "name": "block: atomic",
351 "xml": "<block atomic='true'>\n",
355 "x": 1563.2858505249023,
356 "y": 527.1428961753845,
357 "z": "d9f8bc54.6ca48",
367 "id": "577032f2.5c728c",
369 "name": "set oper-status",
370 "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",
372 "x": 1770.286018371582,
373 "y": 572.5714111328125,
374 "z": "d9f8bc54.6ca48",
378 "id": "b73d4268.63b59",
380 "name": "Save consumed-allotted-resources to mdsal",
383 "x": 491.0000915527344,
384 "y": 1490.238136291504,
385 "z": "d9f8bc54.6ca48",
389 "id": "9c87c693.6b7aa8",
391 "name": "GET security-zone-allotted-resource from mdsal",
394 "x": 526.5714416503906,
395 "y": 488.28570652008057,
396 "z": "d9f8bc54.6ca48",
400 "id": "f6f446f7.eb6e38",
401 "type": "switchNode",
402 "name": "switch order-status",
403 "xml": "<switch test='`$sz-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
406 "x": 1778.2858810424805,
407 "y": 526.1428985595703,
408 "z": "d9f8bc54.6ca48",
417 "id": "1ba18b9c.c66c64",
419 "name": "outcome Created",
420 "xml": "<outcome value='Created'>\n",
423 "x": 1989.8858375549316,
424 "y": 487.1428985595703,
425 "z": "d9f8bc54.6ca48",
433 "id": "e561c273.b01c",
435 "name": "outcome PendingDelete",
436 "xml": "<outcome value='PendingDelete'>\n",
439 "x": 2015.600212097168,
440 "y": 522.5714893341064,
441 "z": "d9f8bc54.6ca48",
449 "id": "ace0f78a.8c4198",
450 "type": "returnFailure",
451 "name": "return failure",
452 "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 security-zone-allotted-resource with order status of ' + $sz-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
454 "x": 2277.885810852051,
455 "y": 495.14288544654846,
456 "z": "d9f8bc54.6ca48",
460 "id": "df2b47bc.dad938",
462 "name": "set sz-ar-identifiers",
463 "xml": "<set>\n<parameter name='sz-ar-identifiers.consuming-service-instance-id' value=\"`$security-zone-topology-operation-input.service-information.service-instance-id` \" />\n<parameter name='sz-ar-identifiers.parent-service-instance-id' value=\"`$security-zone-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n<parameter name='sz-ar-identifiers.allotted-resource-type' value=\"`$security-zone-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='sz-ar-identifiers.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n\n",
465 "x": 437.1429138183594,
466 "y": 677.1428809165955,
467 "z": "d9f8bc54.6ca48",
471 "id": "c09b6648.7720b8",
473 "name": "Set allotted-resource-identifiers",
476 "x": 478.0952682495117,
477 "y": 622.8571615219116,
478 "z": "d9f8bc54.6ca48",
482 "id": "29f6546e.b6ab2c",
484 "name": "set identifiers in overal structure",
485 "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.security-zone-topology.allotted-resource-identifiers.' \nvalue=\"`$sz-ar-identifiers.`\" />\n\n\n",
487 "x": 474.1428756713867,
488 "y": 951.428858757019,
489 "z": "d9f8bc54.6ca48",
493 "id": "cd2238ce.a361f8",
495 "name": "set ecomp model information from input",
496 "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.security-zone-topology.onap-model-information.' \nvalue=\"`$security-zone-topology-operation-input.allotted-resource-information.onap-model-information.`\" />\n\n\n",
498 "x": 505.7143325805664,
499 "y": 711.4285831451416,
500 "z": "d9f8bc54.6ca48",
504 "id": "f37960af.a307",
505 "type": "switchNode",
506 "name": "switch model-invariant-uuid is null",
507 "xml": "<switch test='$security-zone-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid'>\n",
510 "x": 488.5714416503906,
511 "y": 745.714301109314,
512 "z": "d9f8bc54.6ca48",
520 "id": "cdaca375.86687",
522 "name": "outcome null",
523 "xml": "<outcome value=''>\n",
526 "x": 715.7143211364746,
527 "y": 747.1428184509277,
528 "z": "d9f8bc54.6ca48",
536 "id": "ca95e15f.7a282",
538 "name": "set model-invariant-uuid",
539 "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.security-zone-topology.onap-model-information.model-invariant-uuid' \nvalue=\"`$ar-model.invariant-uuid`\" />\n\n\n",
541 "x": 917.142894744873,
542 "y": 746.5713710784912,
543 "z": "d9f8bc54.6ca48",
547 "id": "676f8458.1ceddc",
548 "type": "switchNode",
549 "name": "switch model-uuid is null",
550 "xml": "<switch test='$security-zone-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid'>\n",
553 "x": 460.00003814697266,
554 "y": 780.0000019073486,
555 "z": "d9f8bc54.6ca48",
563 "id": "c051003f.4d255",
565 "name": "outcome null",
566 "xml": "<outcome value=''>\n",
569 "x": 661.4286041259766,
570 "y": 780.5714235305786,
571 "z": "d9f8bc54.6ca48",
579 "id": "17a9ad79.daf043",
581 "name": "set model-uuid",
582 "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.security-zone-topology.onap-model-information.model-uuid' \nvalue=\"`$ar-model.uuid`\" />\n\n\n",
584 "x": 854.2857627868652,
585 "y": 780.5713453292847,
586 "z": "d9f8bc54.6ca48",
590 "id": "41c3e1d7.688b9",
591 "type": "switchNode",
592 "name": "switch model-version is null",
593 "xml": "<switch test='$security-zone-topology-operation-input.allotted-resource-information.onap-model-information.model-version'>\n",
596 "x": 468.5714416503906,
597 "y": 812.8571290969849,
598 "z": "d9f8bc54.6ca48",
606 "id": "834cdb5d.a611a8",
608 "name": "outcome null",
609 "xml": "<outcome value=''>\n",
612 "x": 718.5714225769043,
613 "y": 812.8571138381958,
614 "z": "d9f8bc54.6ca48",
622 "id": "6df03ba1.da4d84",
624 "name": "set model-version",
625 "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.security-zone-topology.onap-model-information.model-version' \nvalue=\"`$ar-model.version`\" />\n\n\n",
627 "x": 911.428581237793,
628 "y": 812.8570356369019,
629 "z": "d9f8bc54.6ca48",
633 "id": "bf0c5aa1.d23018",
634 "type": "switchNode",
635 "name": "switch ar-model.ecomp-generated-naming",
636 "xml": "<switch test='`$ar-model.ecomp-generated-naming`'>\n",
639 "x": 507.1428413391113,
640 "y": 914.2858047485352,
641 "z": "d9f8bc54.6ca48",
650 "id": "8263bea9.21776",
653 "xml": "<outcome value='Y'>\n",
656 "x": 857.1429061889648,
657 "y": 913.7143549919128,
658 "z": "d9f8bc54.6ca48",
666 "id": "6d3862a4.def2cc",
668 "name": "block : atomic",
669 "xml": "<block atomic=\"true\">\n",
673 "x": 1025.8929481506348,
674 "y": 914.214343547821,
675 "z": "d9f8bc54.6ca48",
683 "id": "31dce175.8172ce",
686 "xml": "<outcome value='Other'>\n",
689 "x": 848.3651962280273,
690 "y": 946.7143549919128,
691 "z": "d9f8bc54.6ca48",
699 "id": "79411f72.37cc4",
700 "type": "returnFailure",
701 "name": "return failure",
702 "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",
704 "x": 1026.3651962280273,
705 "y": 945.7143549919128,
706 "z": "d9f8bc54.6ca48",
710 "id": "340cfc26.1a1d64",
711 "type": "switchNode",
712 "name": "switch ar-model.ecomp-generated-naming",
713 "xml": "<switch test='`$ar-model.naming-policy`'>\n",
716 "x": 1327.1428527832031,
717 "y": 914.2858171463013,
718 "z": "d9f8bc54.6ca48",
727 "id": "c60923e3.e3226",
729 "name": "outcome oam_security_zone_name",
730 "xml": "<outcome value='oam_security_zone_name'>\n",
733 "x": 1668.000617980957,
734 "y": 914.8638672828674,
735 "z": "d9f8bc54.6ca48",
743 "id": "5fb6c973.79b708",
746 "xml": "<outcome value='Other'>\n",
749 "x": 1579.4285507202148,
750 "y": 945.714367389679,
751 "z": "d9f8bc54.6ca48",
759 "id": "47d880dc.e5c98",
761 "name": "set ar_name",
762 "xml": "<set>\n<parameter name='tmp.ar-name' value='$TenantOAMNetworkRole_$LandingNetworkRole_SZ' />\n",
764 "x": 2108.8573417663574,
765 "y": 914.2857584953308,
766 "z": "d9f8bc54.6ca48",
770 "id": "e616a9fb.2ba0a8",
772 "name": "execute SliStringUtils - replace TenantOAMNetworkRole",
773 "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=\"`$security-zone-topology-operation-input.security-zone-request-input.untrusted-network-role`\"/>\n\n",
776 "x": 2246.0004119873047,
777 "y": 947.1429333686829,
778 "z": "d9f8bc54.6ca48",
784 "id": "c3a0064f.e2bfc8",
786 "name": "execute SliStringUtils - replace LandingNetworkRole",
787 "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=\"`$security-zone-topology-operation-input.security-zone-request-input.trusted-network-role`\"/>\n\n",
790 "x": 2229.0004272460938,
791 "y": 979.2858099937439,
792 "z": "d9f8bc54.6ca48",
798 "id": "64919905.bc8708",
800 "name": "block: atomic",
801 "xml": "<block atomic='true'>\n",
805 "x": 1910.2858276367188,
806 "y": 942.8572659492493,
807 "z": "d9f8bc54.6ca48",
818 "id": "3ea93d43.94b532",
820 "name": "set identifiers.allotted-resource-name",
821 "xml": "<set>\n<parameter name='sz-ar-identifiers.allotted-resource-name' value='`$tmp.ar-name`' />\n",
823 "x": 2178.8573150634766,
824 "y": 1008.571485042572,
825 "z": "d9f8bc54.6ca48",
829 "id": "db115202.e2393",
831 "name": "set assignments in overal structure",
832 "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.security-zone-topology.security-zone-assignments.' \nvalue=\"`$sz-ar-assignments.`\" />\n\n\n",
834 "x": 482.61910247802734,
835 "y": 1117.1431503295898,
836 "z": "d9f8bc54.6ca48",
840 "id": "bb728435.7fabc8",
842 "name": "set sz-ar-assignments",
843 "xml": "<set>\n<parameter name='sz-ar-assignments.vlan-tag' value=\"`$security-zone-topology-operation-input.security-zone-request-input.vlan-tag` \" />\n<parameter name='sz-ar-assignments.trusted-network-role' value=\"`$security-zone-topology-operation-input.security-zone-request-input.trusted-network-role` \" />\n<parameter name='sz-ar-assignments.untrusted-network-role' value=\"`$security-zone-topology-operation-input.security-zone-request-input.untrusted-network-role` \" />\n<parameter name='sz-ar-assignments.security-zone-service-instance-id' value=\"`$tmp.ar.parent-service-instance-id` \" />\n\n",
845 "x": 444.28570556640625,
846 "y": 988.5715227127075,
847 "z": "d9f8bc54.6ca48",
851 "id": "cae22b42.18c468",
853 "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
854 "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
857 "x": 1360.572135925293,
858 "y": 1564.8096537590027,
859 "z": "d9f8bc54.6ca48",
867 "id": "773fe048.c730b",
868 "type": "switchNode",
869 "name": "switch service-data.consumed-allotted-resources_length",
870 "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
873 "x": 534.5714721679688,
874 "y": 1524.5236463546753,
875 "z": "d9f8bc54.6ca48",
884 "id": "38c33f23.a99c8",
886 "name": "outcome Null",
887 "xml": "<outcome value=''>\n",
890 "x": 840.7143859863281,
891 "y": 1529.3809938430786,
892 "z": "d9f8bc54.6ca48",
900 "id": "61a487f.6f30978",
903 "xml": "<outcome value='Other'>\n",
906 "x": 820.7143859863281,
907 "y": 1564.3809938430786,
908 "z": "d9f8bc54.6ca48",
916 "id": "7553ad4e.ad7d94",
917 "type": "switchNode",
918 "name": "switch allotted-resource-id",
919 "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
922 "x": 1812.6673278808594,
923 "y": 1562.869366645813,
924 "z": "d9f8bc54.6ca48",
932 "id": "2bfef68b.19fdca",
933 "type": "outcomeTrue",
935 "xml": "<outcome value='true'>\n",
938 "x": 2004.4769649505615,
939 "y": 1562.3335065841675,
940 "z": "d9f8bc54.6ca48",
948 "id": "a9ef602f.19524",
950 "name": "block : atomic",
951 "xml": "<block atomic=\"true\">",
954 "x": 974.8415298461914,
955 "y": 1564.5069856643677,
956 "z": "d9f8bc54.6ca48",
965 "id": "2e1ed2f6.15d1fe",
967 "name": "block : atomic",
968 "xml": "<block atomic=\"true\">",
971 "x": 2160.238296508789,
972 "y": 1562.1907081604004,
973 "z": "d9f8bc54.6ca48",
982 "id": "3413dfa5.ea0b8",
985 "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",
987 "x": 999.5713996887207,
988 "y": 1529.0952253341675,
989 "z": "d9f8bc54.6ca48",
993 "id": "e679b033.de33f",
995 "name": "set tmp.cidx and ctx.consumed-ar",
996 "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' />",
998 "x": 2406.0957565307617,
999 "y": 1556.7621870040894,
1000 "z": "d9f8bc54.6ca48",
1004 "id": "995418ca.5fe778",
1006 "name": "set consumed allotted resources",
1007 "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=\"`$security-zone-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",
1009 "x": 462.42862701416016,
1010 "y": 1565.0951986312866,
1011 "z": "d9f8bc54.6ca48",
1015 "id": "59610fb0.0a244",
1017 "name": "execute RestApiCallNode - PUT SZ VNF Provided Allotted Resource",
1018 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.vnf-p-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-prov-ar\" />\n\n",
1021 "x": 575.9049606323242,
1022 "y": 2049.0955414772034,
1023 "z": "d9f8bc54.6ca48",
1032 "id": "a0673b92.f4f7c8",
1034 "name": "save backup copy of mdsal-ar for rollback",
1035 "xml": "<set>\n<parameter name='bk-sz-ar' value='$mdsal-ar.' />\n",
1037 "x": 1265.143051147461,
1038 "y": 524.2858076095581,
1039 "z": "d9f8bc54.6ca48",
1043 "id": "422fade5.4f8814",
1045 "name": "generate vnf provided ar url",
1046 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.vnf-provided-allottedresource`\" />\n <parameter name=\"outputPath\" value=\"tmp.vnf-p-ar-url\" />\n <parameter name=\"target\" value=\"{service-instance-id}\" />\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\" />\n",
1049 "x": 452.8571472167969,
1050 "y": 388.57141876220703,
1051 "z": "d9f8bc54.6ca48",
1057 "id": "83f71044.bcea7",
1059 "name": "execute SliStringUtils",
1060 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.vnf-p-ar-url`\" />\n <parameter name=\"outputPath\" value=\"tmp.vnf-p-ar-url\" />\n <parameter name=\"target\" value=\"{vnf-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.sz-vnf-id`\"/>\n",
1063 "x": 443.1428985595703,
1064 "y": 419.99999809265137,
1065 "z": "d9f8bc54.6ca48",
1071 "id": "ec9be6aa.494588",
1073 "name": "Create urls for restapi",
1076 "x": 431.7142868041992,
1077 "y": 327.1428699493408,
1078 "z": "d9f8bc54.6ca48",
1082 "id": "ae04f7b.eed3208",
1085 "xml": "<outcome value='success'>\n",
1088 "x": 934.4763298034668,
1089 "y": 2049.666941165924,
1090 "z": "d9f8bc54.6ca48",
1098 "id": "f9fdf5f9.8e4668",
1100 "name": "block: atomic",
1101 "xml": "<block atomic=\"true\">\n",
1105 "x": 1144.047706604004,
1106 "y": 2048.738305568695,
1107 "z": "d9f8bc54.6ca48",
1116 "id": "3eccb358.12c2dc",
1117 "type": "switchNode",
1118 "name": "switch sz length",
1119 "xml": "<switch test='`$mdsal-ar.security-zone-allotted-resource_length`'>\n",
1122 "x": 1389.9049530029297,
1123 "y": 2083.0240688323975,
1124 "z": "d9f8bc54.6ca48",
1132 "id": "452ba5e6.956fcc",
1134 "name": "outcome 1",
1135 "xml": "<outcome value='1'>\n",
1138 "x": 1580.904956817627,
1139 "y": 2083.0240664482117,
1140 "z": "d9f8bc54.6ca48",
1146 "id": "968252db.ccc84",
1148 "name": "save backup copy of mdsal-ar for rollback",
1149 "xml": "<set>\n<parameter name='bk-sz-ar' value='$mdsal-ar.' />\n",
1151 "x": 1469.619285583496,
1152 "y": 2048.7383975982666,
1153 "z": "d9f8bc54.6ca48",
1157 "id": "5027b5f7.e37cbc",
1160 "xml": "<outcome value='failure'>\n",
1163 "x": 933.047721862793,
1164 "y": 2139.6668133735657,
1165 "z": "d9f8bc54.6ca48",
1173 "id": "f1ea7873.944388",
1175 "name": "Need to rollback?",
1178 "x": 935.9049758911133,
1179 "y": 2088.238205432892,
1180 "z": "d9f8bc54.6ca48",
1184 "id": "e06b36.87ea84c8",
1185 "type": "returnFailure",
1186 "name": "return failure",
1187 "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 security-zone-allotted-resource\" />\n",
1189 "x": 1310.1905517578125,
1190 "y": 2181.0956473350525,
1191 "z": "d9f8bc54.6ca48",
1195 "id": "eeb0dfbd.307f7",
1197 "name": "execute RestApiCallNode - DELETE AR by id",
1198 "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",
1201 "x": 1411.6191864013672,
1202 "y": 2142.5242981910706,
1203 "z": "d9f8bc54.6ca48",
1209 "id": "ce01090.f9b9af8",
1211 "name": "block: atomic",
1212 "xml": "<block atomic=\"true\">\n",
1216 "x": 1107.3334274291992,
1217 "y": 2142.523895740509,
1218 "z": "d9f8bc54.6ca48",
1227 "id": "bde153f5.6a65",
1229 "name": "Generate Security zone Panorama names",
1232 "x": 494.8095932006836,
1233 "y": 1016.1907386779785,
1234 "z": "d9f8bc54.6ca48",
1238 "id": "4f2b0053.cbdf5",
1240 "name": "set sz-ar-assignments",
1241 "xml": "<set>\n<parameter name='sz-ar-assignments.security-zone-name-untrusted' value=\"`$tmp.untrust-sz` \" />\n<parameter name='sz-ar-assignments.security-zone-name-trusted' value=\"`$tmp.trust-sz` \" />\n\n\n",
1243 "x": 444.0953140258789,
1244 "y": 1080.7148094177246,
1245 "z": "d9f8bc54.6ca48",
1249 "id": "c28eabf9.0410c8",
1251 "name": "execute SliStringUtils",
1252 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.vnf-p-ar-url`\" />\n <parameter name=\"outputPath\" value=\"tmp.vnf-p-ar-url\" />\n <parameter name=\"target\" value=\"{vnf-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.sz-vnf-id`\"/>\n",
1255 "x": 444.28570556640625,
1256 "y": 451.4285583496094,
1257 "z": "d9f8bc54.6ca48",
1263 "id": "121f5121.c5ff2f",
1265 "name": "call generate-panorama-name",
1266 "xml": "<call module='GENERIC-RESOURCE-API' rpc='generate-panorama-name' mode='sync' >\n",
1269 "x": 465.00001525878906,
1270 "y": 1046.66672706604,
1271 "z": "d9f8bc54.6ca48",
1277 "id": "4593956d.d1f3ec",
1284 "x": 892.6666564941406,
1285 "y": 1833.6666836738586,
1286 "z": "d9f8bc54.6ca48",
1294 "id": "a64508aa.c4e898",
1296 "name": "Add SZ AR to mdsal",
1299 "x": 416.9048080444336,
1300 "y": 1808.3808569908142,
1301 "z": "d9f8bc54.6ca48",
1305 "id": "a4891e73.c917",
1307 "name": "execute getTime",
1308 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
1311 "x": 424.66665840148926,
1312 "y": 1602.3333406448364,
1313 "z": "d9f8bc54.6ca48",
1319 "id": "4a737d1.caa4e84",
1322 "xml": "<outcome value='Other'>\n",
1325 "x": 758.3333129882812,
1326 "y": 559.9999389648438,
1327 "z": "d9f8bc54.6ca48",
1335 "id": "f20f59c0.b02038",
1337 "name": "block: atomic",
1338 "xml": "<block atomic=\"true\">\n",
1342 "x": 938.3332633972168,
1343 "y": 560.6664896011353,
1344 "z": "d9f8bc54.6ca48",
1350 "id": "87ceb4de.ec7128",
1353 "xml": "<set>\n<parameter name='sz-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='sz-ar.allotted-resource-status.action' value=\"`$security-zone-topology-operation-input.request-information.request-action` \" />\n<parameter name='sz-ar.allotted-resource-status.rpc-name' value=\"security-zone-topology-operation\" />\n<parameter name='sz-ar.allotted-resource-status.rpc-action' value=\"`$security-zone-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$security-zone-topology-operation-input.request-information.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$security-zone-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$security-zone-topology-operation-input.service-information.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$security-zone-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.security-zone-request-input.' value=\"`$security-zone-topology-operation-input.security-zone-request-input.` \" />",
1355 "x": 405.000057220459,
1356 "y": 585.9523229598999,
1357 "z": "d9f8bc54.6ca48",
1361 "id": "c025c3c9.338f6",
1363 "name": "update AAI allotted-resource",
1364 "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=\"`$security-zone-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",
1367 "x": 446.66668701171875,
1368 "y": 1730.238124847412,
1369 "z": "d9f8bc54.6ca48",
1378 "id": "78f280c9.aa658",
1381 "xml": "<outcome value='failure'>\n",
1384 "x": 702.428596496582,
1385 "y": 1713.190628528595,
1386 "z": "d9f8bc54.6ca48",
1394 "id": "e21aa9c5.4ebb08",
1395 "type": "returnFailure",
1396 "name": "return failure",
1397 "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",
1399 "x": 868.9524765014648,
1400 "y": 1724.8096995353699,
1401 "z": "d9f8bc54.6ca48",
1405 "id": "3206f266.94f28e",
1407 "name": "not-found",
1408 "xml": "<outcome value='not-found'>\n",
1411 "x": 709.5238838195801,
1412 "y": 1745.9525961875916,
1413 "z": "d9f8bc54.6ca48",
1421 "id": "91a87775.758588",
1422 "type": "switchNode",
1423 "name": "switch tmp.found-cidx",
1424 "xml": "<switch test='`$tmp.found-cidx`'>\n",
1427 "x": 1177.999984741211,
1428 "y": 1596.0000410079956,
1429 "z": "d9f8bc54.6ca48",
1437 "id": "f9327230.fb919",
1438 "type": "outcomeTrue",
1440 "xml": "<outcome value='false'>\n",
1443 "x": 1367.9999389648438,
1444 "y": 1595.9999780654907,
1445 "z": "d9f8bc54.6ca48",
1453 "id": "fde4a6ad.8b8798",
1455 "name": "block : atomic",
1456 "xml": "<block atomic=\"true\">",
1459 "x": 1533.9999389648438,
1460 "y": 1595.9999780654907,
1461 "z": "d9f8bc54.6ca48",
1469 "id": "f243be1.0d9664",
1471 "name": "set tmp.cidx ",
1472 "xml": "<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
1474 "x": 1779.8572673797607,
1475 "y": 1596.571452140808,
1476 "z": "d9f8bc54.6ca48",
1480 "id": "4d5ec78f.74ab88",
1485 "x": 2324.000057220459,
1486 "y": 1588.0000791549683,
1487 "z": "d9f8bc54.6ca48",
1491 "id": "297e2310.b99eec",
1493 "name": "execute RestApiCallNode - Update parent provided service AR",
1494 "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",
1497 "x": 1243.708797454834,
1498 "y": 1833.3755688667297,
1499 "z": "d9f8bc54.6ca48",
1509 "id": "c07fd6c.a7d3c28",
1511 "name": "Rollback parent",
1514 "x": 1087.708724975586,
1515 "y": 1803.0421993732452,
1516 "z": "d9f8bc54.6ca48",
1520 "id": "90eb7941.4e6d28",
1521 "type": "not-found",
1522 "name": "not-found",
1523 "xml": "<outcome value='not-found'>\n",
1526 "x": 1615.016845703125,
1527 "y": 1894.040535211563,
1528 "z": "d9f8bc54.6ca48",
1536 "id": "529b5fcc.fe782",
1539 "xml": "<outcome value='failure'>\n",
1542 "x": 1606.0168952941895,
1543 "y": 1862.5405609607697,
1544 "z": "d9f8bc54.6ca48",
1552 "id": "5dd2303d.8c34d",
1555 "xml": "<outcome value='success'>\n",
1558 "x": 1609.766933441162,
1559 "y": 1832.897665835917,
1560 "z": "d9f8bc54.6ca48",
1568 "id": "f889d017.68c21",
1575 "x": 1751.4229011535645,
1576 "y": 1829.0898350253701,
1577 "z": "d9f8bc54.6ca48",
1583 "id": "d41e8d9f.684df",
1585 "name": "Generate naming",
1588 "x": 438.00001525878906,
1589 "y": 876.0000257492065,
1590 "z": "d9f8bc54.6ca48",