3 "id": "ec163be6.3f3848",
\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": 184.58635187149048,
\r
11 "z": "1c424bc5.8e5824",
\r
19 "id": "1bec69d8.54d756",
\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": 245.28570556640625,
\r
28 "y": 85.23810958862305,
\r
29 "z": "1c424bc5.8e5824",
\r
37 "id": "8b3450fa.11be1",
\r
43 "z": "1c424bc5.8e5824",
\r
51 "id": "4793fbaf.4f8194",
\r
53 "name": "block : atomic",
\r
54 "xml": "<block atomic=\"true\">",
\r
57 "x": 273.6667022705078,
\r
58 "y": 413.6667194366455,
\r
59 "z": "1c424bc5.8e5824",
\r
79 "id": "a32b04df.766888",
\r
81 "name": "for each vnf",
\r
82 "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
\r
85 "x": 608.0313491821289,
\r
86 "y": 194.26914203166962,
\r
87 "z": "1c424bc5.8e5824",
\r
95 "id": "9dfafdb.c466",
\r
96 "type": "switchNode",
\r
97 "name": "switch vnf_length",
\r
98 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
\r
101 "x": 613.0000038146973,
\r
102 "y": 133.0000113248825,
\r
103 "z": "1c424bc5.8e5824",
\r
111 "id": "58b9bfe5.41c97",
\r
114 "xml": "<outcome value=''>\n",
\r
117 "x": 792.9999847412109,
\r
118 "y": 132.00000083446503,
\r
119 "z": "1c424bc5.8e5824",
\r
127 "id": "2d04caf9.98dff6",
\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": 942.4287109375,
\r
133 "y": 133.14291846752167,
\r
134 "z": "1c424bc5.8e5824",
\r
138 "id": "f4a89702.3708f8",
\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": 195.00000703334808,
\r
146 "z": "1c424bc5.8e5824",
\r
154 "id": "4ee74d2f.481124",
\r
155 "type": "outcomeTrue",
\r
157 "xml": "<outcome value='true'>\n",
\r
160 "x": 1045.999984741211,
\r
161 "y": 193.00000083446503,
\r
162 "z": "1c424bc5.8e5824",
\r
170 "id": "864b8c78.81cb3",
\r
172 "name": "set vnf-index",
\r
173 "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
\r
175 "x": 1209.999984741211,
\r
176 "y": 188.00000083446503,
\r
177 "z": "1c424bc5.8e5824",
\r
181 "id": "1b926ba7.620a94",
\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": 660.0000343322754,
\r
188 "y": 336.0000247955322,
\r
189 "z": "1c424bc5.8e5824",
\r
199 "id": "c6dbecb6.3daf1",
\r
202 "xml": "<outcome value=''>\n",
\r
205 "x": 882.0000267028809,
\r
206 "y": 370.0000343322754,
\r
207 "z": "1c424bc5.8e5824",
\r
215 "id": "f160fe58.60ceb",
\r
218 "xml": "<outcome value='0'>\n",
\r
221 "x": 887.0000228881836,
\r
222 "y": 317.0000333786011,
\r
223 "z": "1c424bc5.8e5824",
\r
231 "id": "8b2c8779.a3f058",
\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": 1045.0000267028809,
\r
237 "y": 330.0000343322754,
\r
238 "z": "1c424bc5.8e5824",
\r
242 "id": "78728405.050dbc",
\r
245 "xml": "<outcome value='Other'>\n",
\r
248 "x": 882.0000267028809,
\r
249 "y": 431.0000343322754,
\r
250 "z": "1c424bc5.8e5824",
\r
258 "id": "70ed1707.f5ee78",
\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": 1236.00004196167,
\r
264 "y": 429.00004827976227,
\r
265 "z": "1c424bc5.8e5824",
\r
269 "id": "3894cc60.de2194",
\r
271 "name": "block : atomic",
\r
272 "xml": "<block atomic=\"true\">",
\r
275 "x": 1043.000072479248,
\r
276 "y": 428.00002574920654,
\r
277 "z": "1c424bc5.8e5824",
\r
286 "id": "ec070549.11ed28",
\r
288 "name": "for each existing vf-index",
\r
289 "xml": "<for index='idx' start='0' end='`$vf-module-length`' >\n",
\r
292 "x": 1255.0000114440918,
\r
293 "y": 482.0000247955322,
\r
294 "z": "1c424bc5.8e5824",
\r
302 "id": "fcb13450.487cd8",
\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": 1526.0000305175781,
\r
309 "y": 483.00006198883057,
\r
310 "z": "1c424bc5.8e5824",
\r
318 "id": "f167edc3.b2418",
\r
319 "type": "outcomeTrue",
\r
321 "xml": "<outcome value='true'>\n",
\r
324 "x": 1739.0001544952393,
\r
325 "y": 470.00003147125244,
\r
326 "z": "1c424bc5.8e5824",
\r
334 "id": "3335b07e.93a8c",
\r
336 "name": "block : atomic",
\r
337 "xml": "<block atomic=\"true\">",
\r
340 "x": 1891.0001258850098,
\r
341 "y": 472.0000247955322,
\r
342 "z": "1c424bc5.8e5824",
\r
352 "id": "3d815800.695568",
\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": 2113.0001258850098,
\r
358 "y": 468.0000247955322,
\r
359 "z": "1c424bc5.8e5824",
\r
363 "id": "da733ba9.b543b8",
\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": 2119.0001258850098,
\r
369 "y": 517.0000247955322,
\r
370 "z": "1c424bc5.8e5824",
\r
374 "id": "ab8c2e99.50d5d",
\r
376 "name": "call sdwan-get-vf-module-lan-param",
\r
377 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-lanport-param' mode='sync' >\n",
\r
380 "x": 2147.000347137451,
\r
381 "y": 565.0000305175781,
\r
382 "z": "1c424bc5.8e5824",
\r
388 "id": "d56abb49.55c298",
\r
389 "type": "switchNode",
\r
390 "name": "switch tmp.vidx ",
\r
391 "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
\r
394 "x": 599.0312461853027,
\r
395 "y": 509.0161075592041,
\r
396 "z": "1c424bc5.8e5824",
\r
404 "id": "a2f7bc45.7d854",
\r
407 "xml": "<outcome value=''>\n",
\r
410 "x": 746.459888458252,
\r
411 "y": 508.5875177383423,
\r
412 "z": "1c424bc5.8e5824",
\r
420 "id": "a5b6de1f.319b7",
\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": 895.888614654541,
\r
426 "y": 509.7304353713989,
\r
427 "z": "1c424bc5.8e5824",
\r
431 "id": "9d4a1934.79a7a8",
\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": 643.3294067382812,
\r
438 "y": 579.3333129882812,
\r
439 "z": "1c424bc5.8e5824",
\r
448 "id": "88c55560.ea56c8",
\r
450 "name": "outcome PendingDelete",
\r
451 "xml": "<outcome value='PendingDelete'>\n",
\r
454 "x": 930.1627044677734,
\r
455 "y": 562.4444751739502,
\r
456 "z": "1c424bc5.8e5824",
\r
464 "id": "5f573696.518908",
\r
467 "xml": "<outcome value='Other'>\n",
\r
470 "x": 914.1628684997559,
\r
471 "y": 608.4445171356201,
\r
472 "z": "1c424bc5.8e5824",
\r
480 "id": "d2e1da0b.14c268",
\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": 1131.6626281738281,
\r
486 "y": 607.4444761276245,
\r
487 "z": "1c424bc5.8e5824",
\r
491 "id": "ddef1b.d5ace0e8",
\r
493 "name": "block : atomic",
\r
494 "xml": "<block atomic=\"true\">",
\r
497 "x": 1144.4691066741943,
\r
498 "y": 560.7696704864502,
\r
499 "z": "1c424bc5.8e5824",
\r
505 "id": "4443f52d.bb0e4c",
\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": 614.4406242370605,
\r
511 "y": 1026.2221636772156,
\r
512 "z": "1c424bc5.8e5824",
\r
516 "id": "2bcb08d.42550f8",
\r
518 "name": "set prop.vnfNewidx",
\r
519 "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`0`' />\n",
\r
521 "x": 621.527271270752,
\r
522 "y": 650.3334817886353,
\r
523 "z": "1c424bc5.8e5824",
\r
527 "id": "3673a6e1.e30cca",
\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": 697.5271911621094,
\r
534 "y": 704.3333568572998,
\r
535 "z": "1c424bc5.8e5824",
\r
543 "id": "dcdd31d0.479e7",
\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": 621.6285629272461,
\r
549 "y": 757.137574672699,
\r
550 "z": "1c424bc5.8e5824",
\r
554 "id": "48c6ddd.4092a24",
\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": 662.527229309082,
\r
560 "y": 804.3334875106812,
\r
561 "z": "1c424bc5.8e5824",
\r
565 "id": "811b86b3.145198",
\r
567 "name": "block : atomic",
\r
568 "xml": "<block atomic=\"true\">",
\r
571 "x": 957.5271816253662,
\r
572 "y": 711.3332166671753,
\r
573 "z": "1c424bc5.8e5824",
\r
581 "id": "96d011a.ebe42f",
\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": 696.5275993347168,
\r
588 "y": 973.5948696136475,
\r
589 "z": "1c424bc5.8e5824",
\r
595 "id": "1e6e592d.12c717",
\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": 1143.5272483825684,
\r
602 "y": 711.3333773612976,
\r
603 "z": "1c424bc5.8e5824",
\r
611 "id": "33904649.f29baa",
\r
612 "type": "outcomeFalse",
\r
614 "xml": "<outcome value='false'>\n",
\r
617 "x": 1312.527256011963,
\r
618 "y": 710.3332147598267,
\r
619 "z": "1c424bc5.8e5824",
\r
627 "id": "feb2eba6.9b1178",
\r
629 "name": "block : atomic",
\r
630 "xml": "<block atomic=\"true\">",
\r
633 "x": 1466.5270948410034,
\r
634 "y": 702.333215713501,
\r
635 "z": "1c424bc5.8e5824",
\r
644 "id": "1c71b1a3.8a840e",
\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].vf-module-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].vf-module-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$lidx].vf-module-data.`' />\n",
\r
649 "x": 1631.527190208435,
\r
650 "y": 677.3333711624146,
\r
651 "z": "1c424bc5.8e5824",
\r
655 "id": "76b09d29.70bbf4",
\r
657 "name": "set prop.vnfNewidx",
\r
658 "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`$prop.vnfidxLen + 1`' />\n",
\r
660 "x": 1653.527190208435,
\r
661 "y": 733.3333349227905,
\r
662 "z": "1c424bc5.8e5824",
\r
666 "id": "fb17bb23.b22de8",
\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": 638.329460144043,
\r
672 "y": 920.6666584014893,
\r
673 "z": "1c424bc5.8e5824",
\r
677 "id": "c43a3a93.767aa8",
\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": 652.3333053588867,
\r
683 "y": 854.5862283706665,
\r
684 "z": "1c424bc5.8e5824",
\r
688 "id": "279f2432.3dd51c",
\r
689 "type": "switchNode",
\r
690 "name": "switch vnf-index",
\r
691 "xml": "<switch test='`$vnf-index`'>\n",
\r
695 "y": 259.0039075613022,
\r
696 "z": "1c424bc5.8e5824",
\r
704 "id": "145975f0.e3dbaa",
\r
707 "xml": "<outcome value=''>\n",
\r
710 "x": 779.0000457763672,
\r
711 "y": 258.00390660762787,
\r
712 "z": "1c424bc5.8e5824",
\r
720 "id": "3cec081f.179438",
\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": 928.2501373291016,
\r
726 "y": 255.78178441524506,
\r
727 "z": "1c424bc5.8e5824",
\r