aboutsummaryrefslogtreecommitdiffstats
path: root/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_RebuildVM.json
diff options
context:
space:
mode:
Diffstat (limited to 'appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_RebuildVM.json')
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_RebuildVM.json275
1 files changed, 274 insertions, 1 deletions
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_RebuildVM.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_RebuildVM.json
index a66760674..4ec3a58c9 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_RebuildVM.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_RebuildVM.json
@@ -1 +1,274 @@
-[{"id":"e426d1a4.04b0b","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":281.75,"y":295,"z":"734c8384.84e874","wires":[["f11dad1d.996b88"]]},{"id":"b1ce76a2.53d928","type":"dgstart","name":"DGSTART","outputs":1,"x":288.75,"y":245,"z":"734c8384.84e874","wires":[["e426d1a4.04b0b"]]},{"id":"5bf06fcf.867b98","type":"execute","name":"rebuildServer()","xml":"<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='rebuildServer'>\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<parameter name=\"org.onap.appc.skiphypervisorcheck\" value=\"`$skip-hypervisor-check`\" />","comments":"","outputs":1,"x":722.7499694824219,"y":348,"z":"734c8384.84e874","wires":[["7d4aacf6.6c04fc","4916b7b8.2d8468"]]},{"id":"7d4aacf6.6c04fc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":866.7499694824219,"y":403,"z":"734c8384.84e874","wires":[["e3c23dad.ae06a"]]},{"id":"4916b7b8.2d8468","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":835.7499694824219,"y":225,"z":"734c8384.84e874","wires":[["dc58c2ba.2db078"]]},{"id":"4eeee11d.fb26f","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":571.75,"y":294.8833312988281,"z":"734c8384.84e874","wires":[["2c303534.0f7902","5bf06fcf.867b98","f2e4ec01.884618"]]},{"id":"2c303534.0f7902","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'input.payload = ' + $input.payload`\" />\n<parameter name=\"field3\" value=\"`'vm-id = '+ $vm-id`\" />","comments":"","outputs":1,"x":701.7499694824219,"y":295.8833312988281,"z":"734c8384.84e874","wires":[[]]},{"id":"6e491f05.7959","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='RPC Rebuild not found' />","comments":"","x":1120.7499694824219,"y":226.88333129882812,"z":"734c8384.84e874","wires":[]},{"id":"dc58c2ba.2db078","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":973.7499694824219,"y":226.88333129882812,"z":"734c8384.84e874","wires":[["6e491f05.7959"]]},{"id":"f11dad1d.996b88","type":"method","name":"RebuildVM","xml":"<method rpc='RebuildVM' mode='sync'>\n","comments":"","outputs":1,"x":432.75,"y":295.8833312988281,"z":"734c8384.84e874","wires":[["4eeee11d.fb26f"]]},{"id":"e3bd299a.2eb3d","type":"returnSuccess","name":"return success","xml":"<return status='success'>","comments":"","x":1448.7499694824219,"y":363.8833312988281,"z":"734c8384.84e874","wires":[]},{"id":"6da3c674.de3f5","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1365.7499694824219,"y":447.8833312988281,"z":"734c8384.84e874","wires":[["d3e45f44.e31868","52bdc72a.f6f06"]]},{"id":"d3e45f44.e31868","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='`$error-message`' />\n","comments":"","x":1522.7499694824219,"y":480.88336181640625,"z":"734c8384.84e874","wires":[]},{"id":"52bdc72a.f6f06","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field3\" value=\"`'error-message = ' + $error-message`\" />","comments":"","outputs":1,"x":1504.6166687011719,"y":427.7500305175781,"z":"734c8384.84e874","wires":[[]]},{"id":"e3c23dad.ae06a","type":"switchNode","name":"switch error-code","xml":"<switch test='`$error_code`'>\n","comments":"","outputs":1,"x":1044.7499694824219,"y":403.8833312988281,"z":"734c8384.84e874","wires":[["45af49c7.7ad408","14becb17.12bdad"]]},{"id":"45af49c7.7ad408","type":"success","name":"SUCCESS-200","xml":"<outcome value='200'>\n","comments":"","outputs":1,"x":1240.7499694824219,"y":365.8833312988281,"z":"734c8384.84e874","wires":[["e3bd299a.2eb3d"]]},{"id":"14becb17.12bdad","type":"outcome","name":"ERROR","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1224.7499694824219,"y":448.8833312988281,"z":"734c8384.84e874","wires":[["6da3c674.de3f5"]]},{"id":"f2e4ec01.884618","type":"set","name":"set skiphypervisorcheck","xml":"<set>\n<parameter name='org.onap.appc.skiphypervisorcheck' value='`$skip-hypervisor-check`' />\n","comments":"","x":758.75,"y":174.75,"z":"734c8384.84e874","wires":[]}]
+[
+ {
+ "id": "e426d1a4.04b0b",
+ "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": 281.75,
+ "y": 295,
+ "z": "734c8384.84e874",
+ "wires": [
+ [
+ "f11dad1d.996b88"
+ ]
+ ]
+ },
+ {
+ "id": "b1ce76a2.53d928",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 288.75,
+ "y": 245,
+ "z": "734c8384.84e874",
+ "wires": [
+ [
+ "e426d1a4.04b0b"
+ ]
+ ]
+ },
+ {
+ "id": "5bf06fcf.867b98",
+ "type": "execute",
+ "name": "rebuildServer()",
+ "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='rebuildServer'>\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<parameter name=\"org.onap.appc.skiphypervisorcheck\" value=\"`$skip-hypervisor-check`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 722.7499694824219,
+ "y": 348,
+ "z": "734c8384.84e874",
+ "wires": [
+ [
+ "7d4aacf6.6c04fc",
+ "4916b7b8.2d8468"
+ ]
+ ]
+ },
+ {
+ "id": "7d4aacf6.6c04fc",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 866.7499694824219,
+ "y": 403,
+ "z": "734c8384.84e874",
+ "wires": [
+ [
+ "e3c23dad.ae06a"
+ ]
+ ]
+ },
+ {
+ "id": "4916b7b8.2d8468",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 835.7499694824219,
+ "y": 225,
+ "z": "734c8384.84e874",
+ "wires": [
+ [
+ "dc58c2ba.2db078"
+ ]
+ ]
+ },
+ {
+ "id": "4eeee11d.fb26f",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 571.75,
+ "y": 294.8833312988281,
+ "z": "734c8384.84e874",
+ "wires": [
+ [
+ "2c303534.0f7902",
+ "5bf06fcf.867b98",
+ "f2e4ec01.884618"
+ ]
+ ]
+ },
+ {
+ "id": "2c303534.0f7902",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'input.payload = ' + $input.payload`\" />\n<parameter name=\"field3\" value=\"`'vm-id = '+ $vm-id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 701.7499694824219,
+ "y": 295.8833312988281,
+ "z": "734c8384.84e874",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6e491f05.7959",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='RPC Rebuild not found' />",
+ "comments": "",
+ "x": 1120.7499694824219,
+ "y": 226.88333129882812,
+ "z": "734c8384.84e874",
+ "wires": []
+ },
+ {
+ "id": "dc58c2ba.2db078",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 973.7499694824219,
+ "y": 226.88333129882812,
+ "z": "734c8384.84e874",
+ "wires": [
+ [
+ "6e491f05.7959"
+ ]
+ ]
+ },
+ {
+ "id": "f11dad1d.996b88",
+ "type": "method",
+ "name": "RebuildVM",
+ "xml": "<method rpc='RebuildVM' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 432.75,
+ "y": 295.8833312988281,
+ "z": "734c8384.84e874",
+ "wires": [
+ [
+ "4eeee11d.fb26f"
+ ]
+ ]
+ },
+ {
+ "id": "e3bd299a.2eb3d",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>",
+ "comments": "",
+ "x": 1448.7499694824219,
+ "y": 363.8833312988281,
+ "z": "734c8384.84e874",
+ "wires": []
+ },
+ {
+ "id": "6da3c674.de3f5",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1365.7499694824219,
+ "y": 447.8833312988281,
+ "z": "734c8384.84e874",
+ "wires": [
+ [
+ "d3e45f44.e31868",
+ "52bdc72a.f6f06"
+ ]
+ ]
+ },
+ {
+ "id": "d3e45f44.e31868",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='`$error-message`' />\n",
+ "comments": "",
+ "x": 1522.7499694824219,
+ "y": 480.88336181640625,
+ "z": "734c8384.84e874",
+ "wires": []
+ },
+ {
+ "id": "52bdc72a.f6f06",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field3\" value=\"`'error-message = ' + $error-message`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1504.6166687011719,
+ "y": 427.7500305175781,
+ "z": "734c8384.84e874",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e3c23dad.ae06a",
+ "type": "switchNode",
+ "name": "switch error-code",
+ "xml": "<switch test='`$error_code`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1044.7499694824219,
+ "y": 403.8833312988281,
+ "z": "734c8384.84e874",
+ "wires": [
+ [
+ "45af49c7.7ad408",
+ "14becb17.12bdad"
+ ]
+ ]
+ },
+ {
+ "id": "45af49c7.7ad408",
+ "type": "success",
+ "name": "SUCCESS-200",
+ "xml": "<outcome value='200'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1240.7499694824219,
+ "y": 365.8833312988281,
+ "z": "734c8384.84e874",
+ "wires": [
+ [
+ "e3bd299a.2eb3d"
+ ]
+ ]
+ },
+ {
+ "id": "14becb17.12bdad",
+ "type": "outcome",
+ "name": "ERROR",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1224.7499694824219,
+ "y": 448.8833312988281,
+ "z": "734c8384.84e874",
+ "wires": [
+ [
+ "6da3c674.de3f5"
+ ]
+ ]
+ },
+ {
+ "id": "f2e4ec01.884618",
+ "type": "set",
+ "name": "set skiphypervisorcheck",
+ "xml": "<set>\n<parameter name='org.onap.appc.skiphypervisorcheck' value='`$skip-hypervisor-check`' />\n",
+ "comments": "",
+ "x": 758.75,
+ "y": 174.75,
+ "z": "734c8384.84e874",
+ "wires": []
+ }
+]