-[
- {
- "id": "a36507bd.9411a8",
- "name": "DGSTART",
- "outputs": 1,
- "type": "dgstart",
- "wires": [
- [
- "c156b4fa.66d0a8"
- ]
- ],
- "x": 129,
- "y": 66,
- "z": "602aa70d.a192e8"
- },
- {
- "comments": "",
- "id": "c156b4fa.66d0a8",
- "module": "APPC",
- "name": "APPC 2.0.0",
- "outputs": 1,
- "type": "service-logic",
- "version": "2.0.0",
- "wires": [
- [
- "6c3d7cf.b631784"
- ]
- ],
- "x": 306.0000915527344,
- "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='APPC' version='2.0.0'>",
- "y": 65.5666732788086,
- "z": "602aa70d.a192e8"
- },
- {
- "comments": "",
- "id": "6c3d7cf.b631784",
- "name": "VM_Stop",
- "outputs": 1,
- "type": "method",
- "wires": [
- [
- "8896d091.49bc2"
- ]
- ],
- "x": 248.46435165405273,
- "xml": "<method rpc='VM_Stop' mode='sync'>\n",
- "y": 157.3880786895752,
- "z": "602aa70d.a192e8"
- },
- {
- "comments": "",
- "id": "8896d091.49bc2",
- "name": "Stop",
- "outputs": 1,
- "type": "execute",
- "wires": [
- [
- "985b942b.ec64e8",
- "34939973.cf1fd6"
- ]
- ],
- "x": 409,
- "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='stopServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$vm-id`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$identity-url`\" />\n",
- "y": 158.50000762939453,
- "z": "602aa70d.a192e8"
- },
- {
- "comments": "",
- "id": "34939973.cf1fd6",
- "name": "success",
- "outputs": 1,
- "type": "success",
- "wires": [
- [
- "f35d3b53.86e768"
- ]
- ],
- "x": 582.1170654296875,
- "xml": "<outcome value='success'>\n",
- "y": 159.4286117553711,
- "z": "602aa70d.a192e8"
- },
- {
- "comments": "",
- "id": "f35d3b53.86e768",
- "name": "switch STATUS",
- "outputs": 1,
- "type": "switchNode",
- "wires": [
- [
- "885dbd51.87507",
- "10f2aa34.ea80d6"
- ]
- ],
- "x": 764.9102783203125,
- "xml": "<switch test='`$STOP_STATUS`'>\n",
- "y": 158.98406219482422,
- "z": "602aa70d.a192e8"
- },
- {
- "comments": "",
- "id": "985b942b.ec64e8",
- "name": "failure",
- "outputs": 1,
- "type": "failure",
- "wires": [
- [
- "28dfcdd7.ba3e32"
- ]
- ],
- "x": 589.9047241210938,
- "xml": "<outcome value='failure'>\n",
- "y": 342.07161712646484,
- "z": "602aa70d.a192e8"
- },
- {
- "comments": "",
- "id": "9d1c57f6.77ce08",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 1315,
- "xml": "<return status='failure'>\n",
- "y": 408.7500228881836,
- "z": "602aa70d.a192e8"
- },
- {
- "comments": "",
- "id": "885dbd51.87507",
- "name": "SUCCESS",
- "outputs": 1,
- "type": "success",
- "wires": [
- [
- "8b1c6f1d.bf4c"
- ]
- ],
- "x": 958.5,
- "xml": "<outcome value='SUCCESS'>\n",
- "y": 133.5,
- "z": "602aa70d.a192e8"
- },
- {
- "comments": "",
- "id": "10f2aa34.ea80d6",
- "name": "ERROR",
- "outputs": 1,
- "type": "other",
- "wires": [
- [
- "149167fb.227158"
- ]
- ],
- "x": 947.5713500976562,
- "xml": "<outcome value='ERROR'>\n",
- "y": 205.0000457763672,
- "z": "602aa70d.a192e8"
- },
- {
- "comments": "",
- "id": "ec5b4ab9.b62488",
- "name": "set success code and message",
- "type": "set",
- "wires": [],
- "x": 1361,
- "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value='Success' />\n",
- "y": 109.5666732788086,
- "z": "602aa70d.a192e8"
- },
- {
- "comments": "",
- "id": "fdfee58d.d86908",
- "name": "return success",
- "type": "returnSuccess",
- "wires": [],
- "x": 1316,
- "xml": "<return status='success'>\n",
- "y": 173.56666564941406,
- "z": "602aa70d.a192e8"
- },
- {
- "atomic": "true",
- "comments": "",
- "id": "149167fb.227158",
- "name": "block : atomic",
- "outputs": 1,
- "type": "block",
- "wires": [
- [
- "32f7f639.b0517a",
- "9d1c57f6.77ce08"
- ]
- ],
- "x": 1119,
- "xml": "<block atomic='true'>",
- "y": 214.56666564941406,
- "z": "602aa70d.a192e8"
- },
- {
- "atomic": "true",
- "comments": "",
- "id": "28dfcdd7.ba3e32",
- "name": "block : atomic",
- "outputs": 1,
- "type": "block",
- "wires": [
- [
- "dcf150a2.8fa62",
- "9d1c57f6.77ce08"
- ]
- ],
- "x": 765,
- "xml": "<block atomic='true'>",
- "y": 341.5666732788086,
- "z": "602aa70d.a192e8"
- },
- {
- "comments": "",
- "id": "32f7f639.b0517a",
- "name": "set error code and message",
- "type": "set",
- "wires": [],
- "x": 1345,
- "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Stop VM status is error' />\n",
- "y": 241.5666732788086,
- "z": "602aa70d.a192e8"
- },
- {
- "comments": "",
- "id": "dcf150a2.8fa62",
- "name": "set error code and message",
- "type": "set",
- "wires": [],
- "x": 1056,
- "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Stop VM failed' />\n",
- "y": 309.5666732788086,
- "z": "602aa70d.a192e8"
- },
- {
- "atomic": "false",
- "comments": "",
- "id": "8b1c6f1d.bf4c",
- "name": "block : atomic",
- "outputs": 1,
- "type": "block",
- "wires": [
- [
- "ec5b4ab9.b62488",
- "fdfee58d.d86908"
- ]
- ],
- "x": 1120,
- "xml": "<block atomic='true'>\n",
- "y": 142,
- "z": "602aa70d.a192e8"
- }
-]
+[\r
+ {\r
+ "id": "a36507bd.9411a8",\r
+ "type": "dgstart",\r
+ "name": "DGSTART",\r
+ "outputs": 1,\r
+ "x": 129,\r
+ "y": 66,\r
+ "z": "602aa70d.a192e8",\r
+ "wires": [\r
+ [\r
+ "c156b4fa.66d0a8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c156b4fa.66d0a8",\r
+ "type": "service-logic",\r
+ "name": "APPC 2.0.0",\r
+ "module": "APPC",\r
+ "version": "2.0.0",\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='APPC' version='2.0.0'>",\r
+ "outputs": 1,\r
+ "x": 306.0000915527344,\r
+ "y": 65.5666732788086,\r
+ "z": "602aa70d.a192e8",\r
+ "wires": [\r
+ [\r
+ "6c3d7cf.b631784"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6c3d7cf.b631784",\r
+ "type": "method",\r
+ "name": "VM_Stop",\r
+ "xml": "<method rpc='VM_Stop' mode='sync'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 248.46435165405273,\r
+ "y": 157.3880786895752,\r
+ "z": "602aa70d.a192e8",\r
+ "wires": [\r
+ [\r
+ "8896d091.49bc2"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8896d091.49bc2",\r
+ "type": "execute",\r
+ "name": "Stop",\r
+ "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='stopServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$vm-id`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$identity-url`\" />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 409,\r
+ "y": 158.50000762939453,\r
+ "z": "602aa70d.a192e8",\r
+ "wires": [\r
+ [\r
+ "985b942b.ec64e8",\r
+ "34939973.cf1fd6"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "34939973.cf1fd6",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 582.1170654296875,\r
+ "y": 159.4286117553711,\r
+ "z": "602aa70d.a192e8",\r
+ "wires": [\r
+ [\r
+ "f35d3b53.86e768"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f35d3b53.86e768",\r
+ "type": "switchNode",\r
+ "name": "switch STATUS",\r
+ "xml": "<switch test='`$STOP_STATUS`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 764.9102783203125,\r
+ "y": 158.98406219482422,\r
+ "z": "602aa70d.a192e8",\r
+ "wires": [\r
+ [\r
+ "885dbd51.87507",\r
+ "10f2aa34.ea80d6"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "985b942b.ec64e8",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 589.9047241210938,\r
+ "y": 342.07161712646484,\r
+ "z": "602aa70d.a192e8",\r
+ "wires": [\r
+ [\r
+ "28dfcdd7.ba3e32"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9d1c57f6.77ce08",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n",\r
+ "comments": "",\r
+ "x": 1315,\r
+ "y": 408.7500228881836,\r
+ "z": "602aa70d.a192e8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "885dbd51.87507",\r
+ "type": "success",\r
+ "name": "SUCCESS",\r
+ "xml": "<outcome value='SUCCESS'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 958.5,\r
+ "y": 133.5,\r
+ "z": "602aa70d.a192e8",\r
+ "wires": [\r
+ [\r
+ "8b1c6f1d.bf4c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "10f2aa34.ea80d6",\r
+ "type": "other",\r
+ "name": "ERROR",\r
+ "xml": "<outcome value='ERROR'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 947.5713500976562,\r
+ "y": 205.0000457763672,\r
+ "z": "602aa70d.a192e8",\r
+ "wires": [\r
+ [\r
+ "149167fb.227158"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ec5b4ab9.b62488",\r
+ "type": "set",\r
+ "name": "set success code and message",\r
+ "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value='Success' />\n",\r
+ "comments": "",\r
+ "x": 1361,\r
+ "y": 109.5666732788086,\r
+ "z": "602aa70d.a192e8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "fdfee58d.d86908",\r
+ "type": "returnSuccess",\r
+ "name": "return success",\r
+ "xml": "<return status='success'>\n",\r
+ "comments": "",\r
+ "x": 1316,\r
+ "y": 173.56666564941406,\r
+ "z": "602aa70d.a192e8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "149167fb.227158",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1119,\r
+ "y": 214.56666564941406,\r
+ "z": "602aa70d.a192e8",\r
+ "wires": [\r
+ [\r
+ "32f7f639.b0517a",\r
+ "9d1c57f6.77ce08"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "28dfcdd7.ba3e32",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 765,\r
+ "y": 341.5666732788086,\r
+ "z": "602aa70d.a192e8",\r
+ "wires": [\r
+ [\r
+ "dcf150a2.8fa62",\r
+ "9d1c57f6.77ce08"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "32f7f639.b0517a",\r
+ "type": "set",\r
+ "name": "set error code and message",\r
+ "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Stop VM status is error' />\n",\r
+ "comments": "",\r
+ "x": 1345,\r
+ "y": 241.5666732788086,\r
+ "z": "602aa70d.a192e8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "dcf150a2.8fa62",\r
+ "type": "set",\r
+ "name": "set error code and message",\r
+ "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Stop VM failed' />\n",\r
+ "comments": "",\r
+ "x": 1056,\r
+ "y": 309.5666732788086,\r
+ "z": "602aa70d.a192e8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "8b1c6f1d.bf4c",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1120,\r
+ "y": 142,\r
+ "z": "602aa70d.a192e8",\r
+ "wires": [\r
+ [\r
+ "ec5b4ab9.b62488",\r
+ "fdfee58d.d86908"\r
+ ]\r
+ ]\r
+ }\r
+]\r