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