3 "id": "86705660.0abdc8",
\r
5 "name": "block : atomic",
\r
6 "xml": "<block atomic=\"true\">\n",
\r
11 "y": 401.9999997615814,
\r
12 "z": "12e5b519.7c42cb",
\r
32 "id": "4414eba1.be7024",
\r
33 "type": "service-logic",
\r
34 "name": "GENERIC-RESOURCE-API ${project.version}",
\r
35 "module": "GENERIC-RESOURCE-API",
\r
36 "version": "${project.version}",
\r
38 "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
40 "x": 318.00392150878906,
\r
41 "y": 185.99999117851257,
\r
42 "z": "12e5b519.7c42cb",
\r
50 "id": "665e6349.0f20bc",
\r
52 "name": "sdwan-vf-operation-vpn-create",
\r
53 "xml": "<method rpc='sdwan-vf-operation-vpn-create' mode='sync'>\n",
\r
56 "x": 317.00392150878906,
\r
57 "y": 285.9999911785126,
\r
58 "z": "12e5b519.7c42cb",
\r
66 "id": "c5e65dcf.93a1d",
\r
70 "x": 147.50392150878906,
\r
71 "y": 96.9999988079071,
\r
72 "z": "12e5b519.7c42cb",
\r
80 "id": "c9956259.20d27",
\r
82 "name": "for loop idx - VF input parameters",
\r
83 "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
86 "x": 851.2541379928589,
\r
87 "y": 410.66667890548706,
\r
88 "z": "12e5b519.7c42cb",
\r
96 "id": "5f7e52d8.71003c",
\r
103 "x": 1066.0324811935425,
\r
104 "y": 408.2222628593445,
\r
105 "z": "12e5b519.7c42cb",
\r
114 "id": "b5888647.1272c8",
\r
116 "name": "execute split parameterName",
\r
117 "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
120 "x": 1262.2886838912964,
\r
121 "y": 385.97040128707886,
\r
122 "z": "12e5b519.7c42cb",
\r
128 "id": "f88a8224.ffbd4",
\r
130 "name": "set parameterName",
\r
131 "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
133 "x": 1231.7331113815308,
\r
134 "y": 422.97051763534546,
\r
135 "z": "12e5b519.7c42cb",
\r
139 "id": "84649b93.490df8",
\r
141 "name": "Take the parameter names by removing prefix",
\r
144 "x": 1235.254340171814,
\r
145 "y": 345.33334732055664,
\r
146 "z": "12e5b519.7c42cb",
\r
150 "id": "33a55b62.a48504",
\r
151 "type": "switchNode",
\r
152 "name": "switch vf-modules.vf-module_length",
\r
153 "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",
\r
156 "x": 833.0039367675781,
\r
157 "y": 264.0000157356262,
\r
158 "z": "12e5b519.7c42cb",
\r
167 "id": "5e528a3d.403a94",
\r
170 "xml": "<outcome value=''>\n",
\r
173 "x": 1064.0039472579956,
\r
174 "y": 240.00001287460327,
\r
175 "z": "12e5b519.7c42cb",
\r
183 "id": "e1430919.889a48",
\r
186 "xml": "<outcome value='Other'>\n",
\r
189 "x": 1064.0039472579956,
\r
190 "y": 280.00001287460327,
\r
191 "z": "12e5b519.7c42cb",
\r
199 "id": "d1fe70de.0d5a2",
\r
201 "name": "set vf-index",
\r
202 "xml": "<set>\n<parameter name='vf-index' value='0' />\n",
\r
204 "x": 1206.5039472579956,
\r
205 "y": 240.00001287460327,
\r
206 "z": "12e5b519.7c42cb",
\r
210 "id": "550ac6cc.1a43f8",
\r
213 "xml": "<block>\n",
\r
217 "x": 1208.3609914779663,
\r
218 "y": 279.9365248680115,
\r
219 "z": "12e5b519.7c42cb",
\r
228 "id": "735539ef.d045e8",
\r
230 "name": "set vf-index",
\r
231 "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
233 "x": 1361.0594663619995,
\r
234 "y": 249.5556235606782,
\r
235 "z": "12e5b519.7c42cb",
\r
239 "id": "2b30e41b.b2df2c",
\r
241 "name": "for each existing vf-index",
\r
242 "xml": "<for index='idx' start='0' end='`$vf-index`' >\n",
\r
245 "x": 1417.4879713058472,
\r
246 "y": 302.7777533531189,
\r
247 "z": "12e5b519.7c42cb",
\r
255 "id": "87bb5bc0.359988",
\r
257 "name": "make sure this network doesn't exist already",
\r
260 "x": 1641.1387014389038,
\r
261 "y": 261.03181076049805,
\r
262 "z": "12e5b519.7c42cb",
\r
266 "id": "e7001097.30f29",
\r
267 "type": "switchNode",
\r
268 "name": "switch vf-module-id found",
\r
269 "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
272 "x": 1692.7736921310425,
\r
273 "y": 302.34925603866577,
\r
274 "z": "12e5b519.7c42cb",
\r
282 "id": "c77c794f.c68788",
\r
283 "type": "outcomeTrue",
\r
285 "xml": "<outcome value='true'>\n",
\r
288 "x": 1593.5038900375366,
\r
289 "y": 360.9206871986389,
\r
290 "z": "12e5b519.7c42cb",
\r
298 "id": "1ae23876.21a108",
\r
299 "type": "returnFailure",
\r
300 "name": "return failure",
\r
301 "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
303 "x": 1741.2539930343628,
\r
304 "y": 360.7778792674653,
\r
305 "z": "12e5b519.7c42cb",
\r
309 "id": "1072d79c.c97df8",
\r
311 "name": "copy input data to service data",
\r
312 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-id' value='`$prop.vpn-vf-index`' />\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\n\n",
\r
314 "x": 846.8571271896362,
\r
315 "y": 713.4962668418884,
\r
316 "z": "12e5b519.7c42cb",
\r
320 "id": "96b8a138.b9de9",
\r
322 "name": "execute generate-vf-module-index",
\r
323 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vpn-vf-index\"/>\n",
\r
326 "x": 858.1906995773315,
\r
327 "y": 666.1629691123962,
\r
328 "z": "12e5b519.7c42cb",
\r
334 "id": "fa6a2af9.45d408",
\r
336 "name": "set new vf-module_length",
\r
337 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index + 1`' />",
\r
339 "x": 830.1907606124878,
\r
340 "y": 617.1629691123962,
\r
341 "z": "12e5b519.7c42cb",
\r
345 "id": "92e109fc.d487c8",
\r
347 "name": "set vf-module-request-input.",
\r
348 "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$vf-module-topology-operation-input.vf-module-request-input.`' />\n",
\r
350 "x": 830.1902875900269,
\r
351 "y": 563.1542572975159,
\r
352 "z": "12e5b519.7c42cb",
\r
356 "id": "7fb4c42e.fff1cc",
\r
358 "name": "set vf-module-level-oper-status",
\r
359 "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`' />",
\r
361 "x": 840.5041151046753,
\r
362 "y": 811.000087916851,
\r
363 "z": "12e5b519.7c42cb",
\r
367 "id": "69439d08.c30934",
\r
369 "name": "save sdwan vpn resource in AAI",
\r
370 "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='sdwan-vpn' \n key='sdwan-vpn.sdwan-vpn-id = $prop.vpn-vf-index' >\n<parameter name='sdwan-vpn-id' value='`$prop.vpn-vf-index`' />\n<parameter name='sdwan-vpn-name' value='`$prop.name`' />\n<parameter name='topology' value='`$prop.topology`' />\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.vpn-vf-index + '/vf-module-data/'` \" />\n",
\r
373 "x": 847.0039758682251,
\r
374 "y": 856.5000357627869,
\r
375 "z": "12e5b519.7c42cb",
\r
381 "id": "8252c529.c8dc08",
\r
382 "type": "returnSuccess",
\r
383 "name": "return success",
\r
384 "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
386 "x": 794.7264490127563,
\r
387 "y": 949.6739263534546,
\r
388 "z": "12e5b519.7c42cb",
\r
392 "id": "d1676675.1b3088",
\r
394 "name": "for loop i - Network input parameters",
\r
395 "xml": "<for index=\"idx\" start=\"0\" end=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`\">\n",
\r
398 "x": 858.2578535079956,
\r
399 "y": 499.5039267539978,
\r
400 "z": "12e5b519.7c42cb",
\r
408 "id": "63318660.a4e798",
\r
411 "xml": "<block>\n",
\r
415 "x": 1145.480731010437,
\r
416 "y": 499.7262406349182,
\r
417 "z": "12e5b519.7c42cb",
\r
426 "id": "1e3ec759.b2be29",
\r
427 "type": "switchNode",
\r
428 "name": "switch name",
\r
429 "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'name'`\">\n\n",
\r
432 "x": 1333.7025747299194,
\r
433 "y": 482.05954480171204,
\r
434 "z": "12e5b519.7c42cb",
\r
442 "id": "bfacfb85.875b78",
\r
443 "type": "switchNode",
\r
444 "name": "switch topology",
\r
445 "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'topology'`\">",
\r
448 "x": 1344.5422353744507,
\r
449 "y": 522.0595428943634,
\r
450 "z": "12e5b519.7c42cb",
\r
458 "id": "4c3c07dc.109bb8",
\r
459 "type": "outcomeTrue",
\r
461 "xml": "<outcome value='true'>\n",
\r
464 "x": 1520.7025747299194,
\r
465 "y": 478.05954480171204,
\r
466 "z": "12e5b519.7c42cb",
\r
474 "id": "8910bf6.fa8bd4",
\r
475 "type": "outcomeTrue",
\r
477 "xml": "<outcome value='true'>\n",
\r
480 "x": 1514.5422353744507,
\r
481 "y": 518.0595428943634,
\r
482 "z": "12e5b519.7c42cb",
\r
490 "id": "330c74f0.0fa8ac",
\r
492 "name": "set name",
\r
493 "xml": "<set>\n<parameter name='prop.name' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />\n\n",
\r
495 "x": 1670.7027044296265,
\r
496 "y": 476.6595513820648,
\r
497 "z": "12e5b519.7c42cb",
\r
501 "id": "c760e70.ca63518",
\r
503 "name": "set topology",
\r
504 "xml": "<set>\n<parameter name='prop.topology' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />\n",
\r
506 "x": 1701.8756761550903,
\r
507 "y": 516.5206997394562,
\r
508 "z": "12e5b519.7c42cb",
\r
512 "id": "80911d80.565f6",
\r
514 "name": "call GENERIC-RESOURCE-API:validate-sdwan-vf-vpn-input-parameters",
\r
515 "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sdwan-vf-vpn-input-parameters' mode='sync' >\n",
\r
518 "x": 954.5077972412109,
\r
519 "y": 190.0039086341858,
\r
520 "z": "12e5b519.7c42cb",
\r
526 "id": "f1c0f2fa.5d8e8",
\r
528 "name": "set vf-module-object-path",
\r
529 "xml": "<set>\n<parameter name='vf-module-id' value='`$prop.vpn-vf-index`' />\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 + $prop.vpn-vf-index\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
531 "x": 832.5039930343628,
\r
532 "y": 762.0313073992729,
\r
533 "z": "12e5b519.7c42cb",
\r
537 "id": "a6352f7.5aa86d",
\r
539 "name": "save service relationship in AAI",
\r
540 "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=\"sdwan-vpn\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/sdwan-vpns/sdwan-vpn/' + $prop.vpn-vf-index`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"sdwan-vpn.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vpn-vf-index`\" />\n\n",
\r
543 "x": 847.004054069519,
\r
544 "y": 904.0001769065857,
\r
545 "z": "12e5b519.7c42cb",
\r