3 "id": "d97ddb0b.9dbae8",
5 "name": "switch service-data.vnfs.vnf_length",
6 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
9 "x": 657.5634536743164,
10 "y": 290.26117038726807,
11 "z": "298a9201.dd932e",
20 "id": "ffc786dd.6d3ce8",
26 "z": "298a9201.dd932e",
34 "id": "19627a0c.fad7f6",
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": 194.75445556640625,
43 "y": 95.23811149597168,
44 "z": "298a9201.dd932e",
52 "id": "89fc7e96.e130c",
54 "name": "wan port-vnf-topology-operation-delete",
57 "x": 568.8136672973633,
58 "y": 128.58639907836914,
59 "z": "298a9201.dd932e",
63 "id": "12b8b4a9.73677b",
65 "name": "block : atomic",
66 "xml": "<block atomic=\"true\">",
69 "x": 196.13541412353516,
70 "y": 356.6666717529297,
71 "z": "298a9201.dd932e",
89 "id": "78101855.a55318",
91 "name": "outcome Null",
92 "xml": "<outcome value=''>\n",
95 "x": 922.2857666015625,
96 "y": 272.81679248809814,
97 "z": "298a9201.dd932e",
105 "id": "74e8241b.eea89c",
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": 1103.2856369018555,
111 "y": 267.81667041778564,
112 "z": "298a9201.dd932e",
116 "id": "303c0757.9740d8",
119 "xml": "<outcome value='Other'>\n",
122 "x": 907.7857666015625,
123 "y": 324.8167552947998,
124 "z": "298a9201.dd932e",
132 "id": "1483b08f.bc2c8f",
134 "name": "block : atomic",
135 "xml": "<block atomic=\"true\">",
138 "x": 1079.785472869873,
139 "y": 324.8167533874512,
140 "z": "298a9201.dd932e",
149 "id": "c7e2b23c.082b2",
150 "type": "switchNode",
151 "name": "switch tmp.vidx ",
152 "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
155 "x": 1254.78564453125,
156 "y": 343.8166751861572,
157 "z": "298a9201.dd932e",
165 "id": "86a0bf6e.0b80b",
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": 627.9524536132812,
172 "y": 364.70563411712646,
173 "z": "298a9201.dd932e",
182 "id": "bebaa9f9.5133d8",
184 "name": "outcome PendingDelete",
185 "xml": "<outcome value='PendingDelete'>\n",
188 "x": 918.7857208251953,
189 "y": 368.81675720214844,
190 "z": "298a9201.dd932e",
198 "id": "de5a57a9.6e5c38",
201 "xml": "<outcome value='Other'>\n",
204 "x": 864.7857818603516,
205 "y": 415.8167610168457,
206 "z": "298a9201.dd932e",
214 "id": "c9cdcb18.116a68",
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": 1024.2855491638184,
220 "y": 418.8167600631714,
221 "z": "298a9201.dd932e",
225 "id": "c603984a.796d78",
226 "type": "switchNode",
227 "name": "switch vnf-id",
228 "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\">\n",
231 "x": 593.7857704162598,
232 "y": 245.81676387786865,
233 "z": "298a9201.dd932e",
241 "id": "9c65cfbe.e7f66",
244 "xml": "<outcome value=''>",
247 "x": 791.7858352661133,
248 "y": 235.81677627563477,
249 "z": "298a9201.dd932e",
257 "id": "16c05e83.252251",
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": 958.2857208251953,
263 "y": 232.81677055358887,
264 "z": "298a9201.dd932e",
268 "id": "e9c362d9.eda3b",
270 "name": "for vidx..service-data.vnfs.vnf[]",
271 "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
274 "x": 1315.2856483459473,
275 "y": 279.81667137145996,
276 "z": "298a9201.dd932e",
284 "id": "76ffd99.2cf1928",
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": 1571.2856674194336,
291 "y": 279.81667137145996,
292 "z": "298a9201.dd932e",
300 "id": "157a2e27.614112",
301 "type": "outcomeTrue",
303 "xml": "<outcome value='true'>\n",
306 "x": 1747.7857208251953,
307 "y": 282.81667137145996,
308 "z": "298a9201.dd932e",
316 "id": "9ee7d32a.eb396",
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": 1914.7857360839844,
322 "y": 343.81667137145996,
323 "z": "298a9201.dd932e",
327 "id": "b167d24d.6ae55",
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": 1560.285659790039,
333 "y": 343.8166751861572,
334 "z": "298a9201.dd932e",
338 "id": "b277af35.24bde",
341 "xml": "<outcome value=''>\n",
344 "x": 1422.785659790039,
345 "y": 343.8166751861572,
346 "z": "298a9201.dd932e",
354 "id": "79e6b6ed.e79cf8",
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": 599.8022537231445,
360 "y": 647.3334503173828,
361 "z": "298a9201.dd932e",
365 "id": "a877fa3c.5b8268",
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": 572.913516998291,
371 "y": 772.8888854980469,
372 "z": "298a9201.dd932e",
376 "id": "c5c45c6b.923e9",
378 "name": "set new vnf length",
379 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf_length\" value='`$prop.vnfidxLen`'/>\n\n\t\n",
381 "x": 577.4347686767578,
382 "y": 555.8044013977051,
383 "z": "298a9201.dd932e",
387 "id": "a8bce4a2.2db818",
389 "name": "block : atomic",
390 "xml": "<block atomic=\"true\">",
393 "x": 1116.0921211242676,
394 "y": 379.14191150665283,
395 "z": "298a9201.dd932e",
401 "id": "90edfff9.8d8dc",
403 "name": "method sdwan-vnf-topology-operation-wanport-delete",
404 "xml": "<method rpc='sdwan-vnf-topology-operation-wanport-delete' mode='sync'>\n",
408 "y": 211.26117038726807,
409 "z": "298a9201.dd932e",
417 "id": "b1f3fdb5.343c9",
419 "name": "execute requiredParameters",
420 "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",
423 "x": 651.2858276367188,
424 "y": 185.81676292419434,
425 "z": "298a9201.dd932e",
431 "id": "96916512.691c98",
433 "name": "delete wan port instance configuration in AAI",
434 "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='wan-port-config' \n key='wan-port-config.id = $vnf-topology-operation-input.vnf-information.vnf-id'>\n",
437 "x": 649.0001983642578,
438 "y": 685.2611904144287,
439 "z": "298a9201.dd932e",
445 "id": "f2a5223f.497fa",
447 "name": "for lidx..service-data.vnfs.vnf[]",
448 "xml": "<for index='lidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
451 "x": 611.3333854675293,
452 "y": 505.0001096725464,
453 "z": "298a9201.dd932e",
461 "id": "53b23540.75768c",
463 "name": "block : atomic",
464 "xml": "<block atomic=\"true\">",
467 "x": 855.333366394043,
468 "y": 531.0000691413879,
469 "z": "298a9201.dd932e",
477 "id": "52fdf367.fb37ac",
478 "type": "switchNode",
479 "name": "switch vnf-id found",
480 "xml": "<switch test=\"`$service-data.vnfs.vnf[$lidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
483 "x": 1047.3333129882812,
484 "y": 540.0001134872437,
485 "z": "298a9201.dd932e",
493 "id": "ae48a2e3.38f76",
494 "type": "outcomeFalse",
496 "xml": "<outcome value='false'>\n",
499 "x": 1233.3333282470703,
501 "z": "298a9201.dd932e",
509 "id": "8341b52b.a87b88",
511 "name": "set vnf data",
512 "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",
514 "x": 1549.3333473205566,
515 "y": 500.0001916885376,
516 "z": "298a9201.dd932e",
520 "id": "14bdc57f.29da0b",
522 "name": "set prop.vnfNewidx",
523 "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`0`' />\n",
525 "x": 576.3333892822266,
526 "y": 469.0000686645508,
527 "z": "298a9201.dd932e",
531 "id": "45e47923.545468",
533 "name": "set prop.vnfNewidx",
534 "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`$prop.vnfidxLen + 1`' />\n",
536 "x": 1571.3333473205566,
537 "y": 556.0001554489136,
538 "z": "298a9201.dd932e",
542 "id": "617570c9.1b48",
544 "name": "block : atomic",
545 "xml": "<block atomic=\"true\">",
548 "x": 1384.333251953125,
549 "y": 525.000036239624,
550 "z": "298a9201.dd932e",
559 "id": "9171f0e2.d13bf",
561 "name": "Remove vnf from ServiceData",
562 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$prop.vnfidxLen].\" value=\"\"/>\n\n",
564 "x": 613.0000534057617,
565 "y": 598.0000357627869,
566 "z": "298a9201.dd932e",