17 "id":"6691cc73.e873a4",
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":229.61902618408203,
26 "y":131.2381134033203,
27 "z":"fd246789.67c9b8",
35 "id":"cc1c0bf8.946078",
37 "name":"method vnf-topology-operation-assign",
38 "xml":"<method rpc='vnf-topology-operation-assign' mode='sync'>\n",
41 "x":207.42862701416016,
43 "z":"fd246789.67c9b8",
51 "id":"4433df34.49523",
53 "name":"vnf-topology-operation-assign",
56 "x":510.34485626220703,
57 "y":38.58634376525879,
58 "z":"fd246789.67c9b8",
64 "id":"69555d22.201ae4",
66 "name":"switch request-action",
67 "xml":"<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
70 "x":517.8571395874023,
71 "y":368.19043922424316,
72 "z":"fd246789.67c9b8",
81 "id":"21e7c9f9.301dc6",
83 "name":"CreateVnfInstance",
84 "xml":"<outcome value='CreateVnfInstance'>\n",
87 "x":771.5714340209961,
88 "y":345.3333206176758,
89 "z":"fd246789.67c9b8",
97 "id":"4592f6ea.c358a8",
100 "xml":"<outcome value='Other'>\n",
103 "x":733.5713996887207,
104 "y":391.0476484298706,
105 "z":"fd246789.67c9b8",
113 "id":"68be9a6d.905a74",
120 "x":956.4285621643066,
121 "y":345.3333501815796,
122 "z":"fd246789.67c9b8",
130 "id":"f9f1fcba.f8b9a",
131 "type":"returnFailure",
132 "name":"return failure",
133 "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",
135 "x":973.5714073181152,
136 "y":391.0476064682007,
137 "z":"fd246789.67c9b8",
143 "id":"640dc66a.a29d78",
145 "name":"block : atomic",
146 "xml":"<block atomic=\"true\">",
149 "x":146.11905670166016,
150 "y":1702.7857055664062,
151 "z":"fd246789.67c9b8",
189 "id":"8493543d.d5add8",
190 "type":"get-resource",
191 "name":"get-resource VF_MODEL",
192 "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",
195 "x":530.1904449462891,
196 "y":459.333309173584,
197 "z":"fd246789.67c9b8",
206 "id":"6f7a7f57.b3d91",
207 "type":"returnFailure",
208 "name":"return failure",
209 "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",
211 "x":971.6189231872559,
212 "y":482.7617950439453,
213 "z":"fd246789.67c9b8",
219 "id":"d5535827.ea8598",
222 "xml":"<outcome value='failure'>\n",
225 "x":730.9761428833008,
226 "y":439.7141466140747,
227 "z":"fd246789.67c9b8",
235 "id":"48a8f1af.2c0e6",
238 "xml":"<outcome value='not-found'>\n",
241 "x":739.5475730895996,
242 "y":483.9998598098755,
243 "z":"fd246789.67c9b8",
251 "id":"6cb659f6.a3ccc8",
252 "type":"returnFailure",
253 "name":"return failure",
254 "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",
256 "x":970.9761238098145,
257 "y":437.85705375671387,
258 "z":"fd246789.67c9b8",
264 "id":"44e96447.88a55c",
266 "name":"switch service-data.vnfs.vnf_length",
267 "xml":"<switch test='`$service-data.vnfs.vnf_length`'>\n",
270 "x":560.2857131958008,
271 "y":649.5714282989502,
272 "z":"fd246789.67c9b8",
281 "id":"b5587c41.e56ce",
284 "xml":"<outcome value=''>\n",
287 "x":786.0000419616699,
288 "y":616.7142162322998,
289 "z":"fd246789.67c9b8",
297 "id":"35287950.3f0336",
299 "name":"set vnf-index=0",
300 "xml":"<set>\n<parameter name='vnf-index' value='0' />\n",
302 "x":950.2857627868652,
303 "y":615.7142944335938,
304 "z":"fd246789.67c9b8",
310 "id":"7e264606.a0c498",
313 "xml":"<outcome value='Other'>\n",
316 "x":787.4286041259766,
317 "y":681.0000343322754,
318 "z":"fd246789.67c9b8",
326 "id":"f93c00a3.b52d2",
328 "name":"set vnf-index = vnf_length",
329 "xml":"<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n",
331 "x":1126.285758972168,
332 "y":659.285722732544,
333 "z":"fd246789.67c9b8",
339 "id":"c5a883a5.29173",
341 "name":"for each existing VNF",
342 "xml":"<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
345 "x":1111.7142715454102,
346 "y":705.2856616973877,
347 "z":"fd246789.67c9b8",
355 "id":"1e55cf6a.800ac1",
362 "x":923.1428642272949,
364 "z":"fd246789.67c9b8",
373 "id":"a2daf07b.6ee38",
375 "name":"switch vnf-information.vnf-id == service-data.vnfs.vnf[].vnf-id",
376 "xml":"<switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>\n",
379 "x":1466.0000381469727,
380 "y":704.857141494751,
381 "z":"fd246789.67c9b8",
389 "id":"a768ca3d.d2e178",
390 "type":"outcomeTrue",
392 "xml":"<outcome value='true'>\n",
395 "x":1760.2857475280762,
396 "y":704.4286136627197,
397 "z":"fd246789.67c9b8",
405 "id":"4be53ad3.39d424",
406 "type":"returnFailure",
407 "name":"return failure",
408 "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",
410 "x":1908.8571548461914,
411 "y":704.4285736083984,
412 "z":"fd246789.67c9b8",
418 "id":"5528274.a4ca8d8",
420 "name":"make sure this VNF doesn't exist already",
423 "x":1453.1427688598633,
424 "y":662.4285717010498,
425 "z":"fd246789.67c9b8",
431 "id":"60a9b28e.fdbd6c",
433 "name":"set vnf-topology data",
434 "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",
436 "x":515.9999694824219,
437 "y":811.238115310669,
438 "z":"fd246789.67c9b8",
444 "id":"a2f5b96a.0efe28",
446 "name":"switch input vnf-name",
447 "xml":"<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-name`'>\n",
450 "x":522.4285507202148,
451 "y":1053.8571615219116,
452 "z":"fd246789.67c9b8",
461 "id":"a74ff6a8.d70078",
464 "xml":"<outcome value=''>",
467 "x":790.6427726745605,
468 "y":976.8333864212036,
469 "z":"fd246789.67c9b8",
477 "id":"a535733d.56088",
479 "name":"switch ecomp-generated-naming",
480 "xml":"<switch test='`$db.vf-model.ecomp-generated-naming`'>\n",
483 "x":1207.071662902832,
484 "y":883.5002059936523,
485 "z":"fd246789.67c9b8",
495 "id":"a1df7746.405bc8",
497 "name":"block : atomic",
498 "xml":"<block atomic=\"true\">",
501 "x":936.3572692871094,
502 "y":976.833498954773,
503 "z":"fd246789.67c9b8",
513 "id":"fed6ce07.f1c9b",
516 "xml":"<outcome value='N'>",
519 "x":1456.357322692871,
520 "y":885.404914855957,
521 "z":"fd246789.67c9b8",
529 "id":"10b3babc.98e1d5",
530 "type":"returnFailure",
531 "name":"return failure",
532 "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",
534 "x":1610.64310836792,
535 "y":903.9763593673706,
536 "z":"fd246789.67c9b8",
542 "id":"c481f2.a0820e1",
545 "xml":"<outcome value='Y'>",
548 "x":1456.3572883605957,
549 "y":841.1192359924316,
550 "z":"fd246789.67c9b8",
558 "id":"3606bd75.f9d982",
561 "xml":"<outcome value='Other'>\n",
564 "x":1456.357250213623,
565 "y":931.119234085083,
566 "z":"fd246789.67c9b8",
574 "id":"785bb471.695f2c",
581 "x":1593.5002326965332,
582 "y":841.1192359924316,
583 "z":"fd246789.67c9b8",
591 "id":"5026858f.a2940c",
594 "xml":"<outcome value='Other'>\n",
597 "x":793.2144546508789,
598 "y":1123.119125366211,
599 "z":"fd246789.67c9b8",
607 "id":"3f38f6a8.e8ae7a",
609 "name":"set tmp.vnf-name",
610 "xml":"<set>\n<parameter name='tmp.vnf-name' value=\"`$vnf-topology-operation-input.vnf-request-input.vnf-name`\" />\n",
612 "x":1752.0715306599936,
613 "y":1190.5476417541504,
614 "z":"fd246789.67c9b8",
620 "id":"ba81df66.145ca",
622 "name":"call GENERIC-RESOURCE-API:generate-unique-name",
623 "xml":"<call module='GENERIC-RESOURCE-API' rpc='generate-unique-name' mode='sync' >\n",
626 "x":1275.4763259887695,
627 "y":1049.8333959579468,
628 "z":"fd246789.67c9b8",
637 "id":"d2300850.ff9928",
640 "xml":"<outcome value='failure'>\n",
643 "x":1571.1906140645347,
644 "y":1022.6906585693359,
645 "z":"fd246789.67c9b8",
653 "id":"88893e9e.26f3",
656 "xml":"<outcome value='success'>\n",
659 "x":1574.5239639282227,
660 "y":1074.3573017120361,
661 "z":"fd246789.67c9b8",
669 "id":"a99511f6.3ff61",
671 "name":"set variables for generating unique name",
672 "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",
674 "x":1232.1430130004883,
675 "y":998.1668043136597,
676 "z":"fd246789.67c9b8",
682 "id":"e379d995.8d07c8",
684 "name":"set tmp.vnf-name to generated name",
685 "xml":"<set>\n<parameter name='tmp.vnf-name' value='`$generate-unique-name-output.generated-name`' />\n",
687 "x":1815.7143491109214,
688 "y":1074.8333930969238,
689 "z":"fd246789.67c9b8",
695 "id":"a2f8f6ce.0d9048",
696 "type":"returnFailure",
697 "name":"return failure",
698 "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",
700 "x":1739.0477269490561,
701 "y":1022.1191701889038,
702 "z":"fd246789.67c9b8",
708 "id":"14a356a5.aabd79",
710 "name":"block : atomic",
711 "xml":"<block atomic=\"true\">",
714 "x":941.1429824829102,
715 "y":1121.7858123779297,
716 "z":"fd246789.67c9b8",
725 "id":"fea292da.2d62c",
727 "name":"call GENERIC-RESOURCE-API:generate-unique-name",
728 "xml":"<call module='GENERIC-RESOURCE-API' rpc='generate-unique-name' mode='sync' >\n",
731 "x":1271.1429824829102,
732 "y":1169.7858123779297,
733 "z":"fd246789.67c9b8",
742 "id":"fe79a9ce.cff238",
745 "xml":"<outcome value='failure'>\n",
748 "x":1569.7143987019858,
749 "y":1139.785837173462,
750 "z":"fd246789.67c9b8",
758 "id":"854320f4.a6951",
761 "xml":"<outcome value='success'>\n",
764 "x":1573.0477485656738,
765 "y":1191.452480316162,
766 "z":"fd246789.67c9b8",
774 "id":"ddf542b0.c6011",
776 "name":"set variables for generating unique name",
777 "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",
779 "x":1227.8096542358398,
780 "y":1118.1191844940186,
781 "z":"fd246789.67c9b8",
787 "id":"c71b771e.d085f8",
788 "type":"returnFailure",
789 "name":"return failure",
790 "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",
792 "x":1737.5715115865073,
793 "y":1139.2143487930298,
794 "z":"fd246789.67c9b8",
800 "id":"38295564.a1749a",
801 "type":"get-resource",
802 "name":"get-resource cloud region",
803 "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",
806 "x":544.5714492797852,
807 "y":1731.8569984436035,
808 "z":"fd246789.67c9b8",
817 "id":"ad2a9079.440fb",
820 "xml":"<outcome value='failure'>\n",
823 "x":769.8176422119141,
824 "y":1750.00785446167,
825 "z":"fd246789.67c9b8",
833 "id":"2721b55e.e28fda",
834 "type":"returnFailure",
835 "name":"return failure",
836 "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",
838 "x":944.8176155090332,
839 "y":1750.007890701294,
840 "z":"fd246789.67c9b8",
846 "id":"705615f3.8b4c9c",
849 "xml":"<outcome value='not-found'>\n",
852 "x":778.7462387084961,
853 "y":1708.2935876846313,
854 "z":"fd246789.67c9b8",
862 "id":"5e971bd2.c85374",
863 "type":"returnFailure",
864 "name":"return failure",
865 "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",
867 "x":945.095516204834,
868 "y":1707.5991649627686,
869 "z":"fd246789.67c9b8",
875 "id":"4b89c8dc.b86128",
876 "type":"get-resource",
877 "name":"get-resource VF_TO_NETWORK_ROLE_MAPPING",
878 "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",
881 "x":609.8095321655273,
882 "y":2042.9045181274414,
883 "z":"fd246789.67c9b8",
892 "id":"fc2923af.cfa16",
893 "type":"returnFailure",
894 "name":"return failure",
895 "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",
897 "x":1345.5237121582031,
898 "y":2060.618698120117,
899 "z":"fd246789.67c9b8",
905 "id":"54fe96c4.2ade08",
908 "xml":"<outcome value='failure'>\n",
911 "x":905.5952033996582,
912 "y":2021.6186828613281,
913 "z":"fd246789.67c9b8",
921 "id":"73ebe04c.8877",
924 "xml":"<outcome value='not-found'>\n",
927 "x":914.166633605957,
928 "y":2065.904396057129,
929 "z":"fd246789.67c9b8",
937 "id":"359e53d8.b8194c",
938 "type":"returnFailure",
939 "name":"return failure",
940 "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",
942 "x":1080.5951843261719,
943 "y":2021.4283332824707,
944 "z":"fd246789.67c9b8",
950 "id":"256b9444.46e22c",
952 "name":"block : atomic",
953 "xml":"<block atomic=\"true\">",
956 "x":710.5715866088867,
957 "y":2491.71391582489,
958 "z":"fd246789.67c9b8",
973 "id":"adf1fe7e.9a17b",
974 "type":"get-resource",
975 "name":"get-resource l3-network",
976 "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",
979 "x":943.4286041259766,
980 "y":2170.999779701233,
981 "z":"fd246789.67c9b8",
990 "id":"d30ae5a6.b9bd78",
993 "xml":"<outcome value='failure'>\n",
996 "x":1147.476318359375,
997 "y":2193.1426191329956,
998 "z":"fd246789.67c9b8",
1006 "id":"3ac2e1b4.70cbce",
1007 "type":"returnFailure",
1008 "name":"return failure",
1009 "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",
1011 "x":1322.4762916564941,
1012 "y":2193.1426553726196,
1013 "z":"fd246789.67c9b8",
1019 "id":"e410cae.f805538",
1022 "xml":"<outcome value='not-found'>\n",
1025 "x":1156.404914855957,
1026 "y":2151.428352355957,
1027 "z":"fd246789.67c9b8",
1035 "id":"5d3fbb26.bfed54",
1036 "type":"returnFailure",
1037 "name":"return failure",
1038 "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",
1040 "x":1322.754192352295,
1041 "y":2150.7339296340942,
1042 "z":"fd246789.67c9b8",
1048 "id":"94f38af4.602b28",
1050 "name":"set vnf-network data",
1051 "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",
1053 "x":932.6191940307617,
1054 "y":2658.0000228881836,
1055 "z":"fd246789.67c9b8",
1061 "id":"181944c4.0d0f9b",
1063 "name":"for each cloud-region availability zone",
1064 "xml":"<for index='idx' start='0' end='`$aai.az.availability-zone_length`' >\n",
1067 "x":544.3335571289062,
1068 "y":3072.618803024292,
1069 "z":"fd246789.67c9b8",
1077 "id":"bec7777f.49caa8",
1079 "name":"set availability-zone",
1080 "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",
1082 "x":1006.0002403259277,
1083 "y":3041.952217102051,
1084 "z":"fd246789.67c9b8",
1090 "id":"41755ac8.072364",
1092 "name":"set vnf-parameters-data",
1093 "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",
1095 "x":503.9524841308594,
1096 "y":2922.5711631774902,
1097 "z":"fd246789.67c9b8",
1103 "id":"4fed1d67.892644",
1105 "name":"save generic-vnf l3-network relationships",
1106 "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",
1109 "x":970.5240173339844,
1110 "y":3216.381015777588,
1111 "z":"fd246789.67c9b8",
1120 "id":"2567269e.02750a",
1121 "type":"returnSuccess",
1122 "name":"return success",
1123 "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",
1125 "x":467.0953674316406,
1126 "y":3603.1901140213013,
1127 "z":"fd246789.67c9b8",
1133 "id":"1b1ec882.086847",
1135 "name":"set vnf-level-oper-status to PendingCreate",
1136 "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",
1138 "x":556.9088134765625,
1139 "y":3505.527594566345,
1140 "z":"fd246789.67c9b8",
1146 "id":"2a1ab274.7c2bee",
1148 "name":"for each network-role",
1149 "xml":"<for index='role-index' start='0' end='`$db.vf-network-role-mapping_length`'>",
1152 "x":493.90489196777344,
1153 "y":2491.7141189575195,
1154 "z":"fd246789.67c9b8",
1162 "id":"fdb92e2f.a354e",
1164 "name":"set network-index = 0",
1165 "xml":"<set>\n<parameter name='network-index' value='0' />\n",
1167 "x":512.2380676269531,
1168 "y":2109.8094577789307,
1169 "z":"fd246789.67c9b8",
1175 "id":"94677688.71e6b8",
1177 "name":"increment network-index",
1178 "xml":"<set>\n<parameter name='network-index' value='`$network-index + 1`' />\n",
1180 "x":942.9525146484375,
1181 "y":2795.6189250946045,
1182 "z":"fd246789.67c9b8",
1188 "id":"992ab3fb.83b44",
1190 "name":"set vnf-network_length",
1191 "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",
1194 "y":2872.571207046509,
1195 "z":"fd246789.67c9b8",
1201 "id":"e106d4bd.0d1078",
1203 "name":"copy input data",
1204 "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",
1206 "x":472.4286422729492,
1207 "y":3453.1904258728027,
1208 "z":"fd246789.67c9b8",
1214 "id":"da9c0753.0051f8",
1216 "name":"for each vnf-network",
1217 "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",
1220 "x":493.52392578125,
1221 "y":3215.380931854248,
1222 "z":"fd246789.67c9b8",
1230 "id":"4dd068e4.b72dc8",
1232 "name":"block : atomic",
1233 "xml":"<block atomic=\"true\">",
1236 "x":697.1905670166016,
1237 "y":3215.380892753601,
1238 "z":"fd246789.67c9b8",
1246 "id":"e38c22e2.cce52",
1248 "name":"set new vnf_length",
1249 "xml":"<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\n",
1251 "x":508.0952491760254,
1252 "y":765.7619781494141,
1253 "z":"fd246789.67c9b8",
1259 "id":"66001fe6.d89e4",
1261 "name":"for each cloud-region relationship",
1262 "xml":"<for index='idx' start='0' end='`$aai.cloud-region.relationship-list.relationship_length`' >\n",
1265 "x":557.4285736083984,
1266 "y":1819.0951700210571,
1267 "z":"fd246789.67c9b8",
1275 "id":"c5d7b884.059e78",
1276 "type":"switchNode",
1277 "name":"switch related-to",
1278 "xml":"<switch test='`$aai.cloud-region.relationship-list.relationship[$idx].related-to`'>\n",
1281 "x":805.1071166992188,
1282 "y":1818.8450994491577,
1283 "z":"fd246789.67c9b8",
1291 "id":"2d88636e.c052fc",
1294 "xml":"<outcome value='complex'>\n",
1297 "x":974.5714378356934,
1298 "y":1818.2379217147827,
1299 "z":"fd246789.67c9b8",
1307 "id":"cbda08be.5e00d8",
1309 "name":"set aic-clli",
1310 "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",
1312 "x":1295.2857360839844,
1313 "y":1817.9045791625977,
1314 "z":"fd246789.67c9b8",
1320 "id":"99ebc7f4.ea5d68",
1321 "type":"switchNode",
1322 "name":"switch aic-clli",
1323 "xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.aic-clli`'>\n",
1326 "x":493.3333511352539,
1327 "y":1975.0474872589111,
1328 "z":"fd246789.67c9b8",
1336 "id":"1bb0c6a6.aa0059",
1339 "xml":"<outcome value=''>",
1342 "x":641.4761848449707,
1343 "y":1975.0474700927734,
1344 "z":"fd246789.67c9b8",
1352 "id":"9d910b9.8f160f8",
1353 "type":"returnFailure",
1354 "name":"return failure",
1355 "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",
1357 "x":788.6190452575684,
1358 "y":1974.6189041137695,
1359 "z":"fd246789.67c9b8",
1365 "id":"911708ca.a4ec28",
1367 "name":"set from DB",
1368 "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",
1370 "x":916.9287452697754,
1371 "y":1291.0475587844849,
1372 "z":"fd246789.67c9b8",
1378 "id":"b87037e6.eb7448",
1380 "name":"for each l3-network",
1381 "xml":"<for index='db-network-index' start='0' end='`$aai.l3-network.l3-network_length`' >\n",
1384 "x":1050.8811492919922,
1385 "y":2414.571388244629,
1386 "z":"fd246789.67c9b8",
1394 "id":"4cb7a54f.4eeccc",
1395 "type":"switchNode",
1396 "name":"switch orchestration-status",
1397 "xml":"<switch test='`$aai.l3-network.l3-network[$db-network-index].orchestration-status`'>\n",
1400 "x":1279.452350616455,
1401 "y":2413.142815589905,
1402 "z":"fd246789.67c9b8",
1414 "id":"65732b9e.885204",
1416 "name":"Pending Delete",
1417 "xml":"<outcome value='Pending Delete'>\n",
1420 "x":1516.1192626953125,
1421 "y":2458.8095235824585,
1422 "z":"fd246789.67c9b8",
1430 "id":"f80fc6c2.030438",
1433 "xml":"<outcome value='Other'>\n",
1436 "x":1488.9764022827148,
1437 "y":2509.809504508972,
1438 "z":"fd246789.67c9b8",
1446 "id":"3a777e92.27b412",
1447 "type":"switchNode",
1448 "name":"switch related-to",
1449 "xml":"<switch test='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].related-to`'>\n",
1452 "x":1854.6907539367676,
1453 "y":2508.3808450698853,
1454 "z":"fd246789.67c9b8",
1462 "id":"c6e8990a.ebd138",
1464 "name":"for each relationship",
1465 "xml":"<for silentFailure='true' index='db-rel-index' start='0' end='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship_length`' >\n",
1468 "x":1658.9763145446777,
1469 "y":2509.3808813095093,
1470 "z":"fd246789.67c9b8",
1478 "id":"7ebd2a2d.1adc64",
1480 "name":"cloud-region",
1481 "xml":"<outcome value='cloud-region'>\n",
1484 "x":2028.9763946533203,
1485 "y":2507.9522914886475,
1486 "z":"fd246789.67c9b8",
1494 "id":"91da1633.e19528",
1496 "name":"for each relationship data",
1497 "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",
1500 "x":2226.119094848633,
1501 "y":2508.380759239197,
1502 "z":"fd246789.67c9b8",
1510 "id":"7571e6bb.7c1e98",
1511 "type":"switchNode",
1512 "name":"switch relationship-key",
1513 "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",
1516 "x":2457.547695159912,
1517 "y":2507.9521341323853,
1518 "z":"fd246789.67c9b8",
1526 "id":"99351695.fbd508",
1528 "name":"cloud-region.cloud-region-id",
1529 "xml":"<outcome value='cloud-region.cloud-region-id'>\n",
1532 "x":2698.9762268066406,
1533 "y":2507.95223903656,
1534 "z":"fd246789.67c9b8",
1542 "id":"52fbb392.9ae0fc",
1543 "type":"switchNode",
1544 "name":"switch relationship-value == cloud-region-id",
1545 "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",
1548 "x":3003.2621459960938,
1549 "y":2507.8092947006226,
1550 "z":"fd246789.67c9b8",
1558 "id":"30d6670a.932068",
1559 "type":"outcomeTrue",
1561 "xml":"<outcome value='true'>\n",
1564 "x":3243.262176513672,
1565 "y":2507.9522399902344,
1566 "z":"fd246789.67c9b8",
1574 "id":"aae66b2d.04c758",
1581 "x":889.0953330993652,
1582 "y":2482.4284858703613,
1583 "z":"fd246789.67c9b8",
1592 "id":"c901ec1c.1186a",
1593 "type":"returnSuccess",
1594 "name":"CATCH BREAK",
1595 "xml":"<return status='success'>\n\n",
1597 "x":1040.4287414550781,
1598 "y":2555.7617197036743,
1599 "z":"fd246789.67c9b8",
1605 "id":"4cb4ba60.e5ecf4",
1606 "type":"returnFailure",
1608 "xml":"<return status='failure'>\n",
1610 "x":3544.095157623291,
1611 "y":2525.761643409729,
1612 "z":"fd246789.67c9b8",
1618 "id":"f2668cde.bd454",
1620 "name":"set l3-network-id = -1",
1621 "xml":"<set>\n<parameter name='l3-network-id' value='-1' />\n",
1623 "x":933.4287033081055,
1624 "y":2285.7616996765137,
1625 "z":"fd246789.67c9b8",
1631 "id":"f3bd4d0.b8b78b",
1633 "name":"block : atomic",
1634 "xml":"<block atomic=\"true\">",
1637 "x":3389.0951538085938,
1638 "y":2507.4283485412598,
1639 "z":"fd246789.67c9b8",
1648 "id":"26d1bdef.32da62",
1650 "name":"set l3-network-id = this l3-network",
1651 "xml":"<set>\n<parameter name='l3-network-id' value='`$aai.l3-network.l3-network[$db-network-index].network-id`' />\n",
1653 "x":3625.7618255615234,
1654 "y":2482.4283475875854,
1655 "z":"fd246789.67c9b8",
1661 "id":"2eaed654.44544a",
1662 "type":"switchNode",
1663 "name":"switch l3-network-id",
1664 "xml":"<switch test='`$l3-network-id`'>\n",
1667 "x":930.4286270141602,
1668 "y":2609.428741455078,
1669 "z":"fd246789.67c9b8",
1677 "id":"94d5eb5b.9dfb28",
1680 "xml":"<outcome value='-1'>\n",
1683 "x":1100.4285774230957,
1684 "y":2609.428497314453,
1685 "z":"fd246789.67c9b8",
1693 "id":"819df612.f478a8",
1694 "type":"returnFailure",
1695 "name":"return failure",
1696 "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",
1698 "x":1248.7619400024414,
1699 "y":2609.4286346435547,
1700 "z":"fd246789.67c9b8",
1706 "id":"c1d69c5f.488e1",
1707 "type":"switchNode",
1708 "name":"switch input model-invariant-uuid",
1709 "xml":"<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`'>\n",
1712 "x":560.7858200073242,
1713 "y":1313.8720026016235,
1714 "z":"fd246789.67c9b8",
1723 "id":"81712284.6061f",
1726 "xml":"<outcome value=''>",
1729 "x":766.4524917602539,
1730 "y":1291.0149660110474,
1731 "z":"fd246789.67c9b8",
1739 "id":"bbef1dff.d32a1",
1742 "xml":"<outcome value='Other'>\n",
1745 "x":767.8810882568359,
1746 "y":1335.3005571365356,
1747 "z":"fd246789.67c9b8",
1755 "id":"9d361538.39a998",
1757 "name":"set from input",
1758 "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",
1760 "x":922.1668243408203,
1761 "y":1334.7291293144226,
1762 "z":"fd246789.67c9b8",
1768 "id":"c01c75b7.d771a8",
1770 "name":"set from DB",
1771 "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",
1773 "x":917.8810157775879,
1774 "y":1379.5862350463867,
1775 "z":"fd246789.67c9b8",
1781 "id":"71b9cf5e.13115",
1782 "type":"switchNode",
1783 "name":"switch input model-uuid",
1784 "xml":"<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`'>\n",
1787 "x":533.4048385620117,
1788 "y":1402.4107398986816,
1789 "z":"fd246789.67c9b8",
1798 "id":"cb6c4216.48671",
1801 "xml":"<outcome value=''>",
1804 "x":767.4048118591309,
1805 "y":1379.553671836853,
1806 "z":"fd246789.67c9b8",
1814 "id":"51d9dbfe.50eec4",
1817 "xml":"<outcome value='Other'>\n",
1820 "x":768.8334083557129,
1821 "y":1423.8392629623413,
1822 "z":"fd246789.67c9b8",
1830 "id":"8668309.94373d",
1832 "name":"set from input",
1833 "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",
1835 "x":923.1191444396973,
1836 "y":1423.2678351402283,
1837 "z":"fd246789.67c9b8",
1843 "id":"f9c5e77b.b35768",
1845 "name":"set from DB",
1846 "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",
1848 "x":915.0239486694336,
1849 "y":1468.4434423446655,
1850 "z":"fd246789.67c9b8",
1856 "id":"4bbcb529.9daacc",
1857 "type":"switchNode",
1858 "name":"switch input model-version",
1859 "xml":"<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-version`'>\n",
1862 "x":541.5477104187012,
1863 "y":1491.2678871154785,
1864 "z":"fd246789.67c9b8",
1873 "id":"a7d107ab.83c758",
1876 "xml":"<outcome value=''>",
1879 "x":764.5476951599121,
1880 "y":1468.410849571228,
1881 "z":"fd246789.67c9b8",
1889 "id":"78b9d8ab.538148",
1892 "xml":"<outcome value='Other'>\n",
1895 "x":765.9762916564941,
1896 "y":1512.6964406967163,
1897 "z":"fd246789.67c9b8",
1905 "id":"e7c733ab.83255",
1907 "name":"set from input",
1908 "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",
1910 "x":920.2620277404785,
1911 "y":1512.1250128746033,
1912 "z":"fd246789.67c9b8",
1918 "id":"5c05bbe1.d44bc4",
1920 "name":"set from DB",
1921 "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",
1923 "x":915.0239486694336,
1924 "y":1555.5862646102905,
1925 "z":"fd246789.67c9b8",
1931 "id":"12e97c5b.66ee84",
1932 "type":"switchNode",
1933 "name":"switch input model-name",
1934 "xml":"<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-name`'>\n",
1937 "x":536.5477104187012,
1938 "y":1578.4107093811035,
1939 "z":"fd246789.67c9b8",
1948 "id":"af70cdb.ef6023",
1951 "xml":"<outcome value=''>",
1954 "x":764.5476951599121,
1955 "y":1555.553671836853,
1956 "z":"fd246789.67c9b8",
1964 "id":"f3d34dfc.cbd31",
1967 "xml":"<outcome value='Other'>\n",
1970 "x":765.9762916564941,
1971 "y":1599.8392629623413,
1972 "z":"fd246789.67c9b8",
1980 "id":"ba8a085e.f15f18",
1982 "name":"set from input",
1983 "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",
1985 "x":920.2620277404785,
1986 "y":1599.2678351402283,
1987 "z":"fd246789.67c9b8",
1993 "id":"716a882.9ab7178",
2000 "x":1669.3333549499512,
2001 "y":2459.586400985718,
2002 "z":"fd246789.67c9b8",
2010 "id":"41d53be7.1f6d94",
2012 "name":"PendingDelete",
2013 "xml":"<outcome value='PendingDelete'>\n",
2016 "x":1513.9999961853027,
2017 "y":2414.5863151550293,
2018 "z":"fd246789.67c9b8",
2026 "id":"88ce6156.79525",
2033 "x":1669.2140884399414,
2034 "y":2415.3631925582886,
2035 "z":"fd246789.67c9b8",
2043 "id":"f51d095f.d31e98",
2045 "name":"Pending Create",
2046 "xml":"<outcome value='Pending Create'>\n",
2049 "x":1515.9999961853027,
2050 "y":2371.2528190612793,
2051 "z":"fd246789.67c9b8",
2059 "id":"1d66b0a7.bf415f",
2066 "x":1669.2140884399414,
2067 "y":2372.0296964645386,
2068 "z":"fd246789.67c9b8",
2076 "id":"265b5201.897f0e",
2078 "name":"PendingCreate",
2079 "xml":"<outcome value='PendingCreate'>\n",
2082 "x":1515.9999961853027,
2083 "y":2327.9195671081543,
2084 "z":"fd246789.67c9b8",
2092 "id":"569d335c.bf6c3c",
2099 "x":1669.2140884399414,
2100 "y":2328.6964445114136,
2101 "z":"fd246789.67c9b8",
2109 "id":"ebe74367.6c98d",
2111 "name":"for each A&AI subnet",
2112 "xml":"<for index='subnet-index' start='0' end='`$aai.l3-network.l3-network[0].subnets.subnet_length`' >\n",
2115 "x":932.6667633056641,
2116 "y":2702.919626235962,
2117 "z":"fd246789.67c9b8",
2125 "id":"cfa19178.3c2c3",
2127 "name":"set subnet data",
2128 "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",
2130 "x":1130.9999389648438,
2131 "y":2701.2532052993774,
2132 "z":"fd246789.67c9b8",
2138 "id":"a16a767c.1d4a58",
2140 "name":"set subnet_length",
2141 "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",
2143 "x":921.3333282470703,
2144 "y":2747.919708251953,
2145 "z":"fd246789.67c9b8",
2151 "id":"3d1f814c.368f2e",
2153 "name":"set availability-zones.max-count and length",
2154 "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",
2156 "x":564.0000610351562,
2157 "y":3160.6342582702637,
2158 "z":"fd246789.67c9b8",
2164 "id":"3315c9d5.fbc886",
2166 "name":"set vnf-name",
2167 "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",
2169 "x":497.66663360595703,
2170 "y":1247.9197664260864,
2171 "z":"fd246789.67c9b8",
2177 "id":"435802ab.cae41c",
2179 "name":"update generic-vnf",
2180 "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",
2183 "x":484.3333282470703,
2184 "y":3370.300033569336,
2185 "z":"fd246789.67c9b8",
2194 "id":"79756539.60282c",
2196 "name":"set vnf-object-path",
2197 "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\n",
2199 "x":484.33336639404297,
2200 "y":3300.30051612854,
2201 "z":"fd246789.67c9b8",
2207 "id":"ca1ff11f.a4d9c",
2209 "name":"set vnf-id",
2210 "xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id'\n value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n",
2212 "x":485.9999771118164,
2213 "y":1199.5863094329834,
2214 "z":"fd246789.67c9b8",
2220 "id":"858218a8.523588",
2222 "name":"printContext",
2223 "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-viprend.log' />\n",
2226 "x":462.00009536743164,
2227 "y":3551.967363357544,
2228 "z":"fd246789.67c9b8",
2236 "id":"90fb466f.03aa88",
2237 "type":"returnFailure",
2238 "name":"return failure",
2239 "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",
2241 "x":1407.666805267334,
2242 "y":3236.9671211242676,
2243 "z":"fd246789.67c9b8",
2249 "id":"b6fac54b.97ab18",
2252 "xml":"<outcome value='failure'>\n",
2255 "x":1220.3573722839355,
2256 "y":3193.919590950012,
2257 "z":"fd246789.67c9b8",
2265 "id":"8f7c44dc.2bfaf8",
2268 "xml":"<outcome value='not-found'>\n",
2271 "x":1228.9288024902344,
2272 "y":3238.205304145813,
2273 "z":"fd246789.67c9b8",
2281 "id":"3c644fce.dbe83",
2282 "type":"returnFailure",
2283 "name":"return failure",
2284 "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",
2286 "x":1410.3573989868164,
2287 "y":3193.729326248169,
2288 "z":"fd246789.67c9b8",
2294 "id":"635e0959.ef5968",
2295 "type":"returnFailure",
2296 "name":"return failure",
2297 "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",
2299 "x":887.6667442321777,
2300 "y":3391.967043876648,
2301 "z":"fd246789.67c9b8",
2307 "id":"a1a2ecfe.5a9f7",
2310 "xml":"<outcome value='failure'>\n",
2313 "x":700.3573112487793,
2314 "y":3348.9195137023926,
2315 "z":"fd246789.67c9b8",
2323 "id":"63cf7c2e.6403d4",
2326 "xml":"<outcome value='not-found'>\n",
2329 "x":708.9287414550781,
2330 "y":3393.2052268981934,
2331 "z":"fd246789.67c9b8",
2339 "id":"dc15263a.8bf0c8",
2340 "type":"returnFailure",
2341 "name":"return failure",
2342 "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",
2344 "x":890.3573379516602,
2345 "y":3348.7292490005493,
2346 "z":"fd246789.67c9b8",
2352 "id":"a7335a29.c13d48",
2354 "name":"set model-customization-uuid",
2355 "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",
2357 "x":549.3332977294922,
2358 "y":1651.2529134750366,
2359 "z":"fd246789.67c9b8",
2365 "id":"f96ea41d.1ff208",
2367 "name":"split related-link",
2368 "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",
2371 "x":1314.6665954589844,
2372 "y":1772.6664972305298,
2373 "z":"fd246789.67c9b8",
2381 "id":"7c602050.7b0ac",
2383 "name":"block : atomic",
2384 "xml":"<block atomic=\"true\">",
2387 "x":1134.3332977294922,
2388 "y":1819.333285331726,
2389 "z":"fd246789.67c9b8",
2399 "id":"b2382668.d3f318",
2404 "x":1284.3332595825195,
2405 "y":1862.666582107544,
2406 "z":"fd246789.67c9b8",
2412 "id":"7193ae4f.a03bb",
2414 "name":"block : atomic",
2415 "xml":"<block atomic=\"true\">",
2419 "y":3071.7143869400024,
2420 "z":"fd246789.67c9b8",
2429 "id":"2fe66adc.46b646",
2431 "name":"save generic-vnf availability-zone relationship",
2432 "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",
2435 "x":1087.9048156738281,
2436 "y":3095.0478343963623,
2437 "z":"fd246789.67c9b8",
2446 "id":"51e42555.9814cc",
2447 "type":"returnFailure",
2448 "name":"return failure",
2449 "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",
2451 "x":1541.47607421875,
2452 "y":3118.9671936035156,
2453 "z":"fd246789.67c9b8",
2459 "id":"31eeede2.e6b5f2",
2462 "xml":"<outcome value='failure'>\n",
2465 "x":1354.1666412353516,
2466 "y":3075.9196634292603,
2467 "z":"fd246789.67c9b8",
2475 "id":"9e258d80.f8a09",
2478 "xml":"<outcome value='not-found'>\n",
2481 "x":1362.7380714416504,
2482 "y":3120.205376625061,
2483 "z":"fd246789.67c9b8",
2491 "id":"e9675503.f145d8",
2492 "type":"returnFailure",
2493 "name":"return failure",
2494 "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",
2496 "x":1544.1666679382324,
2497 "y":3075.729398727417,
2498 "z":"fd246789.67c9b8",
2504 "id":"ce44b8cb.59b0b8",
2506 "name":"set mapping rows to 0",
2507 "xml":"<set>\n<parameter name='db.vf-network-role-mapping_length' value='0' />\n",
2509 "x":1108.1427688598633,
2510 "y":2065.52388381958,
2511 "z":"fd246789.67c9b8",
2517 "id":"ffd11c87.313e8",
2518 "type":"switchNode",
2519 "name":"switch AAI availability-zone_length",
2520 "xml":"<switch test='`$aai.az.availability-zone_length`'>\n",
2523 "x":536.7142868041992,
2524 "y":2975.523973464966,
2525 "z":"fd246789.67c9b8",
2533 "id":"f7464066.4b3d4",
2536 "xml":"<outcome value=''>",
2539 "x":755.2857055664062,
2540 "y":2975.0953826904297,
2541 "z":"fd246789.67c9b8",
2549 "id":"797aa504.5376fc",
2551 "name":"set availability-zone_length to 0",
2552 "xml":"<set>\n<parameter name='aai.az.availability-zone_length' value='0' />\n",
2554 "x":1356.7143478393555,
2555 "y":2993.6666202545166,
2556 "z":"fd246789.67c9b8",
2562 "id":"632fea45.95b4c4",
2563 "type":"switchNode",
2564 "name":"switch AZ max count > 0",
2565 "xml":"<switch test='`$db.vf-model.avail-zone-max-count > 0`'>\n",
2568 "x":943.857177734375,
2569 "y":2975.5236945152283,
2570 "z":"fd246789.67c9b8",
2579 "id":"c29ececd.4b1d9",
2580 "type":"outcomeTrue",
2582 "xml":"<outcome value='true'>\n",
2585 "x":1146.7142848968506,
2586 "y":2949.8094444274902,
2587 "z":"fd246789.67c9b8",
2595 "id":"1e15158e.a3fbea",
2596 "type":"outcomeFalse",
2598 "xml":"<outcome value='false'>\n",
2601 "x":1148.1429061889648,
2602 "y":2994.0951919555664,
2603 "z":"fd246789.67c9b8",
2611 "id":"66595a0d.b7fbd4",
2612 "type":"returnFailure",
2613 "name":"return failure",
2614 "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",
2616 "x":1298.142822265625,
2617 "y":2949.5238494873047,
2618 "z":"fd246789.67c9b8",
2624 "id":"c8f006fe.b172c8",
2625 "type":"get-resource",
2626 "name":"get-resource availability zones",
2627 "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",
2630 "x":546.7143096923828,
2631 "y":1902.4286441802979,
2632 "z":"fd246789.67c9b8",
2640 "id":"9a0f1e6d.bbdfb",
2643 "xml":"<outcome value='failure'>\n",
2646 "x":771.9605255126953,
2647 "y":1901.829496383667,
2648 "z":"fd246789.67c9b8",
2656 "id":"57e15af7.8d7174",
2657 "type":"returnFailure",
2658 "name":"return failure",
2659 "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",
2661 "x":945.7104644775391,
2662 "y":1900.5796184539795,
2663 "z":"fd246789.67c9b8",