3 "id": "7f85b319.ec8264",
14 "z": "1f9db9a1.737df6"
18 "id": "90051ccf.47dd18",
19 "module": "GENERIC-RESOURCE-API",
20 "name": "GENERIC-RESOURCE-API 1.3.2-SNAPSHOT-20180531",
22 "type": "service-logic",
23 "version": "${project.version}",
29 "x": 271.61902618408203,
30 "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}'>",
31 "y": 148.2381134033203,
32 "z": "1f9db9a1.737df6"
36 "id": "62c9c96e.2f8908",
37 "name": "method vnf-topology-operation-assign",
45 "x": 249.42862701416016,
46 "xml": "<method rpc='vnf-topology-operation-assign' mode='sync'>\n",
48 "z": "1f9db9a1.737df6"
52 "id": "5c8563c8.abc554",
54 "name": "vnf-topology-operation-assign",
57 "x": 552.344856262207,
58 "y": 55.58634376525879,
59 "z": "1f9db9a1.737df6"
63 "id": "3ee765f3.a92b8a",
64 "name": "switch request-action",
73 "x": 559.8571395874023,
74 "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
75 "y": 385.19043922424316,
76 "z": "1f9db9a1.737df6"
80 "id": "7d474a32.9007b4",
81 "name": "CreateVnfInstance",
89 "x": 813.5714340209961,
90 "xml": "<outcome value='CreateVnfInstance'>\n",
91 "y": 362.3333206176758,
92 "z": "1f9db9a1.737df6"
96 "id": "46a9e819.26787",
105 "x": 775.5713996887207,
106 "xml": "<outcome value='Other'>\n",
107 "y": 408.0476484298706,
108 "z": "1f9db9a1.737df6"
113 "id": "1dd86dc0.120d9a",
120 "x": 998.4285621643066,
122 "y": 362.3333501815796,
123 "z": "1f9db9a1.737df6"
127 "id": "cb51940c.60aca8",
128 "name": "return failure",
129 "type": "returnFailure",
131 "x": 1015.5714073181152,
132 "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=\"If svc-action is 'assign' then request-action must be 'CreateVnfInstance'\" />\n",
133 "y": 408.0476064682007,
134 "z": "1f9db9a1.737df6"
138 "id": "8c2093db.c56518",
139 "name": "block : atomic",
177 "x": 188.11905670166016,
178 "xml": "<block atomic=\"true\">",
179 "y": 1719.7857055664062,
180 "z": "1f9db9a1.737df6"
184 "id": "d60893e6.15d0e8",
185 "name": "get-resource VF_MODEL",
187 "type": "get-resource",
194 "x": 572.1904449462891,
195 "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VF_MODEL WHERE customization_uuid = $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid'\n pfx='db.vf-model'>\n\n",
196 "y": 476.333309173584,
197 "z": "1f9db9a1.737df6"
201 "id": "3a32be2b.d9bc92",
202 "name": "return failure",
203 "type": "returnFailure",
205 "x": 1013.6189231872559,
206 "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=\"`'No model found for VNF customization UUID ' + $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`\" />\n",
207 "y": 499.7617950439453,
208 "z": "1f9db9a1.737df6"
212 "id": "55ac2b52.c147bc",
221 "x": 772.9761428833008,
222 "xml": "<outcome value='failure'>\n",
223 "y": 456.7141466140747,
224 "z": "1f9db9a1.737df6"
228 "id": "37dc7224.b3292e",
237 "x": 781.5475730895996,
238 "xml": "<outcome value='not-found'>\n",
239 "y": 500.9998598098755,
240 "z": "1f9db9a1.737df6"
244 "id": "48eedae7.45629c",
245 "name": "return failure",
246 "type": "returnFailure",
248 "x": 1012.9761238098145,
249 "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 reading VF_MODEL table\" />\n",
250 "y": 454.85705375671387,
251 "z": "1f9db9a1.737df6"
255 "id": "fb8a3580.e4647",
256 "name": "switch service-data.vnfs.vnf_length",
258 "type": "switchNode",
265 "x": 602.2857131958008,
266 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
267 "y": 666.5714282989502,
268 "z": "1f9db9a1.737df6"
272 "id": "465f36d2.0e073",
281 "x": 828.0000419616699,
282 "xml": "<outcome value=''>\n",
283 "y": 633.7142162322998,
284 "z": "1f9db9a1.737df6"
288 "id": "ba18a24.ad916e",
289 "name": "set vnf-index=0",
292 "x": 992.2857627868652,
293 "xml": "<set>\n<parameter name='vnf-index' value='0' />\n",
294 "y": 632.7142944335938,
295 "z": "1f9db9a1.737df6"
299 "id": "2ecc5899.269788",
308 "x": 829.4286041259766,
309 "xml": "<outcome value='Other'>\n",
310 "y": 698.0000343322754,
311 "z": "1f9db9a1.737df6"
315 "id": "7048a1cb.adf078",
316 "name": "set vnf-index = vnf_length",
319 "x": 1168.285758972168,
320 "xml": "<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n",
321 "y": 676.285722732544,
322 "z": "1f9db9a1.737df6"
326 "id": "d5aeee8c.b79908",
327 "name": "for each existing VNF",
335 "x": 1153.7142715454102,
336 "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
337 "y": 722.2856616973877,
338 "z": "1f9db9a1.737df6"
343 "id": "4ebd83c7.528a64",
353 "x": 965.1428642272949,
356 "z": "1f9db9a1.737df6"
360 "id": "ce4d4a26.2f4908",
361 "name": "switch vnf-information.vnf-id == service-data.vnfs.vnf[].vnf-id",
363 "type": "switchNode",
369 "x": 1508.0000381469727,
370 "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>\n",
371 "y": 721.857141494751,
372 "z": "1f9db9a1.737df6"
376 "id": "7bb84912.63e62",
379 "type": "outcomeTrue",
385 "x": 1802.2857475280762,
386 "xml": "<outcome value='true'>\n",
387 "y": 721.4286136627197,
388 "z": "1f9db9a1.737df6"
392 "id": "8287fea2.8f264",
393 "name": "return failure",
394 "type": "returnFailure",
396 "x": 1950.8571548461914,
397 "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=\"`'VNF id ' + $service-data.vnfs.vnf[$idx].vnf-id\n + ' already exists, and has order status ' + $service-data.vnfs.vnf[$idx].vnf-data.vnf-level-oper-status.order-status`\" />\n",
398 "y": 721.4285736083984,
399 "z": "1f9db9a1.737df6"
403 "id": "7bf5b528.4f469c",
405 "name": "make sure this VNF doesn't exist already",
408 "x": 1495.1427688598633,
409 "y": 679.4285717010498,
410 "z": "1f9db9a1.737df6"
414 "id": "aac10be0.39a0e8",
415 "name": "set vnf-topology data",
418 "x": 557.9999694824219,
419 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-id'\n value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-type'\n value='`$vnf-topology-operation-input.vnf-information.vnf-type`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-type'\n value='`$db.vf-model.nf-type`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-role'\n value='`$db.vf-model.nf-role`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-function'\n value='`$db.vf-model.nf-function`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-code'\n value='`$db.vf-model.nf-code`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.tenant'\n value='`$vnf-topology-operation-input.vnf-request-input.tenant`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.aic-cloud-region'\n value='`$vnf-topology-operation-input.vnf-request-input.aic-cloud-region`' />\n \n",
420 "y": 828.238115310669,
421 "z": "1f9db9a1.737df6"
425 "id": "b403c1ec.e059b",
426 "name": "switch input vnf-name",
428 "type": "switchNode",
435 "x": 564.4285507202148,
436 "xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-name`'>\n",
437 "y": 1070.8571615219116,
438 "z": "1f9db9a1.737df6"
442 "id": "98b70d2d.7445c8",
451 "x": 832.6427726745605,
452 "xml": "<outcome value=''>",
453 "y": 993.8333864212036,
454 "z": "1f9db9a1.737df6"
458 "id": "dddcb6fb.6fadd",
459 "name": "switch ecomp-generated-naming",
461 "type": "switchNode",
469 "x": 1249.071662902832,
470 "xml": "<switch test='`$db.vf-model.ecomp-generated-naming`'>\n",
471 "y": 900.5002059936523,
472 "z": "1f9db9a1.737df6"
476 "id": "5ce76bf0.0fe7fc",
477 "name": "block : atomic",
487 "x": 978.3572692871094,
488 "xml": "<block atomic=\"true\">",
489 "y": 993.833498954773,
490 "z": "1f9db9a1.737df6"
494 "id": "fcddb1f1.15f2c8",
503 "x": 1498.357322692871,
504 "xml": "<outcome value='N'>",
505 "y": 902.404914855957,
506 "z": "1f9db9a1.737df6"
510 "id": "9a465697.6d89a",
511 "name": "return failure",
512 "type": "returnFailure",
514 "x": 1652.64310836792,
515 "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=\"No vnf-name was received but ecomp-generated-naming is not Y\" />\n",
516 "y": 920.9763593673706,
517 "z": "1f9db9a1.737df6"
521 "id": "a0e8eebb.f2bf6",
530 "x": 1498.3572883605957,
531 "xml": "<outcome value='Y'>",
532 "y": 858.1192359924316,
533 "z": "1f9db9a1.737df6"
537 "id": "fb5bcd7b.93abb8",
546 "x": 1498.357250213623,
547 "xml": "<outcome value='Other'>\n",
548 "y": 948.119234085083,
549 "z": "1f9db9a1.737df6"
554 "id": "b8327ea6.6151",
561 "x": 1635.5002326965332,
563 "y": 858.1192359924316,
564 "z": "1f9db9a1.737df6"
568 "id": "ff9bcb42.eb5f1",
577 "x": 835.2144546508789,
578 "xml": "<outcome value='Other'>\n",
579 "y": 1140.119125366211,
580 "z": "1f9db9a1.737df6"
584 "id": "f88d9a18.d869f8",
585 "name": "set tmp.vnf-name",
588 "x": 1794.0715306599936,
589 "xml": "<set>\n<parameter name='tmp.vnf-name' value=\"`$vnf-topology-operation-input.vnf-request-input.vnf-name`\" />\n",
590 "y": 1207.5476417541504,
591 "z": "1f9db9a1.737df6"
595 "id": "5795f411.5a64bc",
596 "name": "call GENERIC-RESOURCE-API:generate-unique-name",
605 "x": 1317.4763259887695,
606 "xml": "<call module='GENERIC-RESOURCE-API' rpc='generate-unique-name' mode='sync' >\n",
607 "y": 1066.8333959579468,
608 "z": "1f9db9a1.737df6"
612 "id": "51165cf7.f6843c",
621 "x": 1613.1906140645347,
622 "xml": "<outcome value='failure'>\n",
623 "y": 1039.690658569336,
624 "z": "1f9db9a1.737df6"
628 "id": "f172e525.aff23",
637 "x": 1616.5239639282227,
638 "xml": "<outcome value='success'>\n",
639 "y": 1091.3573017120361,
640 "z": "1f9db9a1.737df6"
644 "id": "9b41a0f.e8b05e",
645 "name": "set variables for generating unique name",
648 "x": 1274.1430130004883,
649 "xml": "<set>\n<parameter name='generate-unique-name-input.index-table-name' value='VNF_NAME_INDEX' />\n<parameter name='generate-unique-name-input.index-table-prefix-column' value='vnf_name_prefix' />\n<parameter name='generate-unique-name-input.name-table-type' value='VNF_INSTANCE' />\n<parameter name='generate-unique-name-input.prefix' value=\"`'z' + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region + $db.vf-model.nf-code`\" />\n<parameter name='generate-unique-name-input.index-length' value='2' />\n",
650 "y": 1015.1668043136597,
651 "z": "1f9db9a1.737df6"
655 "id": "aa7e9b78.4083b",
656 "name": "set tmp.vnf-name to generated name",
659 "x": 1857.7143491109214,
660 "xml": "<set>\n<parameter name='tmp.vnf-name' value='`$generate-unique-name-output.generated-name`' />\n",
661 "y": 1091.8333930969238,
662 "z": "1f9db9a1.737df6"
666 "id": "682b96e6.6b632",
667 "name": "return failure",
668 "type": "returnFailure",
670 "x": 1781.0477269490561,
671 "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=\"`$generate-unique-name-output.error-message`\" />\n",
672 "y": 1039.1191701889038,
673 "z": "1f9db9a1.737df6"
677 "id": "1614942.5f3dcec",
678 "name": "block : atomic",
687 "x": 983.1429824829102,
688 "xml": "<block atomic=\"true\">",
689 "y": 1138.7858123779297,
690 "z": "1f9db9a1.737df6"
694 "id": "237fb0e1.59bbc8",
695 "name": "call GENERIC-RESOURCE-API:generate-unique-name",
704 "x": 1313.1429824829102,
705 "xml": "<call module='GENERIC-RESOURCE-API' rpc='generate-unique-name' mode='sync' >\n",
706 "y": 1186.7858123779297,
707 "z": "1f9db9a1.737df6"
711 "id": "445f33b6.f0f264",
720 "x": 1611.7143987019858,
721 "xml": "<outcome value='failure'>\n",
722 "y": 1156.785837173462,
723 "z": "1f9db9a1.737df6"
727 "id": "b1ac48e3.52ee98",
736 "x": 1615.0477485656738,
737 "xml": "<outcome value='success'>\n",
738 "y": 1208.452480316162,
739 "z": "1f9db9a1.737df6"
743 "id": "4f4e849f.98565c",
744 "name": "set variables for generating unique name",
747 "x": 1269.8096542358398,
748 "xml": "<set>\n<parameter name='generate-unique-name-input.name-table-type' value='VNF_INSTANCE' />\n<parameter name='generate-unique-name-input.supplied-name' value='`$vnf-topology-operation-input.vnf-request-input.vnf-name`' />\n",
749 "y": 1135.1191844940186,
750 "z": "1f9db9a1.737df6"
754 "id": "d05b4ba7.3c07f",
755 "name": "return failure",
756 "type": "returnFailure",
758 "x": 1779.5715115865073,
759 "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=\"`$generate-unique-name-output.error-message`\" />\n",
760 "y": 1156.2143487930298,
761 "z": "1f9db9a1.737df6"
765 "id": "b572efaa.cba408",
766 "name": "get-resource cloud region",
768 "type": "get-resource",
775 "x": 586.5714492797852,
776 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"cloud-region\" \n\t\tkey=\"cloud-region.cloud-owner = 'CloudOwner' AND \n\t\t cloud-region.cloud-region-id = $vnf-topology-operation-input.vnf-request-input.aic-cloud-region AND\n\t\t depth='0'\"\n pfx='aai.cloud-region' local-only='false' >\n\n",
777 "y": 1748.8569984436035,
778 "z": "1f9db9a1.737df6"
782 "id": "142de0c9.dde827",
791 "x": 811.8176422119141,
792 "xml": "<outcome value='failure'>\n",
793 "y": 1767.00785446167,
794 "z": "1f9db9a1.737df6"
798 "id": "34ef927d.00b456",
799 "name": "return failure",
800 "type": "returnFailure",
802 "x": 986.8176155090332,
803 "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 retrieving cloud region from AAI\" />\n",
804 "y": 1767.007890701294,
805 "z": "1f9db9a1.737df6"
809 "id": "a348eda7.660348",
818 "x": 820.7462387084961,
819 "xml": "<outcome value='not-found'>\n",
820 "y": 1725.2935876846313,
821 "z": "1f9db9a1.737df6"
825 "id": "ac864602.325b48",
826 "name": "return failure",
827 "type": "returnFailure",
829 "x": 987.095516204834,
830 "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=\"Cloud region not found in AAI\" />\n",
831 "y": 1724.5991649627686,
832 "z": "1f9db9a1.737df6"
836 "id": "8e7983f7.0b8ac8",
837 "name": "get-resource VF_TO_NETWORK_ROLE_MAPPING",
839 "type": "get-resource",
846 "x": 651.8095321655273,
847 "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VF_TO_NETWORK_ROLE_MAPPING WHERE vf_customization_uuid = $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid'\n pfx='db.vf-network-role-mapping[]'>\n\n",
848 "y": 2059.9045181274414,
849 "z": "1f9db9a1.737df6"
853 "id": "d4db95bc.3539b",
854 "name": "return failure",
855 "type": "returnFailure",
857 "x": 1387.5237121582031,
858 "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=\"`'No entries found in VF_TO_NETWORK_ROLE_MAPPING for VNF customization UUID ' + $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`\" />\n",
859 "y": 2077.618698120117,
860 "z": "1f9db9a1.737df6"
864 "id": "4303334b.1d06ac",
873 "x": 947.5952033996582,
874 "xml": "<outcome value='failure'>\n",
875 "y": 2038.6186828613281,
876 "z": "1f9db9a1.737df6"
880 "id": "97da19d.b97dfe8",
889 "x": 956.166633605957,
890 "xml": "<outcome value='not-found'>\n",
891 "y": 2082.904396057129,
892 "z": "1f9db9a1.737df6"
896 "id": "1cb8c40f.bbd244",
897 "name": "return failure",
898 "type": "returnFailure",
900 "x": 1122.5951843261719,
901 "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 reading VF_TO_NETWORK_ROLE_MAPPING table\" />\n",
902 "y": 2038.4283332824707,
903 "z": "1f9db9a1.737df6"
907 "id": "796cc7.d490b338",
908 "name": "block : atomic",
923 "x": 752.5715866088867,
924 "xml": "<block atomic=\"true\">",
925 "y": 2508.71391582489,
926 "z": "1f9db9a1.737df6"
930 "id": "dc31ec67.0624a",
931 "name": "get-resource l3-network",
933 "type": "get-resource",
940 "x": 985.4286041259766,
941 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"l3-networks\" \n\t\tkey=\"l3-network.network-role = $db.vf-network-role-mapping[$role-index].network-role\"\n pfx='aai.l3-network' local-only='false'\n>\n",
942 "y": 2187.999779701233,
943 "z": "1f9db9a1.737df6"
947 "id": "419e2508.7620ac",
956 "x": 1189.476318359375,
957 "xml": "<outcome value='failure'>\n",
958 "y": 2210.1426191329956,
959 "z": "1f9db9a1.737df6"
963 "id": "b16e3091.456208",
964 "name": "return failure",
965 "type": "returnFailure",
967 "x": 1364.4762916564941,
968 "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 retrieving l3-network from AAI\" />\n",
969 "y": 2210.1426553726196,
970 "z": "1f9db9a1.737df6"
974 "id": "c81a364.d370848",
983 "x": 1198.404914855957,
984 "xml": "<outcome value='not-found'>\n",
985 "y": 2168.428352355957,
986 "z": "1f9db9a1.737df6"
990 "id": "1b8e966.12c8b6a",
991 "name": "return failure",
992 "type": "returnFailure",
994 "x": 1364.754192352295,
995 "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=\"`'No active l3-network found in AAI with cloud_region_id '\n + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region + ' and network_role '\n + $db.vf-network-role-mapping[$network-index].network-role`\" />\n",
996 "y": 2167.7339296340942,
997 "z": "1f9db9a1.737df6"
1001 "id": "465ab09f.34229",
1002 "name": "set vnf-network data",
1005 "x": 974.6191940307617,
1006 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].network-role'\n value='`$db.vf-network-role-mapping[$role-index].network-role`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].network-name'\n value='`$aai.l3-network.l3-network[$db-network-index].network-name`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].neutron-id'\n value='`$aai.l3-network.l3-network[$db-network-index].neutron-network-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].network-id'\n value='`$aai.l3-network.l3-network[$db-network-index].network-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].contrail-network-fqdn'\n value='`$aai.l3-network.l3-network[$db-network-index].contrail-network-fqdn`' />\n",
1007 "y": 2675.0000228881836,
1008 "z": "1f9db9a1.737df6"
1012 "id": "1a64389.04fb547",
1013 "name": "for each cloud-region availability zone",
1021 "x": 586.3335571289062,
1022 "xml": "<for index='idx' start='0' end='`$aai.az.availability-zone_length`' >\n",
1023 "y": 3089.618803024292,
1024 "z": "1f9db9a1.737df6"
1028 "id": "696846f6.70aa8",
1029 "name": "set availability-zone",
1032 "x": 1048.0002403259277,
1033 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.availability-zones.availability-zone[$idx]'\n value='`$aai.az.availability-zone[$idx].availability-zone-name`' />\n",
1034 "y": 3058.952217102051,
1035 "z": "1f9db9a1.737df6"
1039 "id": "2217154e.6141c2",
1040 "name": "set vnf-parameters-data",
1043 "x": 545.9524841308594,
1044 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.'\n value='vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.' />\n",
1045 "y": 2939.5711631774902,
1046 "z": "1f9db9a1.737df6"
1050 "id": "57d7e5fc.33f244",
1051 "name": "save generic-vnf l3-network relationships",
1060 "x": 1012.5240173339844,
1061 "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"generic-vnf:relationship-list\"\n key=\"generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"l3-network.network-id\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-nw-index].network-id`\" />\n",
1062 "y": 3233.381015777588,
1063 "z": "1f9db9a1.737df6"
1067 "id": "1da784bd.1a325b",
1068 "name": "return success",
1069 "type": "returnSuccess",
1071 "x": 509.0953674316406,
1072 "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",
1073 "y": 3620.1901140213013,
1074 "z": "1f9db9a1.737df6"
1078 "id": "c4c1c921.76e2b8",
1079 "name": "set vnf-level-oper-status to PendingCreate",
1082 "x": 598.9088134765625,
1083 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='PendingCreate' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n",
1084 "y": 3522.527594566345,
1085 "z": "1f9db9a1.737df6"
1089 "id": "c85d4198.45c628",
1090 "name": "for each network-role",
1098 "x": 535.9048919677734,
1099 "xml": "<for index='role-index' start='0' end='`$db.vf-network-role-mapping_length`'>",
1100 "y": 2508.7141189575195,
1101 "z": "1f9db9a1.737df6"
1105 "id": "95a9e356.edb75",
1106 "name": "set network-index = 0",
1109 "x": 554.2380676269531,
1110 "xml": "<set>\n<parameter name='network-index' value='0' />\n",
1111 "y": 2126.8094577789307,
1112 "z": "1f9db9a1.737df6"
1116 "id": "799318e1.a3e3a",
1117 "name": "increment network-index",
1120 "x": 984.9525146484375,
1121 "xml": "<set>\n<parameter name='network-index' value='`$network-index + 1`' />\n",
1122 "y": 2812.6189250946045,
1123 "z": "1f9db9a1.737df6"
1127 "id": "26c17497.86b44c",
1128 "name": "set vnf-network_length",
1131 "x": 544.8095703125,
1132 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network_length'\n value='`$network-index`' />\n",
1133 "y": 2889.571207046509,
1134 "z": "1f9db9a1.737df6"
1138 "id": "deeeb827.37f63",
1139 "name": "copy input data",
1142 "x": 514.4286422729492,
1143 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.' value='$vnf-topology-operation-input.vnf-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.' value='$vnf-topology-operation-input.vnf-request-input.' />\n\n",
1144 "y": 3470.1904258728027,
1145 "z": "1f9db9a1.737df6"
1149 "id": "6ce3245c.227ed4",
1150 "name": "for each vnf-network",
1158 "x": 535.52392578125,
1159 "xml": "<for index='vnf-nw-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network_length`' >\n",
1160 "y": 3232.380931854248,
1161 "z": "1f9db9a1.737df6"
1165 "id": "21eaa2af.c3b26e",
1166 "name": "block : atomic",
1174 "x": 739.1905670166016,
1175 "xml": "<block atomic=\"true\">",
1176 "y": 3232.380892753601,
1177 "z": "1f9db9a1.737df6"
1181 "id": "97e88fe.9dab2f",
1182 "name": "set new vnf_length",
1185 "x": 550.0952491760254,
1186 "xml": "<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\n",
1187 "y": 782.7619781494141,
1188 "z": "1f9db9a1.737df6"
1192 "id": "84324533.95146",
1193 "name": "for each cloud-region relationship",
1201 "x": 599.4285736083984,
1202 "xml": "<for index='idx' start='0' end='`$aai.cloud-region.relationship-list.relationship_length`' >\n",
1203 "y": 1836.0951700210571,
1204 "z": "1f9db9a1.737df6"
1208 "id": "f787444c.e13378",
1209 "name": "switch related-to",
1211 "type": "switchNode",
1217 "x": 847.1071166992188,
1218 "xml": "<switch test='`$aai.cloud-region.relationship-list.relationship[$idx].related-to`'>\n",
1219 "y": 1835.8450994491577,
1220 "z": "1f9db9a1.737df6"
1224 "id": "cd796e7b.7cf948",
1233 "x": 1016.5714378356934,
1234 "xml": "<outcome value='complex'>\n",
1235 "y": 1835.2379217147827,
1236 "z": "1f9db9a1.737df6"
1240 "id": "f964a25d.454b6",
1241 "name": "set aic-clli",
1244 "x": 1337.2857360839844,
1245 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.aic-clli'\n value='`$aai-uid-split[$aai-uid-split_length - 1]`' />\n",
1246 "y": 1834.9045791625977,
1247 "z": "1f9db9a1.737df6"
1251 "id": "fe738685.6c7d7",
1252 "name": "switch aic-clli",
1254 "type": "switchNode",
1260 "x": 535.3333511352539,
1261 "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.aic-clli`'>\n",
1262 "y": 1992.0474872589111,
1263 "z": "1f9db9a1.737df6"
1267 "id": "d8ba8844.b1a0b8",
1276 "x": 683.4761848449707,
1277 "xml": "<outcome value=''>",
1278 "y": 1992.0474700927734,
1279 "z": "1f9db9a1.737df6"
1283 "id": "25200dee.75e302",
1284 "name": "return failure",
1285 "type": "returnFailure",
1287 "x": 830.6190452575684,
1288 "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=\"`'Unable to find aic-clli in AAI for aic-cloud-region ' + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region`\" />\n",
1289 "y": 1991.6189041137695,
1290 "z": "1f9db9a1.737df6"
1294 "id": "5f4ea6d7.ceb158",
1295 "name": "set from DB",
1298 "x": 958.9287452697754,
1299 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-invariant-uuid'\n value='`$db.vf-model.invariant-uuid`' />\n",
1300 "y": 1308.0475587844849,
1301 "z": "1f9db9a1.737df6"
1305 "id": "43d65ebc.c60b2",
1306 "name": "for each l3-network",
1314 "x": 1092.8811492919922,
1315 "xml": "<for index='db-network-index' start='0' end='`$aai.l3-network.l3-network_length`' >\n",
1316 "y": 2431.571388244629,
1317 "z": "1f9db9a1.737df6"
1321 "id": "6f76ed5d.4970e4",
1322 "name": "switch orchestration-status",
1324 "type": "switchNode",
1334 "x": 1321.452350616455,
1335 "xml": "<switch test='`$aai.l3-network.l3-network[$db-network-index].orchestration-status`'>\n",
1336 "y": 2430.142815589905,
1337 "z": "1f9db9a1.737df6"
1341 "id": "bbe5662.f16b918",
1342 "name": "Pending Delete",
1350 "x": 1558.1192626953125,
1351 "xml": "<outcome value='Pending Delete'>\n",
1352 "y": 2475.8095235824585,
1353 "z": "1f9db9a1.737df6"
1357 "id": "cb1bcbb.e4a72b8",
1366 "x": 1530.9764022827148,
1367 "xml": "<outcome value='Other'>\n",
1368 "y": 2526.809504508972,
1369 "z": "1f9db9a1.737df6"
1373 "id": "f2201c7e.b452e8",
1374 "name": "switch related-to",
1376 "type": "switchNode",
1382 "x": 1896.6907539367676,
1383 "xml": "<switch test='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].related-to`'>\n",
1384 "y": 2525.3808450698853,
1385 "z": "1f9db9a1.737df6"
1389 "id": "cada7ba0.1dd8",
1390 "name": "for each relationship",
1398 "x": 1700.9763145446777,
1399 "xml": "<for silentFailure='true' index='db-rel-index' start='0' end='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship_length`' >\n",
1400 "y": 2526.3808813095093,
1401 "z": "1f9db9a1.737df6"
1405 "id": "18bbcf5a.1ec521",
1406 "name": "cloud-region",
1414 "x": 2070.9763946533203,
1415 "xml": "<outcome value='cloud-region'>\n",
1416 "y": 2524.9522914886475,
1417 "z": "1f9db9a1.737df6"
1421 "id": "9edb388f.f5112",
1422 "name": "for each relationship data",
1430 "x": 2268.119094848633,
1431 "xml": "<for silentFailure='true' index='db-data-index' start='0' end='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].relationship-data_length`' >\n",
1432 "y": 2525.380759239197,
1433 "z": "1f9db9a1.737df6"
1437 "id": "1a8ed1c0.72a746",
1438 "name": "switch relationship-key",
1440 "type": "switchNode",
1446 "x": 2499.547695159912,
1447 "xml": "<switch test='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].relationship-data[$db-data-index].relationship-key`'>\n",
1448 "y": 2524.9521341323853,
1449 "z": "1f9db9a1.737df6"
1453 "id": "435633df.b879dc",
1454 "name": "cloud-region.cloud-region-id",
1462 "x": 2740.9762268066406,
1463 "xml": "<outcome value='cloud-region.cloud-region-id'>\n",
1464 "y": 2524.95223903656,
1465 "z": "1f9db9a1.737df6"
1469 "id": "48895616.05d3b",
1470 "name": "switch relationship-value == cloud-region-id",
1472 "type": "switchNode",
1478 "x": 3045.2621459960938,
1479 "xml": "<switch test='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].relationship-data[$db-data-index].relationship-value == $vnf-topology-operation-input.vnf-request-input.aic-cloud-region`'>\n",
1480 "y": 2524.8092947006226,
1481 "z": "1f9db9a1.737df6"
1485 "id": "12babad5.4b3935",
1488 "type": "outcomeTrue",
1494 "x": 3285.262176513672,
1495 "xml": "<outcome value='true'>\n",
1496 "y": 2524.9522399902344,
1497 "z": "1f9db9a1.737df6"
1502 "id": "d834554a.ccf5f",
1512 "x": 931.0953330993652,
1514 "y": 2499.4284858703613,
1515 "z": "1f9db9a1.737df6"
1519 "id": "29a56ec0.3effd2",
1520 "name": "CATCH BREAK",
1521 "type": "returnSuccess",
1523 "x": 1082.4287414550781,
1524 "xml": "<return status='success'>\n\n",
1525 "y": 2572.7617197036743,
1526 "z": "1f9db9a1.737df6"
1530 "id": "f75b0ddb.4ffe68",
1532 "type": "returnFailure",
1534 "x": 3586.095157623291,
1535 "xml": "<return status='failure'>\n",
1536 "y": 2542.761643409729,
1537 "z": "1f9db9a1.737df6"
1541 "id": "30a0e3fe.983584",
1542 "name": "set l3-network-id = -1",
1545 "x": 975.4287033081055,
1546 "xml": "<set>\n<parameter name='l3-network-id' value='-1' />\n",
1547 "y": 2302.7616996765137,
1548 "z": "1f9db9a1.737df6"
1552 "id": "ad009415.ee8e2",
1553 "name": "block : atomic",
1562 "x": 3431.0951538085938,
1563 "xml": "<block atomic=\"true\">",
1564 "y": 2524.4283485412598,
1565 "z": "1f9db9a1.737df6"
1569 "id": "7a5cc970.dcdc18",
1570 "name": "set l3-network-id = this l3-network",
1573 "x": 3667.7618255615234,
1574 "xml": "<set>\n<parameter name='l3-network-id' value='`$aai.l3-network.l3-network[$db-network-index].network-id`' />\n",
1575 "y": 2499.4283475875854,
1576 "z": "1f9db9a1.737df6"
1580 "id": "bc183bd7.3e811",
1581 "name": "switch l3-network-id",
1583 "type": "switchNode",
1589 "x": 972.4286270141602,
1590 "xml": "<switch test='`$l3-network-id`'>\n",
1591 "y": 2626.428741455078,
1592 "z": "1f9db9a1.737df6"
1596 "id": "91318c2.57404f",
1605 "x": 1142.4285774230957,
1606 "xml": "<outcome value='-1'>\n",
1607 "y": 2626.428497314453,
1608 "z": "1f9db9a1.737df6"
1612 "id": "504d1216.64d004",
1613 "name": "return failure",
1614 "type": "returnFailure",
1616 "x": 1290.7619400024414,
1617 "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=\"`'Unable to find l3-network in AAI for network role ' + $db.vf-network-role-mapping[$role-index].network-role`\" />\n",
1618 "y": 2626.4286346435547,
1619 "z": "1f9db9a1.737df6"
1623 "id": "2ab7bc1f.b085b4",
1624 "name": "switch input model-invariant-uuid",
1626 "type": "switchNode",
1633 "x": 602.7858200073242,
1634 "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`'>\n",
1635 "y": 1330.8720026016235,
1636 "z": "1f9db9a1.737df6"
1640 "id": "e082345e.236ca",
1649 "x": 808.4524917602539,
1650 "xml": "<outcome value=''>",
1651 "y": 1308.0149660110474,
1652 "z": "1f9db9a1.737df6"
1656 "id": "a95f8164.b4e8b8",
1665 "x": 809.8810882568359,
1666 "xml": "<outcome value='Other'>\n",
1667 "y": 1352.3005571365356,
1668 "z": "1f9db9a1.737df6"
1672 "id": "e5dcf453.7ec14",
1673 "name": "set from input",
1676 "x": 964.1668243408203,
1677 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-invariant-uuid'\n value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n",
1678 "y": 1351.7291293144226,
1679 "z": "1f9db9a1.737df6"
1683 "id": "ebeec6f9.2c628",
1684 "name": "set from DB",
1687 "x": 959.8810157775879,
1688 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-uuid'\n value='`$db.vf-model.uuid`' />\n",
1689 "y": 1396.5862350463867,
1690 "z": "1f9db9a1.737df6"
1694 "id": "2dbfa8ac.567be8",
1695 "name": "switch input model-uuid",
1697 "type": "switchNode",
1704 "x": 575.4048385620117,
1705 "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`'>\n",
1706 "y": 1419.4107398986816,
1707 "z": "1f9db9a1.737df6"
1711 "id": "bafa03f0.0be328",
1720 "x": 809.4048118591309,
1721 "xml": "<outcome value=''>",
1722 "y": 1396.553671836853,
1723 "z": "1f9db9a1.737df6"
1727 "id": "40a4f245.06edcc",
1736 "x": 810.8334083557129,
1737 "xml": "<outcome value='Other'>\n",
1738 "y": 1440.8392629623413,
1739 "z": "1f9db9a1.737df6"
1743 "id": "9ad4384f.c55ae",
1744 "name": "set from input",
1747 "x": 965.1191444396973,
1748 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-uuid'\n value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n",
1749 "y": 1440.2678351402283,
1750 "z": "1f9db9a1.737df6"
1754 "id": "369af0fe.bb8d18",
1755 "name": "set from DB",
1758 "x": 957.0239486694336,
1759 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-version'\n value='`$db.vf-model.version`' />\n",
1760 "y": 1485.4434423446655,
1761 "z": "1f9db9a1.737df6"
1765 "id": "c33b5d51.3d59e",
1766 "name": "switch input model-version",
1768 "type": "switchNode",
1775 "x": 583.5477104187012,
1776 "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-version`'>\n",
1777 "y": 1508.2678871154785,
1778 "z": "1f9db9a1.737df6"
1782 "id": "b1d9b14.52a99d",
1791 "x": 806.5476951599121,
1792 "xml": "<outcome value=''>",
1793 "y": 1485.410849571228,
1794 "z": "1f9db9a1.737df6"
1798 "id": "7dbbd718.ba9528",
1807 "x": 807.9762916564941,
1808 "xml": "<outcome value='Other'>\n",
1809 "y": 1529.6964406967163,
1810 "z": "1f9db9a1.737df6"
1814 "id": "ec86a60a.b943f8",
1815 "name": "set from input",
1818 "x": 962.2620277404785,
1819 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-version'\n value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-version`' />\n",
1820 "y": 1529.1250128746033,
1821 "z": "1f9db9a1.737df6"
1825 "id": "d84c1fb5.76aec8",
1826 "name": "set from DB",
1829 "x": 957.0239486694336,
1830 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-name'\n value='`$db.vf-model.name`' />\n",
1831 "y": 1572.5862646102905,
1832 "z": "1f9db9a1.737df6"
1836 "id": "f8b8a722.fd6508",
1837 "name": "switch input model-name",
1839 "type": "switchNode",
1846 "x": 578.5477104187012,
1847 "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-name`'>\n",
1848 "y": 1595.4107093811035,
1849 "z": "1f9db9a1.737df6"
1853 "id": "37bd193e.8fcaee",
1862 "x": 806.5476951599121,
1863 "xml": "<outcome value=''>",
1864 "y": 1572.553671836853,
1865 "z": "1f9db9a1.737df6"
1869 "id": "904a8546.5a6878",
1878 "x": 807.9762916564941,
1879 "xml": "<outcome value='Other'>\n",
1880 "y": 1616.8392629623413,
1881 "z": "1f9db9a1.737df6"
1885 "id": "fb77ed1e.4c6d38",
1886 "name": "set from input",
1889 "x": 962.2620277404785,
1890 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-name'\n value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-name`' />\n",
1891 "y": 1616.2678351402283,
1892 "z": "1f9db9a1.737df6"
1897 "id": "c5d64162.5301c8",
1904 "x": 1711.3333549499512,
1906 "y": 2476.586400985718,
1907 "z": "1f9db9a1.737df6"
1911 "id": "1aa61126.14efcf",
1912 "name": "PendingDelete",
1920 "x": 1555.9999961853027,
1921 "xml": "<outcome value='PendingDelete'>\n",
1922 "y": 2431.5863151550293,
1923 "z": "1f9db9a1.737df6"
1928 "id": "1a19e1e7.6d515e",
1935 "x": 1711.2140884399414,
1937 "y": 2432.3631925582886,
1938 "z": "1f9db9a1.737df6"
1942 "id": "a22f9423.3e4f08",
1943 "name": "Pending Create",
1951 "x": 1557.9999961853027,
1952 "xml": "<outcome value='Pending Create'>\n",
1953 "y": 2388.2528190612793,
1954 "z": "1f9db9a1.737df6"
1959 "id": "7b5140c6.1be978",
1966 "x": 1711.2140884399414,
1968 "y": 2389.0296964645386,
1969 "z": "1f9db9a1.737df6"
1973 "id": "be3d158a.0afbb",
1974 "name": "PendingCreate",
1982 "x": 1557.9999961853027,
1983 "xml": "<outcome value='PendingCreate'>\n",
1984 "y": 2344.9195671081543,
1985 "z": "1f9db9a1.737df6"
1990 "id": "56c1bb65.93ed54",
1997 "x": 1711.2140884399414,
1999 "y": 2345.6964445114136,
2000 "z": "1f9db9a1.737df6"
2004 "id": "dc8fa939.b773f",
2005 "name": "for each A&AI subnet",
2013 "x": 974.6667633056641,
2014 "xml": "<for index='subnet-index' start='0' end='`$aai.l3-network.l3-network[0].subnets.subnet_length`' >\n",
2015 "y": 2719.919626235962,
2016 "z": "1f9db9a1.737df6"
2020 "id": "ca52b163.d4827",
2021 "name": "set subnet data",
2024 "x": 1172.9999389648438,
2025 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].ip-version'\n value='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].ip-version`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].subnet-id'\n value='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].subnet-id`' />\n",
2026 "y": 2718.2532052993774,
2027 "z": "1f9db9a1.737df6"
2031 "id": "5090527e.f6c044",
2032 "name": "set subnet_length",
2035 "x": 963.3333282470703,
2036 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data_length'\n value='`$aai.l3-network.l3-network[0].subnets.subnet_length`' />\n",
2037 "y": 2764.919708251953,
2038 "z": "1f9db9a1.737df6"
2042 "id": "f03f1068.5af0c",
2043 "name": "set availability-zones.max-count and length",
2046 "x": 606.0000610351562,
2047 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.availability-zones.max-count'\n value='`$db.vf-model.avail-zone-max-count`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.availability-zones.availability-zone_length'\n value='`$aai.az.availability-zone_length`' />\n",
2048 "y": 3177.6342582702637,
2049 "z": "1f9db9a1.737df6"
2053 "id": "5e785184.8c4128",
2054 "name": "set vnf-name",
2057 "x": 539.666633605957,
2058 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name'\n value='`$tmp.vnf-name`' />\n",
2059 "y": 1264.9197664260864,
2060 "z": "1f9db9a1.737df6"
2064 "id": "3a4f6bb1.560164",
2065 "name": "update generic-vnf",
2074 "x": 526.3333282470703,
2075 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"generic-vnf\"\n key=\"generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"vnf-name\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name`\" />\n<parameter name=\"prov-status\" value=\"PREPROV\" />\n<parameter name=\"operational-status\" value=\"out-of-service-path\" />\n<parameter name=\"equipment-role\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-role`\" />\n<parameter name=\"model-invariant-id\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-invariant-uuid`\" />\n<parameter name=\"model-version-id\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-uuid`\" />\n<parameter name=\"model-customization-id\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-customization-uuid`\" />\n<parameter name=\"selflink\" value=\"`$vnf-object-path`\" />\n",
2076 "y": 3387.300033569336,
2077 "z": "1f9db9a1.737df6"
2081 "id": "9bd6668b.dfc92",
2082 "name": "set vnf-object-path and service-object-path",
2085 "x": 606.3333740234375,
2086 "xml": "<set>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology'`\"/>",
2087 "y": 3310.300537109375,
2088 "z": "1f9db9a1.737df6"
2092 "id": "391ed085.26b75",
2093 "name": "set vnf-id",
2096 "x": 527.9999771118164,
2097 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id'\n value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n",
2098 "y": 1216.5863094329834,
2099 "z": "1f9db9a1.737df6"
2103 "id": "e3fcddaa.ac5538",
2104 "name": "printContext",
2110 "x": 504.00009536743164,
2111 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-viprend.log' />\n",
2112 "y": 3568.967363357544,
2113 "z": "1f9db9a1.737df6"
2117 "id": "6f3c4400.e28f24",
2118 "name": "return failure",
2119 "type": "returnFailure",
2121 "x": 1449.666805267334,
2122 "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=\"`'No generic-vnf found in AAI for vnf ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-id`\" />\n",
2123 "y": 3253.9671211242676,
2124 "z": "1f9db9a1.737df6"
2128 "id": "7186d613.fe144",
2137 "x": 1262.3573722839355,
2138 "xml": "<outcome value='failure'>\n",
2139 "y": 3210.919590950012,
2140 "z": "1f9db9a1.737df6"
2144 "id": "35d8114.d0acf6e",
2145 "name": "not-found",
2147 "type": "not-found",
2153 "x": 1270.9288024902344,
2154 "xml": "<outcome value='not-found'>\n",
2155 "y": 3255.205304145813,
2156 "z": "1f9db9a1.737df6"
2160 "id": "89a1c75d.721db8",
2161 "name": "return failure",
2162 "type": "returnFailure",
2164 "x": 1452.3573989868164,
2165 "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 generic-vnf in AAI\" />\n",
2166 "y": 3210.729326248169,
2167 "z": "1f9db9a1.737df6"
2171 "id": "17590340.d661cd",
2172 "name": "return failure",
2173 "type": "returnFailure",
2175 "x": 929.6667442321777,
2176 "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=\"`'No generic-vnf found in AAI for vnf ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-id`\" />\n",
2177 "y": 3408.967043876648,
2178 "z": "1f9db9a1.737df6"
2182 "id": "1fc6e960.150607",
2191 "x": 742.3573112487793,
2192 "xml": "<outcome value='failure'>\n",
2193 "y": 3365.9195137023926,
2194 "z": "1f9db9a1.737df6"
2198 "id": "a8793a07.5d6f48",
2199 "name": "not-found",
2201 "type": "not-found",
2207 "x": 750.9287414550781,
2208 "xml": "<outcome value='not-found'>\n",
2209 "y": 3410.2052268981934,
2210 "z": "1f9db9a1.737df6"
2214 "id": "d9024ee2.bf5d3",
2215 "name": "return failure",
2216 "type": "returnFailure",
2218 "x": 932.3573379516602,
2219 "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 selflink in generic-vnf in AAI\" />\n",
2220 "y": 3365.7292490005493,
2221 "z": "1f9db9a1.737df6"
2225 "id": "2e7ae530.0e2cea",
2226 "name": "set model-customization-uuid",
2229 "x": 591.3332977294922,
2230 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-customization-uuid'\n value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n",
2231 "y": 1668.2529134750366,
2232 "z": "1f9db9a1.737df6"
2236 "id": "c4513e6c.417d88",
2237 "name": "split related-link",
2243 "x": 1356.6665954589844,
2244 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>\n <parameter name='ctx_memory_result_key' value='aai-uid-split' />\n <parameter name='original_string' value='`$aai.cloud-region.relationship-list.relationship[$idx].related-link`' />\n <parameter name='regex' value='/' />\n",
2245 "y": 1789.6664972305298,
2246 "z": "1f9db9a1.737df6"
2250 "id": "29a74b62.067044",
2251 "name": "block : atomic",
2261 "x": 1176.3332977294922,
2262 "xml": "<block atomic=\"true\">",
2263 "y": 1836.333285331726,
2264 "z": "1f9db9a1.737df6"
2268 "id": "bf8afd9.c73b1",
2272 "x": 1326.3332595825195,
2274 "y": 1879.666582107544,
2275 "z": "1f9db9a1.737df6"
2279 "id": "509993f3.7086bc",
2280 "name": "block : atomic",
2290 "xml": "<block atomic=\"true\">",
2291 "y": 3088.7143869400024,
2292 "z": "1f9db9a1.737df6"
2296 "id": "765526c8.d4caf",
2297 "name": "save generic-vnf availability-zone relationship",
2306 "x": 1129.9048156738281,
2307 "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"generic-vnf:relationship-list\"\n key=\"generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"availability-zone\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"cloud-region.cloud-owner\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"CloudOwner\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-key\" value=\"cloud-region.cloud-region-id\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-value\" value=\"`$vnf-topology-operation-input.vnf-request-input.aic-cloud-region`\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-key\" value=\"availability-zone.availability-zone-name\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-value\" value=\"`$aai.az.availability-zone[$idx].availability-zone-name`\" />\n",
2308 "y": 3112.0478343963623,
2309 "z": "1f9db9a1.737df6"
2313 "id": "1fb1c5a4.5564ca",
2314 "name": "return failure",
2315 "type": "returnFailure",
2317 "x": 1583.47607421875,
2318 "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=\"`'No generic-vnf found in AAI for vnf ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-id`\" />\n",
2319 "y": 3135.9671936035156,
2320 "z": "1f9db9a1.737df6"
2324 "id": "43f03688.4ffc08",
2333 "x": 1396.1666412353516,
2334 "xml": "<outcome value='failure'>\n",
2335 "y": 3092.9196634292603,
2336 "z": "1f9db9a1.737df6"
2340 "id": "49249c79.4e59a4",
2341 "name": "not-found",
2343 "type": "not-found",
2349 "x": 1404.7380714416504,
2350 "xml": "<outcome value='not-found'>\n",
2351 "y": 3137.205376625061,
2352 "z": "1f9db9a1.737df6"
2356 "id": "31682c44.dabecc",
2357 "name": "return failure",
2358 "type": "returnFailure",
2360 "x": 1586.1666679382324,
2361 "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 generic-vnf in AAI\" />\n",
2362 "y": 3092.729398727417,
2363 "z": "1f9db9a1.737df6"
2367 "id": "2ca15486.5cc8cc",
2368 "name": "set mapping rows to 0",
2371 "x": 1150.1427688598633,
2372 "xml": "<set>\n<parameter name='db.vf-network-role-mapping_length' value='0' />\n",
2373 "y": 2082.52388381958,
2374 "z": "1f9db9a1.737df6"
2378 "id": "611f691d.f4b31",
2379 "name": "switch AAI availability-zone_length",
2381 "type": "switchNode",
2387 "x": 578.7142868041992,
2388 "xml": "<switch test='`$aai.az.availability-zone_length`'>\n",
2389 "y": 2992.523973464966,
2390 "z": "1f9db9a1.737df6"
2394 "id": "701b12be.386a5c",
2403 "x": 797.2857055664062,
2404 "xml": "<outcome value=''>",
2405 "y": 2992.0953826904297,
2406 "z": "1f9db9a1.737df6"
2410 "id": "a04c4aba.4671b8",
2411 "name": "set availability-zone_length to 0",
2414 "x": 1398.7143478393555,
2415 "xml": "<set>\n<parameter name='aai.az.availability-zone_length' value='0' />\n",
2416 "y": 3010.6666202545166,
2417 "z": "1f9db9a1.737df6"
2421 "id": "1249a549.cc39bb",
2422 "name": "switch AZ max count > 0",
2424 "type": "switchNode",
2431 "x": 985.857177734375,
2432 "xml": "<switch test='`$db.vf-model.avail-zone-max-count > 0`'>\n",
2433 "y": 2992.5236945152283,
2434 "z": "1f9db9a1.737df6"
2438 "id": "545772cc.6dbc04",
2441 "type": "outcomeTrue",
2447 "x": 1188.7142848968506,
2448 "xml": "<outcome value='true'>\n",
2449 "y": 2966.8094444274902,
2450 "z": "1f9db9a1.737df6"
2454 "id": "f7e43f63.6a2e5",
2457 "type": "outcomeFalse",
2463 "x": 1190.1429061889648,
2464 "xml": "<outcome value='false'>\n",
2465 "y": 3011.0951919555664,
2466 "z": "1f9db9a1.737df6"
2470 "id": "be2e43e.cc375c",
2471 "name": "return failure",
2472 "type": "returnFailure",
2474 "x": 1340.142822265625,
2475 "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=\"`'No availability zones found in AAI for cloud region '\n + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region`\" />\n",
2476 "y": 2966.5238494873047,
2477 "z": "1f9db9a1.737df6"
2481 "id": "c510e207.134d3",
2482 "name": "get-resource availability zones",
2484 "type": "get-resource",
2490 "x": 588.7143096923828,
2491 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"availability-zones\" \n\t\tkey=\"cloud-region.cloud-owner = 'CloudOwner' AND \n\t\t cloud-region.cloud-region-id = $vnf-topology-operation-input.vnf-request-input.aic-cloud-region AND\n\t\t depth='0'\"\n pfx='aai.az' local-only='false' >\n\n",
2492 "y": 1919.4286441802979,
2493 "z": "1f9db9a1.737df6"
2497 "id": "5917e224.06e004",
2506 "x": 813.9605255126953,
2507 "xml": "<outcome value='failure'>\n",
2508 "y": 1918.829496383667,
2509 "z": "1f9db9a1.737df6"
2513 "id": "76d22d4c.7d6684",
2514 "name": "return failure",
2515 "type": "returnFailure",
2517 "x": 987.7104644775391,
2518 "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 retrieving availability zones from AAI\" />\n",
2519 "y": 1917.5796184539795,
2520 "z": "1f9db9a1.737df6"