[\r
{\r
- "id": "cbc1a13.7b8456",\r
+ "id": "3ad24b85.b3bf64",\r
"type": "dgstart",\r
"name": "DGSTART",\r
"outputs": 1,\r
- "x": 154.56666564941406,\r
- "y": 94.56666564941406,\r
- "z": "81a75cb3.dfe96",\r
+ "x": 106,\r
+ "y": 56,\r
+ "z": "1749c920.27afb7",\r
"wires": [\r
[\r
- "58be845c.53f8dc"\r
+ "7476f33b.2d0eb4"\r
]\r
]\r
},\r
{\r
- "id": "58be845c.53f8dc",\r
+ "id": "7476f33b.2d0eb4",\r
"type": "service-logic",\r
"name": "GENERIC-RESOURCE-API ${project.version}",\r
"module": "GENERIC-RESOURCE-API",\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": 438.85235595703125,\r
- "y": 155.8047742843628,\r
- "z": "81a75cb3.dfe96",\r
+ "x": 390.2856903076172,\r
+ "y": 117.23810863494873,\r
+ "z": "1749c920.27afb7",\r
"wires": [\r
[\r
- "1e9f5313.eb2125"\r
+ "7da838c5.7d227"\r
]\r
]\r
},\r
{\r
- "id": "1e9f5313.eb2125",\r
+ "id": "7da838c5.7d227",\r
"type": "method",\r
"name": "method sotn-vnf-topology-operation-underlay-deactivate",\r
"xml": "<method rpc='sotn-vnf-topology-operation-underlay-deactivate' mode='sync'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 444.9952697753906,\r
- "y": 240.5666961669922,\r
- "z": "81a75cb3.dfe96",\r
+ "x": 396.42860412597656,\r
+ "y": 202.00003051757812,\r
+ "z": "1749c920.27afb7",\r
"wires": [\r
[\r
- "1920f1ef.4bc3e6"\r
+ "a742330d.128a3"\r
]\r
]\r
},\r
{\r
- "id": "1920f1ef.4bc3e6",\r
+ "id": "a742330d.128a3",\r
"type": "block",\r
"name": "block : atomic",\r
- "xml": "<block atomic=\"true\">\n",\r
- "atomic": "false",\r
- "comments": "",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
"outputs": 1,\r
- "x": 583.0940055847168,\r
- "y": 457.6408796310425,\r
- "z": "81a75cb3.dfe96",\r
+ "x": 592.2380447387695,\r
+ "y": 360.66666814964265,\r
+ "z": "1749c920.27afb7",\r
"wires": [\r
[\r
- "7d3f17a8.8dc"\r
+ "dfd1a930.eeb17",\r
+ "b0be94f0.05dfb8",\r
+ "59f78da4.50f2fc",\r
+ "41673fa0.b1a818",\r
+ "cdfb0ad2.8ad0d8",\r
+ "4b93b56d.437c5c",\r
+ "614f37e0.0249a"\r
]\r
]\r
},\r
{\r
- "id": "7d3f17a8.8dc",\r
+ "id": "dfd1a930.eeb17",\r
+ "type": "set",\r
+ "name": "set vnf-level-oper-status to PendingDelete",\r
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />",\r
+ "comments": "",\r
+ "x": 1000.3849029541016,\r
+ "y": 509.670627951622,\r
+ "z": "1749c920.27afb7",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "b0be94f0.05dfb8",\r
"type": "returnSuccess",\r
"name": "return success",\r
"xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",\r
"comments": "",\r
- "x": 836.566650390625,\r
- "y": 568.566650390625,\r
- "z": "81a75cb3.dfe96",\r
+ "x": 926.5716247558594,\r
+ "y": 618.5970582962036,\r
+ "z": "1749c920.27afb7",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "59f78da4.50f2fc",\r
+ "type": "set",\r
+ "name": "set vnf-index and vnf-object-path",\r
+ "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` \" />",\r
+ "comments": "",\r
+ "x": 977.5716247558594,\r
+ "y": 465.5968955755234,\r
+ "z": "1749c920.27afb7",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "41673fa0.b1a818",\r
+ "type": "switchNode",\r
+ "name": "switch service-data.vnfs.vnf_length",\r
+ "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1022.0000610351562,\r
+ "y": 250.00000545661896,\r
+ "z": "1749c920.27afb7",\r
+ "wires": [\r
+ [\r
+ "46f139dc.3ca98",\r
+ "7a6d1b04.564dbc",\r
+ "95730397.a4e998"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "95730397.a4e998",\r
+ "type": "outcome",\r
+ "name": "0",\r
+ "xml": "<outcome value='0'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1280.9689559936523,\r
+ "y": 211.96876499336213,\r
+ "z": "1749c920.27afb7",\r
+ "wires": [\r
+ [\r
+ "646213b6.68f42c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "646213b6.68f42c",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
+ "comments": "",\r
+ "x": 1435.7778434753418,\r
+ "y": 230.88903352897614,\r
+ "z": "1749c920.27afb7",\r
"wires": []\r
+ },\r
+ {\r
+ "id": "46f139dc.3ca98",\r
+ "type": "other",\r
+ "name": "Null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1274.0000953674316,\r
+ "y": 251.00008651893586,\r
+ "z": "1749c920.27afb7",\r
+ "wires": [\r
+ [\r
+ "646213b6.68f42c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7a6d1b04.564dbc",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1267.000503540039,\r
+ "y": 284.0000903336331,\r
+ "z": "1749c920.27afb7",\r
+ "wires": [\r
+ [\r
+ "4e29626e.e0608c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4e29626e.e0608c",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 1414.2700462341309,\r
+ "y": 284.55473539512604,\r
+ "z": "1749c920.27afb7",\r
+ "wires": [\r
+ [\r
+ "530877d0.02663",\r
+ "a9f43f7c.095d3"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "530877d0.02663",\r
+ "type": "for",\r
+ "name": "for vidx..service-data.vnfs.vnf_length[]",\r
+ "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1660.2861633300781,\r
+ "y": 291.4286558357999,\r
+ "z": "1749c920.27afb7",\r
+ "wires": [\r
+ [\r
+ "a8e35f93.0e2bf"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a8e35f93.0e2bf",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1879.6357955932617,\r
+ "y": 290.9687359062955,\r
+ "z": "1749c920.27afb7",\r
+ "wires": [\r
+ [\r
+ "370233d.767e7cc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "370233d.767e7cc",\r
+ "type": "switchNode",\r
+ "name": "switch vnfid found",\r
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2033.7153930664062,\r
+ "y": 290.67881796043366,\r
+ "z": "1749c920.27afb7",\r
+ "wires": [\r
+ [\r
+ "908635e8.5a6bb"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "908635e8.5a6bb",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2209.6675148010254,\r
+ "y": 290.57150003593415,\r
+ "z": "1749c920.27afb7",\r
+ "wires": [\r
+ [\r
+ "f0769224.c0af2"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f0769224.c0af2",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 2358.312973022461,\r
+ "y": 278.97913000267,\r
+ "z": "1749c920.27afb7",\r
+ "wires": [\r
+ [\r
+ "6bf835a7.6620bc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6bf835a7.6620bc",\r
+ "type": "set",\r
+ "name": "set tmp.vidx and ctx.vnf-data",\r
+ "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",\r
+ "comments": "",\r
+ "x": 2620.1997680664062,\r
+ "y": 256.3215563027188,\r
+ "z": "1749c920.27afb7",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "a9f43f7c.095d3",\r
+ "type": "switchNode",\r
+ "name": "switch tmp.vidx ",\r
+ "xml": "<switch test=\"`$tmp.vidx`\">\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1603.0000228881836,\r
+ "y": 345.99999353569,\r
+ "z": "1749c920.27afb7",\r
+ "wires": [\r
+ [\r
+ "b3149be7.2c6a9"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b3149be7.2c6a9",\r
+ "type": "outcome",\r
+ "name": "NULL",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1758.4286499023438,\r
+ "y": 345.57137701194733,\r
+ "z": "1749c920.27afb7",\r
+ "wires": [\r
+ [\r
+ "4610208d.e47188"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4610208d.e47188",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
+ "comments": "",\r
+ "x": 1903.8573913574219,\r
+ "y": 345.7143146721646,\r
+ "z": "1749c920.27afb7",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "cdfb0ad2.8ad0d8",\r
+ "type": "switchNode",\r
+ "name": "switch vnf-level-oper-status",\r
+ "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 971.0000762939453,\r
+ "y": 358.88902044296265,\r
+ "z": "1749c920.27afb7",\r
+ "wires": [\r
+ [\r
+ "c03a8f6a.5ba2c",\r
+ "fbd10336.a597a8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c03a8f6a.5ba2c",\r
+ "type": "outcome",\r
+ "name": "outcome Active",\r
+ "xml": "<outcome value='Active'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1216.8333702087402,\r
+ "y": 360.00011825561523,\r
+ "z": "1749c920.27afb7",\r
+ "wires": [\r
+ [\r
+ "442f984.65ce9e8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "442f984.65ce9e8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 1430.139762878418,\r
+ "y": 369.32530784606934,\r
+ "z": "1749c920.27afb7",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "fbd10336.a597a8",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1194.8333892822266,\r
+ "y": 410.00012969970703,\r
+ "z": "1749c920.27afb7",\r
+ "wires": [\r
+ [\r
+ "2dff766b.d66b12"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2dff766b.d66b12",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "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=\"`'VNF is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />",\r
+ "comments": "",\r
+ "x": 1354.3331565856934,\r
+ "y": 413.0001287460327,\r
+ "z": "1749c920.27afb7",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "4b93b56d.437c5c",\r
+ "type": "set",\r
+ "name": "copy input data to service data",\r
+ "xml": "<set>\n<!--parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' /-->\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />",\r
+ "comments": "",\r
+ "x": 980.0065612792969,\r
+ "y": 418.010435461998,\r
+ "z": "1749c920.27afb7",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "614f37e0.0249a",\r
+ "type": "save",\r
+ "name": "update AnAI - vnf-instance.orchestration-status",\r
+ "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $vnfId\" >\n<parameter name=\"orchestration-status\" value=\"PendingDelete\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1022.0064239501953,\r
+ "y": 564.0105141401291,\r
+ "z": "1749c920.27afb7",\r
+ "wires": [\r
+ []\r
+ ]\r
}\r
]
\ No newline at end of file