3 "id": "a6385a9d.53bbd8",
8 "y": 41.42857360839844,
9 "z": "50509cff.314024",
17 "id": "c2830c02.352ca",
19 "name": "block : atomic",
20 "xml": "<block atomic='true'>",
24 "x": 253.72620391845703,
25 "y": 160.20636367797852,
26 "z": "50509cff.314024",
38 "id": "df83a576.0a03c8",
40 "name": "method self-serve-vnf-unassign",
41 "xml": "<method rpc='self-serve-vnf-unassign' mode='sync'>\n",
44 "x": 326.7619094848633,
45 "y": 96.1349287033081,
46 "z": "50509cff.314024",
54 "id": "68771f71.1c988",
55 "type": "service-logic",
56 "name": "GENERIC-RESOURCE-API ${project.version}",
57 "module": "GENERIC-RESOURCE-API",
58 "version": "${project.version}",
60 "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}'>",
62 "x": 485.23819732666016,
63 "y": 41.61906623840332,
64 "z": "50509cff.314024",
72 "id": "d04042ce.4a948",
74 "name": "foreach vnf-parameters-data.param[]",
75 "xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\n",
78 "x": 842.4645538330078,
79 "y": 386.1309928894043,
80 "z": "50509cff.314024",
89 "id": "20db9a83.47e506",
91 "name": "switch resource-resolution-data.status",
92 "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status`'>\n",
95 "x": 579.1789703369141,
96 "y": 782.9287061691284,
97 "z": "50509cff.314024",
107 "id": "af96cd32.20d99",
110 "xml": "<outcome value='SUCCESS'>\n",
113 "x": 854.5719718933105,
114 "y": 783.6429615020752,
115 "z": "50509cff.314024",
123 "id": "7a7eb5ea.d9c27c",
125 "name": "foreach capability-order[]",
126 "xml": "<for index='cidx' start='0' end='`$ss.capability.execution-order_length`' >\n",
129 "x": 508.0357894897461,
130 "y": 241.32139778137207,
131 "z": "50509cff.314024",
142 "id": "bcabf14.e18d21",
143 "type": "switchNode",
144 "name": "switch param capability-name == execution",
145 "xml": "<switch test='`$ss.capability-name == $tmp.param.capability-name`'>\n",
148 "x": 1198.3574676513672,
149 "y": 429.85712242126465,
150 "z": "50509cff.314024",
158 "id": "4c332048.14e83",
159 "type": "outcomeTrue",
161 "xml": "<outcome value='true'>\n",
164 "x": 1461.8574676513672,
165 "y": 430.10712242126465,
166 "z": "50509cff.314024",
174 "id": "cd65f121.8b137",
176 "name": "call ss.capability-dg",
177 "xml": "<call module='GENERIC-RESOURCE-API' rpc='`$ss.capability-dg`' mode='sync' >\n",
180 "x": 1059.6907043457031,
181 "y": 783.4048128128052,
182 "z": "50509cff.314024",
190 "id": "697d23ef.8a2fbc",
192 "name": "ss.capability-name",
193 "xml": "<set>\n<parameter name='ss.capability-name' value='`$ss.capability.execution-order[$cidx]`' />\n\n<!--\nss.capability.execution-order[]\n-->\n",
195 "x": 788.3928451538086,
196 "y": 241.2738494873047,
197 "z": "50509cff.314024",
201 "id": "5506226b.04018c",
203 "name": "tmp.param.capability-name",
204 "xml": "<set>\n<parameter name='tmp.param.capability-name' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.capability-name`' />\n",
206 "x": 1147.7144927978516,
207 "y": 384.4643325805664,
208 "z": "50509cff.314024",
212 "id": "5b9beee2.2b424",
214 "name": "set ss.capability.action = unassign",
215 "xml": "<set>\n<parameter name='ss.capability-action' value='unassign' />\n",
217 "x": 835.1069869995117,
218 "y": 288.19043350219727,
219 "z": "50509cff.314024",
223 "id": "7c9a62de.b663cc",
226 "xml": "<outcome value='failure'>\n",
229 "x": 1244.5832138061523,
230 "y": 783.4048738479614,
231 "z": "50509cff.314024",
239 "id": "9b2708ec.431508",
241 "name": "set capability-dg",
242 "xml": "<set>\n<parameter name='ss.capability-dg' value=\"`'self-serve-' + $ss.capability.execution-order[$cidx]`\" />\n",
244 "x": 779.5356750488281,
245 "y": 337.08334732055664,
246 "z": "50509cff.314024",
250 "id": "bad23ec5.376d3",
252 "name": "generate ss-vnf url replace service-instance-id",
253 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.ss-vnf-assignments`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ss-vnf-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id`\"/>\n",
256 "x": 1727.4405975341797,
257 "y": 837.2865991592407,
258 "z": "50509cff.314024",
264 "id": "fbec284e.585d38",
266 "name": "execute RestApiCallNode - PUT vnf",
267 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ss.vnf.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ss-vnf-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ss-vnf\" />\n\n",
270 "x": 1696.9048919677734,
271 "y": 940.1438207626343,
272 "z": "50509cff.314024",
281 "id": "c47e36eb.d05728",
284 "xml": "<outcome value='not-found'>\n",
287 "x": 1971.4985580444336,
288 "y": 994.1419744491577,
289 "z": "50509cff.314024",
297 "id": "b96d7225.bf08f",
300 "xml": "<outcome value='failure'>\n",
303 "x": 1963.9271926879883,
304 "y": 940.6419944763184,
305 "z": "50509cff.314024",
313 "id": "e88954ca.906d58",
315 "name": "block : atomic",
316 "xml": "<block atomic=\"true\">",
319 "x": 2166.0595169067383,
320 "y": 940.2862491607666,
321 "z": "50509cff.314024",
329 "id": "80bd3596.06daa8",
331 "name": "set error-message",
332 "xml": "<set>\n<parameter name=\"error-message\" value=\"Error persisting self-serve vnf assignments in MD-SAL during unassign\" />\n",
335 "x": 2384.345283508301,
336 "y": 940.4291124343872,
337 "z": "50509cff.314024",
343 "id": "5acff27f.210b1c",
345 "name": "set vf data for restapi-call-node",
346 "xml": "<set>\n<parameter name='vf.vnf-id'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-id`' />\n<parameter name='vf.vnf-data.sdnc-request-header.'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.`' />\n<parameter name='vf.vnf-data.request-information.'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.`' />\n<parameter name='vf.vnf-data.service-information.'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.`' />\n<parameter name='vf.vnf-data.vnf-information.'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.`' />\n<parameter name='vf.vnf-data.vnf-request-input.'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.`' />\n<parameter name='vf.vnf-data.vnf-request-input.vnf-input-parameters.'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.vnf-input-parameters.`' />\n<parameter name='vf.vnf-data.vnf-topology.'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.`' />\n<parameter name='vf.vnf-data.vnf-level-oper-status.'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.`' />",
348 "x": 1679.8928985595703,
349 "y": 783.3811111450195,
350 "z": "50509cff.314024",
354 "id": "3ed081d1.8cc08e",
356 "name": "generate ss-vnf url - replace vnf-id",
357 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ss-vnf-url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ss-vnf-url\"/>\n <parameter name=\"target\" value=\"{vnf-id}\"/>\n <parameter name=\"replacement\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-id`\"/>\n",
360 "x": 1691.726303100586,
361 "y": 888.0953674316406,
362 "z": "50509cff.314024",
368 "id": "5ae85112.18d99",
370 "name": "block : atomic",
371 "xml": "<block atomic='true'>",
375 "x": 1405.535888671875,
376 "y": 783.1429853439331,
377 "z": "50509cff.314024",
389 "id": "4e5f969d.6392c8",
390 "type": "returnFailure",
391 "name": "return failure",
392 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to unassign self-serve vnf assignments for ' + $ss.capability-dg + ' with error: ' + $error-message`\" />\n",
394 "x": 1626.4408569335938,
395 "y": 1067.9167687892914,
396 "z": "50509cff.314024",
400 "id": "8603e753.202d08",
402 "name": "printContext",
403 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/ss-vnf-assign.log' />\n",
406 "x": 469.1193313598633,
407 "y": 1437.488163948059,
408 "z": "50509cff.314024",
414 "id": "cadde72f.768658",
416 "name": "set ss.capability.execution-order[]",
417 "xml": "<set>\n<parameter name='ss.capability.execution-order[0]' value='mac-address-assign' />\n<parameter name='ss.capability.execution-order[1]' value='mS-mac-address-assign' />\n<parameter name='ss.capability.execution-order[2]' value='eipam-ip-assign' />\n<parameter
418 name='ss.capability.execution-order[3]' value='netbox-ip-assign' />\n<parameter name='ss.capability.execution-order[4]' value='vlan-tag-assign' />\n<parameter name='ss.capability.execution-order[5]' value='mS-vlan-tag-assign' />\n<parameter name='ss.capability.execution-order[6]' value='alts-license-assign' />\n<parameter name='ss.capability.execution-order[7]' value='alts-entitlement-assign' />\n<parameter name='ss.capability.execution-order[8]' value='generate-name' />\n<parameter name='ss.capability.execution-order_length' value='9' />",
420 "x": 533.2500381469727,
421 "y": 160.4285774230957,
422 "z": "50509cff.314024",
426 "id": "8025d892.0ac388",
429 "xml": "<outcome value='DELETED'>\n",
432 "x": 855.0714416503906,
433 "y": 850.1785583496094,
434 "z": "50509cff.314024",
442 "id": "61da759.184e28c",
444 "name": "set ss.capability-type = vnf",
445 "xml": "<set>\n<parameter name='ss.capability-type' value='vnf' />\n",
447 "x": 512.8571395874023,
448 "y": 200.00000762939453,
449 "z": "50509cff.314024",
453 "id": "6b6d2942.d47c48",
454 "type": "returnFailure",
455 "name": "return failure",
456 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to unassign self-serve vnf assignments because the status for ' + $ss.capability-name + ' is ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status`\"/>",
458 "x": 1237.1428833007812,
459 "y": 960.3929593222483,
460 "z": "50509cff.314024",
464 "id": "3057289e.008328",
471 "x": 1011.5714340209961,
472 "y": 850.1785469055176,
473 "z": "50509cff.314024",
479 "id": "acbf2cb7.1041",
482 "xml": "<outcome value='Other'>\n",
485 "x": 846.1428375244141,
486 "y": 908.3928604125977,
487 "z": "50509cff.314024",
495 "id": "70287cdc.85b194",
498 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"`'SS: resource-resolution-data.status: ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status`\"/>\n<parameter name=\"field2\" value=\"`'SS: ss.capability-name: ' + $ss.capability-name`\"/>",
501 "x": 1216.4285888671875,
502 "y": 908.3929659979685,
503 "z": "50509cff.314024",
509 "id": "c1c0b7f6.69a4e8",
511 "name": "block : atomic",
512 "xml": "<block atomic='true'>",
516 "x": 1032.8571319580078,
517 "y": 908.3929119110107,
518 "z": "50509cff.314024",
527 "id": "1c8c4c56.6f0bc4",
529 "name": "for each vnf",
530 "xml": "<for index='idx' start='`$vnf-index + 1`' end='`$service-data.vnfs.vnf_length`' >\n",
533 "x": 1036.6666145324707,
534 "y": 1267.381091117859,
535 "z": "50509cff.314024",
543 "id": "48bdb965.fbf268",
545 "name": "Remove VNF from service data",
548 "x": 448.825382232666,
549 "y": 1225.9527435302734,
550 "z": "50509cff.314024",
554 "id": "39ffbb9b.5384c4",
556 "name": "move vnf to remove one",
557 "xml": "<set>\n\t<parameter name=\"$tmpidx\" value=\"`$idx - 1`\"/>\n\t<parameter name=\"service-data.vnfs.vnf[$tmpidx].\" value=\"$service-data.vnfs.vnf[$idx].\" />\n\t\n",
559 "x": 1270.2577476501465,
560 "y": 1266.4050426483154,
561 "z": "50509cff.314024",
565 "id": "ee44abff.0a52c8",
566 "type": "switchNode",
567 "name": "switch vnf_length",
568 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
571 "x": 492.92447662353516,
572 "y": 1268.9607200622559,
573 "z": "50509cff.314024",
582 "id": "3c166715.7796b8",
585 "xml": "<outcome value='1'>\n",
588 "x": 669.9245185852051,
589 "y": 1229.6273069381714,
590 "z": "50509cff.314024",
598 "id": "8af99073.0156",
600 "name": "Remove vnfs",
601 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.\" value=\"\"/>\n\n",
603 "x": 833.5910148620605,
604 "y": 1229.6274061203003,
605 "z": "50509cff.314024",
609 "id": "62f98baa.f6f574",
612 "xml": "<outcome value='Other'>\n",
615 "x": 671.4484100341797,
616 "y": 1313.103446006775,
617 "z": "50509cff.314024",
625 "id": "c1ef091a.99d9e8",
627 "name": "set new vnf length",
628 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf_length\" value=\"`$service-data.vnfs.vnf_length - 1`\"/>\n\n\t\n",
631 "y": 1357.9606647491455,
632 "z": "50509cff.314024",
636 "id": "2c024236.55d4ae",
638 "name": "Remove the last vnf in the list",
639 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$service-data.vnfs.vnf_length-1].\" value=\"\"/>\n\n",
641 "x": 1091.92435836792,
642 "y": 1313.0716857910156,
643 "z": "50509cff.314024",
647 "id": "b4f726ae.38e868",
649 "name": "block : atomic",
650 "xml": "<block atomic=\"true\">",
653 "x": 837.2577514648438,
654 "y": 1313.6272268295288,
655 "z": "50509cff.314024",