3 "id": "a1df0c8c.e610f",
5 "name": "switch service-data.vnfs.vnf_length",
6 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
9 "x": 652.5634536743164,
10 "y": 312.26116919517517,
11 "z": "42785b1.0f2e6a4",
20 "id": "dda3e77b.e1de28",
25 "y": 76.9999988079071,
26 "z": "42785b1.0f2e6a4",
34 "id": "b55d96f3.653dc8",
35 "type": "service-logic",
36 "name": "GENERIC-RESOURCE-API ${project.version}",
37 "module": "GENERIC-RESOURCE-API",
38 "version": "${project.version}",
40 "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}'>",
42 "x": 189.75445556640625,
43 "y": 117.23811030387878,
44 "z": "42785b1.0f2e6a4",
52 "id": "8ad52b68.cd0138",
54 "name": "wan port-vnf-topology-operation-delete",
57 "x": 563.8136672973633,
58 "y": 150.58639788627625,
59 "z": "42785b1.0f2e6a4",
63 "id": "c136d1d8.af3e6",
65 "name": "block : atomic",
66 "xml": "<block atomic=\"true\">",
69 "x": 191.13541412353516,
70 "y": 378.6666705608368,
71 "z": "42785b1.0f2e6a4",
89 "id": "a23f9932.76df28",
91 "name": "outcome Null",
92 "xml": "<outcome value=''>\n",
95 "x": 917.2857666015625,
96 "y": 294.81679129600525,
97 "z": "42785b1.0f2e6a4",
105 "id": "81cc943f.50f958",
106 "type": "returnFailure",
107 "name": "return failure",
108 "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-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
110 "x": 1098.2856369018555,
111 "y": 289.81666922569275,
112 "z": "42785b1.0f2e6a4",
116 "id": "eec5abe1.727dc8",
119 "xml": "<outcome value='Other'>\n",
122 "x": 902.7857666015625,
123 "y": 346.8167541027069,
124 "z": "42785b1.0f2e6a4",
132 "id": "679d4612.15d218",
134 "name": "block : atomic",
135 "xml": "<block atomic=\"true\">",
138 "x": 1074.785472869873,
139 "y": 346.8167521953583,
140 "z": "42785b1.0f2e6a4",
149 "id": "dc6fa4c3.5ecea8",
150 "type": "switchNode",
151 "name": "switch tmp.vidx ",
152 "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
155 "x": 1249.78564453125,
156 "y": 365.81667399406433,
157 "z": "42785b1.0f2e6a4",
165 "id": "30536e3.568f592",
166 "type": "switchNode",
167 "name": "switch vnf-level-oper-status",
168 "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\n",
171 "x": 622.9524536132812,
172 "y": 386.70563292503357,
173 "z": "42785b1.0f2e6a4",
182 "id": "ba7f62e0.c87a8",
184 "name": "outcome PendingDelete",
185 "xml": "<outcome value='PendingDelete'>\n",
188 "x": 913.7857208251953,
189 "y": 390.81675601005554,
190 "z": "42785b1.0f2e6a4",
198 "id": "246d8ed1.13b9e2",
201 "xml": "<outcome value='Other'>\n",
204 "x": 880.7858581542969,
205 "y": 442.8168087005615,
206 "z": "42785b1.0f2e6a4",
214 "id": "7d27948.1b45c6c",
215 "type": "returnFailure",
216 "name": "return failure",
217 "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 is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />",
219 "x": 1040.2856254577637,
220 "y": 445.8168077468872,
221 "z": "42785b1.0f2e6a4",
225 "id": "9db50f7b.a0897",
226 "type": "switchNode",
227 "name": "switch vnf-id",
228 "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\">\n",
231 "x": 588.7857704162598,
232 "y": 267.81676268577576,
233 "z": "42785b1.0f2e6a4",
241 "id": "2d92055a.30ffda",
244 "xml": "<outcome value=''>",
247 "x": 786.7858352661133,
248 "y": 257.81677508354187,
249 "z": "42785b1.0f2e6a4",
257 "id": "889ae61d.096b48",
258 "type": "returnFailure",
259 "name": "return failure",
260 "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-request-input.vnf-input-parameters.name is a required input\" />\n",
262 "x": 953.2857208251953,
263 "y": 254.81676936149597,
264 "z": "42785b1.0f2e6a4",
268 "id": "862951df.5fe1d",
270 "name": "for vidx..service-data.vnfs.vnf[]",
271 "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
274 "x": 1310.2856483459473,
275 "y": 301.81667017936707,
276 "z": "42785b1.0f2e6a4",
284 "id": "91f5b0d9.94102",
285 "type": "switchNode",
286 "name": "switch vnf-id found",
287 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
290 "x": 1566.2856674194336,
291 "y": 301.81667017936707,
292 "z": "42785b1.0f2e6a4",
300 "id": "8dc7c708.bc5718",
301 "type": "outcomeTrue",
303 "xml": "<outcome value='true'>\n",
306 "x": 1742.7857208251953,
307 "y": 304.81667017936707,
308 "z": "42785b1.0f2e6a4",
316 "id": "dd40fac0.73a058",
318 "name": "set tmp.vidx and ctx.vnf-data",
319 "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].vnf-data.`' />\n",
321 "x": 2159.785934448242,
322 "y": 383.8167221546173,
323 "z": "42785b1.0f2e6a4",
327 "id": "59a5fc66.f24204",
328 "type": "returnFailure",
329 "name": "return failure",
330 "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-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
332 "x": 1555.285659790039,
333 "y": 365.81667399406433,
334 "z": "42785b1.0f2e6a4",
338 "id": "1c173742.b90799",
341 "xml": "<outcome value=''>\n",
344 "x": 1417.785659790039,
345 "y": 365.81667399406433,
346 "z": "42785b1.0f2e6a4",
354 "id": "a72c9897.585208",
356 "name": "set vnfId and vnf-object-path",
357 "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='vnf-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />",
359 "x": 596.8022003173828,
360 "y": 689.3334522247314,
361 "z": "42785b1.0f2e6a4",
365 "id": "d19a177f.7de988",
366 "type": "returnSuccess",
367 "name": "return success",
368 "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",
370 "x": 545.9133987426758,
371 "y": 808.8889608383179,
372 "z": "42785b1.0f2e6a4",
376 "id": "7fe1211e.ac713",
378 "name": "block : atomic",
379 "xml": "<block atomic=\"true\">",
382 "x": 1111.0921211242676,
383 "y": 401.14191031455994,
384 "z": "42785b1.0f2e6a4",
390 "id": "e0c2d3e0.8a2bb",
392 "name": "method sdwan-vnf-topology-operation-device-delete",
393 "xml": "<method rpc='sdwan-vnf-topology-operation-device-delete' mode='sync'>\n",
397 "y": 233.26116919517517,
398 "z": "42785b1.0f2e6a4",
406 "id": "4dffba9e.fd0434",
408 "name": "execute requiredParameters",
409 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >\n<parameter name=\"vnf-topology-operation-input.vnf-information.vnf-id\" value=\"$vnf-topology-operation-input.vnf-information.vnf-id\"/>\n\n",
412 "x": 646.2858276367188,
413 "y": 207.81676173210144,
414 "z": "42785b1.0f2e6a4",
420 "id": "7385dfef.35179",
422 "name": "delete wan port instance configuration in AAI",
423 "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='device' \n key='device.id = $vnf-topology-operation-input.vnf-information.vnf-id'>\n",
426 "x": 1073.0003051757812,
427 "y": 744.261435508728,
428 "z": "42785b1.0f2e6a4",
434 "id": "3c959d82.f7e672",
436 "name": "call sdwan-get-device-param",
437 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-device-param' mode='sync' >\n",
440 "x": 2151.5635147094727,
441 "y": 328.2611758708954,
442 "z": "42785b1.0f2e6a4",
448 "id": "5f3e6fd4.e37e8",
450 "name": "set vnf-request-input.",
451 "xml": "<set>\n<parameter name='vnf-request-input.' value='`$ctx.vnf-data.vnf-data.vnf-request-input.`' />\n\n",
453 "x": 2146.923065185547,
454 "y": 265.81170535087585,
455 "z": "42785b1.0f2e6a4",
459 "id": "94ec2391.e8ee4",
461 "name": "set tmp.vidx and ctx.vnf-data",
462 "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
464 "x": 2174.476776123047,
465 "y": 219.15406966209412,
466 "z": "42785b1.0f2e6a4",
470 "id": "2d4f17e9.19c368",
472 "name": "block : atomic",
473 "xml": "<block atomic=\"true\">",
476 "x": 1912.563331604004,
477 "y": 306.26116919517517,
478 "z": "42785b1.0f2e6a4",
489 "id": "28632f25.b7972",
490 "type": "switchNode",
491 "name": "switch prop.device.sdncCreate",
492 "xml": "<switch test=\"`$prop.device.sdncCreate`\">\n",
495 "x": 597.5636672973633,
496 "y": 752.2614345550537,
497 "z": "42785b1.0f2e6a4",
505 "id": "d02123b.6bfe7e",
506 "type": "outcomeTrue",
508 "xml": "<outcome value='true'>\n",
511 "x": 804.5635223388672,
512 "y": 749.2612714767456,
513 "z": "42785b1.0f2e6a4",
521 "id": "af6ad43e.5c24e8",
523 "name": "set prop.vnfNewidx",
524 "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`0`' />\n",
526 "x": 589.0000381469727,
527 "y": 454.0000276565552,
528 "z": "42785b1.0f2e6a4",
532 "id": "743e7718.e7f968",
534 "name": "for lidx..service-data.vnfs.vnf[]",
535 "xml": "<for index='lidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
538 "x": 615.9999580383301,
539 "y": 518.0000123977661,
540 "z": "42785b1.0f2e6a4",
548 "id": "25a69c7c.cd2204",
550 "name": "block : atomic",
551 "xml": "<block atomic=\"true\">",
554 "x": 859.9999389648438,
555 "y": 543.9999718666077,
556 "z": "42785b1.0f2e6a4",
564 "id": "2e7532f9.d7b9be",
565 "type": "switchNode",
566 "name": "switch vnf-id found",
567 "xml": "<switch test=\"`$service-data.vnfs.vnf[$lidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
570 "x": 1051.999885559082,
571 "y": 553.0000162124634,
572 "z": "42785b1.0f2e6a4",
580 "id": "4b8bdd76.d28184",
582 "name": "set new vnf length",
583 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf_length\" value='`$prop.vnfidxLen`'/>\n\n\t\n",
585 "x": 582.1013412475586,
586 "y": 568.8043041229248,
587 "z": "42785b1.0f2e6a4",
591 "id": "fb34ff49.abebe",
592 "type": "outcomeFalse",
594 "xml": "<outcome value='false'>\n",
597 "x": 1237.999900817871,
598 "y": 536.9999027252197,
599 "z": "42785b1.0f2e6a4",
607 "id": "aa789605.e97ae8",
609 "name": "block : atomic",
610 "xml": "<block atomic=\"true\">",
613 "x": 1388.9998245239258,
614 "y": 537.9999389648438,
615 "z": "42785b1.0f2e6a4",
624 "id": "79843b9d.c445e4",
626 "name": "set vnf data",
627 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-id' value='`$service-data.vnfs.vnf[$lidx].vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-data.' value='`$service-data.vnfs.vnf[$lidx].vnf-data.`' />\n",
629 "x": 1553.9999198913574,
630 "y": 513.0000944137573,
631 "z": "42785b1.0f2e6a4",
635 "id": "fcd82b9e.5e0628",
637 "name": "set prop.vnfNewidx",
638 "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`$prop.vnfidxLen + 1`' />\n",
640 "x": 1575.9999198913574,
641 "y": 569.0000581741333,
642 "z": "42785b1.0f2e6a4",
646 "id": "cb6608fc.bd5f68",
648 "name": "Remove vnf from ServiceData",
649 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$prop.vnfidxLen].\" value=\"\"/>\n\n",
653 "z": "42785b1.0f2e6a4",