3 "id": "e9f5d8f7.e285a8",
\r
7 "x": 83.47266006469727,
\r
9 "z": "8abb02c9.ea909",
\r
17 "id": "f361420f.d2dd5",
\r
18 "type": "service-logic",
\r
19 "name": "GENERIC-RESOURCE-API ${project.version}",
\r
20 "module": "GENERIC-RESOURCE-API",
\r
21 "version": "${project.version}",
\r
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}'>",
\r
25 "x": 214.75835037231445,
\r
26 "y": 75.23810863494873,
\r
27 "z": "8abb02c9.ea909",
\r
35 "id": "83b54aea.5a2e08",
\r
37 "name": "method sotn-vf-operation-uni-create",
\r
38 "xml": "<method rpc='sotn-vf-operation-uni-create' mode='sync'>\n",
\r
41 "x": 217.9012794494629,
\r
42 "y": 160.00003242492676,
\r
43 "z": "8abb02c9.ea909",
\r
51 "id": "129ae0d2.67909f",
\r
52 "type": "switchNode",
\r
53 "name": "switch vnf_length",
\r
54 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
\r
59 "z": "8abb02c9.ea909",
\r
67 "id": "4518c55e.2af6cc",
\r
70 "xml": "<outcome value=''>\n",
\r
73 "x": 778.6666793823242,
\r
74 "y": 44.33329772949219,
\r
75 "z": "8abb02c9.ea909",
\r
83 "id": "49f6673c.896c38",
\r
84 "type": "returnFailure",
\r
85 "name": "return failure",
\r
86 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"There are no VNFs in MD-SAL\" />\n",
\r
88 "x": 960.3333053588867,
\r
89 "y": 44.33329772949219,
\r
90 "z": "8abb02c9.ea909",
\r
94 "id": "344a6d66.006ae2",
\r
96 "name": "for each vnf",
\r
97 "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
\r
100 "x": 581.5794200897217,
\r
101 "y": 99.50003504753113,
\r
102 "z": "8abb02c9.ea909",
\r
110 "id": "b740b835.934dd8",
\r
111 "type": "switchNode",
\r
112 "name": "switch this vnf-id == input vnf-id",
\r
113 "xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\"> \n",
\r
116 "x": 832.5795154571533,
\r
117 "y": 95.16665554046631,
\r
118 "z": "8abb02c9.ea909",
\r
126 "id": "7d8c54e9.05fcdc",
\r
127 "type": "outcomeTrue",
\r
129 "xml": "<outcome value='true'>\n",
\r
132 "x": 1050.9128322601318,
\r
133 "y": 97.1666374206543,
\r
134 "z": "8abb02c9.ea909",
\r
142 "id": "4090d448.987d9c",
\r
144 "name": "set vnf-index",
\r
145 "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
\r
147 "x": 1204.2460041046143,
\r
148 "y": 97.16665840148926,
\r
149 "z": "8abb02c9.ea909",
\r
153 "id": "d6f734d6.542738",
\r
154 "type": "switchNode",
\r
155 "name": "switch vnf-index",
\r
156 "xml": "<switch test='`$vnf-index`'>\n",
\r
159 "x": 595.579439163208,
\r
160 "y": 160.5000331401825,
\r
161 "z": "8abb02c9.ea909",
\r
169 "id": "cc5e7b73.313338",
\r
172 "xml": "<outcome value=''>\n",
\r
175 "x": 757.5794849395752,
\r
176 "y": 159.50003218650818,
\r
177 "z": "8abb02c9.ea909",
\r
185 "id": "d5e799c5.aa66e8",
\r
186 "type": "returnFailure",
\r
187 "name": "return failure",
\r
188 "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 not found in service-data\" />\n",
\r
190 "x": 906.8295764923096,
\r
191 "y": 157.27790999412537,
\r
192 "z": "8abb02c9.ea909",
\r
196 "id": "2e3b155c.1acdba",
\r
197 "type": "switchNode",
\r
198 "name": "switch vf-modules.vf-module_length",
\r
199 "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",
\r
202 "x": 630.2500219345093,
\r
203 "y": 221.99999403953552,
\r
204 "z": "8abb02c9.ea909",
\r
213 "id": "d6b8c302.00cb5",
\r
216 "xml": "<outcome value=''>\n",
\r
219 "x": 861.2500324249268,
\r
220 "y": 197.99999117851257,
\r
221 "z": "8abb02c9.ea909",
\r
229 "id": "74fd2b9a.39bbc4",
\r
232 "xml": "<outcome value='Other'>\n",
\r
235 "x": 861.2500324249268,
\r
236 "y": 237.99999117851257,
\r
237 "z": "8abb02c9.ea909",
\r
245 "id": "b130c62a.6d5b28",
\r
247 "name": "set vf-index",
\r
248 "xml": "<set>\n<parameter name='vf-index' value='0' />\n",
\r
250 "x": 1003.7500324249268,
\r
251 "y": 197.99999117851257,
\r
252 "z": "8abb02c9.ea909",
\r
256 "id": "aa20e5dd.34f068",
\r
259 "xml": "<block>\n",
\r
263 "x": 1005.6070766448975,
\r
264 "y": 237.93650317192078,
\r
265 "z": "8abb02c9.ea909",
\r
274 "id": "ba0b306b.1384c",
\r
276 "name": "set vf-index",
\r
277 "xml": "<set>\n<parameter name='vf-index' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n\n\n",
\r
279 "x": 1158.3055515289307,
\r
280 "y": 207.55560186458752,
\r
281 "z": "8abb02c9.ea909",
\r
285 "id": "290ec3b5.b78dec",
\r
287 "name": "for each existing vf-index",
\r
288 "xml": "<for index='idx' start='0' end='`$vf-index`' >\n",
\r
291 "x": 1214.7340564727783,
\r
292 "y": 260.7777316570282,
\r
293 "z": "8abb02c9.ea909",
\r
301 "id": "55b24f6b.1c68",
\r
303 "name": "make sure this network doesn't exist already",
\r
306 "x": 1438.384786605835,
\r
307 "y": 219.03178906440735,
\r
308 "z": "8abb02c9.ea909",
\r
312 "id": "f5468be4.2d7768",
\r
313 "type": "switchNode",
\r
314 "name": "switch vf-module-id found",
\r
315 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",
\r
318 "x": 1490.0197772979736,
\r
319 "y": 260.3492343425751,
\r
320 "z": "8abb02c9.ea909",
\r
328 "id": "416b188c.9635e8",
\r
329 "type": "outcomeTrue",
\r
331 "xml": "<outcome value='true'>\n",
\r
334 "x": 1390.7499752044678,
\r
335 "y": 318.9206655025482,
\r
336 "z": "8abb02c9.ea909",
\r
344 "id": "5ff9d421.bc0c2c",
\r
345 "type": "returnFailure",
\r
346 "name": "return failure",
\r
347 "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=\"service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id already found in service-data\" />\n",
\r
349 "x": 1538.500078201294,
\r
350 "y": 318.7778575713746,
\r
351 "z": "8abb02c9.ea909",
\r
355 "id": "a3005c7c.22f1c",
\r
357 "name": "Take the parameter names by removing prefix",
\r
360 "x": 674.8297939300537,
\r
361 "y": 294.8294517993927,
\r
362 "z": "8abb02c9.ea909",
\r
366 "id": "c2f9b109.0e45",
\r
368 "name": "for loop idx - VF input parameters",
\r
369 "xml": "<for index=\"idx\" start=\"0\" end=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`\">\n\n",
\r
372 "x": 636.8295917510986,
\r
373 "y": 338.16278433799744,
\r
374 "z": "8abb02c9.ea909",
\r
382 "id": "c2930fc2.e5909",
\r
385 "xml": "<block>\n",
\r
389 "x": 851.6079349517822,
\r
390 "y": 335.71836829185486,
\r
391 "z": "8abb02c9.ea909",
\r
400 "id": "d1ed645d.aa3a78",
\r
402 "name": "execute split parameterName",
\r
403 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].name`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n",
\r
406 "x": 1047.8641376495361,
\r
407 "y": 313.46650671958923,
\r
408 "z": "8abb02c9.ea909",
\r
414 "id": "6dcf8b92.c77424",
\r
416 "name": "set parameterName",
\r
417 "xml": "<set>\n<parameter name=\"`vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n",
\r
419 "x": 1017.3085651397705,
\r
420 "y": 350.46662306785583,
\r
421 "z": "8abb02c9.ea909",
\r
425 "id": "d23ea373.2facb",
\r
427 "name": "block : atomic",
\r
428 "xml": "<block atomic=\"true\">\n",
\r
432 "x": 290.5794315338135,
\r
433 "y": 355.4961154460907,
\r
434 "z": "8abb02c9.ea909",
\r
457 "id": "d001c737.a47218",
\r
458 "type": "returnSuccess",
\r
459 "name": "return success",
\r
460 "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",
\r
462 "x": 577.8019104003906,
\r
463 "y": 893.00732421875,
\r
464 "z": "8abb02c9.ea909",
\r
468 "id": "91211121.8f53",
\r
470 "name": "save service relationship in AAI",
\r
471 "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' 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[$tmp.relationship_length].related-to`\" value=\"uni\" />\n<parameter name=\"`relationship-list.relationship[$tmp.relationship_length].related-link`\" value=\"`'/network/unis/uni/' + $prop.vf-id`\" />\n<parameter name=\"`relationship-list.relationship[$tmp.relationship_length].relationship-data[0].relationship-key`\" value=\"id\" />\n<parameter name=\"`relationship-list.relationship[$tmp.relationship_length].relationship-data[0].relationship-value`\" value=\"`$prop.vf-id`\" />\n",
\r
474 "x": 633.0794067382812,
\r
475 "y": 851.83349609375,
\r
476 "z": "8abb02c9.ea909",
\r
482 "id": "42215efb.1d8e4",
\r
484 "name": "save uni resource in AAI",
\r
485 "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n key='uni.id = $prop.vf-id' >\n<parameter name=\"id\" value=\"`$prop.vf-id`\" />\n<parameter name=\"tpId\" value='`$prop.uni.tpId`' />\n<parameter name='cVLAN' value='`$prop.uni.vlanId`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module/' + $prop.vf-id + '/vf-module-data/'` \" />\n",
\r
488 "x": 615.0794677734375,
\r
489 "y": 747.83349609375,
\r
490 "z": "8abb02c9.ea909",
\r
496 "id": "b74ff3ee.b1d98",
\r
498 "name": "set vf-module-level-oper-status",
\r
499 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.order-status' value='Created' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.last-rpc-action' value='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.last-action' value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />\n",
\r
501 "x": 632.579439163208,
\r
502 "y": 698.5000331401825,
\r
503 "z": "8abb02c9.ea909",
\r
507 "id": "7c53c20f.68b9dc",
\r
509 "name": "set vf-module-object-path",
\r
510 "xml": "<set>\n<parameter name='vf-module-id' value='`$prop.vf-id`'/> \n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-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/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-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 + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
\r
512 "x": 616.079475402832,
\r
513 "y": 656.3335154056549,
\r
514 "z": "8abb02c9.ea909",
\r
518 "id": "a11f77d.859bf88",
\r
520 "name": "copy input data to service data",
\r
521 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-id' value='`$prop.vf-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.sdnc-request-header.' value='`$vf-module-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.request-information.' value='`$vf-module-topology-operation-input.request-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.service-information.' value='`$vf-module-topology-operation-input.service-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vnf-information.' value='`$vf-module-topology-operation-input.vnf-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-request-input.' value='`$vf-module-topology-operation-input.vf-module-request-input.`' />\n\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-topology.' value='`$tmp.vf-module-topology.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index+1`' />\n",
\r
523 "x": 627.9325504302979,
\r
524 "y": 604.8296692371368,
\r
525 "z": "8abb02c9.ea909",
\r
529 "id": "c0fe8566.aad758",
\r
531 "name": "set new vf-module_length",
\r
532 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index + 1`' />",
\r
536 "z": "8abb02c9.ea909",
\r
540 "id": "3cca5aeb.576896",
\r
542 "name": "set vf-module-request-input.",
\r
543 "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$vf-module-topology-operation-input.vf-module-request-input.`' />\n",
\r
545 "x": 614.9995880126953,
\r
546 "y": 391.9912657737732,
\r
547 "z": "8abb02c9.ea909",
\r
551 "id": "6ba0a91d.74fdb8",
\r
553 "name": "call sotn-get-vf-module-uni-param",
\r
554 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-vf-module-uni-param' mode='sync' >\n",
\r
557 "x": 653.8132629394531,
\r
558 "y": 444.83709144592285,
\r
559 "z": "8abb02c9.ea909",
\r
565 "id": "3368b1eb.e464fe",
\r
567 "name": "execute generate-vf-id",
\r
568 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vf-id\"/>\n",
\r
571 "x": 606.8132781982422,
\r
572 "y": 553.3409690856934,
\r
573 "z": "8abb02c9.ea909",
\r
579 "id": "29fa2ed2.416422",
\r
580 "type": "get-resource",
\r
581 "name": "get-resource generic-vnf",
\r
582 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"generic-vnf\" \n\t\tkey=\"'generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id' \n\t\tAND depth = '0'\"\n pfx='tmp.aai.generic-vnf' local-only='false' >\n\n\n",
\r
587 "z": "8abb02c9.ea909",
\r
595 "id": "5c744e64.d3743",
\r
598 "xml": "<block>\n",
\r
604 "z": "8abb02c9.ea909",
\r
612 "id": "79532ac9.38abe4",
\r
614 "name": "set tmp.relationship_length",
\r
615 "xml": "<set>\n<parameter name=\"tmp.relationship_length\" value='`$tmp.aai.generic-vnf.relationship-list.relation_length`'/>\n",
\r
619 "z": "8abb02c9.ea909",
\r