+ "id": "7d36e25f.6ea3f4",
+ "type": "update",
+ "name": "update IPAM_IP_ASSIGNEMENT to PENDING_DELETE...",
+ "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\n\tkey=\"UPDATE IPAM_IP_ASSIGNEMENT set ip_status = $tmp.status \n\t\tWHERE external_key = $tmp.ss.external-key\n\t\tAND service_instance_id = $tmp.ss.service-instance-id\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 2998.2858276367188,
+ "y": 1583.5835962295532,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "ca94a980.5b06e"
+ ]
+ ]
+ },
+ {
+ "id": "954b1950.33da8",
+ "type": "set",
+ "name": "set status = PENDING_DELETE",
+ "xml": "<set>\n<parameter name='tmp.status' value=\"PENDING_DELETE\" />\n",
+ "comments": "",
+ "x": 2908.2023315429688,
+ "y": 1541.9168481826782,
+ "z": "1e0169fe.460196",
+ "wires": []
+ },
+ {
+ "id": "ca94a980.5b06e",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3305.9522857666016,
+ "y": 1584.166919708252,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "ddd93d50.c85558"
+ ]
+ ]
+ },
+ {
+ "id": "ddd93d50.c85558",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Error updating NETBOX_IP_ASSIGNMENTS table to unassign ip with external_key=' + $tmp.ss.external-key + ' and service_instance_id=' + $tmp.ss.service-instance-id`\" />\n",
+ "comments": "",
+ "x": 3484.9525756835938,
+ "y": 1583.9765405654907,
+ "z": "1e0169fe.460196",
+ "wires": []
+ },
+ {
+ "id": "d3428a19.b74a38",
+ "type": "execute",
+ "name": "execute Netbox unassign IP addresses",
+ "xml": "<execute plugin=\"org.onap.ccsdk.sli.adaptors.netbox.api.NetboxClient\" method=\"unassignIpAddress\">\n<parameter name=\"service_instance_id\" value=\"`$tmp.ss.service-instance-id`\" />\n<parameter name=\"external_key\" value=\"`$tmp.ss.external-key`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2928.2857055664062,
+ "y": 1629.8336572647095,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "a11ee488.c69c1",
+ "bacc37f5.251158"
+ ]
+ ]
+ },
+ {
+ "id": "a11ee488.c69c1",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3171.6189727783203,
+ "y": 1629.8336067199707,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "727fae.421bc054"
+ ]
+ ]
+ },
+ {
+ "id": "727fae.421bc054",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Error in NetboxClient#unassignIPAddress with external-key='+ $tmp.ss.external-key`\" />\n",
+ "comments": "",
+ "x": 3333.618999481201,
+ "y": 1629.6433420181274,
+ "z": "1e0169fe.460196",
+ "wires": []
+ },
+ {
+ "id": "199cb084.41994f",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2648.904739379883,
+ "y": 1541.3334760665894,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "954b1950.33da8",
+ "7d36e25f.6ea3f4",
+ "d3428a19.b74a38"
+ ]
+ ]
+ },
+ {
+ "id": "419443bc.89754c",
+ "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=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'SS: pidx: ' + $pidx`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 872.4484252929688,
+ "y": 602.6112365722656,
+ "z": "1e0169fe.460196",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6c06e68b.da7eb8",
+ "type": "outcome",
+ "name": "vnf-id",
+ "xml": "<outcome value='vnf-id'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1903.440444946289,
+ "y": 866.58758020401,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "48b45ebc.19189"
+ ]
+ ]
+ },
+ {
+ "id": "48b45ebc.19189",
+ "type": "set",
+ "name": "set tmp.ss.vnf-id",
+ "xml": "<set>\n<parameter name='tmp.ss.vnf-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />\n",
+ "comments": "",
+ "x": 2169.4405670166016,
+ "y": 866.58758020401,
+ "z": "1e0169fe.460196",
+ "wires": []
+ },
+ {
+ "id": "4c0830f.966f55",
+ "type": "set",
+ "name": "set resource-resolution-data.status = DELETED",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status' \n\tvalue='DELETED' />\n",
+ "comments": "",
+ "x": 3438.5116577148438,
+ "y": 1685.1543579101562,
+ "z": "1e0169fe.460196",
+ "wires": []
+ },
+ {
+ "id": "5bcfaea0.c0c0f8",
+ "type": "outcome",
+ "name": "prefix-id",
+ "xml": "<outcome value='prefix-id'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1892.496109008789,
+ "y": 910.8376107215881,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "dd169952.c2ddc8"
+ ]
+ ]
+ },
+ {
+ "id": "dd169952.c2ddc8",
+ "type": "set",
+ "name": "set prefix-id",
+ "xml": "<set>\n<parameter name='tmp.ss.prefix-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />\n",
+ "comments": "",
+ "x": 2138.996109008789,
+ "y": 911.08758020401,
+ "z": "1e0169fe.460196",
+ "wires": []
+ },
+ {
+ "id": "3246d2cf.e446ce",
+ "type": "execute",
+ "name": "execute NetboxClient assignIpAddress",
+ "xml": "<execute plugin=\"org.onap.ccsdk.sli.adaptors.netbox.api.NetboxClient\" method=\"assignIpAddress\">\n<parameter name=\"service_instance_id\" value=\"`$tmp.ss.service-instance-id`\" />\n<parameter name=\"vf_module_id\" value=\"`$tmp.ss.vnf-id`\" />\n<parameter name=\"prefix_id\" value=\"`$tmp.ss.prefix-id`\" />\n<parameter name=\"resource_name\" value=\"`$tmp.ss.param.name`\" />\n<parameter name=\"external_key\" value=\"`$tmp.ss.external-key`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2200.1068725585938,
+ "y": 1209.6432886123657,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "bc02f9c5.d3009",
+ "5a42ccdf.863d7c"
+ ]
+ ]
+ },
+ {
+ "id": "bc02f9c5.d3009",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2517.1068725585938,
+ "y": 1211.6432275772095,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "9be2285f.3688f8"
+ ]
+ ]
+ },
+ {
+ "id": "9be2285f.3688f8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2725.1068725585938,
+ "y": 1215.6432275772095,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "be8fa4c5.70a7a",
+ "742a806a.1c8b48"
+ ]
+ ]
+ },
+ {
+ "id": "be8fa4c5.70a7a",
+ "type": "set",
+ "name": "set resource-resolution-data.status = FAILED",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status' value='FAILED' />\n",
+ "comments": "",
+ "x": 3042.10693359375,
+ "y": 1219.6431970596313,
+ "z": "1e0169fe.460196",
+ "wires": []
+ },
+ {
+ "id": "742a806a.1c8b48",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2939.48779296875,
+ "y": 1269.2464599609375,
+ "z": "1e0169fe.460196",
+ "wires": []
+ },
+ {
+ "id": "291a0f5b.065428",
+ "type": "set",
+ "name": "set resource-resolution-data.status = SUCCESS",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status' \n\tvalue='SUCCESS' />\n",
+ "comments": "",
+ "x": 3019.1900634765625,
+ "y": 1414.3340454101562,
+ "z": "1e0169fe.460196",
+ "wires": []
+ },
+ {
+ "id": "714a9ad3.25a814",
+ "type": "outcome",
+ "name": "external_key",
+ "xml": "<outcome value='external_key'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1915.246337890625,
+ "y": 961.4089965820312,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "bc0a0828.40d9d8"
+ ]
+ ]
+ },
+ {
+ "id": "bc0a0828.40d9d8",
+ "type": "set",
+ "name": "set external-key",
+ "xml": "<set>\n<parameter name='tmp.ss.external-key' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />\n",
+ "comments": "",
+ "x": 2163.8177490234375,
+ "y": 961.4090576171875,
+ "z": "1e0169fe.460196",
+ "wires": []
+ },
+ {
+ "id": "f4266bba.68463",
+ "type": "set",
+ "name": "set tmp.ss.param.name",
+ "xml": "<set>\n<parameter name='tmp.ss.param.name' \n\tvalue='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].name`' />\n",
+ "comments": "",
+ "x": 1181.9564895629883,
+ "y": 587.6627821922302,
+ "z": "1e0169fe.460196",
+ "wires": []
+ },
+ {
+ "id": "35313136.60f71e",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1115.5831298828125,
+ "y": 815.6311645507812,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "8b797c86.449c88",
+ "f17ee439.871ec"
+ ]
+ ]
+ },
+ {
+ "id": "3ab742ab.07506e",
+ "type": "outcome",
+ "name": "assign",
+ "xml": "<outcome value='assign'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1172.190185546875,
+ "y": 1227.190673828125,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "ac9eaafc.1d31a"
+ ]
+ ]
+ },
+ {
+ "id": "f17ee439.871ec",
+ "type": "switchNode",
+ "name": "switch: ss.capability-action",
+ "xml": "<switch test='`$ss.capability-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 934.9402770996094,
+ "y": 1232.690673828125,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "3ab742ab.07506e",
+ "74139423.e17614"
+ ]
+ ]
+ },
+ {
+ "id": "26e5147.b2e3b6c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1920.8328857421875,
+ "y": 1214.8339233398438,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "3246d2cf.e446ce"
+ ]
+ ]
+ },
+ {
+ "id": "f61d39ca.54246",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2466.6903381347656,
+ "y": 1540.61923122406,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "199cb084.41994f"
+ ]
+ ]
+ },
+ {
+ "id": "5a42ccdf.863d7c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2525.154296875,
+ "y": 1275.154846191406,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "82bf193e.1c3e9"
+ ]
+ ]
+ },
+ {
+ "id": "4d3d930a.c74edc",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2640.1190011160716,
+ "y": 1493.3334962299891,
+ "z": "1e0169fe.460196",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "82bf193e.1c3e9",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2719.43994140625,
+ "y": 1355.1549682617188,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "291a0f5b.065428",
+ "ddc0044e.197a88",
+ "96318d27.c30ac8"
+ ]
+ ]
+ },
+ {
+ "id": "bacc37f5.251158",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3176.5836791992188,
+ "y": 1683.7262573242188,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "4c0830f.966f55"
+ ]
+ ]
+ },
+ {
+ "id": "96318d27.c30ac8",
+ "type": "set",
+ "name": "set service-data...param[].value = ip-address",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].value' \n\tvalue='`$ip[0]`' />\n",
+ "comments": "",
+ "x": 3008.7139892578125,
+ "y": 1374.2858276367188,
+ "z": "1e0169fe.460196",
+ "wires": []
+ },
+ {
+ "id": "ddc0044e.197a88",
+ "type": "execute",
+ "name": "SliStringUtils - split subnet",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n <parameter name=\"original_string\" value=\"`$self_serve_netbox_ip_assignement.ip-address`\" />\n <parameter name=\"regex\" value=\"/\"/>\n <parameter name=\"ctx_memory_result_key\" value=\"ip\" />\n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2952.7139892578125,
+ "y": 1334.2858276367188,
+ "z": "1e0169fe.460196",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "722fee02.ac2218",
+ "type": "execute",
+ "name": "SliStringUtils - split subnet",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n <parameter name=\"original_string\" value=\"`$self_serve_netbox_ip_assignement.ip-address`\" />\n <parameter name=\"regex\" value=\"/\"/>\n <parameter name=\"ctx_memory_result_key\" value=\"ip\" />\n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2960.428680419922,
+ "y": 2824.7141942977905,
+ "z": "1e0169fe.460196",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ac9eaafc.1d31a",
+ "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": 1408.392822265625,
+ "y": 1221.9642944335938,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "e91661da.3b8608",
+ "bf37d131.8b2478"
+ ]
+ ]
+ },
+ {
+ "id": "e91661da.3b8608",
+ "type": "not-found",
+ "name": "FAILED",
+ "xml": "<outcome value='FAILED'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1694.643310546875,
+ "y": 1191.53564453125,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "26e5147.b2e3b6c"
+ ]
+ ]
+ },
+ {
+ "id": "bf37d131.8b2478",
+ "type": "success",
+ "name": "PENDING",
+ "xml": "<outcome value='PENDING'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1693.678466796875,
+ "y": 1235.3931274414062,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "26e5147.b2e3b6c"
+ ]
+ ]
+ },
+ {
+ "id": "e51b7888.989928",
+ "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": 1431.249755859375,
+ "y": 1393.750244140625,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "26889fb2.5ce19"
+ ]
+ ]
+ },
+ {
+ "id": "26889fb2.5ce19",
+ "type": "success",
+ "name": "SUCCESS",
+ "xml": "<outcome value='SUCCESS'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1688.678466796875,
+ "y": 1393.9644775390625,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "2e96e14a.d8a666"
+ ]
+ ]
+ },
+ {
+ "id": "c615cc08.6cc77",
+ "type": "outcome",
+ "name": "unassign",
+ "xml": "<outcome value='unassign'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1181.428466796875,
+ "y": 2975.71435546875,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "5bd2efc8.0cc53"
+ ]
+ ]
+ },
+ {
+ "id": "398f1da9.7fc262",
+ "type": "outcome",
+ "name": "assign",
+ "xml": "<outcome value='assign'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1181.749755859375,
+ "y": 2705.8930053710938,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "71585e8c.8a959"
+ ]
+ ]
+ },
+ {
+ "id": "71585e8c.8a959",
+ "type": "switchNode",
+ "name": "switch: resource-resolution-data.status",
+ "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.status`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1417.952392578125,
+ "y": 2700.6666259765625,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "83c2a9a4.58aa98",
+ "bd2c6000.241588"
+ ]
+ ]
+ },
+ {
+ "id": "83c2a9a4.58aa98",
+ "type": "not-found",
+ "name": "FAILED",
+ "xml": "<outcome value='FAILED'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1704.202880859375,
+ "y": 2670.2379760742188,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "b4174ab1.8632e"
+ ]
+ ]
+ },
+ {
+ "id": "bd2c6000.241588",
+ "type": "success",
+ "name": "PENDING",
+ "xml": "<outcome value='PENDING'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1703.238037109375,
+ "y": 2714.095458984375,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "b4174ab1.8632e"
+ ]
+ ]
+ },
+ {
+ "id": "5bd2efc8.0cc53",
+ "type": "switchNode",
+ "name": "switch: resource-resolution-data.status",
+ "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.status`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1435.0949096679688,
+ "y": 2979.5953979492188,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "9c7404ad.aa898"
+ ]
+ ]
+ },
+ {
+ "id": "9c7404ad.aa898",
+ "type": "success",
+ "name": "SUCCESS",
+ "xml": "<outcome value='SUCCESS'>\n",