-[
- {
- "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": "76165194.b6c96",\r
+ "type": "dgstart",\r
+ "name": "DGSTART",\r
+ "outputs": 1,\r
+ "x": 165.71429443359375,\r
+ "y": 75.71428680419922,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ [\r
+ "236f2975.7a6d96"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5e292d5b.0c61b4",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 209.44049835205078,\r
+ "y": 194.4920768737793,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ [\r
+ "8e6fd286.da7e4",\r
+ "9cf90cf3.4244d",\r
+ "c41a4b38.3c8b38",\r
+ "f9a09d54.7ab46",\r
+ "59a68f10.20a5"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c3f3aa48.2e3088",\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": 282.47620391845703,\r
+ "y": 130.4206418991089,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ [\r
+ "5e292d5b.0c61b4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "236f2975.7a6d96",\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": 440.9524917602539,\r
+ "y": 75.9047794342041,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ [\r
+ "c3f3aa48.2e3088"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "aed7b0d8.edb31",\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": 792.4646072387695,\r
+ "y": 473.2738456726074,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ [\r
+ "4c583cb3.a2e9b4",\r
+ "d15480d3.12273"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "13c9ccf0.5ce9c3",\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": 1091.5598983764648,\r
+ "y": 695.5477423667908,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ [\r
+ "e71d8f06.04b4e",\r
+ "f1d7b373.953da"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e71d8f06.04b4e",\r
+ "type": "other",\r
+ "name": "SUCCESS",\r
+ "xml": "<outcome value='SUCCESS'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1366.9528999328613,\r
+ "y": 696.2619976997375,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ [\r
+ "17e4f190.77d57e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8e6fd286.da7e4",\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": 458.0358428955078,\r
+ "y": 328.4642505645752,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ [\r
+ "53aeb795.8d7128",\r
+ "fc9f38f4.0c2118",\r
+ "aed7b0d8.edb31",\r
+ "88725cd7.d671f"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4c583cb3.a2e9b4",\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": 1148.357521057129,\r
+ "y": 516.9999752044678,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ [\r
+ "b2f5ce63.5ec31"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b2f5ce63.5ec31",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1411.857521057129,\r
+ "y": 517.2499752044678,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ [\r
+ "6eaca446.a10d9c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "17e4f190.77d57e",\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": 1572.071632385254,\r
+ "y": 696.0238490104675,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ [\r
+ "d6448b55.e69ab8",\r
+ "87e5a636.7bc3f8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "53aeb795.8d7128",\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": 738.3928985595703,\r
+ "y": 328.4167022705078,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "d15480d3.12273",\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": 1097.7145462036133,\r
+ "y": 471.60718536376953,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "fc9f38f4.0c2118",\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": 785.1070404052734,\r
+ "y": 375.3332862854004,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "d6448b55.e69ab8",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1756.9641418457031,\r
+ "y": 696.0239100456238,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ [\r
+ "2977dc30.549ee4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "88725cd7.d671f",\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": 729.5357284545898,\r
+ "y": 424.22620010375977,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "cd466606.4c16b8",\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": 2239.8215255737305,\r
+ "y": 749.9056353569031,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "facf39f.6d396c8",\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": 2209.285820007324,\r
+ "y": 852.7628569602966,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ [\r
+ "d6b3aa2.7030758",\r
+ "4ad4756c.b7b35c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d6b3aa2.7030758",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2483.8794860839844,\r
+ "y": 906.7610106468201,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ [\r
+ "f21e0168.83df2"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4ad4756c.b7b35c",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2476.308120727539,\r
+ "y": 853.2610306739807,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ [\r
+ "f21e0168.83df2"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f21e0168.83df2",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 2678.440444946289,\r
+ "y": 852.905285358429,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ [\r
+ "3798eb1e.07c1a4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3798eb1e.07c1a4",\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": 2896.7262115478516,\r
+ "y": 853.0481486320496,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "d4697d10.10b26",\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": 2192.273826599121,\r
+ "y": 696.0001473426819,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f5cfb551.80d6c8",\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": 2204.1072311401367,\r
+ "y": 800.714403629303,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "2977dc30.549ee4",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1917.9168167114258,\r
+ "y": 695.7620215415955,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ [\r
+ "cd466606.4c16b8",\r
+ "facf39f.6d396c8",\r
+ "d4697d10.10b26",\r
+ "f5cfb551.80d6c8",\r
+ "d61e4f37.d59c8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d61e4f37.d59c8",\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": 2138.8217849731445,\r
+ "y": 980.5358049869537,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f9a09d54.7ab46",\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-assign.log' />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 406.26222229003906,\r
+ "y": 1234.6311283111572,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "9cf90cf3.4244d",\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": 488.9643325805664,\r
+ "y": 194.71429061889648,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "c41a4b38.3c8b38",\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": 468.5714340209961,\r
+ "y": 234.2857208251953,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f1d7b373.953da",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1357.2737617492676,\r
+ "y": 763.511917591095,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ [\r
+ "770743b2.c0595c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "770743b2.c0595c",\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": 1505.3809432983398,\r
+ "y": 763.5476231575012,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "6eaca446.a10d9c",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 807.1428298950195,\r
+ "y": 695.6666359901428,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ [\r
+ "ae3d848d.b63f78",\r
+ "13c9ccf0.5ce9c3"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ae3d848d.b63f78",\r
+ "type": "break",\r
+ "name": "break",\r
+ "xml": "<break>\n",\r
+ "comments": "",\r
+ "x": 985.5714721679688,\r
+ "y": 1128.2381744384766,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "87e5a636.7bc3f8",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1784.4643249511719,\r
+ "y": 881.964298248291,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ [\r
+ "c5b341ce.afbb1"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c5b341ce.afbb1",\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": 1928.2143249511719,\r
+ "y": 880.714298248291,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "a4639d29.fba05",\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": 877.7143685477122,\r
+ "y": 281.0000043596541,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "59a68f10.20a5",\r
+ "type": "switchNode",\r
+ "name": "switch prop.controller.user",\r
+ "xml": "<switch test='`$prop.controller.user`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 466.42860412597656,\r
+ "y": 281.4286251068115,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ [\r
+ "e826631e.9bcf2"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e826631e.9bcf2",\r
+ "type": "failure",\r
+ "name": "NULL",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 666.2856995718821,\r
+ "y": 281.0000396456038,\r
+ "z": "303dc9e1.28f7b6",\r
+ "wires": [\r
+ [\r
+ "a4639d29.fba05"\r
+ ]\r
+ ]\r
+ }\r
]
\ No newline at end of file