-[
- {
- "id": "a6385a9d.53bbd8",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 210,
- "y": 41.42857360839844,
- "z": "50509cff.314024",
- "wires": [
- [
- "68771f71.1c988"
- ]
- ]
- },
- {
- "id": "c2830c02.352ca",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 253.72620391845703,
- "y": 160.20636367797852,
- "z": "50509cff.314024",
- "wires": [
- [
- "7a7eb5ea.d9c27c",
- "cadde72f.768658",
- "61da759.184e28c",
- "8603e753.202d08",
- "ee44abff.0a52c8"
- ]
- ]
- },
- {
- "id": "df83a576.0a03c8",
- "type": "method",
- "name": "method self-serve-vnf-unassign",
- "xml": "<method rpc='self-serve-vnf-unassign' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 326.7619094848633,
- "y": 96.1349287033081,
- "z": "50509cff.314024",
- "wires": [
- [
- "c2830c02.352ca"
- ]
- ]
- },
- {
- "id": "68771f71.1c988",
- "type": "service-logic",
- "name": "GENERIC-RESOURCE-API ${project.version}",
- "module": "GENERIC-RESOURCE-API",
- "version": "${project.version}",
- "comments": "",
- "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}'>",
- "outputs": 1,
- "x": 485.23819732666016,
- "y": 41.61906623840332,
- "z": "50509cff.314024",
- "wires": [
- [
- "df83a576.0a03c8"
- ]
- ]
- },
- {
- "id": "d04042ce.4a948",
- "type": "for",
- "name": "foreach vnf-parameters-data.param[]",
- "xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 842.4645538330078,
- "y": 386.1309928894043,
- "z": "50509cff.314024",
- "wires": [
- [
- "bcabf14.e18d21",
- "5506226b.04018c"
- ]
- ]
- },
- {
- "id": "20db9a83.47e506",
- "type": "switchNode",
- "name": "switch resource-resolution-data.status",
- "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 579.1789703369141,
- "y": 782.9287061691284,
- "z": "50509cff.314024",
- "wires": [
- [
- "af96cd32.20d99",
- "8025d892.0ac388",
- "acbf2cb7.1041"
- ]
- ]
- },
- {
- "id": "af96cd32.20d99",
- "type": "other",
- "name": "SUCCESS",
- "xml": "<outcome value='SUCCESS'>\n",
- "comments": "",
- "outputs": 1,
- "x": 854.5719718933105,
- "y": 783.6429615020752,
- "z": "50509cff.314024",
- "wires": [
- [
- "cd65f121.8b137"
- ]
- ]
- },
- {
- "id": "7a7eb5ea.d9c27c",
- "type": "for",
- "name": "foreach capability-order[]",
- "xml": "<for index='cidx' start='0' end='`$ss.capability.execution-order_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 508.0357894897461,
- "y": 241.32139778137207,
- "z": "50509cff.314024",
- "wires": [
- [
- "697d23ef.8a2fbc",
- "5b9beee2.2b424",
- "d04042ce.4a948",
- "9b2708ec.431508"
- ]
- ]
- },
- {
- "id": "bcabf14.e18d21",
- "type": "switchNode",
- "name": "switch param capability-name == execution",
- "xml": "<switch test='`$ss.capability-name == $tmp.param.capability-name`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1198.3574676513672,
- "y": 429.85712242126465,
- "z": "50509cff.314024",
- "wires": [
- [
- "4c332048.14e83"
- ]
- ]
- },
- {
- "id": "4c332048.14e83",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1461.8574676513672,
- "y": 430.10712242126465,
- "z": "50509cff.314024",
- "wires": [
- [
- "20db9a83.47e506"
- ]
- ]
- },
- {
- "id": "cd65f121.8b137",
- "type": "call",
- "name": "call ss.capability-dg",
- "xml": "<call module='GENERIC-RESOURCE-API' rpc='`$ss.capability-dg`' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1059.6907043457031,
- "y": 783.4048128128052,
- "z": "50509cff.314024",
- "wires": [
- [
- "7c9a62de.b663cc"
- ]
- ]
- },
- {
- "id": "697d23ef.8a2fbc",
- "type": "set",
- "name": "ss.capability-name",
- "xml": "<set>\n<parameter name='ss.capability-name' value='`$ss.capability.execution-order[$cidx]`' />\n\n<!--\nss.capability.execution-order[]\n-->\n",
- "comments": "",
- "x": 788.3928451538086,
- "y": 241.2738494873047,
- "z": "50509cff.314024",
- "wires": []
- },
- {
- "id": "5506226b.04018c",
- "type": "set",
- "name": "tmp.param.capability-name",
- "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",
- "comments": "",
- "x": 1147.7144927978516,
- "y": 384.4643325805664,
- "z": "50509cff.314024",
- "wires": []
- },
- {
- "id": "5b9beee2.2b424",
- "type": "set",
- "name": "set ss.capability.action = unassign",
- "xml": "<set>\n<parameter name='ss.capability-action' value='unassign' />\n",
- "comments": "",
- "x": 835.1069869995117,
- "y": 288.19043350219727,
- "z": "50509cff.314024",
- "wires": []
- },
- {
- "id": "7c9a62de.b663cc",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1244.5832138061523,
- "y": 783.4048738479614,
- "z": "50509cff.314024",
- "wires": [
- [
- "5ae85112.18d99"
- ]
- ]
- },
- {
- "id": "9b2708ec.431508",
- "type": "set",
- "name": "set capability-dg",
- "xml": "<set>\n<parameter name='ss.capability-dg' value=\"`'self-serve-' + $ss.capability.execution-order[$cidx]`\" />\n",
- "comments": "",
- "x": 779.5356750488281,
- "y": 337.08334732055664,
- "z": "50509cff.314024",
- "wires": []
- },
- {
- "id": "bad23ec5.376d3",
- "type": "execute",
- "name": "generate ss-vnf url replace service-instance-id",
- "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",
- "comments": "",
- "outputs": 1,
- "x": 1727.4405975341797,
- "y": 837.2865991592407,
- "z": "50509cff.314024",
- "wires": [
- []
- ]
- },
- {
- "id": "fbec284e.585d38",
- "type": "execute",
- "name": "execute RestApiCallNode - PUT vnf",
- "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",
- "comments": "",
- "outputs": 1,
- "x": 1696.9048919677734,
- "y": 940.1438207626343,
- "z": "50509cff.314024",
- "wires": [
- [
- "c47e36eb.d05728",
- "b96d7225.bf08f"
- ]
- ]
- },
- {
- "id": "c47e36eb.d05728",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1971.4985580444336,
- "y": 994.1419744491577,
- "z": "50509cff.314024",
- "wires": [
- [
- "e88954ca.906d58"
- ]
- ]
- },
- {
- "id": "b96d7225.bf08f",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1963.9271926879883,
- "y": 940.6419944763184,
- "z": "50509cff.314024",
- "wires": [
- [
- "e88954ca.906d58"
- ]
- ]
- },
- {
- "id": "e88954ca.906d58",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 2166.0595169067383,
- "y": 940.2862491607666,
- "z": "50509cff.314024",
- "wires": [
- [
- "80bd3596.06daa8"
- ]
- ]
- },
- {
- "id": "80bd3596.06daa8",
- "type": "configure",
- "name": "set error-message",
- "xml": "<set>\n<parameter name=\"error-message\" value=\"Error persisting self-serve vnf assignments in MD-SAL during unassign\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 2384.345283508301,
- "y": 940.4291124343872,
- "z": "50509cff.314024",
- "wires": [
- []
- ]
- },
- {
- "id": "5acff27f.210b1c",
- "type": "set",
- "name": "set vf data for restapi-call-node",
- "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.`' />",
- "comments": "",
- "x": 1679.8928985595703,
- "y": 783.3811111450195,
- "z": "50509cff.314024",
- "wires": []
- },
- {
- "id": "3ed081d1.8cc08e",
- "type": "execute",
- "name": "generate ss-vnf url - replace vnf-id",
- "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",
- "comments": "",
- "outputs": 1,
- "x": 1691.726303100586,
- "y": 888.0953674316406,
- "z": "50509cff.314024",
- "wires": [
- []
- ]
- },
- {
- "id": "5ae85112.18d99",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1405.535888671875,
- "y": 783.1429853439331,
- "z": "50509cff.314024",
- "wires": [
- [
- "bad23ec5.376d3",
- "fbec284e.585d38",
- "5acff27f.210b1c",
- "3ed081d1.8cc08e",
- "4e5f969d.6392c8"
- ]
- ]
- },
- {
- "id": "4e5f969d.6392c8",
- "type": "returnFailure",
- "name": "return failure",
- "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",
- "comments": "",
- "x": 1626.4408569335938,
- "y": 1067.9167687892914,
- "z": "50509cff.314024",
- "wires": []
- },
- {
- "id": "8603e753.202d08",
- "type": "execute",
- "name": "printContext",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/ss-vnf-assign.log' />\n",
- "comments": "",
- "outputs": 1,
- "x": 469.1193313598633,
- "y": 1437.488163948059,
- "z": "50509cff.314024",
- "wires": [
- []
- ]
- },
- {
- "id": "cadde72f.768658",
- "type": "set",
- "name": "set ss.capability.execution-order[]",
- "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
-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' />",
- "comments": "",
- "x": 533.2500381469727,
- "y": 160.4285774230957,
- "z": "50509cff.314024",
- "wires": []
- },
- {
- "id": "8025d892.0ac388",
- "type": "other",
- "name": "DELETED",
- "xml": "<outcome value='DELETED'>\n",
- "comments": "",
- "outputs": 1,
- "x": 855.0714416503906,
- "y": 850.1785583496094,
- "z": "50509cff.314024",
- "wires": [
- [
- "3057289e.008328"
- ]
- ]
- },
- {
- "id": "61da759.184e28c",
- "type": "set",
- "name": "set ss.capability-type = vnf",
- "xml": "<set>\n<parameter name='ss.capability-type' value='vnf' />\n",
- "comments": "",
- "x": 512.8571395874023,
- "y": 200.00000762939453,
- "z": "50509cff.314024",
- "wires": []
- },
- {
- "id": "6b6d2942.d47c48",
- "type": "returnFailure",
- "name": "return failure",
- "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`\"/>",
- "comments": "",
- "x": 1237.1428833007812,
- "y": 960.3929593222483,
- "z": "50509cff.314024",
- "wires": []
- },
- {
- "id": "3057289e.008328",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1011.5714340209961,
- "y": 850.1785469055176,
- "z": "50509cff.314024",
- "wires": [
- []
- ]
- },
- {
- "id": "acbf2cb7.1041",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 846.1428375244141,
- "y": 908.3928604125977,
- "z": "50509cff.314024",
- "wires": [
- [
- "c1c0b7f6.69a4e8"
- ]
- ]
- },
- {
- "id": "70287cdc.85b194",
- "type": "record",
- "name": "record",
- "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`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1216.4285888671875,
- "y": 908.3929659979685,
- "z": "50509cff.314024",
- "wires": [
- []
- ]
- },
- {
- "id": "c1c0b7f6.69a4e8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1032.8571319580078,
- "y": 908.3929119110107,
- "z": "50509cff.314024",
- "wires": [
- [
- "70287cdc.85b194",
- "6b6d2942.d47c48"
- ]
- ]
- },
- {
- "id": "1c8c4c56.6f0bc4",
- "type": "for",
- "name": "for each vnf",
- "xml": "<for index='idx' start='`$vnf-index + 1`' end='`$service-data.vnfs.vnf_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1036.6666145324707,
- "y": 1267.381091117859,
- "z": "50509cff.314024",
- "wires": [
- [
- "39ffbb9b.5384c4"
- ]
- ]
- },
- {
- "id": "48bdb965.fbf268",
- "type": "comment",
- "name": "Remove VNF from service data",
- "info": "",
- "comments": "",
- "x": 448.825382232666,
- "y": 1225.9527435302734,
- "z": "50509cff.314024",
- "wires": []
- },
- {
- "id": "39ffbb9b.5384c4",
- "type": "set",
- "name": "move vnf to remove one",
- "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",
- "comments": "",
- "x": 1270.2577476501465,
- "y": 1266.4050426483154,
- "z": "50509cff.314024",
- "wires": []
- },
- {
- "id": "ee44abff.0a52c8",
- "type": "switchNode",
- "name": "switch vnf_length",
- "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 492.92447662353516,
- "y": 1268.9607200622559,
- "z": "50509cff.314024",
- "wires": [
- [
- "3c166715.7796b8",
- "62f98baa.f6f574"
- ]
- ]
- },
- {
- "id": "3c166715.7796b8",
- "type": "outcome",
- "name": "1",
- "xml": "<outcome value='1'>\n",
- "comments": "",
- "outputs": 1,
- "x": 669.9245185852051,
- "y": 1229.6273069381714,
- "z": "50509cff.314024",
- "wires": [
- [
- "8af99073.0156"
- ]
- ]
- },
- {
- "id": "8af99073.0156",
- "type": "set",
- "name": "Remove vnfs",
- "xml": "<set>\n\t<parameter name=\"service-data.vnfs.\" value=\"\"/>\n\n",
- "comments": "",
- "x": 833.5910148620605,
- "y": 1229.6274061203003,
- "z": "50509cff.314024",
- "wires": []
- },
- {
- "id": "62f98baa.f6f574",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 671.4484100341797,
- "y": 1313.103446006775,
- "z": "50509cff.314024",
- "wires": [
- [
- "b4f726ae.38e868"
- ]
- ]
- },
- {
- "id": "c1ef091a.99d9e8",
- "type": "set",
- "name": "set new vnf length",
- "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf_length\" value=\"`$service-data.vnfs.vnf_length - 1`\"/>\n\n\t\n",
- "comments": "",
- "x": 1056.220703125,
- "y": 1357.9606647491455,
- "z": "50509cff.314024",
- "wires": []
- },
- {
- "id": "2c024236.55d4ae",
- "type": "set",
- "name": "Remove the last vnf in the list",
- "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$service-data.vnfs.vnf_length-1].\" value=\"\"/>\n\n",
- "comments": "",
- "x": 1091.92435836792,
- "y": 1313.0716857910156,
- "z": "50509cff.314024",
- "wires": []
- },
- {
- "id": "b4f726ae.38e868",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 837.2577514648438,
- "y": 1313.6272268295288,
- "z": "50509cff.314024",
- "wires": [
- [
- "1c8c4c56.6f0bc4",
- "2c024236.55d4ae",
- "c1ef091a.99d9e8"
- ]
- ]
- }
-]
+[\r
+ {\r
+ "id": "c5b593f.de0997",\r
+ "type": "dgstart",\r
+ "name": "DGSTART",\r
+ "outputs": 1,\r
+ "x": 161.42857360839844,\r
+ "y": 48.57143020629883,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ [\r
+ "61eab8c6.809638"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "476ba12e.72d0b",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 205.15477752685547,\r
+ "y": 167.3492202758789,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ [\r
+ "52ececda.9e0f84",\r
+ "716b81a4.0f5df",\r
+ "138a6bf3.2831e4",\r
+ "434ab0d7.7891",\r
+ "af88c68d.542008"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f111d369.224dc",\r
+ "type": "method",\r
+ "name": "method self-serve-vnf-unassign",\r
+ "xml": "<method rpc='self-serve-vnf-unassign' mode='sync'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 278.1904830932617,\r
+ "y": 103.2777853012085,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ [\r
+ "476ba12e.72d0b"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "61eab8c6.809638",\r
+ "type": "service-logic",\r
+ "name": "GENERIC-RESOURCE-API ${project.version}",\r
+ "module": "GENERIC-RESOURCE-API",\r
+ "version": "${project.version}",\r
+ "comments": "",\r
+ "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
+ "outputs": 1,\r
+ "x": 436.6667709350586,\r
+ "y": 48.76192283630371,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ [\r
+ "f111d369.224dc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9b53fa35.2106f8",\r
+ "type": "for",\r
+ "name": "foreach vnf-parameters-data.param[]",\r
+ "xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 788.1788864135742,\r
+ "y": 446.13098907470703,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ [\r
+ "13b713a3.91f76c",\r
+ "eb9f0d00.5c804"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "73638f7e.a5e31",\r
+ "type": "switchNode",\r
+ "name": "switch resource-resolution-data.status",\r
+ "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1087.2741775512695,\r
+ "y": 668.4048857688904,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ [\r
+ "15033255.82a12e",\r
+ "beee7743.7ea5e8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "15033255.82a12e",\r
+ "type": "other",\r
+ "name": "SUCCESS",\r
+ "xml": "<outcome value='SUCCESS'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1362.667179107666,\r
+ "y": 669.1191411018372,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ [\r
+ "2bd33584.bf077a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "52ececda.9e0f84",\r
+ "type": "for",\r
+ "name": "foreach capability-order[]",\r
+ "xml": "<for index='cidx' start='0' end='`$ss.capability.execution-order_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 453.7501220703125,\r
+ "y": 301.3213939666748,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ [\r
+ "975deb30.c1c768",\r
+ "62184d5d.c851c4",\r
+ "9b53fa35.2106f8",\r
+ "1c990616.a2478a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "13b713a3.91f76c",\r
+ "type": "switchNode",\r
+ "name": "switch param capability-name == execution",\r
+ "xml": "<switch test='`$ss.capability-name == $tmp.param.capability-name`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1144.0718002319336,\r
+ "y": 489.8571186065674,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ [\r
+ "9add8e.52bc827"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9add8e.52bc827",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1407.5718002319336,\r
+ "y": 490.1071186065674,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ [\r
+ "31a0dcaa.e444d4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2bd33584.bf077a",\r
+ "type": "call",\r
+ "name": "call ss.capability-dg",\r
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='`$ss.capability-dg`' mode='sync' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1567.7859115600586,\r
+ "y": 668.8809924125671,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ [\r
+ "77db13fe.aefb4c",\r
+ "9f0aca9e.506ad8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "975deb30.c1c768",\r
+ "type": "set",\r
+ "name": "ss.capability-name",\r
+ "xml": "<set>\n<parameter name='ss.capability-name' value='`$ss.capability.execution-order[$cidx]`' />\n\n<!--\nss.capability.execution-order[]\n-->\n",\r
+ "comments": "",\r
+ "x": 734.107177734375,\r
+ "y": 301.2738456726074,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "eb9f0d00.5c804",\r
+ "type": "set",\r
+ "name": "tmp.param.capability-name",\r
+ "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",\r
+ "comments": "",\r
+ "x": 1093.428825378418,\r
+ "y": 444.46432876586914,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "62184d5d.c851c4",\r
+ "type": "set",\r
+ "name": "set ss.capability.action = unassign",\r
+ "xml": "<set>\n<parameter name='ss.capability-action' value='unassign' />\n",\r
+ "comments": "",\r
+ "x": 780.8213195800781,\r
+ "y": 348.1904296875,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "77db13fe.aefb4c",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1752.6784210205078,\r
+ "y": 668.8810534477234,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ [\r
+ "54d35865.3f3408"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1c990616.a2478a",\r
+ "type": "set",\r
+ "name": "set capability-dg",\r
+ "xml": "<set>\n<parameter name='ss.capability-dg' value=\"`'self-serve-' + $ss.capability.execution-order[$cidx]`\" />\n",\r
+ "comments": "",\r
+ "x": 725.2500076293945,\r
+ "y": 397.0833435058594,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "c5498b4d.da47d8",\r
+ "type": "execute",\r
+ "name": "generate ss-vnf url replace service-instance-id",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2235.535804748535,\r
+ "y": 722.7627787590027,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "c17c35b8.41b0c8",\r
+ "type": "execute",\r
+ "name": "execute RestApiCallNode - PUT vnf",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2205.000099182129,\r
+ "y": 825.6200003623962,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ [\r
+ "f2f91617.d6bf78",\r
+ "8fd41743.fdec58"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f2f91617.d6bf78",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2479.593765258789,\r
+ "y": 879.6181540489197,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ [\r
+ "39855d48.9c0d72"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8fd41743.fdec58",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2472.0223999023438,\r
+ "y": 826.1181740760803,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ [\r
+ "39855d48.9c0d72"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "39855d48.9c0d72",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 2674.1547241210938,\r
+ "y": 825.7624287605286,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ [\r
+ "86aab38.e72235"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "86aab38.e72235",\r
+ "type": "configure",\r
+ "name": "set error-message",\r
+ "xml": "<set>\n<parameter name=\"error-message\" value=\"Error persisting self-serve vnf assignments in MD-SAL during unassign\" />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2892.4404907226562,\r
+ "y": 825.9052920341492,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "662286b2.d6b178",\r
+ "type": "set",\r
+ "name": "set vf data for restapi-call-node",\r
+ "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.`' />",\r
+ "comments": "",\r
+ "x": 2187.988105773926,\r
+ "y": 668.8572907447815,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "4e2b6ad5.c5c984",\r
+ "type": "execute",\r
+ "name": "generate ss-vnf url - replace vnf-id",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2199.8215103149414,\r
+ "y": 773.5715470314026,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "54d35865.3f3408",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1913.6310958862305,\r
+ "y": 668.6191649436951,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ [\r
+ "c5498b4d.da47d8",\r
+ "c17c35b8.41b0c8",\r
+ "662286b2.d6b178",\r
+ "4e2b6ad5.c5c984",\r
+ "25354232.f6ff7e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "25354232.f6ff7e",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "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",\r
+ "comments": "",\r
+ "x": 2134.536064147949,\r
+ "y": 953.3929483890533,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "434ab0d7.7891",\r
+ "type": "execute",\r
+ "name": "printContext",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/ss-vnf-unassign.log' />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 401.97650146484375,\r
+ "y": 1207.4882717132568,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "716b81a4.0f5df",\r
+ "type": "set",\r
+ "name": "set ss.capability.execution-order[]",\r
+ "xml": "<set>\n<parameter name='ss.capability.execution-order[0]' value='mS-mac-address-assign' />\n<parameter name='ss.capability.execution-order[1]' value='mac-address-assign' />\n<parameter name='ss.capability.execution-order[2]' value='netbox-ip-assign' />\n<parameter name='ss.capability.execution-order[3]' value='eipam-ip-assignment' />\n<parameter name='ss.capability.execution-order[4]' value='mS-vlan-tag-assign' />\n<parameter name='ss.capability.execution-order[5]' value='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' />",\r
+ "comments": "",\r
+ "x": 484.6786117553711,\r
+ "y": 167.5714340209961,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "138a6bf3.2831e4",\r
+ "type": "set",\r
+ "name": "set ss.capability-type = vnf",\r
+ "xml": "<set>\n<parameter name='ss.capability-type' value='vnf' />\n",\r
+ "comments": "",\r
+ "x": 464.2857131958008,\r
+ "y": 207.14286422729492,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "beee7743.7ea5e8",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1352.9880409240723,\r
+ "y": 736.3690609931946,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ [\r
+ "c149b7eb.e0bad8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c149b7eb.e0bad8",\r
+ "type": "record",\r
+ "name": "record",\r
+ "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`\"/>\n<parameter name=\"field3\" value=\"`'SS: tmp.param.capability-name: ' + $tmp.param.capability-name`\"/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1501.0952224731445,\r
+ "y": 736.4047665596008,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "31a0dcaa.e444d4",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 802.8571090698242,\r
+ "y": 668.5237793922424,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ [\r
+ "a44b8cdb.fe5b2",\r
+ "73638f7e.a5e31"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a44b8cdb.fe5b2",\r
+ "type": "break",\r
+ "name": "break",\r
+ "xml": "<break>\n",\r
+ "comments": "",\r
+ "x": 981.2857513427734,\r
+ "y": 1101.0953178405762,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "9f0aca9e.506ad8",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1780.1786041259766,\r
+ "y": 854.8214416503906,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ [\r
+ "88d0c6a.b2d2838"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "88d0c6a.b2d2838",\r
+ "type": "record",\r
+ "name": "record",\r
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"`'DONE: ' + $ss.capability-dg`\"/>\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1923.9286041259766,\r
+ "y": 853.5714416503906,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "fbe1b133.89212",\r
+ "type": "execute",\r
+ "name": "execute PropertiesNode",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 873.4286477225169,\r
+ "y": 253.85714776175382,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "af88c68d.542008",\r
+ "type": "switchNode",\r
+ "name": "switch prop.controller.user",\r
+ "xml": "<switch test='`$prop.controller.user`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 462.14288330078125,\r
+ "y": 254.28576850891113,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ [\r
+ "609ed85f.bc0518"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "609ed85f.bc0518",\r
+ "type": "failure",\r
+ "name": "NULL",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 661.9999787466868,\r
+ "y": 253.85718304770353,\r
+ "z": "2e6e6d50.2c5192",\r
+ "wires": [\r
+ [\r
+ "fbe1b133.89212"\r
+ ]\r
+ ]\r
+ }\r
+]
\ No newline at end of file