3 "id": "f2c51e78.6ee01",
\r
4 "type": "service-logic",
\r
5 "name": "GENERIC-RESOURCE-API ${project.version}",
\r
6 "module": "GENERIC-RESOURCE-API",
\r
7 "version": "${project.version}",
\r
9 "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
12 "y": 162.99999046325684,
\r
13 "z": "147f59c8.d7f266",
\r
21 "id": "e7f78c27.133fa",
\r
23 "name": "sdwan-vf-operation-site-create",
\r
24 "xml": "<method rpc='sdwan-vf-operation-site-create' mode='sync'>\n",
\r
28 "y": 262.99999046325684,
\r
29 "z": "147f59c8.d7f266",
\r
37 "id": "bac9bd77.fe0f",
\r
42 "y": 68.00000381469727,
\r
43 "z": "147f59c8.d7f266",
\r
51 "id": "31fa463e.82923a",
\r
53 "name": "block : atomic",
\r
54 "xml": "<block atomic=\"true\">\n",
\r
58 "x": 391.49998474121094,
\r
59 "y": 378.9999990463257,
\r
60 "z": "147f59c8.d7f266",
\r
81 "id": "dda69c6e.0dcdc",
\r
83 "name": "for each vnf",
\r
84 "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
\r
87 "x": 691.8294067382812,
\r
88 "y": 270.4961233139038,
\r
89 "z": "147f59c8.d7f266",
\r
97 "id": "e02bea98.6a2108",
\r
98 "type": "switchNode",
\r
99 "name": "switch this vnf-id == input vnf-id",
\r
100 "xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\"> \n",
\r
103 "x": 943.8294982910156,
\r
104 "y": 269.16278648376465,
\r
105 "z": "147f59c8.d7f266",
\r
113 "id": "c12c2186.d601b",
\r
115 "name": "set vnf-index",
\r
116 "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
\r
118 "x": 1315.4959869384766,
\r
119 "y": 271.1627893447876,
\r
120 "z": "147f59c8.d7f266",
\r
124 "id": "44afa032.ce578",
\r
125 "type": "outcomeTrue",
\r
127 "xml": "<outcome value='true'>\n",
\r
130 "x": 1162.1628150939941,
\r
131 "y": 271.16276836395264,
\r
132 "z": "147f59c8.d7f266",
\r
140 "id": "b886ea54.85e0f8",
\r
142 "name": "for loop idx - VF input parameters",
\r
143 "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
146 "x": 765.7501907348633,
\r
147 "y": 492.6666564941406,
\r
148 "z": "147f59c8.d7f266",
\r
156 "id": "d6ac010b.ad6e",
\r
159 "xml": "<block>\n",
\r
163 "x": 980.5285339355469,
\r
164 "y": 490.22224044799805,
\r
165 "z": "147f59c8.d7f266",
\r
174 "id": "265e23d4.36e02c",
\r
176 "name": "execute split parameterName",
\r
177 "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
180 "x": 1176.7847366333008,
\r
181 "y": 467.9703788757324,
\r
182 "z": "147f59c8.d7f266",
\r
188 "id": "e3c83d1b.72db1",
\r
190 "name": "set parameterName",
\r
191 "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
193 "x": 1146.2291641235352,
\r
194 "y": 504.970495223999,
\r
195 "z": "147f59c8.d7f266",
\r
199 "id": "6cbee016.f6042",
\r
201 "name": "Take the parameter names by removing prefix",
\r
204 "x": 1149.7503929138184,
\r
205 "y": 427.3333249092102,
\r
206 "z": "147f59c8.d7f266",
\r
210 "id": "73e90791.30e428",
\r
211 "type": "switchNode",
\r
212 "name": "switch vnf_length",
\r
213 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
\r
217 "y": 225.99999237060547,
\r
218 "z": "147f59c8.d7f266",
\r
226 "id": "d8c3ff3.9b067",
\r
229 "xml": "<outcome value=''>\n",
\r
232 "x": 892.9166793823242,
\r
233 "y": 225.33329010009766,
\r
234 "z": "147f59c8.d7f266",
\r
242 "id": "94ec6856.a83cd8",
\r
243 "type": "returnFailure",
\r
244 "name": "return failure",
\r
245 "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
247 "x": 1074.5833053588867,
\r
248 "y": 225.33329010009766,
\r
249 "z": "147f59c8.d7f266",
\r
253 "id": "539f4691.77ee38",
\r
254 "type": "switchNode",
\r
255 "name": "switch vf-modules.vf-module_length",
\r
256 "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",
\r
259 "x": 747.4999895095825,
\r
260 "y": 345.9999933242798,
\r
261 "z": "147f59c8.d7f266",
\r
270 "id": "83439569.31aa38",
\r
273 "xml": "<outcome value=''>\n",
\r
277 "y": 321.99999046325684,
\r
278 "z": "147f59c8.d7f266",
\r
286 "id": "bcb4cae0.4f9908",
\r
289 "xml": "<outcome value='Other'>\n",
\r
293 "y": 361.99999046325684,
\r
294 "z": "147f59c8.d7f266",
\r
302 "id": "ba3dff03.8dc24",
\r
304 "name": "set vf-index",
\r
305 "xml": "<set>\n<parameter name='vf-index' value='0' />\n",
\r
308 "y": 321.99999046325684,
\r
309 "z": "147f59c8.d7f266",
\r
313 "id": "890fe4fa.c0f128",
\r
316 "xml": "<block>\n",
\r
320 "x": 1122.8570442199707,
\r
321 "y": 361.93650245666504,
\r
322 "z": "147f59c8.d7f266",
\r
331 "id": "ba2eca23.0f6508",
\r
333 "name": "set vf-index",
\r
334 "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
336 "x": 1275.555519104004,
\r
337 "y": 331.5556011493318,
\r
338 "z": "147f59c8.d7f266",
\r
342 "id": "3895380d.b43d08",
\r
344 "name": "for each existing vf-index",
\r
345 "xml": "<for index='idx' start='0' end='`$vf-index`' >\n",
\r
348 "x": 1331.9840240478516,
\r
349 "y": 384.77773094177246,
\r
350 "z": "147f59c8.d7f266",
\r
358 "id": "51af10a6.1b1e3",
\r
360 "name": "make sure this network doesn't exist already",
\r
363 "x": 1555.6347541809082,
\r
364 "y": 343.0317883491516,
\r
365 "z": "147f59c8.d7f266",
\r
369 "id": "8202a636.7f9518",
\r
370 "type": "switchNode",
\r
371 "name": "switch vf-module-id found",
\r
372 "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
375 "x": 1607.2697448730469,
\r
376 "y": 384.34923362731934,
\r
377 "z": "147f59c8.d7f266",
\r
385 "id": "ce7e5cca.15004",
\r
386 "type": "outcomeTrue",
\r
388 "xml": "<outcome value='true'>\n",
\r
391 "x": 1507.999942779541,
\r
392 "y": 442.9206647872925,
\r
393 "z": "147f59c8.d7f266",
\r
401 "id": "7c5cfe61.fdc3f",
\r
402 "type": "returnFailure",
\r
403 "name": "return failure",
\r
404 "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
406 "x": 1655.7500457763672,
\r
407 "y": 442.7778568561189,
\r
408 "z": "147f59c8.d7f266",
\r
412 "id": "df7eb194.69b7e",
\r
414 "name": "copy input data to service data",
\r
415 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-id' value='`$prop.site-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",
\r
417 "x": 759.3531951904297,
\r
418 "y": 772.4962134361267,
\r
419 "z": "147f59c8.d7f266",
\r
423 "id": "76dbb250.b292cc",
\r
425 "name": "execute generate-vf-module-index",
\r
426 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.site-vf-index\"/>\n",
\r
429 "x": 767.6866912841797,
\r
430 "y": 719.1629462242126,
\r
431 "z": "147f59c8.d7f266",
\r
437 "id": "154ced05.a101f3",
\r
439 "name": "set new vf-module_length",
\r
440 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index + 1`' />",
\r
442 "x": 741.6866683959961,
\r
443 "y": 665.1628398895264,
\r
444 "z": "147f59c8.d7f266",
\r
448 "id": "be0d3540.8ebb28",
\r
450 "name": "set vf-module-request-input.",
\r
451 "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$vf-module-topology-operation-input.vf-module-request-input.`' />\n",
\r
453 "x": 756.6863288879395,
\r
454 "y": 555.1542205810547,
\r
455 "z": "147f59c8.d7f266",
\r
459 "id": "788efb60.76f4a4",
\r
461 "name": "call sdwan-get-vf-module-site-param",
\r
462 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-site-param' mode='sync' >\n",
\r
465 "x": 772.686637878418,
\r
466 "y": 607.1544017791748,
\r
467 "z": "147f59c8.d7f266",
\r
473 "id": "6868f266.5fe7ec",
\r
475 "name": "set vf-module-object-path",
\r
476 "xml": "<set>\n<parameter name='vf-module-id' value='`$prop.site-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.site-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
478 "x": 754.5000877380371,
\r
479 "y": 823.0000586509705,
\r
480 "z": "147f59c8.d7f266",
\r
484 "id": "e78bb1b3.a529d",
\r
486 "name": "set vf-module-level-oper-status",
\r
487 "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
489 "x": 764.0001068115234,
\r
490 "y": 871.9999680519104,
\r
491 "z": "147f59c8.d7f266",
\r
495 "id": "fd37bb03.271ec8",
\r
497 "name": "save sdwan vpn resource in AAI",
\r
498 "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='site-resource' \n key='site-resource.site-resource-id = $prop.site-vf-index' >\n<parameter name='site-resource-id' value='`$prop.site-vf-index`' />\n<parameter name='site-resource-name' value='`$prop.site.name`' />\n<parameter name='description' value='`$prop.site.description`' />\n<parameter name='type' value='`$prop.site.type`' />\n<parameter name='role' value='`$prop.site.role`' />\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.site-vf-index + '/vf-module-data/'` \" />",
\r
501 "x": 766.5000419616699,
\r
502 "y": 917.4999742507935,
\r
503 "z": "147f59c8.d7f266",
\r
509 "id": "395e35c1.a6a5fa",
\r
511 "name": "save service relationship in AAI",
\r
512 "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=\"site-resource\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/site-resources/site-resource/' + $prop.site-vf-index`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"site-resource.site-resource-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.site-vf-index`\" />\n",
\r
515 "x": 765.4999847412109,
\r
516 "y": 964.5000219345093,
\r
517 "z": "147f59c8.d7f266",
\r
523 "id": "2b07f61e.bf4a1a",
\r
524 "type": "returnSuccess",
\r
525 "name": "return success",
\r
526 "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
528 "x": 714.2225151062012,
\r
529 "y": 1010.6738648414612,
\r
530 "z": "147f59c8.d7f266",
\r