-[
- {
- "id": "62b65505.f8b4b4",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 89,
- "y": 30,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "928d511f.36c158"
- ]
- ]
- },
- {
- "id": "f87c0728.0afeb8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 132.72620391845703,
- "y": 148.77779006958008,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "3b27abcc.c2ec34",
- "bf1b89ba.b063e",
- "1ddd3a42.29f04e",
- "e5f0334a.e9ca1",
- "2163e816.27402"
- ]
- ]
- },
- {
- "id": "2406fa8b.d43ed6",
- "type": "method",
- "name": "method self-serve-vnf-unassign",
- "xml": "<method rpc='self-serve-vnf-unassign' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 205.76190948486328,
- "y": 84.70635509490967,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "f87c0728.0afeb8"
- ]
- ]
- },
- {
- "id": "928d511f.36c158",
- "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": 364.23819732666016,
- "y": 30.190492630004883,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "2406fa8b.d43ed6"
- ]
- ]
- },
- {
- "id": "2869f38e.95f41c",
- "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": 721.4645538330078,
- "y": 374.70241928100586,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "acaba079.b68f38",
- "81ad392.f64cec8"
- ]
- ]
- },
- {
- "id": "6b50d8c3.1dbdd",
- "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": 458.17897033691406,
- "y": 771.50013256073,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "4641618f.395528",
- "38e2fce4.feed74",
- "fa07b3ee.3e2bd"
- ]
- ]
- },
- {
- "id": "4641618f.395528",
- "type": "other",
- "name": "SUCCESS",
- "xml": "<outcome value='SUCCESS'>\n",
- "comments": "",
- "outputs": 1,
- "x": 733.5719718933105,
- "y": 772.2143878936768,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "d99a0768.8b7718"
- ]
- ]
- },
- {
- "id": "3b27abcc.c2ec34",
- "type": "for",
- "name": "foreach capability-order[]",
- "xml": "<for index='cidx' start='0' end='`$ss.capability.execution-order_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 387.0357894897461,
- "y": 229.89282417297363,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "25e2075a.6d1a6",
- "96711265.1987a",
- "2869f38e.95f41c",
- "8523e1fb.bcf3a8"
- ]
- ]
- },
- {
- "id": "acaba079.b68f38",
- "type": "switchNode",
- "name": "switch param capability-name == execution",
- "xml": "<switch test='`$ss.capability-name == $tmp.param.capability-name`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1077.3574676513672,
- "y": 418.4285488128662,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "468c9926.a05e6"
- ]
- ]
- },
- {
- "id": "468c9926.a05e6",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1340.8574676513672,
- "y": 418.6785488128662,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "6b50d8c3.1dbdd"
- ]
- ]
- },
- {
- "id": "d99a0768.8b7718",
- "type": "call",
- "name": "call ss.capability-dg",
- "xml": "<call module='GENERIC-RESOURCE-API' rpc='`$ss.capability-dg`' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 938.6907043457031,
- "y": 771.9762392044067,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "458b24e4.d3efa4"
- ]
- ]
- },
- {
- "id": "25e2075a.6d1a6",
- "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": 667.3928451538086,
- "y": 229.84527587890625,
- "z": "252d9282.9374ae",
- "wires": []
- },
- {
- "id": "81ad392.f64cec8",
- "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": 1026.7144927978516,
- "y": 373.03575897216797,
- "z": "252d9282.9374ae",
- "wires": []
- },
- {
- "id": "96711265.1987a",
- "type": "set",
- "name": "set ss.capability.action = unassign",
- "xml": "<set>\n<parameter name='ss.capability-action' value='unassign' />\n",
- "comments": "",
- "x": 714.1069869995117,
- "y": 276.7618598937988,
- "z": "252d9282.9374ae",
- "wires": []
- },
- {
- "id": "458b24e4.d3efa4",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1123.5832138061523,
- "y": 771.976300239563,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "6583acac.b53fac"
- ]
- ]
- },
- {
- "id": "8523e1fb.bcf3a8",
- "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": 658.5356750488281,
- "y": 325.6547737121582,
- "z": "252d9282.9374ae",
- "wires": []
- },
- {
- "id": "d5c58631.876b",
- "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": 1606.4405975341797,
- "y": 825.8580255508423,
- "z": "252d9282.9374ae",
- "wires": [
- []
- ]
- },
- {
- "id": "5291091f.f20088",
- "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": 1575.9048919677734,
- "y": 928.7152471542358,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "2353e7c1.60c118",
- "3fc02d49.7486d2"
- ]
- ]
- },
- {
- "id": "2353e7c1.60c118",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1850.4985580444336,
- "y": 982.7134008407593,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "bda099a1.06eb38"
- ]
- ]
- },
- {
- "id": "3fc02d49.7486d2",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1842.9271926879883,
- "y": 929.2134208679199,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "bda099a1.06eb38"
- ]
- ]
- },
- {
- "id": "bda099a1.06eb38",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 2045.0595169067383,
- "y": 928.8576755523682,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "d9c8574d.b3fa68"
- ]
- ]
- },
- {
- "id": "d9c8574d.b3fa68",
- "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": 2263.345283508301,
- "y": 929.0005388259888,
- "z": "252d9282.9374ae",
- "wires": [
- []
- ]
- },
- {
- "id": "4bfafa2c.df4c8c",
- "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": 1558.8928985595703,
- "y": 771.9525375366211,
- "z": "252d9282.9374ae",
- "wires": []
- },
- {
- "id": "9abc0123.468d9",
- "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": 1570.726303100586,
- "y": 876.6667938232422,
- "z": "252d9282.9374ae",
- "wires": [
- []
- ]
- },
- {
- "id": "6583acac.b53fac",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1284.535888671875,
- "y": 771.7144117355347,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "d5c58631.876b",
- "5291091f.f20088",
- "4bfafa2c.df4c8c",
- "9abc0123.468d9",
- "e212b878.28b838"
- ]
- ]
- },
- {
- "id": "e212b878.28b838",
- "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": 1505.4408569335938,
- "y": 1056.488195180893,
- "z": "252d9282.9374ae",
- "wires": []
- },
- {
- "id": "e5f0334a.e9ca1",
- "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": 348.1193313598633,
- "y": 1426.0595903396606,
- "z": "252d9282.9374ae",
- "wires": [
- []
- ]
- },
- {
- "id": "bf1b89ba.b063e",
- "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": 412.25003814697266,
- "y": 149.00000381469727,
- "z": "252d9282.9374ae",
- "wires": []
- },
- {
- "id": "38e2fce4.feed74",
- "type": "other",
- "name": "DELETED",
- "xml": "<outcome value='DELETED'>\n",
- "comments": "",
- "outputs": 1,
- "x": 734.0714416503906,
- "y": 838.7499847412109,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "d6fe1639.ceebb8"
- ]
- ]
- },
- {
- "id": "1ddd3a42.29f04e",
- "type": "set",
- "name": "set ss.capability-type = vnf",
- "xml": "<set>\n<parameter name='ss.capability-type' value='vnf' />\n",
- "comments": "",
- "x": 391.85713958740234,
- "y": 188.5714340209961,
- "z": "252d9282.9374ae",
- "wires": []
- },
- {
- "id": "52dbf114.d1abc",
- "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": 1116.1428833007812,
- "y": 948.9643857138499,
- "z": "252d9282.9374ae",
- "wires": []
- },
- {
- "id": "d6fe1639.ceebb8",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 890.5714340209961,
- "y": 838.7499732971191,
- "z": "252d9282.9374ae",
- "wires": [
- []
- ]
- },
- {
- "id": "fa07b3ee.3e2bd",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 725.1428375244141,
- "y": 896.9642868041992,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "dc8bc4e.8f580b8"
- ]
- ]
- },
- {
- "id": "b045a5.6f842258",
- "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": 1095.4285888671875,
- "y": 896.9643923895701,
- "z": "252d9282.9374ae",
- "wires": [
- []
- ]
- },
- {
- "id": "dc8bc4e.8f580b8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 911.8571319580078,
- "y": 896.9643383026123,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "b045a5.6f842258",
- "52dbf114.d1abc"
- ]
- ]
- },
- {
- "id": "1de371de.5b6456",
- "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": 915.6666145324707,
- "y": 1255.9525175094604,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "a5b6b8ba.4ebf4"
- ]
- ]
- },
- {
- "id": "a90545d8.1a2728",
- "type": "comment",
- "name": "Remove VNF from service data",
- "info": "",
- "comments": "",
- "x": 327.825382232666,
- "y": 1214.524169921875,
- "z": "252d9282.9374ae",
- "wires": []
- },
- {
- "id": "a5b6b8ba.4ebf4",
- "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": 1149.2577476501465,
- "y": 1254.976469039917,
- "z": "252d9282.9374ae",
- "wires": []
- },
- {
- "id": "2163e816.27402",
- "type": "switchNode",
- "name": "switch vnf_length",
- "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 371.92447662353516,
- "y": 1257.5321464538574,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "db4581e7.f5001",
- "4742a047.92dc2"
- ]
- ]
- },
- {
- "id": "db4581e7.f5001",
- "type": "outcome",
- "name": "1",
- "xml": "<outcome value='1'>\n",
- "comments": "",
- "outputs": 1,
- "x": 548.9245185852051,
- "y": 1218.198733329773,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "d699690.c208a18"
- ]
- ]
- },
- {
- "id": "d699690.c208a18",
- "type": "set",
- "name": "Remove vnfs",
- "xml": "<set>\n\t<parameter name=\"service-data.vnfs.\" value=\"\"/>\n\n",
- "comments": "",
- "x": 712.5910148620605,
- "y": 1218.1988325119019,
- "z": "252d9282.9374ae",
- "wires": []
- },
- {
- "id": "4742a047.92dc2",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 550.4484100341797,
- "y": 1301.6748723983765,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "f5197751.96d6b8"
- ]
- ]
- },
- {
- "id": "8416ad4e.28c64",
- "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": 935.220703125,
- "y": 1346.532091140747,
- "z": "252d9282.9374ae",
- "wires": []
- },
- {
- "id": "225e71ff.ef5996",
- "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": 970.9243583679199,
- "y": 1301.6431121826172,
- "z": "252d9282.9374ae",
- "wires": []
- },
- {
- "id": "f5197751.96d6b8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 716.2577514648438,
- "y": 1302.1986532211304,
- "z": "252d9282.9374ae",
- "wires": [
- [
- "1de371de.5b6456",
- "225e71ff.ef5996",
- "8416ad4e.28c64"
- ]
- ]
- }
+[\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