diff options
author | Ganesh Chandrasekaran <ganesh.c@samsung.com> | 2019-02-21 13:41:26 +0900 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2019-02-26 00:31:14 +0000 |
commit | e0198a286f3ed7e20f3aba7f7bc2c434d212a949 (patch) | |
tree | 3d2e1a0a95dadae73b45e6ca76e2f4c686236d05 | |
parent | 13c0353d0f637ec88ca4cdbeb64c4de3917e6a2b (diff) |
APPC Generic Saltstack DG addition
Issue-ID: APPC-1101
Change-Id: Ie240bb949481a7c59a508c2157a4ace95fe4a861
Signed-off-by: Ganesh Chandrasekaran <ganesh.c@samsung.com>
-rw-r--r-- | appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_Generic_SalststackDG.json | 491 |
1 files changed, 491 insertions, 0 deletions
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_Generic_SalststackDG.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_Generic_SalststackDG.json new file mode 100644 index 000000000..dd9c2314e --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_Generic_SalststackDG.json @@ -0,0 +1,491 @@ +[ + { + "id": "e38cb54f.9ca9f8", + "type": "dgstart", + "name": "DGSTART", + "outputs": 1, + "x": 205, + "y": 127, + "z": "8d1f21aa.54c4d", + "wires": [ + [ + "4bab3a4b.258874" + ] + ] + }, + { + "id": "4bab3a4b.258874", + "type": "service-logic", + "name": "APPC 4.0.0", + "module": "APPC", + "version": "4.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='4.0.0'>", + "outputs": 1, + "x": 282.4652862548828, + "y": 76.61805725097656, + "z": "8d1f21aa.54c4d", + "wires": [ + [ + "50553ff1.9574a" + ] + ] + }, + { + "id": "50553ff1.9574a", + "type": "method", + "name": "method Generic_SaltstackDG", + "xml": "<method rpc='Generic_SaltstackDG' mode='sync'>\n", + "comments": "", + "outputs": 1, + "x": 534.0277862548828, + "y": 76.61805725097656, + "z": "8d1f21aa.54c4d", + "wires": [ + [ + "5f98d930.7a8b18" + ] + ] + }, + { + "id": "6819c6e8.678398", + "type": "call", + "name": "call: saltstack-adapter-1.0", + "xml": "<call module=\"APPC\" rpc=\"saltstack-adapter-1.0\" mode=\"sync\">", + "comments": "", + "outputs": 1, + "x": 373.3822479248047, + "y": 727.6304321289062, + "z": "8d1f21aa.54c4d", + "wires": [ + [ + "5ba5a458.bd343c", + "60f88818.d3d458", + "1d8a5754.a5bfa9" + ] + ] + }, + { + "id": "8965bd62.c94ad", + "type": "execute", + "name": "execute params", + "xml": " <execute plugin=\"org.onap.appc.encryptiontool.wrapper.EncryptionToolDGWrapper\" method =\"getProperty\">\n <parameter name=\"prefix\" value =\"property\"/>\n\n \n ", + "comments": "", + "outputs": 1, + "x": 591.7984008789062, + "y": 350.02760314941406, + "z": "8d1f21aa.54c4d", + "wires": [ + [ + "15bd90c9.26106f", + "616cf1c.003711" + ] + ] + }, + { + "id": "fc232c3a.c22b1", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n<parameter name='error-code' value=\"401\" />\n<parameter name='error-message' value=\"`$property.error-message`\" />\n", + "comments": "", + "x": 1228.8195495605469, + "y": 644.5471343994141, + "z": "8d1f21aa.54c4d", + "wires": [] + }, + { + "id": "77b68006.68a1", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1060.090202331543, + "y": 644.7263355255127, + "z": "8d1f21aa.54c4d", + "wires": [ + [ + "fc232c3a.c22b1" + ] + ] + }, + { + "id": "616cf1c.003711", + "type": "not-found", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 862.0277557373047, + "y": 642.3471527099609, + "z": "8d1f21aa.54c4d", + "wires": [ + [ + "77b68006.68a1" + ] + ] + }, + { + "id": "15bd90c9.26106f", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 843.0404510498047, + "y": 576.2013397216797, + "z": "8d1f21aa.54c4d", + "wires": [ + [ + "77b68006.68a1" + ] + ] + }, + { + "id": "9bf9a511.09ec78", + "type": "execute", + "name": "execute Convert payload to DG Context ", + "xml": "<execute plugin=\"org.onap.sdnc.config.generator.convert.ConvertNode\" method=\"convertJson2DGContext\">\n<parameter name=\"jsonData\" value=\"`$tmp.merge.mergedData`\" />\n<parameter name=\"isEscaped\" value=\"Y\" />\n<parameter name=\"blockKeys\" value=\"EnvParameters,SlsName,Timeout,NodeList\" />\n<parameter name=\"responsePrefix\" value=\"tmp.convertnode\" />", + "comments": "", + "outputs": 1, + "x": 644.6145477294922, + "y": 166.60910034179688, + "z": "8d1f21aa.54c4d", + "wires": [ + [ + "e8f47f42.c57a2", + "79fbc9a5.3b3c58" + ] + ] + }, + { + "id": "3058a57d.09569a", + "type": "set", + "name": "set Payload params ", + "xml": "<set>\n<parameter name='SlsName' value='`$SlsName`' />\n<parameter name='NodeList' value='`$NodeList`'/>\n<parameter name='vnf_id' value='`$vnf-id`' />\n<parameter name='AgentUrl' value='`$agenturl`'/>\n<parameter name='Port' value='`$port`'/>\n <parameter name='User' value='`$user`'/>\n <parameter name='Password' value='`$password`'/>\n <parameter name='EnvParameters' value='`$EnvParameters`'/>\n <parameter name='Timeout' value='`$Timeout`'/>\n\n\n\n", + "comments": "", + "x": 495.9220733642578, + "y": 626.0113525390625, + "z": "8d1f21aa.54c4d", + "wires": [] + }, + { + "id": "79fbc9a5.3b3c58", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 927.8527374267578, + "y": 198.263916015625, + "z": "8d1f21aa.54c4d", + "wires": [ + [ + "9353cc05.2510e" + ] + ] + }, + { + "id": "e8f47f42.c57a2", + "type": "not-found", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 923.6860504150391, + "y": 256.5472412109375, + "z": "8d1f21aa.54c4d", + "wires": [ + [ + "46965e7b.1d0b3" + ] + ] + }, + { + "id": "9353cc05.2510e", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1050.5194854736328, + "y": 202.4305419921875, + "z": "8d1f21aa.54c4d", + "wires": [ + [ + "40ee8f23.eaa99" + ] + ] + }, + { + "id": "46965e7b.1d0b3", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1049.8526763916016, + "y": 263.913818359375, + "z": "8d1f21aa.54c4d", + "wires": [ + [ + "8ee3f2b6.bd308" + ] + ] + }, + { + "id": "8ee3f2b6.bd308", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"Unable to process convert payload to context.\"/>\n\t\n", + "comments": "", + "x": 1199.0526275634766, + "y": 266.09722900390625, + "z": "8d1f21aa.54c4d", + "wires": [] + }, + { + "id": "5f98d930.7a8b18", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 330.119384765625, + "y": 189.19715881347656, + "z": "8d1f21aa.54c4d", + "wires": [ + [ + "6819c6e8.678398", + "8965bd62.c94ad", + "9bf9a511.09ec78", + "3058a57d.09569a", + "d218d7d2.b9b368", + "be7dc38b.4b2f5", + "4cf90dde.d09894", + "f3549fc.54c8a6", + "4d75ad1e.f322c4" + ] + ] + }, + { + "id": "40ee8f23.eaa99", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"`$tmp.convertnode.error-message`\"/>\n\t\n\t", + "comments": "", + "x": 1193.085952758789, + "y": 199.83050537109375, + "z": "8d1f21aa.54c4d", + "wires": [] + }, + { + "id": "37477c51.2b0464", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status=\"failure\">\n<parameter name='error-code' value=\"401\" />\n<parameter name='error-message' value='`$org.onap.appc.adapter.saltstack.message`'/>\n<parameter name='output-payload' value='`$org.onap.appc.adapter.saltstack.output`'/>", + "comments": "", + "x": 1082.9717254638672, + "y": 796.2043304443359, + "z": "8d1f21aa.54c4d", + "wires": [] + }, + { + "id": "5ba5a458.bd343c", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 796.7693634033203, + "y": 777.7805938720703, + "z": "8d1f21aa.54c4d", + "wires": [ + [ + "37477c51.2b0464" + ] + ] + }, + { + "id": "60f88818.d3d458", + "type": "not-found", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 772.9694366455078, + "y": 860.3305206298828, + "z": "8d1f21aa.54c4d", + "wires": [ + [ + "66737fa9.c07ec" + ] + ] + }, + { + "id": "d218d7d2.b9b368", + "type": "set", + "name": "set Payload params ", + "xml": "<set>\n<parameter name='SlsName' value='`$block_SlsName`' />\n<parameter name='NodeList' value ='`$block_NodeList`'/>\n<parameter name='vnf_id' value='`$vnf-id`' />\n<parameter name='EnvParameters' value='`$block_EnvParameters`'/>\n<parameter name='Timeout' value='`$block_Timeout`'/>\n\n\n\n", + "comments": "", + "x": 644.4444732666016, + "y": 223.22222900390625, + "z": "8d1f21aa.54c4d", + "wires": [] + }, + { + "id": "66737fa9.c07ec", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status=\"failure\">\n<parameter name='error-code' value=\"401\" />\n<parameter name='error-message' value='saltstack-adapter-1.0.0 Dg not found'/>", + "comments": "", + "x": 1027.6111297607422, + "y": 904.2460784912109, + "z": "8d1f21aa.54c4d", + "wires": [] + }, + { + "id": "1d8a5754.a5bfa9", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 570.4683074951172, + "y": 942.1984710693359, + "z": "8d1f21aa.54c4d", + "wires": [ + [ + "6fd24c30.fc4b14" + ] + ] + }, + { + "id": "be7dc38b.4b2f5", + "type": "record", + "name": "record", + "xml": "<record plugin=\"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='`$user`'/>\n <parameter name='field3' value='`$password`'/>\n <parameter name='field4' value='`$agenturl`'/>\n <parameter name='field5' value='`$port`'/>", + "comments": "", + "outputs": 1, + "x": 511.1778106689453, + "y": 529.3556518554688, + "z": "8d1f21aa.54c4d", + "wires": [ + [] + ] + }, + { + "id": "4cf90dde.d09894", + "type": "set", + "name": "set properties", + "xml": "<set>\n<parameter name=\"user\" value='`$property.user`'/>\n<parameter name=\"password\" value='`$property.password`'/>\n<parameter name=\"agenturl\" value='`$property.url`'/>\n<parameter name=\"port\" value='`$property.port`'/>\n\n\n", + "comments": "", + "x": 566.0055389404297, + "y": 429.066650390625, + "z": "8d1f21aa.54c4d", + "wires": [] + }, + { + "id": "f3549fc.54c8a6", + "type": "get-resource", + "name": "get-resource: APPC.protocol", + "xml": "<get-resource\n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"SELECT DISTINCT PROTOCOL FROM PROTOCOL_REFERENCE WHERE ACTION = $input.action AND VNF_TYPE = $vnf-type ;\"\n force='true'\n\tpfx='APPC.protocol'>\n", + "comments": "", + "outputs": 1, + "x": 639.1110992431641, + "y": 273.022216796875, + "z": "8d1f21aa.54c4d", + "wires": [ + [ + "feac9596.8aec28", + "3a91d47a.b79b5c" + ] + ] + }, + { + "id": "3add0af2.e80156", + "type": "set", + "name": "set protocol", + "xml": "<set>\n<parameter name='APPC.protocol.PROTOCOL' value='`$APPC.protocol.PROTOCOL`' />\n\n\n\n\n\n", + "comments": "", + "x": 1074.111099243164, + "y": 378.022216796875, + "z": "8d1f21aa.54c4d", + "wires": [] + }, + { + "id": "feac9596.8aec28", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 891.1110992431641, + "y": 324.022216796875, + "z": "8d1f21aa.54c4d", + "wires": [ + [ + "f8c45479.728dd8" + ] + ] + }, + { + "id": "f8c45479.728dd8", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1038.111099243164, + "y": 333.022216796875, + "z": "8d1f21aa.54c4d", + "wires": [ + [] + ] + }, + { + "id": "3a91d47a.b79b5c", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 888.1110992431641, + "y": 373.022216796875, + "z": "8d1f21aa.54c4d", + "wires": [ + [ + "3add0af2.e80156" + ] + ] + }, + { + "id": "4d75ad1e.f322c4", + "type": "record", + "name": "record", + "xml": "<record plugin=\"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='`$user`'/>\n <parameter name='field3' value='`$APPC.protocol.PROTOCOL`'/>\n <parameter name='field4' value='`$url`'/>\n <parameter name='field5' value='`$port`'/>", + "comments": "", + "outputs": 1, + "x": 676.1110992431641, + "y": 310.022216796875, + "z": "8d1f21aa.54c4d", + "wires": [ + [] + ] + }, + { + "id": "6fd24c30.fc4b14", + "type": "set", + "name": "set payloadResponse", + "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value='`$org.onap.appc.adapter.saltstack.message`'/>\n<parameter name='output-payload' value='`$org.onap.appc.adapter.saltstack.output`'/>", + "comments": "", + "x": 869, + "y": 1005, + "z": "8d1f21aa.54c4d", + "wires": [] + } +]
\ No newline at end of file |