3 "id": "5b377527.318dfc",
\r
5 "name": "method sdwan-vf-operation-lanport-delete",
\r
6 "xml": "<method rpc='sdwan-vf-operation-lanport-delete' mode='sync'>\n",
\r
10 "y": 239.5863505601883,
\r
11 "z": "6e499246.1345bc",
\r
19 "id": "5fa9c4d6.4ec86c",
\r
20 "type": "service-logic",
\r
21 "name": "GENERIC-RESOURCE-API ${project.version}",
\r
22 "module": "GENERIC-RESOURCE-API",
\r
23 "version": "${project.version}",
\r
25 "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
27 "x": 277.28961181640625,
\r
28 "y": 140.23810827732086,
\r
29 "z": "6e499246.1345bc",
\r
37 "id": "3e4efa76.6244b6",
\r
42 "y": 77.99999868869781,
\r
43 "z": "6e499246.1345bc",
\r
51 "id": "b6ef6d6.088219",
\r
53 "name": "block : atomic",
\r
54 "xml": "<block atomic=\"true\">",
\r
57 "x": 305.6706085205078,
\r
58 "y": 468.6667181253433,
\r
59 "z": "6e499246.1345bc",
\r
79 "id": "a6a43527.61a1e8",
\r
81 "name": "for each vnf",
\r
82 "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
\r
85 "x": 640.0352554321289,
\r
86 "y": 249.26914072036743,
\r
87 "z": "6e499246.1345bc",
\r
95 "id": "71f387b9.003178",
\r
96 "type": "switchNode",
\r
97 "name": "switch vnf_length",
\r
98 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
\r
101 "x": 645.0039100646973,
\r
102 "y": 188.00001001358032,
\r
103 "z": "6e499246.1345bc",
\r
111 "id": "ec17d276.93fee",
\r
114 "xml": "<outcome value=''>\n",
\r
117 "x": 825.0038909912109,
\r
118 "y": 186.99999952316284,
\r
119 "z": "6e499246.1345bc",
\r
127 "id": "2a49b970.30fb16",
\r
128 "type": "returnFailure",
\r
129 "name": "return failure",
\r
130 "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
132 "x": 974.4326171875,
\r
133 "y": 188.14291715621948,
\r
134 "z": "6e499246.1345bc",
\r
138 "id": "5c4cd934.c95538",
\r
139 "type": "switchNode",
\r
140 "name": "switch this vnf-id == input vnf-id",
\r
141 "xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\"> \n",
\r
145 "y": 250.0000057220459,
\r
146 "z": "6e499246.1345bc",
\r
154 "id": "2a4d20b9.66aac",
\r
155 "type": "outcomeTrue",
\r
157 "xml": "<outcome value='true'>\n",
\r
160 "x": 1078.003890991211,
\r
161 "y": 247.99999952316284,
\r
162 "z": "6e499246.1345bc",
\r
170 "id": "991cadde.a1c2",
\r
172 "name": "set vnf-index",
\r
173 "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
\r
175 "x": 1242.003890991211,
\r
176 "y": 242.99999952316284,
\r
177 "z": "6e499246.1345bc",
\r
181 "id": "4d09affd.63ec7",
\r
182 "type": "switchNode",
\r
183 "name": "switch vf-modules.vf-module_length",
\r
184 "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",
\r
187 "x": 692.0039405822754,
\r
188 "y": 391.00002348423004,
\r
189 "z": "6e499246.1345bc",
\r
199 "id": "7fce8758.381048",
\r
202 "xml": "<outcome value=''>\n",
\r
205 "x": 914.0039329528809,
\r
206 "y": 425.0000330209732,
\r
207 "z": "6e499246.1345bc",
\r
215 "id": "7db8009f.80aa9",
\r
218 "xml": "<outcome value='0'>\n",
\r
221 "x": 919.0039291381836,
\r
222 "y": 372.0000320672989,
\r
223 "z": "6e499246.1345bc",
\r
231 "id": "c31ea383.0d2c3",
\r
232 "type": "returnFailure",
\r
233 "name": "return failure",
\r
234 "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
236 "x": 1077.0039329528809,
\r
237 "y": 385.0000330209732,
\r
238 "z": "6e499246.1345bc",
\r
242 "id": "58a4a3cc.ac1abc",
\r
245 "xml": "<outcome value='Other'>\n",
\r
248 "x": 914.0039329528809,
\r
249 "y": 486.0000330209732,
\r
250 "z": "6e499246.1345bc",
\r
258 "id": "b0e78257.0ab82",
\r
260 "name": "set vf-module_length",
\r
261 "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
263 "x": 1268.00394821167,
\r
264 "y": 484.0000469684601,
\r
265 "z": "6e499246.1345bc",
\r
269 "id": "d3465076.36c57",
\r
271 "name": "block : atomic",
\r
272 "xml": "<block atomic=\"true\">",
\r
275 "x": 1075.003978729248,
\r
276 "y": 483.00002443790436,
\r
277 "z": "6e499246.1345bc",
\r
286 "id": "d9692dd.614b9d",
\r
288 "name": "for each existing vf-index",
\r
289 "xml": "<for index='idx' start='0' end='`$vf-module-length`' >\n",
\r
292 "x": 1287.0039176940918,
\r
293 "y": 537.00002348423,
\r
294 "z": "6e499246.1345bc",
\r
302 "id": "45a4bb37.a28924",
\r
303 "type": "switchNode",
\r
304 "name": "switch vf-module-id found",
\r
305 "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
308 "x": 1558.0039367675781,
\r
309 "y": 538.0000606775284,
\r
310 "z": "6e499246.1345bc",
\r
318 "id": "a0aa45d1.8fe618",
\r
319 "type": "outcomeTrue",
\r
321 "xml": "<outcome value='true'>\n",
\r
324 "x": 1771.0040607452393,
\r
325 "y": 525.0000301599503,
\r
326 "z": "6e499246.1345bc",
\r
334 "id": "e8f5881c.0d1318",
\r
336 "name": "block : atomic",
\r
337 "xml": "<block atomic=\"true\">",
\r
340 "x": 1923.0040321350098,
\r
341 "y": 527.00002348423,
\r
342 "z": "6e499246.1345bc",
\r
352 "id": "f7c8637f.374ce",
\r
354 "name": "set tmp.vidx and ctx.vnf-data",
\r
355 "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
357 "x": 2145.0040321350098,
\r
358 "y": 523.00002348423,
\r
359 "z": "6e499246.1345bc",
\r
363 "id": "c9be57ad.3da878",
\r
365 "name": "set vf-module-request-input.",
\r
366 "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$ctx.vf-module-data.vf-module-request-input.`' />\n\n",
\r
368 "x": 2151.0040321350098,
\r
369 "y": 572.00002348423,
\r
370 "z": "6e499246.1345bc",
\r
374 "id": "26312e31.67daa2",
\r
376 "name": "call sdwan-get-vf-module-lan-param",
\r
377 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-lan-param' mode='sync' >\n",
\r
380 "x": 2179.004253387451,
\r
381 "y": 620.0000292062759,
\r
382 "z": "6e499246.1345bc",
\r
388 "id": "158609f4.fc8936",
\r
389 "type": "switchNode",
\r
390 "name": "switch tmp.vidx ",
\r
391 "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
\r
394 "x": 631.0351524353027,
\r
395 "y": 564.0161062479019,
\r
396 "z": "6e499246.1345bc",
\r
404 "id": "cbb03bf0.425b98",
\r
407 "xml": "<outcome value=''>\n",
\r
410 "x": 778.463794708252,
\r
411 "y": 563.5875164270401,
\r
412 "z": "6e499246.1345bc",
\r
420 "id": "6af4136a.19a86c",
\r
421 "type": "returnFailure",
\r
422 "name": "return failure",
\r
423 "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
425 "x": 927.892520904541,
\r
426 "y": 564.7304340600967,
\r
427 "z": "6e499246.1345bc",
\r
431 "id": "7132f9a1.7bd008",
\r
432 "type": "switchNode",
\r
433 "name": "switch vf-module-oper-status",
\r
434 "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
437 "x": 675.3333129882812,
\r
438 "y": 634.3333116769791,
\r
439 "z": "6e499246.1345bc",
\r
448 "id": "32ea7a53.265046",
\r
450 "name": "outcome PendingDelete",
\r
451 "xml": "<outcome value='PendingDelete'>\n",
\r
454 "x": 966.1665802001953,
\r
455 "y": 638.444434762001,
\r
456 "z": "6e499246.1345bc",
\r
464 "id": "d6d3b52a.3f5ab8",
\r
467 "xml": "<outcome value='Other'>\n",
\r
470 "x": 933.1667175292969,
\r
471 "y": 690.444487452507,
\r
472 "z": "6e499246.1345bc",
\r
480 "id": "148355e2.614e0a",
\r
481 "type": "returnFailure",
\r
482 "name": "return failure",
\r
483 "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
485 "x": 1092.6664848327637,
\r
486 "y": 693.4444864988327,
\r
487 "z": "6e499246.1345bc",
\r
491 "id": "6b31ad53.5727b4",
\r
493 "name": "block : atomic",
\r
494 "xml": "<block atomic=\"true\">",
\r
497 "x": 1163.4729804992676,
\r
498 "y": 648.7695890665054,
\r
499 "z": "6e499246.1345bc",
\r
505 "id": "13d12ad9.b40a25",
\r
506 "type": "returnSuccess",
\r
507 "name": "return success",
\r
508 "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
510 "x": 646.4445304870605,
\r
511 "y": 1081.2221623659134,
\r
512 "z": "6e499246.1345bc",
\r
516 "id": "71b32013.3584b",
\r
518 "name": "set prop.vnfNewidx",
\r
519 "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`0`' />\n",
\r
521 "x": 653.531177520752,
\r
522 "y": 705.3334804773331,
\r
523 "z": "6e499246.1345bc",
\r
527 "id": "50901066.93c6f",
\r
529 "name": "for lidx..service-data.vf-modules.vf-module[]",
\r
530 "xml": "<for index='lidx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' >\n",
\r
533 "x": 729.5310974121094,
\r
534 "y": 759.3333555459976,
\r
535 "z": "6e499246.1345bc",
\r
543 "id": "379a2e2e.3a8382",
\r
545 "name": "set new vnf length",
\r
546 "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
548 "x": 653.6324691772461,
\r
549 "y": 812.1375733613968,
\r
550 "z": "6e499246.1345bc",
\r
554 "id": "c59a5d45.5b06a",
\r
556 "name": "Remove vnf from ServiceData",
\r
557 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$prop.vnfidxLen].\" value=\"\"/>\n",
\r
559 "x": 694.531135559082,
\r
560 "y": 859.333486199379,
\r
561 "z": "6e499246.1345bc",
\r
565 "id": "18389e8.0583e62",
\r
567 "name": "block : atomic",
\r
568 "xml": "<block atomic=\"true\">",
\r
571 "x": 989.5310878753662,
\r
572 "y": 766.3332153558731,
\r
573 "z": "6e499246.1345bc",
\r
581 "id": "4315ff0e.d57d4",
\r
583 "name": "delete lanport vf instance configuration in AAI",
\r
584 "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='lan-port-config' \n key='lan-port-config.lan-port-config-id = $vf-module-topology-operation-input.vf-module-information.vf-module-id'>\n",
\r
587 "x": 728.5315055847168,
\r
588 "y": 1028.5948683023453,
\r
589 "z": "6e499246.1345bc",
\r
595 "id": "a366647e.22aaf8",
\r
596 "type": "switchNode",
\r
597 "name": "switch vnf-id found",
\r
598 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$lidx].vf-module-data.vf-module-information.vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",
\r
601 "x": 1175.5311546325684,
\r
602 "y": 766.3333760499954,
\r
603 "z": "6e499246.1345bc",
\r
611 "id": "c7c20dda.52c1b",
\r
612 "type": "outcomeFalse",
\r
614 "xml": "<outcome value='false'>\n",
\r
617 "x": 1344.531162261963,
\r
618 "y": 765.3332134485245,
\r
619 "z": "6e499246.1345bc",
\r
627 "id": "72fa222d.49f9ac",
\r
629 "name": "block : atomic",
\r
630 "xml": "<block atomic=\"true\">",
\r
633 "x": 1498.5310010910034,
\r
634 "y": 757.3332144021988,
\r
635 "z": "6e499246.1345bc",
\r
644 "id": "ed2c94b0.3c96e8",
\r
646 "name": "set vnf data",
\r
647 "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
649 "x": 1663.531096458435,
\r
650 "y": 732.3333698511124,
\r
651 "z": "6e499246.1345bc",
\r
655 "id": "f18820dc.cc2b",
\r
657 "name": "set prop.vnfNewidx",
\r
658 "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`$prop.vnfidxLen + 1`' />\n",
\r
660 "x": 1685.531096458435,
\r
661 "y": 788.3333336114883,
\r
662 "z": "6e499246.1345bc",
\r
666 "id": "6e5f86e6.881a38",
\r
668 "name": "set vf-module-object-path",
\r
669 "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
671 "x": 670.333366394043,
\r
672 "y": 975.6666570901871,
\r
673 "z": "6e499246.1345bc",
\r
677 "id": "8ba40e29.5c2bb",
\r
679 "name": "Remove vnf from ServiceData",
\r
680 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].\" value=\"\"/>\n",
\r
682 "x": 684.3372116088867,
\r
683 "y": 909.5862270593643,
\r
684 "z": "6e499246.1345bc",
\r
688 "id": "cd89e451.16b298",
\r
689 "type": "switchNode",
\r
690 "name": "switch vnf-index",
\r
691 "xml": "<switch test='`$vnf-index`'>\n",
\r
696 "z": "6e499246.1345bc",
\r
704 "id": "ccd2db16.3151b8",
\r
707 "xml": "<outcome value=''>\n",
\r
710 "x": 811.0039520263672,
\r
711 "y": 313.0039052963257,
\r
712 "z": "6e499246.1345bc",
\r
720 "id": "2eb95e60.9609a2",
\r
721 "type": "returnFailure",
\r
722 "name": "return failure",
\r
723 "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
725 "x": 960.2540435791016,
\r
726 "y": 310.78178310394287,
\r
727 "z": "6e499246.1345bc",
\r