3 "id": "3ecdadeb.18aa62",
\r
5 "name": "block : atomic",
\r
6 "xml": "<block atomic=\"true\">\n",
\r
10 "x": 432.00389862060547,
\r
11 "y": 378.9999885559082,
\r
12 "z": "dfb806d8.8899e8",
\r
34 "id": "b1de8da9.db8a2",
\r
36 "name": "for loop idx - VF input parameters",
\r
37 "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
40 "x": 778.2540588378906,
\r
41 "y": 361.66665744781494,
\r
42 "z": "dfb806d8.8899e8",
\r
50 "id": "d245ffbf.59c6c",
\r
57 "x": 993.0324020385742,
\r
58 "y": 359.22224140167236,
\r
59 "z": "dfb806d8.8899e8",
\r
68 "id": "82c635c3.382618",
\r
70 "name": "execute split parameterName",
\r
71 "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
74 "x": 1189.2886047363281,
\r
75 "y": 336.97037982940674,
\r
76 "z": "dfb806d8.8899e8",
\r
82 "id": "bcda53d8.f6893",
\r
84 "name": "set parameterName",
\r
85 "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
87 "x": 1158.7330322265625,
\r
88 "y": 373.97049617767334,
\r
89 "z": "dfb806d8.8899e8",
\r
93 "id": "ac17a6a.af45258",
\r
95 "name": "Take the parameter names by removing prefix",
\r
98 "x": 816.2542610168457,
\r
99 "y": 318.3333249092102,
\r
100 "z": "dfb806d8.8899e8",
\r
104 "id": "c4e200e6.2e02b",
\r
106 "name": "set new vf-module_length",
\r
107 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index + 1`' />",
\r
109 "x": 757.190673828125,
\r
110 "y": 520.1629304885864,
\r
111 "z": "dfb806d8.8899e8",
\r
115 "id": "d704787.9944088",
\r
117 "name": "set vf-module-request-input.",
\r
118 "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$vf-module-topology-operation-input.vf-module-request-input.`' />\n",
\r
120 "x": 764.1902618408203,
\r
121 "y": 415.1541962623596,
\r
122 "z": "dfb806d8.8899e8",
\r
126 "id": "7e93696e.840218",
\r
128 "name": "copy input data to service data",
\r
129 "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
131 "x": 769.3570175170898,
\r
132 "y": 628.3335423469543,
\r
133 "z": "dfb806d8.8899e8",
\r
137 "id": "676ec3b1.844d3c",
\r
139 "name": "set vf-module-object-path",
\r
140 "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
142 "x": 757.503942489624,
\r
143 "y": 679.8373885154724,
\r
144 "z": "dfb806d8.8899e8",
\r
148 "id": "e3e05047.2e5b8",
\r
150 "name": "save sdwan lan-port-config resource in AAI",
\r
151 "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='lan-port-config' \n key='lan-port-config.lan-port-config-id = $prop.vf-id' >\n<parameter name=\"lan-port-config-id\" value=\"`$prop.vf-id`\" />\n<parameter name=\"device-id\" value='`$prop.lan.deviceName`' />\n<parameter name=\"port-switch\" value='`$prop.lan.portSwitch`' />\n<parameter name=\"port-type\" value='`$prop.lan.portType`' />\n<parameter name=\"port-number\" value='`$prop.lan.portnumber`' />\n<parameter name=\"ipv4-address\" value='`$prop.lan.ipAddress`' />\n<parameter name='vlan-tag' value='`$prop.lan.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-version`' />\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
154 "x": 812.5039215087891,
\r
155 "y": 772.3373708724976,
\r
156 "z": "dfb806d8.8899e8",
\r
162 "id": "91a71daa.ef5c2",
\r
164 "name": "save service relationship in AAI",
\r
165 "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[0].related-to\" value=\"lan-port-config\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/lan-port-configs/lan-port-config/' + $prop.vf-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"lan-port-config-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vf-id`\" />\n",
\r
168 "x": 772.5038375854492,
\r
169 "y": 819.3373589515686,
\r
170 "z": "dfb806d8.8899e8",
\r
176 "id": "b3c3b183.55c72",
\r
177 "type": "returnSuccess",
\r
178 "name": "return success",
\r
179 "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
181 "x": 723.2263832092285,
\r
182 "y": 866.5112180709839,
\r
183 "z": "dfb806d8.8899e8",
\r
187 "id": "5f812e79.2be7e",
\r
188 "type": "switchNode",
\r
189 "name": "switch vnf_length",
\r
190 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
\r
193 "x": 733.424467086792,
\r
194 "y": 68.5038731098175,
\r
195 "z": "dfb806d8.8899e8",
\r
203 "id": "ecb5481e.49db98",
\r
206 "xml": "<outcome value=''>\n",
\r
209 "x": 920.0911464691162,
\r
210 "y": 67.83717083930969,
\r
211 "z": "dfb806d8.8899e8",
\r
219 "id": "5cc69be0.888194",
\r
220 "type": "returnFailure",
\r
221 "name": "return failure",
\r
222 "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
224 "x": 1101.7577724456787,
\r
225 "y": 67.83717083930969,
\r
226 "z": "dfb806d8.8899e8",
\r
230 "id": "2b234f37.76666",
\r
231 "type": "switchNode",
\r
232 "name": "switch vf-modules.vf-module_length",
\r
233 "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",
\r
236 "x": 771.6744890213013,
\r
237 "y": 245.50386714935303,
\r
238 "z": "dfb806d8.8899e8",
\r
247 "id": "43b76269.61638c",
\r
250 "xml": "<outcome value=''>\n",
\r
253 "x": 1002.6744995117188,
\r
254 "y": 221.50386428833008,
\r
255 "z": "dfb806d8.8899e8",
\r
263 "id": "80f9fdd1.5acfa",
\r
266 "xml": "<outcome value='Other'>\n",
\r
269 "x": 1002.6744995117188,
\r
270 "y": 261.5038642883301,
\r
271 "z": "dfb806d8.8899e8",
\r
279 "id": "30daa7e7.f7d908",
\r
281 "name": "set vf-index",
\r
282 "xml": "<set>\n<parameter name='vf-index' value='0' />\n",
\r
284 "x": 1145.1744995117188,
\r
285 "y": 221.50386428833008,
\r
286 "z": "dfb806d8.8899e8",
\r
290 "id": "15ffa14c.a3471f",
\r
293 "xml": "<block>\n",
\r
297 "x": 1147.0315437316895,
\r
298 "y": 261.4403762817383,
\r
299 "z": "dfb806d8.8899e8",
\r
308 "id": "1c59d473.dd26bc",
\r
310 "name": "set vf-index",
\r
311 "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
313 "x": 1299.7300186157227,
\r
314 "y": 231.05947497440502,
\r
315 "z": "dfb806d8.8899e8",
\r
319 "id": "81c65311.3e7fa",
\r
321 "name": "for each existing vf-index",
\r
322 "xml": "<for index='idx' start='0' end='`$vf-index`' >\n",
\r
325 "x": 1356.1585235595703,
\r
326 "y": 284.2816047668457,
\r
327 "z": "dfb806d8.8899e8",
\r
335 "id": "85ce8231.1cc8f",
\r
337 "name": "make sure this network doesn't exist already",
\r
340 "x": 1579.809253692627,
\r
341 "y": 242.53566217422485,
\r
342 "z": "dfb806d8.8899e8",
\r
346 "id": "aaf0ab5e.460008",
\r
347 "type": "switchNode",
\r
348 "name": "switch vf-module-id found",
\r
349 "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
352 "x": 1631.4442443847656,
\r
353 "y": 283.8531074523926,
\r
354 "z": "dfb806d8.8899e8",
\r
362 "id": "1a7eae6b.66a2b2",
\r
363 "type": "outcomeTrue",
\r
365 "xml": "<outcome value='true'>\n",
\r
368 "x": 1532.1744422912598,
\r
369 "y": 342.4245386123657,
\r
370 "z": "dfb806d8.8899e8",
\r
378 "id": "40223de2.189ee4",
\r
379 "type": "returnFailure",
\r
380 "name": "return failure",
\r
381 "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
383 "x": 1679.924545288086,
\r
384 "y": 342.28173068119213,
\r
385 "z": "dfb806d8.8899e8",
\r
389 "id": "7dbca450.42794c",
\r
391 "name": "call sdwan-get-vf-module-lanport-param",
\r
392 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-lanport-param' mode='sync' >\n",
\r
395 "x": 803.0039367675781,
\r
396 "y": 468.0000219345093,
\r
397 "z": "dfb806d8.8899e8",
\r
403 "id": "d01634bb.bb46b8",
\r
405 "name": "set vf-module-level-oper-status",
\r
406 "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
410 "z": "dfb806d8.8899e8",
\r
414 "id": "80c0749d.c5b758",
\r
420 "z": "dfb806d8.8899e8",
\r
428 "id": "1e8e9be2.f38a84",
\r
429 "type": "service-logic",
\r
430 "name": "GENERIC-RESOURCE-API ${project.version}",
\r
431 "module": "GENERIC-RESOURCE-API",
\r
432 "version": "${project.version}",
\r
434 "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
436 "x": 215.50390434265137,
\r
437 "y": 202.00389766693115,
\r
438 "z": "dfb806d8.8899e8",
\r
446 "id": "441193b5.7a563c",
\r
448 "name": "sdwan-vf-operation-lanport-create",
\r
449 "xml": "<method rpc='sdwan-vf-operation-lanport-create' mode='sync'>\n",
\r
452 "x": 214.50390434265137,
\r
453 "y": 302.00389766693115,
\r
454 "z": "dfb806d8.8899e8",
\r
462 "id": "43cde2b5.87e1ac",
\r
464 "name": "execute generate-vf-id",
\r
465 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vf-id\"/>\n",
\r
468 "x": 756.0039520263672,
\r
469 "y": 576.5038995742798,
\r
470 "z": "dfb806d8.8899e8",
\r
476 "id": "c6fbc47.00d1938",
\r
478 "name": "for each vnf",
\r
479 "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
\r
482 "x": 723.0038871765137,
\r
483 "y": 123.00390815734863,
\r
484 "z": "dfb806d8.8899e8",
\r
492 "id": "a2640a51.5d0d78",
\r
493 "type": "switchNode",
\r
494 "name": "switch this vnf-id == input vnf-id",
\r
495 "xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\"> \n",
\r
498 "x": 974.0039825439453,
\r
499 "y": 118.67052865028381,
\r
500 "z": "dfb806d8.8899e8",
\r
508 "id": "d22976f8.730608",
\r
509 "type": "outcomeTrue",
\r
511 "xml": "<outcome value='true'>\n",
\r
514 "x": 1192.3372993469238,
\r
515 "y": 120.6705105304718,
\r
516 "z": "dfb806d8.8899e8",
\r
524 "id": "92022bc5.0cdcc8",
\r
526 "name": "set vnf-index",
\r
527 "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
\r
529 "x": 1345.6704711914062,
\r
530 "y": 120.67053151130676,
\r
531 "z": "dfb806d8.8899e8",
\r
535 "id": "98c6c3b2.42b6b",
\r
536 "type": "switchNode",
\r
537 "name": "switch vnf-index",
\r
538 "xml": "<switch test='`$vnf-index`'>\n",
\r
543 "z": "dfb806d8.8899e8",
\r
551 "id": "681068c6.40fb78",
\r
554 "xml": "<outcome value=''>\n",
\r
557 "x": 899.0039520263672,
\r
558 "y": 183.00390529632568,
\r
559 "z": "dfb806d8.8899e8",
\r
567 "id": "f9b4e412.cab938",
\r
568 "type": "returnFailure",
\r
569 "name": "return failure",
\r
570 "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
572 "x": 1048.2540435791016,
\r
573 "y": 180.78178310394287,
\r
574 "z": "dfb806d8.8899e8",
\r