3 "id": "f782e37.109032",
\r
5 "name": "block : atomic",
\r
6 "xml": "<block atomic=\"true\">\n",
\r
11 "y": 401.1628177165985,
\r
12 "z": "5ddf8caa.1b92e4",
\r
34 "id": "3a0d40d2.1b88f",
\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": 929.2501602172852,
\r
41 "y": 383.82948660850525,
\r
42 "z": "5ddf8caa.1b92e4",
\r
50 "id": "edd147b1.5a9678",
\r
57 "x": 1144.0285034179688,
\r
58 "y": 381.38507056236267,
\r
59 "z": "5ddf8caa.1b92e4",
\r
68 "id": "239191e9.78691e",
\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": 1340.2847061157227,
\r
75 "y": 359.13320899009705,
\r
76 "z": "5ddf8caa.1b92e4",
\r
82 "id": "1a76d1a9.524ade",
\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": 1309.729133605957,
\r
88 "y": 396.13332533836365,
\r
89 "z": "5ddf8caa.1b92e4",
\r
93 "id": "24f00d92.239812",
\r
95 "name": "Take the parameter names by removing prefix",
\r
98 "x": 967.2503623962402,
\r
99 "y": 340.4961540699005,
\r
100 "z": "5ddf8caa.1b92e4",
\r
104 "id": "d535f520.a2b4c8",
\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": 908.1867752075195,
\r
110 "y": 542.3257596492767,
\r
111 "z": "5ddf8caa.1b92e4",
\r
115 "id": "fdf59618.623758",
\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": 915.1863632202148,
\r
121 "y": 437.3170254230499,
\r
122 "z": "5ddf8caa.1b92e4",
\r
126 "id": "9c073f69.f288d",
\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": 920.3531188964844,
\r
132 "y": 650.4963715076447,
\r
133 "z": "5ddf8caa.1b92e4",
\r
137 "id": "8cc9cbda.e9db18",
\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": 908.5000438690186,
\r
143 "y": 702.0002176761627,
\r
144 "z": "5ddf8caa.1b92e4",
\r
148 "id": "1db1621b.e18c6e",
\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": 963.5000228881836,
\r
155 "y": 794.5002000331879,
\r
156 "z": "5ddf8caa.1b92e4",
\r
162 "id": "33fd1f45.d7ff5",
\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": 923.4999389648438,
\r
169 "y": 841.5001881122589,
\r
170 "z": "5ddf8caa.1b92e4",
\r
176 "id": "2ebef402.b67dec",
\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": 874.222484588623,
\r
182 "y": 888.6740472316742,
\r
183 "z": "5ddf8caa.1b92e4",
\r
187 "id": "5957a088.cf332",
\r
188 "type": "switchNode",
\r
189 "name": "switch vnf_length",
\r
190 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
\r
193 "x": 884.4205684661865,
\r
194 "y": 90.66670227050781,
\r
195 "z": "5ddf8caa.1b92e4",
\r
203 "id": "26211aa4.6aca76",
\r
206 "xml": "<outcome value=''>\n",
\r
209 "x": 1071.0872478485107,
\r
211 "z": "5ddf8caa.1b92e4",
\r
219 "id": "60b9b040.3db19",
\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": 1252.7538738250732,
\r
226 "z": "5ddf8caa.1b92e4",
\r
230 "id": "9afb8db9.2b0d5",
\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": 922.6705904006958,
\r
237 "y": 267.66669631004333,
\r
238 "z": "5ddf8caa.1b92e4",
\r
247 "id": "925220d0.8e6e8",
\r
250 "xml": "<outcome value=''>\n",
\r
253 "x": 1153.6706008911133,
\r
254 "y": 243.66669344902039,
\r
255 "z": "5ddf8caa.1b92e4",
\r
263 "id": "8d034f0b.c8c8d",
\r
266 "xml": "<outcome value='Other'>\n",
\r
269 "x": 1153.6706008911133,
\r
270 "y": 283.6666934490204,
\r
271 "z": "5ddf8caa.1b92e4",
\r
279 "id": "f6929bd3.916468",
\r
281 "name": "set vf-index",
\r
282 "xml": "<set>\n<parameter name='vf-index' value='0' />\n",
\r
284 "x": 1296.1706008911133,
\r
285 "y": 243.66669344902039,
\r
286 "z": "5ddf8caa.1b92e4",
\r
290 "id": "28516ca8.58b9a4",
\r
293 "xml": "<block>\n",
\r
297 "x": 1298.027645111084,
\r
298 "y": 283.6032054424286,
\r
299 "z": "5ddf8caa.1b92e4",
\r
308 "id": "e4014c75.a1a78",
\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": 1450.7261199951172,
\r
314 "y": 253.22230413509533,
\r
315 "z": "5ddf8caa.1b92e4",
\r
319 "id": "fe45ce64.2ccb7",
\r
321 "name": "for each existing vf-index",
\r
322 "xml": "<for index='idx' start='0' end='`$vf-index`' >\n",
\r
325 "x": 1507.1546249389648,
\r
326 "y": 306.444433927536,
\r
327 "z": "5ddf8caa.1b92e4",
\r
335 "id": "93986914.2633c8",
\r
337 "name": "make sure this network doesn't exist already",
\r
340 "x": 1730.8053550720215,
\r
341 "y": 264.69849133491516,
\r
342 "z": "5ddf8caa.1b92e4",
\r
346 "id": "c9dd9d48.363c4",
\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": 1782.4403457641602,
\r
353 "y": 306.0159366130829,
\r
354 "z": "5ddf8caa.1b92e4",
\r
362 "id": "3a28d2c1.9fee3e",
\r
363 "type": "outcomeTrue",
\r
365 "xml": "<outcome value='true'>\n",
\r
368 "x": 1683.1705436706543,
\r
369 "y": 364.58736777305603,
\r
370 "z": "5ddf8caa.1b92e4",
\r
378 "id": "c7dfb468.8d2468",
\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": 1830.9206466674805,
\r
384 "y": 364.44455984188244,
\r
385 "z": "5ddf8caa.1b92e4",
\r
389 "id": "1b22ffce.90ac5",
\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": 954.0000381469727,
\r
396 "y": 490.1628510951996,
\r
397 "z": "5ddf8caa.1b92e4",
\r
403 "id": "a78628f7.4e9428",
\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
408 "x": 925.0000076293945,
\r
409 "y": 744.1667354106903,
\r
410 "z": "5ddf8caa.1b92e4",
\r
414 "id": "ceaeb6e4.45d088",
\r
418 "x": 252.00000762939453,
\r
419 "y": 117.16673541069031,
\r
420 "z": "5ddf8caa.1b92e4",
\r
428 "id": "b9aae3a1.4ae74",
\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": 366.5000057220459,
\r
437 "y": 224.16672682762146,
\r
438 "z": "5ddf8caa.1b92e4",
\r
446 "id": "486cfe7f.88b42",
\r
448 "name": "sdwan-vf-operation-lanport-create",
\r
449 "xml": "<method rpc='sdwan-vf-operation-lanport-create' mode='sync'>\n",
\r
452 "x": 365.5000057220459,
\r
453 "y": 324.16672682762146,
\r
454 "z": "5ddf8caa.1b92e4",
\r
462 "id": "9f1428de.0587b8",
\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": 907.0000534057617,
\r
469 "y": 598.6667287349701,
\r
470 "z": "5ddf8caa.1b92e4",
\r
476 "id": "69722b7c.abba54",
\r
478 "name": "for each vnf",
\r
479 "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
\r
482 "x": 873.9999885559082,
\r
483 "y": 145.16673731803894,
\r
484 "z": "5ddf8caa.1b92e4",
\r
492 "id": "c4314464.ea4888",
\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": 1125.0000839233398,
\r
499 "y": 140.83335781097412,
\r
500 "z": "5ddf8caa.1b92e4",
\r
508 "id": "7e2619a7.4c1a38",
\r
509 "type": "outcomeTrue",
\r
511 "xml": "<outcome value='true'>\n",
\r
514 "x": 1343.3334007263184,
\r
515 "y": 142.8333396911621,
\r
516 "z": "5ddf8caa.1b92e4",
\r
524 "id": "e7b8aabb.779c28",
\r
526 "name": "set vnf-index",
\r
527 "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
\r
529 "x": 1496.6665725708008,
\r
530 "y": 142.83336067199707,
\r
531 "z": "5ddf8caa.1b92e4",
\r
535 "id": "86d99a3f.07f208",
\r
536 "type": "switchNode",
\r
537 "name": "switch vnf-index",
\r
538 "xml": "<switch test='`$vnf-index`'>\n",
\r
541 "x": 888.0000076293945,
\r
542 "y": 206.1667354106903,
\r
543 "z": "5ddf8caa.1b92e4",
\r
551 "id": "885839d2.ea1b48",
\r
554 "xml": "<outcome value=''>\n",
\r
557 "x": 1050.0000534057617,
\r
558 "y": 205.166734457016,
\r
559 "z": "5ddf8caa.1b92e4",
\r
567 "id": "1a2b1c2a.3b4624",
\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": 1199.250144958496,
\r
573 "y": 202.94461226463318,
\r
574 "z": "5ddf8caa.1b92e4",
\r