3 "id": "b9ac105c.8ec8f",
7 "x": 97.01041412353516,
8 "y": 47.41365957260132,
17 "id": "cdfd9c31.ba898",
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": 196.29611206054688,
26 "y": 121.65176746528596,
27 "z": "c9244d8c.dbc33",
35 "id": "8cec72fa.c96d5",
37 "name": "method site-vnf-topology-operation-create",
38 "xml": "<method rpc='site-vnf-topology-operation-create' mode='sync'>\n",
41 "x": 217.43902587890625,
42 "y": 211.41365596931428,
43 "z": "c9244d8c.dbc33",
51 "id": "c88bbc51.c05a",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
57 "x": 197.67707061767578,
58 "y": 383.08032772224396,
59 "z": "c9244d8c.dbc33",
77 "id": "34e47add.75c586",
78 "type": "returnSuccess",
79 "name": "return success",
80 "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",
82 "x": 520.3436431884766,
83 "y": 741.7469849586487,
84 "z": "c9244d8c.dbc33",
90 "id": "c99fe643.20ccd8",
92 "name": "set vnf-level-oper-status to Created",
93 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='Created' />\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",
95 "x": 579.8237457275391,
96 "y": 568.0841431617737,
97 "z": "c9244d8c.dbc33",
103 "id": "6bf31f55.e7d98",
105 "name": "copy input data to service data",
106 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id' value='`$prop.vnf-index`' />\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",
108 "x": 566.6768951416016,
109 "y": 466.0803589820862,
110 "z": "c9244d8c.dbc33",
116 "id": "fe017e7c.6df8",
118 "name": "execute generate-vnf-index",
119 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vnf-index\"/>\n",
122 "x": 559.0103912353516,
123 "y": 404.7469849586487,
124 "z": "c9244d8c.dbc33",
132 "id": "bb192e9e.a5c6c",
134 "name": "set vnf-index to service data",
135 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.vnf-id' value='`$prop.vnf-index`' />\n",
137 "x": 557.0103912353516,
138 "y": 521.7469849586487,
139 "z": "c9244d8c.dbc33",
145 "id": "10180061.fe9e8",
146 "type": "switchNode",
147 "name": "switch service-data.vnfs.vnf_length",
148 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
151 "x": 581.0103912353516,
152 "y": 284.7469849586487,
153 "z": "c9244d8c.dbc33",
162 "id": "da5d62eb.78235",
165 "xml": "<outcome value=''>\n",
168 "x": 836.7247467041016,
169 "y": 274.8898072242737,
170 "z": "c9244d8c.dbc33",
178 "id": "aa63df44.dc701",
180 "name": "set vnf-index=0",
181 "xml": "<set>\n<parameter name='vnf-index' value='0' />\n",
183 "x": 1001.0104675292969,
184 "y": 273.8898854255676,
185 "z": "c9244d8c.dbc33",
191 "id": "6a8033d.3310ccc",
194 "xml": "<outcome value='Other'>\n",
197 "x": 838.1533088684082,
198 "y": 339.17562532424927,
199 "z": "c9244d8c.dbc33",
207 "id": "fde7e6bf.6c5328",
209 "name": "set vnf-index = vnf_length",
210 "xml": "<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n",
212 "x": 1177.0104637145996,
213 "y": 317.4613137245178,
214 "z": "c9244d8c.dbc33",
220 "id": "59c71e1.00ba4e",
222 "name": "for each existing VNF",
223 "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
226 "x": 1162.4389762878418,
227 "y": 363.4612526893616,
228 "z": "c9244d8c.dbc33",
236 "id": "62e804c3.fcb0ec",
243 "x": 973.8675689697266,
244 "y": 339.1755909919739,
245 "z": "c9244d8c.dbc33",
254 "id": "17e77a68.a0edf6",
255 "type": "switchNode",
256 "name": "switch vnf-information.vnf-id == service-data.vnfs.vnf[].vnf-id",
257 "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>\n",
260 "x": 1538.7247467041016,
261 "y": 351.0327515602112,
262 "z": "c9244d8c.dbc33",
270 "id": "5bee4b88.02f404",
271 "type": "outcomeTrue",
273 "xml": "<outcome value='true'>\n",
276 "x": 1639.0103912353516,
277 "y": 420.6041626930237,
278 "z": "c9244d8c.dbc33",
286 "id": "45cdc14c.e4a58",
287 "type": "returnFailure",
288 "name": "return failure",
289 "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",
291 "x": 1664.581802368164,
292 "y": 480.6041626930237,
293 "z": "c9244d8c.dbc33",
299 "id": "22974b6a.26eb04",
301 "name": "make sure this VNF doesn't exist already",
304 "x": 1503.867473602295,
305 "y": 320.6041626930237,
306 "z": "c9244d8c.dbc33",
312 "id": "bc730e3d.2a3f4",
314 "name": "set new vnf_length",
315 "xml": "<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\n",
317 "x": 533.0103912353516,
318 "y": 359.7469849586487,
319 "z": "c9244d8c.dbc33",
325 "id": "fd6d952f.2ce658",
327 "name": "save siteInstance configuration in AAI",
328 "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='generic-vnf' \n key='generic-vnf.vnf-id = $prop.vnf-index' >\n<parameter name='vnf-id' value='`$prop.vnf-index`' />\n<parameter name='vnf-name' value='`$prop.site.name`' />\n<parameter name='vnf-name2' value='`$prop.site.description`' />\n<parameter name='regional-resource-zone' value='`$prop.site.location`' />\n<parameter name='vnf-type' value='prop.site.type' />\n<parameter name='in-maint' value='true' />\n<parameter name='is-closed-loop-disabled' value='false' />\n<parameter name='orchestration-status' value='Created' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-index + '/vnf-data/'` \" />\n",
331 "x": 588.0103797912598,
332 "y": 654.9692330360413,
333 "z": "c9244d8c.dbc33",
341 "id": "bb650f09.4befc",
343 "name": "save service relationship in AAI",
344 "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='service-instance.service-instance-id = $service-data.service-information.service-instance-id \n AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \n AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"generic-vnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/generic-vnfs/generic-vnf/' + $prop.vnf-index`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"generic-vnf.vnf-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vnf-index`\" />",
347 "x": 568.0103912353516,
348 "y": 692.7469849586487,
349 "z": "c9244d8c.dbc33",
357 "id": "c7f37fdc.75322",
359 "name": "set vnf-index and vnf-object-path",
360 "xml": "<set>\n<parameter name='vnfId' value='`$prop.vnf-index`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-index + '/vnf-data/'` \" />",
362 "x": 573.5103912353516,
363 "y": 609.7469849586487,
364 "z": "c9244d8c.dbc33",
370 "id": "8a7774f7.eba7c8",
372 "name": "for loop i - VNF input parameters",
373 "xml": "<for index=\"idx\" start=\"0\" end=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`\">\n",
376 "x": 586.1151275634766,
377 "y": 141.48147916793823,
378 "z": "c9244d8c.dbc33",
386 "id": "359fa75f.492d58",
393 "x": 973.8933715820312,
394 "y": 142.03711557388306,
395 "z": "c9244d8c.dbc33",
408 "id": "f0758e90.0e45c",
409 "type": "switchNode",
410 "name": "switch name",
411 "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'name'`\">\n",
414 "x": 1177.1152682304382,
415 "y": 88.03709030151367,
416 "z": "c9244d8c.dbc33",
424 "id": "665f8a5d.1e1384",
425 "type": "outcomeTrue",
427 "xml": "<outcome value='true'>\n",
430 "x": 1364.1152682304382,
431 "y": 84.03709030151367,
432 "z": "c9244d8c.dbc33",
440 "id": "303b324.5f06cce",
443 "xml": "<set>\n<parameter name='prop.site.name' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
445 "x": 1532.1152682304382,
446 "y": 84.6370964050293,
447 "z": "c9244d8c.dbc33",
453 "id": "2de72527.9a032a",
454 "type": "switchNode",
455 "name": "switch description",
456 "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'description'`\">\n",
459 "x": 1194.9549860954285,
460 "y": 131.0370855331421,
461 "z": "c9244d8c.dbc33",
469 "id": "ea9a727f.74db9",
470 "type": "outcomeTrue",
472 "xml": "<outcome value='true'>\n",
475 "x": 1381.9549860954285,
476 "y": 127.03708553314209,
477 "z": "c9244d8c.dbc33",
485 "id": "965ea5a4.e205c8",
487 "name": "set description",
488 "xml": "<set>\n<parameter name='prop.site.description' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
490 "x": 1543.2884669303894,
491 "y": 126.49824523925781,
492 "z": "c9244d8c.dbc33",
498 "id": "378d80e2.17f6",
499 "type": "switchNode",
500 "name": "switch location",
501 "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'location'`\">\n",
504 "x": 1185.0410990715027,
505 "y": 173.44442749023438,
506 "z": "c9244d8c.dbc33",
514 "id": "aa90cf46.db3a1",
515 "type": "outcomeTrue",
517 "xml": "<outcome value='true'>\n",
520 "x": 1372.0410990715027,
521 "y": 169.44442749023438,
522 "z": "c9244d8c.dbc33",
530 "id": "77618d13.d7cf34",
532 "name": "set location",
533 "xml": "<set>\n<parameter name='prop.site.location' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
535 "x": 1540.0410990715027,
536 "y": 170.04443359375,
537 "z": "c9244d8c.dbc33",
543 "id": "7702e686.8af7a8",
544 "type": "switchNode",
546 "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'id'`\">\n",
549 "x": 1175.0104174613953,
550 "y": 42.010414123535156,
551 "z": "c9244d8c.dbc33",
559 "id": "ed13080f.421188",
560 "type": "outcomeTrue",
562 "xml": "<outcome value='true'>\n",
565 "x": 1362.0104174613953,
566 "y": 38.010414123535156,
567 "z": "c9244d8c.dbc33",
575 "id": "23e732a.cf615ce",
578 "xml": "<set>\n<parameter name='prop.site.id' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
580 "x": 1530.0104174613953,
581 "y": 38.61042022705078,
582 "z": "c9244d8c.dbc33",
588 "id": "75b119e9.762ed8",
589 "type": "switchNode",
590 "name": "switch type",
591 "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'type'`\">\n",
594 "x": 1184.0104174613953,
595 "y": 217.01040649414062,
596 "z": "c9244d8c.dbc33",
604 "id": "2190e18f.1b285e",
605 "type": "outcomeTrue",
607 "xml": "<outcome value='true'>\n",
610 "x": 1371.0104174613953,
611 "y": 213.01040649414062,
612 "z": "c9244d8c.dbc33",
620 "id": "195e7aa3.f12db5",
623 "xml": "<set>\n<parameter name='prop.site.type' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
625 "x": 1539.0104174613953,
626 "y": 213.61041259765625,
627 "z": "c9244d8c.dbc33",
633 "id": "1c70f9bf.47a396",
634 "type": "switchNode",
635 "name": "switch role",
636 "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'role'`\">\n",
639 "x": 1187.0104174613953,
640 "y": 260.0104064941406,
641 "z": "c9244d8c.dbc33",
649 "id": "6e1ae54c.95dc4c",
650 "type": "outcomeTrue",
652 "xml": "<outcome value='true'>\n",
655 "x": 1374.0104174613953,
656 "y": 256.0104064941406,
657 "z": "c9244d8c.dbc33",
665 "id": "338b1db2.4b0a32",
668 "xml": "<set>\n<parameter name='prop.site.role' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
670 "x": 1542.0104174613953,
671 "y": 256.61041259765625,
672 "z": "c9244d8c.dbc33",
678 "id": "63e9e578.e6c03c",
685 "z": "c9244d8c.dbc33",