3 "id": "c6fed7ba.2e5e18",
\r
5 "name": "method sdwan-vf-operation-device-delete",
\r
6 "xml": "<method rpc='sdwan-vf-operation-device-delete' mode='sync'>\n",
\r
10 "y": 216.58634042739868,
\r
11 "z": "314ec97c.2253c6",
\r
19 "id": "e5478a26.0a9688",
\r
24 "y": 59.999998569488525,
\r
25 "z": "314ec97c.2253c6",
\r
33 "id": "3b2be231.ea30ae",
\r
34 "type": "service-logic",
\r
35 "name": "GENERIC-RESOURCE-API ${project.version}",
\r
36 "module": "GENERIC-RESOURCE-API",
\r
37 "version": "${project.version}",
\r
39 "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
41 "x": 243.28961181640625,
\r
42 "y": 122.23810815811157,
\r
43 "z": "314ec97c.2253c6",
\r
51 "id": "4804312d.8867d",
\r
53 "name": "block : atomic",
\r
54 "xml": "<block atomic=\"true\">",
\r
57 "x": 271.6706085205078,
\r
58 "y": 450.66671800613403,
\r
59 "z": "314ec97c.2253c6",
\r
78 "id": "9c192f6.d32f3d",
\r
80 "name": "for each vnf",
\r
81 "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
\r
84 "x": 587.035270690918,
\r
85 "y": 296.2691397666931,
\r
86 "z": "314ec97c.2253c6",
\r
94 "id": "f36d7165.5e774",
\r
95 "type": "switchNode",
\r
96 "name": "switch vnf_length",
\r
97 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
\r
100 "x": 592.0039253234863,
\r
101 "y": 235.000009059906,
\r
102 "z": "314ec97c.2253c6",
\r
110 "id": "ca4b0462.04ea28",
\r
113 "xml": "<outcome value=''>\n",
\r
117 "y": 233.99999856948853,
\r
118 "z": "314ec97c.2253c6",
\r
126 "id": "6923c8a0.a21e38",
\r
127 "type": "returnFailure",
\r
128 "name": "return failure",
\r
129 "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",
\r
131 "x": 921.4326324462891,
\r
132 "y": 235.14291620254517,
\r
133 "z": "314ec97c.2253c6",
\r
137 "id": "a9bd8416.007568",
\r
138 "type": "switchNode",
\r
139 "name": "switch this vnf-id == input vnf-id",
\r
140 "xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\"> \n",
\r
143 "x": 810.0039215087891,
\r
144 "y": 297.0000047683716,
\r
145 "z": "314ec97c.2253c6",
\r
153 "id": "cd0a501b.5bef4",
\r
154 "type": "outcomeTrue",
\r
156 "xml": "<outcome value='true'>\n",
\r
159 "x": 1025.00390625,
\r
160 "y": 294.9999985694885,
\r
161 "z": "314ec97c.2253c6",
\r
169 "id": "48bd1058.cd2f6",
\r
171 "name": "set vnf-index",
\r
172 "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
\r
174 "x": 1189.00390625,
\r
175 "y": 289.9999985694885,
\r
176 "z": "314ec97c.2253c6",
\r
180 "id": "edf648d0.949e68",
\r
181 "type": "switchNode",
\r
182 "name": "switch vf-modules.vf-module_length",
\r
183 "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",
\r
186 "x": 658.0039405822754,
\r
187 "y": 373.00002336502075,
\r
188 "z": "314ec97c.2253c6",
\r
198 "id": "dc937af3.d44e48",
\r
201 "xml": "<outcome value=''>\n",
\r
204 "x": 880.0039329528809,
\r
205 "y": 407.0000329017639,
\r
206 "z": "314ec97c.2253c6",
\r
214 "id": "428796e8.82f0e8",
\r
217 "xml": "<outcome value='0'>\n",
\r
220 "x": 885.0039291381836,
\r
221 "y": 354.0000319480896,
\r
222 "z": "314ec97c.2253c6",
\r
230 "id": "f5d99ed7.a4a21",
\r
231 "type": "returnFailure",
\r
232 "name": "return failure",
\r
233 "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",
\r
235 "x": 1043.0039329528809,
\r
236 "y": 367.0000329017639,
\r
237 "z": "314ec97c.2253c6",
\r
241 "id": "71d8961.8097f68",
\r
244 "xml": "<outcome value='Other'>\n",
\r
247 "x": 880.0039329528809,
\r
248 "y": 468.0000329017639,
\r
249 "z": "314ec97c.2253c6",
\r
257 "id": "1ece4dd8.f577c2",
\r
259 "name": "set vf-module_length",
\r
260 "xml": "<set>\n<parameter name='vf-module-length' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n\n",
\r
262 "x": 1234.00394821167,
\r
263 "y": 466.0000468492508,
\r
264 "z": "314ec97c.2253c6",
\r
268 "id": "d086ad92.da44d",
\r
270 "name": "block : atomic",
\r
271 "xml": "<block atomic=\"true\">",
\r
274 "x": 1041.003978729248,
\r
275 "y": 465.00002431869507,
\r
276 "z": "314ec97c.2253c6",
\r
285 "id": "85d68297.b6351",
\r
287 "name": "for each existing vf-index",
\r
288 "xml": "<for index='idx' start='0' end='`$vf-module-length`' >\n",
\r
291 "x": 1253.0039176940918,
\r
292 "y": 519.0000233650208,
\r
293 "z": "314ec97c.2253c6",
\r
301 "id": "22a0d6f0.bf05ea",
\r
302 "type": "switchNode",
\r
303 "name": "switch vf-module-id found",
\r
304 "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
307 "x": 1496.0039329528809,
\r
308 "y": 514.0000329017639,
\r
309 "z": "314ec97c.2253c6",
\r
317 "id": "158cf966.e07057",
\r
318 "type": "outcomeTrue",
\r
320 "xml": "<outcome value='true'>\n",
\r
323 "x": 1737.0040607452393,
\r
324 "y": 507.00003004074097,
\r
325 "z": "314ec97c.2253c6",
\r
333 "id": "66a900a3.a3c07",
\r
335 "name": "block : atomic",
\r
336 "xml": "<block atomic=\"true\">",
\r
339 "x": 1889.0040321350098,
\r
340 "y": 509.00002336502075,
\r
341 "z": "314ec97c.2253c6",
\r
351 "id": "e303b920.69ef18",
\r
353 "name": "set tmp.vidx and ctx.vnf-data",
\r
354 "xml": "<set>\n<parameter name='tmp.vidx' value='`$idx`' />\n<parameter name='ctx.vf-module-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.`' />\n",
\r
356 "x": 2111.0040321350098,
\r
357 "y": 505.00002336502075,
\r
358 "z": "314ec97c.2253c6",
\r
362 "id": "94649a24.085df8",
\r
364 "name": "set vf-module-request-input.",
\r
365 "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$ctx.vf-module-data.vf-module-request-input.`' />\n\n",
\r
367 "x": 2117.0040321350098,
\r
368 "y": 554.0000233650208,
\r
369 "z": "314ec97c.2253c6",
\r
373 "id": "2718f6a1.d8c36a",
\r
375 "name": "call sdwan-get-vf-module-device-param",
\r
376 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-device-param' mode='sync' >\n",
\r
379 "x": 2145.004253387451,
\r
380 "y": 602.0000290870667,
\r
381 "z": "314ec97c.2253c6",
\r
387 "id": "68b5e9b8.2b0318",
\r
388 "type": "switchNode",
\r
389 "name": "switch tmp.vidx ",
\r
390 "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
\r
393 "x": 597.0351524353027,
\r
394 "y": 546.0161061286926,
\r
395 "z": "314ec97c.2253c6",
\r
403 "id": "99df81ad.4b936",
\r
406 "xml": "<outcome value=''>\n",
\r
409 "x": 744.463794708252,
\r
410 "y": 545.5875163078308,
\r
411 "z": "314ec97c.2253c6",
\r
419 "id": "5487274c.85e858",
\r
420 "type": "returnFailure",
\r
421 "name": "return failure",
\r
422 "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",
\r
424 "x": 893.892520904541,
\r
425 "y": 546.7304339408875,
\r
426 "z": "314ec97c.2253c6",
\r
430 "id": "370fd9d.4d0a826",
\r
431 "type": "switchNode",
\r
432 "name": "switch vf-module-oper-status",
\r
433 "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.order-status`'>\n",
\r
436 "x": 641.3333129882812,
\r
437 "y": 616.3333115577698,
\r
438 "z": "314ec97c.2253c6",
\r
447 "id": "8d4cefb5.e8f04",
\r
449 "name": "outcome PendingDelete",
\r
450 "xml": "<outcome value='PendingDelete'>\n",
\r
453 "x": 932.1665802001953,
\r
454 "y": 620.4444346427917,
\r
455 "z": "314ec97c.2253c6",
\r
463 "id": "d9412eaf.21b64",
\r
466 "xml": "<outcome value='Other'>\n",
\r
469 "x": 899.1667175292969,
\r
470 "y": 672.4444873332977,
\r
471 "z": "314ec97c.2253c6",
\r
479 "id": "dfeaa117.eea9d",
\r
480 "type": "returnFailure",
\r
481 "name": "return failure",
\r
482 "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`\" />",
\r
484 "x": 1058.6664848327637,
\r
485 "y": 675.4444863796234,
\r
486 "z": "314ec97c.2253c6",
\r
490 "id": "d8669fbd.c1c02",
\r
492 "name": "block : atomic",
\r
493 "xml": "<block atomic=\"true\">",
\r
496 "x": 1129.4729804992676,
\r
497 "y": 630.7695889472961,
\r
498 "z": "314ec97c.2253c6",
\r
504 "id": "b631e163.c5869",
\r
505 "type": "returnSuccess",
\r
506 "name": "return success",
\r
507 "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
509 "x": 619.4445152282715,
\r
510 "y": 995.2221984863281,
\r
511 "z": "314ec97c.2253c6",
\r
515 "id": "22f84c9a.3b1234",
\r
516 "type": "switchNode",
\r
517 "name": "switch prop.device.sdncCreate",
\r
518 "xml": "<switch test=\"`$prop.device.sdncCreate`\">\n",
\r
521 "x": 659.0948181152344,
\r
522 "y": 937.5949177742004,
\r
523 "z": "314ec97c.2253c6",
\r
531 "id": "e73ad2e7.ff301",
\r
533 "name": "set prop.vnfNewidx",
\r
534 "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`0`' />\n",
\r
536 "x": 615.5311832427979,
\r
537 "y": 690.3333535194397,
\r
538 "z": "314ec97c.2253c6",
\r
542 "id": "61a4bf49.6ae31",
\r
544 "name": "for lidx..service-data.vf-modules.vf-module[]",
\r
545 "xml": "<for index='lidx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' >\n",
\r
548 "x": 695.5310974121094,
\r
549 "y": 741.3333554267883,
\r
550 "z": "314ec97c.2253c6",
\r
558 "id": "4b0a719b.ddb45",
\r
560 "name": "set new vnf length",
\r
561 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length\" value='`$prop.vnfidxLen`'/>\n\n\t\n",
\r
563 "x": 619.6324615478516,
\r
564 "y": 792.1375555992126,
\r
565 "z": "314ec97c.2253c6",
\r
569 "id": "77882cba.d66624",
\r
571 "name": "Remove vnf from ServiceData",
\r
572 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$prop.vnfidxLen].\" value=\"\"/>\n",
\r
574 "x": 656.5311431884766,
\r
575 "y": 844.3333582878113,
\r
576 "z": "314ec97c.2253c6",
\r
580 "id": "da9431cc.52513",
\r
582 "name": "block : atomic",
\r
583 "xml": "<block atomic=\"true\">",
\r
586 "x": 955.5310878753662,
\r
587 "y": 748.3332152366638,
\r
588 "z": "314ec97c.2253c6",
\r
596 "id": "44543bd3.4c8bf4",
\r
597 "type": "outcomeTrue",
\r
599 "xml": "<outcome value='true'>\n",
\r
602 "x": 870.094669342041,
\r
603 "y": 936.5945897102356,
\r
604 "z": "314ec97c.2253c6",
\r
612 "id": "33a69b5b.9a15c4",
\r
614 "name": "delete wan port instance configuration in AAI",
\r
615 "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='device' \n key='device.device-id = $vf-module-topology-operation-input.vf-module-information.vf-module-id'>\n",
\r
618 "x": 1136.5314407348633,
\r
619 "y": 934.5948338508606,
\r
620 "z": "314ec97c.2253c6",
\r
626 "id": "18a9693d.650b17",
\r
627 "type": "switchNode",
\r
628 "name": "switch vnf-id found",
\r
629 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$lidx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",
\r
632 "x": 1141.5311546325684,
\r
633 "y": 748.3333759307861,
\r
634 "z": "314ec97c.2253c6",
\r
642 "id": "3ab3fce3.adf244",
\r
643 "type": "outcomeFalse",
\r
645 "xml": "<outcome value='false'>\n",
\r
648 "x": 1310.531162261963,
\r
649 "y": 747.3332133293152,
\r
650 "z": "314ec97c.2253c6",
\r
658 "id": "9c7fc57d.2e0378",
\r
660 "name": "block : atomic",
\r
661 "xml": "<block atomic=\"true\">",
\r
664 "x": 1464.5310010910034,
\r
665 "y": 739.3332142829895,
\r
666 "z": "314ec97c.2253c6",
\r
675 "id": "3c3fb736.ab7c18",
\r
677 "name": "set vnf data",
\r
678 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$prop.vnfidxLen].vnf-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[lidx].vf-module-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$prop.vnfidxLen].vnf-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[lidx].vf-module-data.`' />\n",
\r
680 "x": 1629.531096458435,
\r
681 "y": 714.3333697319031,
\r
682 "z": "314ec97c.2253c6",
\r
686 "id": "3d45148.2511eec",
\r
688 "name": "set prop.vnfNewidx",
\r
689 "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`$prop.vnfidxLen + 1`' />\n",
\r
691 "x": 1651.531096458435,
\r
692 "y": 770.333333492279,
\r
693 "z": "314ec97c.2253c6",
\r
697 "id": "75517c95.ffb8a4",
\r
699 "name": "set vf-module-object-path",
\r
700 "xml": "<set>\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
702 "x": 643.3333511352539,
\r
703 "y": 889.6666932106018,
\r
704 "z": "314ec97c.2253c6",
\r