summaryrefslogtreecommitdiffstats
path: root/appc-directed-graph/appc-dgraph
diff options
context:
space:
mode:
authorDilip kumar Pampana <dp583p@att.com>2018-03-27 11:53:00 -0400
committerRanda Maher <rx196w@att.com>2018-03-27 21:12:27 +0000
commit2346608ef83272b893cc915d80f11d4b2f0b5b19 (patch)
tree6772d10cd99f3fd0f10740a8848a6a7e921208b7 /appc-directed-graph/appc-dgraph
parent30107c8aea5e0f508612476d18a5496938713db2 (diff)
Fix for config not able to save in DB
Did changes in DG's for getRunningConfig not able to save in Db Issue-ID: APPC-800 Change-Id: I67722f6eafe045b63edf1922430b425c4f6ee755 Signed-off-by: Dilip kumar Pampana <dp583p@att.com>
Diffstat (limited to 'appc-directed-graph/appc-dgraph')
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GetDeviceRunningConfig.json1954
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GetTemplateConfig_Ansible.json779
-rw-r--r--appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GetTemplateConfig_Chef.json803
3 files changed, 1554 insertions, 1982 deletions
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GetDeviceRunningConfig.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GetDeviceRunningConfig.json
index 918e7c8cc..b2f33963a 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GetDeviceRunningConfig.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GetDeviceRunningConfig.json
@@ -1,1089 +1,865 @@
-[
- {
- "id": "73fd49f3.a1d278",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 208.75,
- "y": 98.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "98dbdd7c.fe8c3"
- ]
- ]
- },
- {
- "id": "53ce8877.2ecf68",
- "type": "method",
- "name": "method: GetDeviceRunningConfig",
- "xml": "<method rpc='GetDeviceRunningConfig' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 645.1785430908203,
- "y": 89.17857456207275,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "71df0315.00e07c"
- ]
- ]
- },
- {
- "id": "98dbdd7c.fe8c3",
- "type": "service-logic",
- "name": "APPC 4.0.0",
- "module": "APPC",
- "version": "3.1.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": 399.75,
- "y": 96.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "53ce8877.2ecf68"
- ]
- ]
- },
- {
- "id": "a7b3e993.df4158",
- "type": "set",
- "name": "set Request Parameters",
- "xml": "<set>\n<parameter name='vnf-type' value=\"`$config.vnf-type`\" />\n<parameter name='vnf-name' value=\"`$config.vnf-name`\" />\n<parameter name='protocol' value=\"`$config.protocol`\" />\n<parameter name='hostIpAddress' value=\"`$config.host-ip-address`\" />\n<parameter name='userName' value=\"`$config.user-name`\" />\n<parameter name='password' value=\"`$config.password`\" />\n<parameter name='portNumber' value=\"`$config.port-number`\" />\n",
- "comments": "",
- "x": 571.0834197998047,
- "y": 167.74999570846558,
- "z": "d5c2f7ab.9eeb78",
- "wires": []
- },
- {
- "id": "f83cb7cd.e4dd78",
- "type": "execute",
- "name": "execute: Get Rest Configuration",
- "xml": "<execute plugin=\"org.onap.sdnc.restconf.RestConfCallNode\" method=\"getConfiguration\">\n<parameter name=\"hostIpAddress\" value=\"`$hostIpAddress`\" />\n<parameter name=\"protocol\" value=\"`$protocol`\" />\n<parameter name=\"responsePrefix\" value=\"restconf\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 704.75,
- "y": 512.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "198a50e4.1a084f",
- "f26ecc71.80f99",
- "813bb5a6.7d4a68"
- ]
- ]
- },
- {
- "id": "855c15a1.c5faf8",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"Unable to Get the Configuration\"/>\n",
- "comments": "",
- "x": 2005.7500381469727,
- "y": 622.7500162124634,
- "z": "d5c2f7ab.9eeb78",
- "wires": []
- },
- {
- "id": "198a50e4.1a084f",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 961.75,
- "y": 580.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "d887442e.fdbd68"
- ]
- ]
- },
- {
- "id": "d51d7787.158188",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 984.75,
- "y": 632.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "2880086.7157bf8"
- ]
- ]
- },
- {
- "id": "2880086.7157bf8",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$restconf.config`\" />\n",
- "comments": "",
- "x": 1213.75,
- "y": 620.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": []
- },
- {
- "id": "f26ecc71.80f99",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 800.75,
- "y": 632.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "d51d7787.158188"
- ]
- ]
- },
- {
- "id": "d887442e.fdbd68",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1792.7500343322754,
- "y": 612.7500648498535,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "855c15a1.c5faf8"
- ]
- ]
- },
- {
- "id": "71df0315.00e07c",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 301.75,
- "y": 166.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "a7b3e993.df4158",
- "2fbf7d15.74f302"
- ]
- ]
- },
- {
- "id": "29cf8ea9.51acb2",
- "type": "outcome",
- "name": "RESTCONF-XML",
- "xml": "<outcome value='RESTCONF-XML'>\n",
- "comments": "",
- "outputs": 1,
- "x": 346.75,
- "y": 513.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "cbfbcb9b.61f818"
- ]
- ]
- },
- {
- "id": "cbfbcb9b.61f818",
- "type": "block",
- "name": "block",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 506.75,
- "y": 464.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "f83cb7cd.e4dd78"
- ]
- ]
- },
- {
- "id": "2fbf7d15.74f302",
- "type": "switchNode",
- "name": "switch : Protocol",
- "xml": "<switch test=\"`$protocol`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 176.75,
- "y": 268.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "29cf8ea9.51acb2",
- "47521138.e1182",
- "aa86a367.9e31",
- "9e29ccc9.7ecc5",
- "cb04f713.845c98",
- "d235c42e.58bf08"
- ]
- ]
- },
- {
- "id": "47521138.e1182",
- "type": "outcome",
- "name": "CLI",
- "xml": "<outcome value='CLI'>\n",
- "comments": "",
- "outputs": 1,
- "x": 370.75,
- "y": 269.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "6f3ae8b7.9b6778"
- ]
- ]
- },
- {
- "id": "e982ff2.bf8a4",
- "type": "get-resource",
- "name": "get-resource GET_CONFIG_TEMPLATE",
- "xml": "<get-resource\n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"SELECT TEMPLATE FROM GET_CONFIG_TEMPLATE WHERE vnf_type = $vnf-type ;\"\n force='true'\n\tpfx='config-template'>\n",
- "comments": "",
- "outputs": 1,
- "x": 754.7499694824219,
- "y": 247.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "48deb1d2.fcd28",
- "935998ed.ba2098"
- ]
- ]
- },
- {
- "id": "6f3ae8b7.9b6778",
- "type": "block",
- "name": "block",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 510.7499694824219,
- "y": 270.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "e982ff2.bf8a4",
- "5f0176d.376ce88"
- ]
- ]
- },
- {
- "id": "ede520ec.0c179",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"Unable to Read Config Template\"/>\n\t",
- "comments": "",
- "x": 1331.7499694824219,
- "y": 274.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": []
- },
- {
- "id": "98a7d137.1e399",
- "type": "block",
- "name": "block",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1160.7499694824219,
- "y": 275.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "ede520ec.0c179"
- ]
- ]
- },
- {
- "id": "41ac5929.942928",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$cliOutput`\" />\n",
- "comments": "",
- "x": 1207.75,
- "y": 490.75004863739014,
- "z": "d5c2f7ab.9eeb78",
- "wires": []
- },
- {
- "id": "5f0176d.376ce88",
- "type": "execute",
- "name": "execute: Get CLI RunningConfig",
- "xml": "<configure adaptor='org.onap.appc.ccadaptor.ConfigComponentAdaptor' key='GetCliRunningConfig'>\n<parameter name=\"Host_ip_address\" value=\"`$hostIpAddress`\" />\n<parameter name=\"User_name\" value=\"`$userName`\" />\n<parameter name=\"Password\" value=\"`$password`\" />\n<parameter name=\"Port_number\" value=\"`$portNumber`\" />\n<parameter name=\"Get_config_template\" value=\"`$config-template.TEMPLATE`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 720.7500152587891,
- "y": 336.7500123977661,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "78d9a2f9.46003c",
- "97890ce8.6b316",
- "98f67919.c738f8"
- ]
- ]
- },
- {
- "id": "e6da77d0.fadda8",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 986.75,
- "y": 435.75006103515625,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "41ac5929.942928"
- ]
- ]
- },
- {
- "id": "48deb1d2.fcd28",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1007.7499694824219,
- "y": 287.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "98a7d137.1e399"
- ]
- ]
- },
- {
- "id": "78d9a2f9.46003c",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 812.75,
- "y": 433.75006103515625,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "e6da77d0.fadda8"
- ]
- ]
- },
- {
- "id": "813bb5a6.7d4a68",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 970.75,
- "y": 535.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "d887442e.fdbd68"
- ]
- ]
- },
- {
- "id": "935998ed.ba2098",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1006.7499694824219,
- "y": 216.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "98a7d137.1e399"
- ]
- ]
- },
- {
- "id": "97890ce8.6b316",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 989.7500076293945,
- "y": 351.7499933242798,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "560e0fe9.a63f6"
- ]
- ]
- },
- {
- "id": "98f67919.c738f8",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 980.75,
- "y": 390.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "d887442e.fdbd68"
- ]
- ]
- },
- {
- "id": "fde847ff.94d008",
- "type": "comment",
- "name": "comment1",
- "info": "comment1",
- "comments": "",
- "x": 887.7499694824219,
- "y": 28.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": []
- },
- {
- "id": "aa86a367.9e31",
- "type": "outcome",
- "name": "NETCONF-XML",
- "xml": "<outcome value='NETCONF-XML'>\n",
- "comments": "",
- "outputs": 1,
- "x": 281.75,
- "y": 676.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "e84e48c0.7bd1f8"
- ]
- ]
- },
- {
- "id": "e84e48c0.7bd1f8",
- "type": "block",
- "name": "block",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 453.75,
- "y": 676.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "567cae24.a2056"
- ]
- ]
- },
- {
- "id": "567cae24.a2056",
- "type": "execute",
- "name": "execute: Get XML RunningConfig",
- "xml": "<configure adaptor='org.onap.appc.ccadaptor.ConfigComponentAdaptor' key='xml-getrunningconfig'>\n<parameter name=\"Host_ip_address\" value=\"`$hostIpAddress`\" />\n<parameter name=\"User_name\" value=\"`$userName`\" />\n<parameter name=\"Password\" value=\"`$password`\" />\n<parameter name=\"Port_number\" value=\"`$portNumber`\" />\n<parameter name=\"Protocol\" value=\"`$protocol`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 683.6071929931641,
- "y": 705.892858505249,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "50a8e434.940b6c",
- "66893930.a5f318",
- "d6c04b27.53f0c8"
- ]
- ]
- },
- {
- "id": "50a8e434.940b6c",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1009.75,
- "y": 687.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "560e0fe9.a63f6"
- ]
- ]
- },
- {
- "id": "66893930.a5f318",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1010.75,
- "y": 736.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "d887442e.fdbd68"
- ]
- ]
- },
- {
- "id": "9e29ccc9.7ecc5",
- "type": "outcome",
- "name": "RESTCONF",
- "xml": "<outcome value='RESTCONF'>\n",
- "comments": "",
- "outputs": 1,
- "x": 358.75,
- "y": 438.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "cbfbcb9b.61f818"
- ]
- ]
- },
- {
- "id": "d6c04b27.53f0c8",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 830.75,
- "y": 784.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "907796bc.3521c8"
- ]
- ]
- },
- {
- "id": "907796bc.3521c8",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1006.75,
- "y": 783.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "230d353a.82deba"
- ]
- ]
- },
- {
- "id": "230d353a.82deba",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$xmlRunningConfigOutput `\" />\n",
- "comments": "",
- "x": 1211.4169387817383,
- "y": 781.7500133514404,
- "z": "d5c2f7ab.9eeb78",
- "wires": []
- },
- {
- "id": "cb04f713.845c98",
- "type": "outcome",
- "name": "CHEF",
- "xml": "<outcome value='CHEF'>\n",
- "comments": "",
- "outputs": 1,
- "x": 252.75,
- "y": 773.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "87e6927d.8c87a"
- ]
- ]
- },
- {
- "id": "2c9ce105.810cce",
- "type": "block",
- "name": "block",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 465.74999237060547,
- "y": 821.4166603088379,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "830e8c40.09ea8"
- ]
- ]
- },
- {
- "id": "830e8c40.09ea8",
- "type": "execute",
- "name": "execute: getChefRunningConfig",
- "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getConfigFilesByVnfVmNCategory\">\n<parameter name=\"fileCategory\" value=\"device_configuration\" />\n<parameter name='vnfId' value=\"`$config.vnf-id`\" />\n<parameter name='vmName' value=\"`$config.vm-name`\" />\n<parameter name=\"responsePrefix\" value=\"tmp.deviceconfig\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 701.8928680419922,
- "y": 865.6072664260864,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "f10cdc38.2c8fd",
- "d81f053f.e21898",
- "8b94b394.610ac"
- ]
- ]
- },
- {
- "id": "8b94b394.610ac",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 896.4642944335938,
- "y": 961.89284324646,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "ff4e13e0.ba24a"
- ]
- ]
- },
- {
- "id": "ff4e13e0.ba24a",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1195.4167976379395,
- "y": 996.4166450500488,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "bd7122ae.6d345"
- ]
- ]
- },
- {
- "id": "d81f053f.e21898",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1003.750129699707,
- "y": 897.7500658035278,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- []
- ]
- },
- {
- "id": "f10cdc38.2c8fd",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1002.750129699707,
- "y": 848.7500658035278,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "3be4b321.a7b82c"
- ]
- ]
- },
- {
- "id": "bd7122ae.6d345",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$tmp.deviceconfig.file-content`\" />\n",
- "comments": "",
- "x": 1431.750144958496,
- "y": 1000.08331823349,
- "z": "d5c2f7ab.9eeb78",
- "wires": []
- },
- {
- "id": "3be4b321.a7b82c",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1178.750129699707,
- "y": 852.7500658035278,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "68fcda28.298664"
- ]
- ]
- },
- {
- "id": "68fcda28.298664",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"`$tmp.deviceconfig.error-message`\"/>\n\n",
- "comments": "",
- "x": 1329.0834503173828,
- "y": 832.8929662704468,
- "z": "d5c2f7ab.9eeb78",
- "wires": []
- },
- {
- "id": "d47a34b9.96fae8",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"`$error-message`\"/>\n",
- "comments": "",
- "x": 1520.75,
- "y": 398.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": []
- },
- {
- "id": "560e0fe9.a63f6",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1345.75,
- "y": 402.75,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "d47a34b9.96fae8"
- ]
- ]
- },
- {
- "id": "d235c42e.58bf08",
- "type": "outcome",
- "name": " Ansible",
- "xml": "<outcome value='Ansible'>\n",
- "comments": "",
- "outputs": 1,
- "x": 227.19049835205078,
- "y": 891.4763145446777,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "7994c061.4c34b"
- ]
- ]
- },
- {
- "id": "87e6927d.8c87a",
- "type": "block",
- "name": "block",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 413.33331298828125,
- "y": 953.333251953125,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "b2457e62.0d6be"
- ]
- ]
- },
- {
- "id": "b2457e62.0d6be",
- "type": "call",
- "name": "call GetTemplateConfig_Chef",
- "xml": "<call module='APPC' rpc='GetTemplateConfig_Chef' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 659.2857055664062,
- "y": 954.0477857589722,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "e573827e.36bb9",
- "35aad49a.f87bcc",
- "7142f414.35002c"
- ]
- ]
- },
- {
- "id": "163d15dd.b3498a",
- "type": "call",
- "name": "call GetTemplateConfig_Ansible",
- "xml": "<call module='APPC' rpc='GetTemplateConfig_Ansible' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 597.857063293457,
- "y": 1235.476152420044,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "e6a86a3a.62afb8",
- "80beb099.eee58",
- "9ba09f64.03e81"
- ]
- ]
- },
- {
- "id": "35aad49a.f87bcc",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 722.6190185546875,
- "y": 1095.7143206596375,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "d887442e.fdbd68"
- ]
- ]
- },
- {
- "id": "e573827e.36bb9",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 721.6190185546875,
- "y": 1046.7143206596375,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "73395769.c7fd38"
- ]
- ]
- },
- {
- "id": "73395769.c7fd38",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 897.6190185546875,
- "y": 1050.7143206596375,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "ebfee93d.0a6c28"
- ]
- ]
- },
- {
- "id": "ebfee93d.0a6c28",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"`$tmp.deviceconfig.error-message`\"/>\n\n",
- "comments": "",
- "x": 1089.6190185546875,
- "y": 1043.7143206596375,
- "z": "d5c2f7ab.9eeb78",
- "wires": []
- },
- {
- "id": "7142f414.35002c",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 660.9523315429688,
- "y": 1169.047694683075,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "6ed3304a.f8835"
- ]
- ]
- },
- {
- "id": "6ed3304a.f8835",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 823.9523315429688,
- "y": 1169.047694683075,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "99960733.d8c138"
- ]
- ]
- },
- {
- "id": "99960733.d8c138",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$tmp.deviceconfig.file-content`\" />\n<parameter name='output.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='output.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n<parameter name='output.status.results' value = '`$output.status.results`'/>\n",
- "comments": "",
- "x": 1026.9523315429688,
- "y": 1171.047694683075,
- "z": "d5c2f7ab.9eeb78",
- "wires": []
- },
- {
- "id": "7994c061.4c34b",
- "type": "block",
- "name": "block",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 409.52384185791016,
- "y": 1150.4760665893555,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "163d15dd.b3498a"
- ]
- ]
- },
- {
- "id": "80beb099.eee58",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 831.1903610229492,
- "y": 1300.4761695861816,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "d887442e.fdbd68"
- ]
- ]
- },
- {
- "id": "e6a86a3a.62afb8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 830.1903610229492,
- "y": 1251.4761695861816,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "565cf063.e3efb"
- ]
- ]
- },
- {
- "id": "565cf063.e3efb",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1006.1903610229492,
- "y": 1255.4761695861816,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "484bbab0.c63454"
- ]
- ]
- },
- {
- "id": "484bbab0.c63454",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"`$tmp.deviceconfig.error-message`\"/>\n\n",
- "comments": "",
- "x": 1198.1903381347656,
- "y": 1248.4761772155762,
- "z": "d5c2f7ab.9eeb78",
- "wires": []
- },
- {
- "id": "9ba09f64.03e81",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 769.5236740112305,
- "y": 1373.8095436096191,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "6b8fab54.184374"
- ]
- ]
- },
- {
- "id": "6b8fab54.184374",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 932.5236740112305,
- "y": 1373.8095436096191,
- "z": "d5c2f7ab.9eeb78",
- "wires": [
- [
- "5dadab18.730154"
- ]
- ]
- },
- {
- "id": "5dadab18.730154",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$tmp.deviceconfig.file-content`\" />\n<parameter name='code' value='`$output.status.code`' />\n<parameter name='message' value='`$output.status.message`'/>\n<parameter name='Status' value = '`$output.status.results`'/>\n",
- "comments": "",
- "x": 1135.5236282348633,
- "y": 1375.809624671936,
- "z": "d5c2f7ab.9eeb78",
- "wires": []
- }
-]
+[{
+ "id": "94bfef9f.255",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 116.5,
+ "y": 146.28573513031006,
+ "z": "29922cf.42f59d4",
+ "wires": [["497329f9.a0cd78"]]
+},
+{
+ "id": "f1358900.5d68d8",
+ "type": "method",
+ "name": "method: GetDeviceRunningConfig",
+ "xml": "<method rpc='GetDeviceRunningConfig' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 552.9285430908203,
+ "y": 136.7143096923828,
+ "z": "29922cf.42f59d4",
+ "wires": [["471dcdf0.fc2004"]]
+},
+{
+ "id": "497329f9.a0cd78",
+ "type": "service-logic",
+ "name": "APPC 4.0.0",
+ "module": "APPC",
+ "version": "3.1.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": 307.5,
+ "y": 144.28573513031006,
+ "z": "29922cf.42f59d4",
+ "wires": [["f1358900.5d68d8"]]
+},
+{
+ "id": "684c9627.5f6318",
+ "type": "set",
+ "name": "set Request Parameters",
+ "xml": "<set>\n<parameter name='vnf-type' value=\"`$config.vnf-type`\" />\n<parameter name='vnf-name' value=\"`$config.vnf-name`\" />\n<parameter name='protocol' value=\"`$config.protocol`\" />\n<parameter name='hostIpAddress' value=\"`$config.host-ip-address`\" />\n<parameter name='userName' value=\"`$config.user-name`\" />\n<parameter name='password' value=\"`$config.password`\" />\n<parameter name='portNumber' value=\"`$config.port-number`\" />\n",
+ "comments": "",
+ "x": 478.8334197998047,
+ "y": 215.28573083877563,
+ "z": "29922cf.42f59d4",
+ "wires": []
+},
+{
+ "id": "26aeca14.cd8d26",
+ "type": "execute",
+ "name": "execute: Get Rest Configuration",
+ "xml": "<execute plugin=\"com.att.sdnctl.restconf.RestConfCallNode\" method=\"getConfiguration\">\n<parameter name=\"hostIpAddress\" value=\"`$hostIpAddress`\" />\n<parameter name=\"protocol\" value=\"`$protocol`\" />\n<parameter name=\"responsePrefix\" value=\"restconf\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 612.5,
+ "y": 560.2857351303101,
+ "z": "29922cf.42f59d4",
+ "wires": [["761073a7.72105c",
+ "53dfa016.9b377",
+ "9d75f86d.fcf6f8"]]
+},
+{
+ "id": "d1c68a25.bb7f48",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"Unable to Get the Configuration\"/>\n",
+ "comments": "",
+ "x": 1913.5000381469727,
+ "y": 670.2857513427734,
+ "z": "29922cf.42f59d4",
+ "wires": []
+},
+{
+ "id": "761073a7.72105c",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 869.5,
+ "y": 628.2857351303101,
+ "z": "29922cf.42f59d4",
+ "wires": [["980ae7de.429418"]]
+},
+{
+ "id": "60cadb73.4dfd94",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 892.5,
+ "y": 680.2857351303101,
+ "z": "29922cf.42f59d4",
+ "wires": [["acc3d980.4c3ae8"]]
+},
+{
+ "id": "acc3d980.4c3ae8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$restconf.config`\" />\n",
+ "comments": "",
+ "x": 1121.5,
+ "y": 668.2857351303101,
+ "z": "29922cf.42f59d4",
+ "wires": []
+},
+{
+ "id": "53dfa016.9b377",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 708.5,
+ "y": 680.2857351303101,
+ "z": "29922cf.42f59d4",
+ "wires": [["60cadb73.4dfd94"]]
+},
+{
+ "id": "980ae7de.429418",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1700.5000343322754,
+ "y": 660.2857999801636,
+ "z": "29922cf.42f59d4",
+ "wires": [["d1c68a25.bb7f48"]]
+},
+{
+ "id": "471dcdf0.fc2004",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 209.5,
+ "y": 214.28573513031006,
+ "z": "29922cf.42f59d4",
+ "wires": [["684c9627.5f6318",
+ "41b7f9d9.1f5548"]]
+},
+{
+ "id": "2b20bd30.589cf2",
+ "type": "outcome",
+ "name": "RESTCONF-XML",
+ "xml": "<outcome value='RESTCONF-XML'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 254.5,
+ "y": 561.2857351303101,
+ "z": "29922cf.42f59d4",
+ "wires": [["389980f2.b63a1"]]
+},
+{
+ "id": "389980f2.b63a1",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 414.5,
+ "y": 512.2857351303101,
+ "z": "29922cf.42f59d4",
+ "wires": [["26aeca14.cd8d26"]]
+},
+{
+ "id": "41b7f9d9.1f5548",
+ "type": "switchNode",
+ "name": "switch : Protocol",
+ "xml": "<switch test=\"`$protocol`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 84.5,
+ "y": 316.28573513031006,
+ "z": "29922cf.42f59d4",
+ "wires": [["2b20bd30.589cf2",
+ "f73b901b.430dd",
+ "efce9311.3ec9c",
+ "4ba100a2.2d875",
+ "a98dd406.ae1e38",
+ "ecf33fc3.b2ebf"]]
+},
+{
+ "id": "f73b901b.430dd",
+ "type": "outcome",
+ "name": "CLI",
+ "xml": "<outcome value='CLI'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 278.5,
+ "y": 317.28573513031006,
+ "z": "29922cf.42f59d4",
+ "wires": [["457eeb81.2f69d4"]]
+},
+{
+ "id": "f7691378.c379f",
+ "type": "get-resource",
+ "name": "get-resource GET_CONFIG_TEMPLATE",
+ "xml": "<get-resource\n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"SELECT TEMPLATE FROM GET_CONFIG_TEMPLATE WHERE vnf_type = $vnf-type ;\"\n force='true'\n\tpfx='config-template'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 662.4999694824219,
+ "y": 295.28573513031006,
+ "z": "29922cf.42f59d4",
+ "wires": [["c3dc6e3.0cd7a9",
+ "e88ef92c.05b908"]]
+},
+{
+ "id": "457eeb81.2f69d4",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 418.4999694824219,
+ "y": 318.28573513031006,
+ "z": "29922cf.42f59d4",
+ "wires": [["f7691378.c379f",
+ "213364e.2f7799c"]]
+},
+{
+ "id": "e5ea27da.229d78",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"Unable to Read Config Template\"/>\n\t",
+ "comments": "",
+ "x": 1239.4999694824219,
+ "y": 322.28573513031006,
+ "z": "29922cf.42f59d4",
+ "wires": []
+},
+{
+ "id": "a81acdf3.2286e",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1068.4999694824219,
+ "y": 323.28573513031006,
+ "z": "29922cf.42f59d4",
+ "wires": [["e5ea27da.229d78"]]
+},
+{
+ "id": "c179e600.916e38",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$cliOutput`\" />\n",
+ "comments": "",
+ "x": 1115.5,
+ "y": 538.2857837677002,
+ "z": "29922cf.42f59d4",
+ "wires": []
+},
+{
+ "id": "213364e.2f7799c",
+ "type": "execute",
+ "name": "execute: Get CLI RunningConfig",
+ "xml": "<configure adaptor='org.onap.appc.ccadaptor.ConfigComponentAdaptor' key='GetCliRunningConfig'>\n<parameter name=\"Host_ip_address\" value=\"`$hostIpAddress`\" />\n<parameter name=\"User_name\" value=\"`$userName`\" />\n<parameter name=\"Password\" value=\"`$password`\" />\n<parameter name=\"Port_number\" value=\"`$portNumber`\" />\n<parameter name=\"Get_config_template\" value=\"`$config-template.TEMPLATE`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 627.5000152587891,
+ "y": 384.2857475280762,
+ "z": "29922cf.42f59d4",
+ "wires": [["58c05e0d.ca719",
+ "c2bf0f18.b66bd",
+ "d533b203.44ac2"]]
+},
+{
+ "id": "aa72dd53.d34a6",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 894.5,
+ "y": 483.2857961654663,
+ "z": "29922cf.42f59d4",
+ "wires": [["c179e600.916e38"]]
+},
+{
+ "id": "c3dc6e3.0cd7a9",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 915.4999694824219,
+ "y": 335.28573513031006,
+ "z": "29922cf.42f59d4",
+ "wires": [["a81acdf3.2286e"]]
+},
+{
+ "id": "58c05e0d.ca719",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 720.5,
+ "y": 481.2857961654663,
+ "z": "29922cf.42f59d4",
+ "wires": [["aa72dd53.d34a6"]]
+},
+{
+ "id": "9d75f86d.fcf6f8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 878.5,
+ "y": 583.2857351303101,
+ "z": "29922cf.42f59d4",
+ "wires": [["980ae7de.429418"]]
+},
+{
+ "id": "e88ef92c.05b908",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 914.4999694824219,
+ "y": 264.28573513031006,
+ "z": "29922cf.42f59d4",
+ "wires": [["a81acdf3.2286e"]]
+},
+{
+ "id": "c2bf0f18.b66bd",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 897.5000076293945,
+ "y": 399.28572845458984,
+ "z": "29922cf.42f59d4",
+ "wires": [["468136ac.050fe8"]]
+},
+{
+ "id": "d533b203.44ac2",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 888.5,
+ "y": 438.28573513031006,
+ "z": "29922cf.42f59d4",
+ "wires": [["980ae7de.429418"]]
+},
+{
+ "id": "4d537984.fce5b8",
+ "type": "comment",
+ "name": "",
+ "info": "",
+ "comments": "",
+ "x": 795.4999694824219,
+ "y": 76.28573513031006,
+ "z": "29922cf.42f59d4",
+ "wires": []
+},
+{
+ "id": "efce9311.3ec9c",
+ "type": "outcome",
+ "name": "NETCONF-XML",
+ "xml": "<outcome value='NETCONF-XML'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 189.5,
+ "y": 724.2857351303101,
+ "z": "29922cf.42f59d4",
+ "wires": [["19cc4b03.d7c245"]]
+},
+{
+ "id": "19cc4b03.d7c245",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 361.5,
+ "y": 724.2857351303101,
+ "z": "29922cf.42f59d4",
+ "wires": [["114625c5.4c47da"]]
+},
+{
+ "id": "114625c5.4c47da",
+ "type": "execute",
+ "name": "execute: Get XML RunningConfig",
+ "xml": "<configure adaptor='org.onap.appc.ccadaptor.ConfigComponentAdaptor' key='xml-getrunningconfig'>\n<parameter name=\"Host_ip_address\" value=\"`$hostIpAddress`\" />\n<parameter name=\"User_name\" value=\"`$userName`\" />\n<parameter name=\"Password\" value=\"`$password`\" />\n<parameter name=\"Port_number\" value=\"`$portNumber`\" />\n<parameter name=\"Protocol\" value=\"`$protocol`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 617.5000305175781,
+ "y": 752.0000581741333,
+ "z": "29922cf.42f59d4",
+ "wires": [["d9933637.fdfbe8",
+ "d8407e19.b2ae5",
+ "8f1de84f.6cbdc8"]]
+},
+{
+ "id": "d9933637.fdfbe8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 917.5,
+ "y": 735.2857351303101,
+ "z": "29922cf.42f59d4",
+ "wires": [["468136ac.050fe8"]]
+},
+{
+ "id": "d8407e19.b2ae5",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 918.5,
+ "y": 784.2857351303101,
+ "z": "29922cf.42f59d4",
+ "wires": [["980ae7de.429418"]]
+},
+{
+ "id": "4ba100a2.2d875",
+ "type": "outcome",
+ "name": "RESTCONF",
+ "xml": "<outcome value='RESTCONF'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 266.5,
+ "y": 486.28573513031006,
+ "z": "29922cf.42f59d4",
+ "wires": [["389980f2.b63a1"]]
+},
+{
+ "id": "8f1de84f.6cbdc8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 738.5,
+ "y": 832.2857351303101,
+ "z": "29922cf.42f59d4",
+ "wires": [["9b1018a5.1ea1b8"]]
+},
+{
+ "id": "9b1018a5.1ea1b8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 914.5,
+ "y": 831.2857351303101,
+ "z": "29922cf.42f59d4",
+ "wires": [["5238f474.e44b5c"]]
+},
+{
+ "id": "5238f474.e44b5c",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$xmlRunningConfigOutput `\" />\n",
+ "comments": "",
+ "x": 1119.1669387817383,
+ "y": 829.2857484817505,
+ "z": "29922cf.42f59d4",
+ "wires": []
+},
+{
+ "id": "a98dd406.ae1e38",
+ "type": "outcome",
+ "name": "CHEF",
+ "xml": "<outcome value='CHEF'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 160.5,
+ "y": 821.2857351303101,
+ "z": "29922cf.42f59d4",
+ "wires": [["93385fe7.e8392"]]
+},
+{
+ "id": "ea521b2b.c10e68",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 373.49999237060547,
+ "y": 868.952395439148,
+ "z": "29922cf.42f59d4",
+ "wires": [["3ca78413.d1069c"]]
+},
+{
+ "id": "3ca78413.d1069c",
+ "type": "execute",
+ "name": "execute: getChefRunningConfig",
+ "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getConfigFilesByVnfVmNCategory\">\n<parameter name=\"fileCategory\" value=\"device_configuration\" />\n<parameter name='vnfId' value=\"`$config.vnf-id`\" />\n<parameter name='vmName' value=\"`$config.vm-name`\" />\n<parameter name=\"responsePrefix\" value=\"tmp.deviceconfig\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 609.6428680419922,
+ "y": 913.1430015563965,
+ "z": "29922cf.42f59d4",
+ "wires": [["4c13e30f.d81abc",
+ "6edce4de.9ea51c",
+ "865d288e.79d5d8"]]
+},
+{
+ "id": "865d288e.79d5d8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 804.2142944335938,
+ "y": 1009.42857837677,
+ "z": "29922cf.42f59d4",
+ "wires": [["9bc470b3.2ff51"]]
+},
+{
+ "id": "9bc470b3.2ff51",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1103.1667976379395,
+ "y": 1043.952380180359,
+ "z": "29922cf.42f59d4",
+ "wires": [["4cf92959.cfebc8"]]
+},
+{
+ "id": "6edce4de.9ea51c",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 911.500129699707,
+ "y": 945.2858009338379,
+ "z": "29922cf.42f59d4",
+ "wires": [[]]
+},
+{
+ "id": "4c13e30f.d81abc",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 910.500129699707,
+ "y": 896.2858009338379,
+ "z": "29922cf.42f59d4",
+ "wires": [["6d388b53.b092e4"]]
+},
+{
+ "id": "4cf92959.cfebc8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$tmp.deviceconfig.file-content`\" />\n",
+ "comments": "",
+ "x": 1339.500144958496,
+ "y": 1047.6190533638,
+ "z": "29922cf.42f59d4",
+ "wires": []
+},
+{
+ "id": "6d388b53.b092e4",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1086.500129699707,
+ "y": 900.2858009338379,
+ "z": "29922cf.42f59d4",
+ "wires": [["88bb55d0.d73b28"]]
+},
+{
+ "id": "88bb55d0.d73b28",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"`$tmp.deviceconfig.error-message`\"/>\n\n",
+ "comments": "",
+ "x": 1236.8334503173828,
+ "y": 880.4287014007568,
+ "z": "29922cf.42f59d4",
+ "wires": []
+},
+{
+ "id": "b641b4ab.bd2f58",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"`$error-message`\"/>\n",
+ "comments": "",
+ "x": 1425.5,
+ "y": 446.28573513031006,
+ "z": "29922cf.42f59d4",
+ "wires": []
+},
+{
+ "id": "468136ac.050fe8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1253.5,
+ "y": 450.28573513031006,
+ "z": "29922cf.42f59d4",
+ "wires": [["b641b4ab.bd2f58"]]
+},
+{
+ "id": "ecf33fc3.b2ebf",
+ "type": "outcome",
+ "name": " Ansible",
+ "xml": "<outcome value='Ansible'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 134.94049835205078,
+ "y": 939.0120496749878,
+ "z": "29922cf.42f59d4",
+ "wires": [["36381aaa.232fa6"]]
+},
+{
+ "id": "93385fe7.e8392",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 321.08331298828125,
+ "y": 1000.8689870834351,
+ "z": "29922cf.42f59d4",
+ "wires": [["28a7f80c.1bcbb8"]]
+},
+{
+ "id": "28a7f80c.1bcbb8",
+ "type": "call",
+ "name": "call GetTemplateConfig_Chef",
+ "xml": "<call module='APPC' rpc='GetTemplateConfig_Chef' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 539.8928527832031,
+ "y": 1045.8692655563354,
+ "z": "29922cf.42f59d4",
+ "wires": [["9f06d6d9.fb9738",
+ "e0ce4934.759568",
+ "549741e8.f5fc1"]]
+},
+{
+ "id": "9129b200.1a41a",
+ "type": "call",
+ "name": "call GetTemplateConfig_Ansible",
+ "xml": "<call module='APPC' rpc='GetTemplateConfig_Ansible' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 505.60706329345703,
+ "y": 1283.011887550354,
+ "z": "29922cf.42f59d4",
+ "wires": [["67887719.98cd58",
+ "2a2ae29d.92c9ce",
+ "883aacc0.c3db4"]]
+},
+{
+ "id": "e0ce4934.759568",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 630.3690185546875,
+ "y": 1143.2500557899475,
+ "z": "29922cf.42f59d4",
+ "wires": [["980ae7de.429418"]]
+},
+{
+ "id": "9f06d6d9.fb9738",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 629.3690185546875,
+ "y": 1094.2500557899475,
+ "z": "29922cf.42f59d4",
+ "wires": [["489ea315.c3ed8c"]]
+},
+{
+ "id": "489ea315.c3ed8c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 805.3690185546875,
+ "y": 1098.2500557899475,
+ "z": "29922cf.42f59d4",
+ "wires": [["81e09063.6dd78"]]
+},
+{
+ "id": "81e09063.6dd78",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"`$error-message`\"/>\n\n",
+ "comments": "",
+ "x": 1045.3690185546875,
+ "y": 1091.2500557899475,
+ "z": "29922cf.42f59d4",
+ "wires": []
+},
+{
+ "id": "549741e8.f5fc1",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 568.7023315429688,
+ "y": 1216.583429813385,
+ "z": "29922cf.42f59d4",
+ "wires": [["e25f0226.6a041"]]
+},
+{
+ "id": "e25f0226.6a041",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 731.7023315429688,
+ "y": 1216.583429813385,
+ "z": "29922cf.42f59d4",
+ "wires": [["5e274de2.7cd6a4"]]
+},
+{
+ "id": "5e274de2.7cd6a4",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$APPC.GetRunningConfig`\" />\n<parameter name='output.status.code' value='`$output.status.code`' />\n<parameter name='output.status.message' value='`$output.status.message`'/>\n<parameter name='output.status.results' value = '`$output.status.results`'/>\n",
+ "comments": "",
+ "x": 881.8451843261719,
+ "y": 1195.7260999679565,
+ "z": "29922cf.42f59d4",
+ "wires": []
+},
+{
+ "id": "36381aaa.232fa6",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 317.27384185791016,
+ "y": 1198.0118017196655,
+ "z": "29922cf.42f59d4",
+ "wires": [["9129b200.1a41a"]]
+},
+{
+ "id": "2a2ae29d.92c9ce",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 738.9403610229492,
+ "y": 1348.0119047164917,
+ "z": "29922cf.42f59d4",
+ "wires": [["980ae7de.429418"]]
+},
+{
+ "id": "67887719.98cd58",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 737.9403610229492,
+ "y": 1299.0119047164917,
+ "z": "29922cf.42f59d4",
+ "wires": [["b615152c.d34648"]]
+},
+{
+ "id": "b615152c.d34648",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 913.9403610229492,
+ "y": 1303.0119047164917,
+ "z": "29922cf.42f59d4",
+ "wires": [["6194ee24.2cc39"]]
+},
+{
+ "id": "6194ee24.2cc39",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"`$error-message`\"/>\n\n",
+ "comments": "",
+ "x": 1105.9403381347656,
+ "y": 1296.0119123458862,
+ "z": "29922cf.42f59d4",
+ "wires": []
+},
+{
+ "id": "883aacc0.c3db4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 677.2736740112305,
+ "y": 1421.3452787399292,
+ "z": "29922cf.42f59d4",
+ "wires": [["e5cfa4d.8698f58"]]
+},
+{
+ "id": "e5cfa4d.8698f58",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 840.2736740112305,
+ "y": 1421.3452787399292,
+ "z": "29922cf.42f59d4",
+ "wires": [["18a16323.e5a8ed"]]
+},
+{
+ "id": "18a16323.e5a8ed",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$APPC.GetRunningConfig`\" />\n<parameter name='code' value='`$output.status.code`' />\n<parameter name='message' value='`$output.status.message`'/>\n<parameter name='Status' value = '`$output.status.results`'/>\n",
+ "comments": "",
+ "x": 1029.2736282348633,
+ "y": 1423.345359802246,
+ "z": "29922cf.42f59d4",
+ "wires": []
+}]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GetTemplateConfig_Ansible.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GetTemplateConfig_Ansible.json
index d2f2af2ba..db324b57c 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GetTemplateConfig_Ansible.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GetTemplateConfig_Ansible.json
@@ -1,440 +1,339 @@
-[
- {
- "id": "5803aa79.45b404",
- "type": "method",
- "name": "method GetTemplateConfig_Ansible",
- "xml": "<method rpc='GetTemplateConfig_Ansible' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 588.7499847412109,
- "y": 107.5,
- "z": "b2b332b8.ecb4c",
- "wires": [
- [
- "b3dc5912.de0548"
- ]
- ]
- },
- {
- "id": "35047526.e59a1a",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 127.0594711303711,
- "y": 106.5714282989502,
- "z": "b2b332b8.ecb4c",
- "wires": [
- [
- "2ac38826.404d58"
- ]
- ]
- },
- {
- "id": "2ac38826.404d58",
- "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": 325.2023391723633,
- "y": 104.14286041259766,
- "z": "b2b332b8.ecb4c",
- "wires": [
- [
- "5803aa79.45b404"
- ]
- ]
- },
- {
- "id": "7e21bb0c.03de44",
- "type": "execute",
- "name": "execute getTemplate",
- "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getTemplate\">\n<parameter name=\"fileCategory\" value=\"config_template\" />\n<parameter name=\"responsePrefix\" value=\"config-template\" />",
- "comments": "",
- "outputs": 1,
- "x": 419.70245361328125,
- "y": 319.5358352661133,
- "z": "b2b332b8.ecb4c",
- "wires": [
- [
- "54cd3796.95a458",
- "90f2178d.ba27c8"
- ]
- ]
- },
- {
- "id": "90f2178d.ba27c8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 694.059513092041,
- "y": 361.0000648498535,
- "z": "b2b332b8.ecb4c",
- "wires": [
- [
- "5392ab8b.3b7874"
- ]
- ]
- },
- {
- "id": "5392ab8b.3b7874",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 885.7896118164062,
- "y": 362.1429262161255,
- "z": "b2b332b8.ecb4c",
- "wires": [
- [
- "d978e419.70a338"
- ]
- ]
- },
- {
- "id": "d978e419.70a338",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"`$config-template.error-message`\"/>\n\t\n\t\n\t",
- "comments": "",
- "x": 1115.4563827514648,
- "y": 364.9206962585449,
- "z": "b2b332b8.ecb4c",
- "wires": []
- },
- {
- "id": "54cd3796.95a458",
- "type": "failure",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 700.583324432373,
- "y": 283.6667594909668,
- "z": "b2b332b8.ecb4c",
- "wires": [
- [
- "e0937d2c.970ef"
- ]
- ]
- },
- {
- "id": "e0937d2c.970ef",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 884.916576385498,
- "y": 288.0000877380371,
- "z": "b2b332b8.ecb4c",
- "wires": [
- [
- "9df2fa59.e3b388"
- ]
- ]
- },
- {
- "id": "b3dc5912.de0548",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 156.20235061645508,
- "y": 342.5000410079956,
- "z": "b2b332b8.ecb4c",
- "wires": [
- [
- "7e21bb0c.03de44",
- "941be79f.807ed8",
- "7b6affbc.ca3f"
- ]
- ]
- },
- {
- "id": "ebd8afae.4253d",
- "type": "not-found",
- "name": "found",
- "xml": "<outcome value='found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1145.6310234069824,
- "y": 448.46429920196533,
- "z": "b2b332b8.ecb4c",
- "wires": [
- [
- "b022a59b.66efe8"
- ]
- ]
- },
- {
- "id": "8ced2749.1c0918",
- "type": "other",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1149.7382049560547,
- "y": 517.2143268585205,
- "z": "b2b332b8.ecb4c",
- "wires": [
- [
- "bb3ddb29.67e8a8"
- ]
- ]
- },
- {
- "id": "941be79f.807ed8",
- "type": "call",
- "name": "call Generic_AnsibleDG",
- "xml": "<call module='APPC' rpc='Generic_AnsibleDG' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 324.91674041748047,
- "y": 606.8571729660034,
- "z": "b2b332b8.ecb4c",
- "wires": [
- [
- "f0ca9dc.a029d6",
- "c14fa4fe.f59ef8"
- ]
- ]
- },
- {
- "id": "b022a59b.66efe8",
- "type": "call",
- "name": "call MergeTemplateData",
- "xml": "<call module='APPC' rpc='MergeTemplateData' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1352.857192993164,
- "y": 447.1428565979004,
- "z": "b2b332b8.ecb4c",
- "wires": [
- []
- ]
- },
- {
- "id": "18d834e5.32eb1b",
- "type": "execute",
- "name": "execute getTemplate Parameter_definition",
- "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getTemplateByVnfTypeNAction\">\n<parameter name=\"fileCategory\" value=\"config_template\" />\n<parameter name=\"responsePrefix\" value=\"config-template\" />",
- "comments": "",
- "outputs": 1,
- "x": 878.5714721679688,
- "y": 471.4286117553711,
- "z": "b2b332b8.ecb4c",
- "wires": [
- [
- "ebd8afae.4253d",
- "8ced2749.1c0918"
- ]
- ]
- },
- {
- "id": "bb3ddb29.67e8a8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1361.4285202026367,
- "y": 528.5714836120605,
- "z": "b2b332b8.ecb4c",
- "wires": [
- []
- ]
- },
- {
- "id": "f0ca9dc.a029d6",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 562.8571891784668,
- "y": 657.1429481506348,
- "z": "b2b332b8.ecb4c",
- "wires": [
- [
- "4d19c7fd.436708"
- ]
- ]
- },
- {
- "id": "4d19c7fd.436708",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$tmp.deviceconfig.file-content`\" />\n<parameter name='output.status.code' value='`$output.status.code`' />\n<parameter name='output.status.message' value='`$output.status.message`'/>\n<parameter name='output.status.results' value = '`$output.status.results`'/>\n",
- "comments": "",
- "x": 780.5716171264648,
- "y": 663.5714693069458,
- "z": "b2b332b8.ecb4c",
- "wires": []
- },
- {
- "id": "c14fa4fe.f59ef8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 547.1428833007812,
- "y": 558.5713958740234,
- "z": "b2b332b8.ecb4c",
- "wires": [
- [
- "55b4f534.292e5c"
- ]
- ]
- },
- {
- "id": "55b4f534.292e5c",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='output.status.code' value='200' />\n<parameter name='output.status.message' value='`$output.status.message`'/>\n",
- "comments": "",
- "x": 798.571403503418,
- "y": 574.28564453125,
- "z": "b2b332b8.ecb4c",
- "wires": []
- },
- {
- "id": "9df2fa59.e3b388",
- "type": "execute",
- "name": "execute: getAnsibleRunningConfig",
- "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getConfigFilesByVnfActionNCategory\">\n<parameter name=\"fileCategory\" value=\"device_configuration\" />\n<parameter name='vnfname' value=\"`$config.vnf-name`\" />\n<parameter name='action' value=\"`$config.action`\" />\n<parameter name=\"responsePrefix\" value=\"tmp.deviceconfig\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1141.6666107177734,
- "y": 200.00000953674316,
- "z": "b2b332b8.ecb4c",
- "wires": [
- [
- "44e9bc7b.8cfb94",
- "15aafa2c.198166",
- "5aacae79.29154"
- ]
- ]
- },
- {
- "id": "5aacae79.29154",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1287.6666412353516,
- "y": 281.9999647140503,
- "z": "b2b332b8.ecb4c",
- "wires": [
- [
- "8117d87b.2808a8"
- ]
- ]
- },
- {
- "id": "8117d87b.2808a8",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1450.6666412353516,
- "y": 281.9999647140503,
- "z": "b2b332b8.ecb4c",
- "wires": [
- [
- "b514f44.0458208"
- ]
- ]
- },
- {
- "id": "15aafa2c.198166",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1435.6666412353516,
- "y": 224.9999647140503,
- "z": "b2b332b8.ecb4c",
- "wires": [
- []
- ]
- },
- {
- "id": "44e9bc7b.8cfb94",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1441.3333206176758,
- "y": 162.6666498184204,
- "z": "b2b332b8.ecb4c",
- "wires": [
- [
- "5e2afb10.22e314"
- ]
- ]
- },
- {
- "id": "b514f44.0458208",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$tmp.deviceconfig.file-content`\" />\n",
- "comments": "",
- "x": 1653.6666412353516,
- "y": 283.9999647140503,
- "z": "b2b332b8.ecb4c",
- "wires": []
- },
- {
- "id": "5e2afb10.22e314",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1617.3333206176758,
- "y": 166.6666498184204,
- "z": "b2b332b8.ecb4c",
- "wires": [
- [
- "bd876721.641cc8"
- ]
- ]
- },
- {
- "id": "bd876721.641cc8",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"`$tmp.deviceconfig.error-message`\"/>\n\n",
- "comments": "",
- "x": 1809.3333206176758,
- "y": 159.6666498184204,
- "z": "b2b332b8.ecb4c",
- "wires": []
- },
- {
- "id": "7b6affbc.ca3f",
- "type": "set",
- "name": "set tmp.message",
- "xml": "<set>\n<parameter name=\"tmp.message\" value=\"`$error-code + ':' + $error-message`\"/>\n",
- "comments": "",
- "x": 308.75404357910156,
- "y": 702.3611240386963,
- "z": "b2b332b8.ecb4c",
- "wires": []
- }
-]
+[{
+ "id": "64298fa7.6eab",
+ "type": "method",
+ "name": "method GetTemplateConfig_Ansible",
+ "xml": "<method rpc='GetTemplateConfig_Ansible' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 524.6905136108398,
+ "y": 54.78571152687073,
+ "z": "c635d405.112438",
+ "wires": [["a16f990d.bfbc08"]]
+},
+{
+ "id": "3d83a335.a950bc",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 107.28571319580078,
+ "y": 79.57142734527588,
+ "z": "c635d405.112438",
+ "wires": [["9a8e0176.09715"]]
+},
+{
+ "id": "9a8e0176.09715",
+ "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": 261.1428680419922,
+ "y": 51.428571939468384,
+ "z": "c635d405.112438",
+ "wires": [["64298fa7.6eab"]]
+},
+{
+ "id": "831c9f31.a8932",
+ "type": "execute",
+ "name": "execute getTemplate",
+ "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getTemplate\">\n<parameter name=\"fileCategory\" value=\"config_template\" />\n<parameter name=\"responsePrefix\" value=\"config-template\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 355.64298248291016,
+ "y": 266.821546792984,
+ "z": "c635d405.112438",
+ "wires": [["a0e75486.1eda18",
+ "17e6919.76d9a6e",
+ "3a927737.d59708"]]
+},
+{
+ "id": "a16f990d.bfbc08",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 92.14287948608398,
+ "y": 289.78575253486633,
+ "z": "c635d405.112438",
+ "wires": [["831c9f31.a8932",
+ "23f2fdd7.5ac712",
+ "25358328.a7b87c"]]
+},
+{
+ "id": "708b7296.ea5c5c",
+ "type": "not-found",
+ "name": "found",
+ "xml": "<outcome value='found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1081.5715522766113,
+ "y": 395.75001072883606,
+ "z": "c635d405.112438",
+ "wires": [["aa984fc9.ceff4"]]
+},
+{
+ "id": "996ddcaa.b670e",
+ "type": "other",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1085.6787338256836,
+ "y": 464.50003838539124,
+ "z": "c635d405.112438",
+ "wires": [["5ebec77e.195338"]]
+},
+{
+ "id": "39b0035c.ce94cc",
+ "type": "call",
+ "name": "call Generic_AnsibleDG",
+ "xml": "<call module='APPC' rpc='Generic_AnsibleDG' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 499.4287109375,
+ "y": 541.2857456207275,
+ "z": "c635d405.112438",
+ "wires": [["907fdc28.d558",
+ "507c8a3d.c26e24"]]
+},
+{
+ "id": "aa984fc9.ceff4",
+ "type": "call",
+ "name": "call MergeTemplateData",
+ "xml": "<call module='APPC' rpc='MergeTemplateData' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1288.797721862793,
+ "y": 394.4285681247711,
+ "z": "c635d405.112438",
+ "wires": [[]]
+},
+{
+ "id": "45c7ff98.f908f",
+ "type": "execute",
+ "name": "execute getTemplate Parameter_definition",
+ "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getTemplateByVnfTypeNAction\">\n<parameter name=\"fileCategory\" value=\"config_template\" />\n<parameter name=\"responsePrefix\" value=\"config-template\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 814.5120010375977,
+ "y": 418.7143232822418,
+ "z": "c635d405.112438",
+ "wires": [["708b7296.ea5c5c",
+ "996ddcaa.b670e"]]
+},
+{
+ "id": "5ebec77e.195338",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1297.3690490722656,
+ "y": 475.8571951389313,
+ "z": "c635d405.112438",
+ "wires": [[]]
+},
+{
+ "id": "23f2fdd7.5ac712",
+ "type": "set",
+ "name": "Set Action",
+ "xml": "<set>\n<parameter name='request-action' value=\"GetRunningConfig\" />\n",
+ "comments": "",
+ "x": 338.5714416503906,
+ "y": 216.2857208251953,
+ "z": "c635d405.112438",
+ "wires": []
+},
+{
+ "id": "532324b8.7607ac",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1164.5235786437988,
+ "y": 311.4285583496094,
+ "z": "c635d405.112438",
+ "wires": [["81881f82.e8718"]]
+},
+{
+ "id": "37db39ee.479f96",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1252.4759407043457,
+ "y": 193.52384042739868,
+ "z": "c635d405.112438",
+ "wires": [["17934b5e.863a65"]]
+},
+{
+ "id": "17934b5e.863a65",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1428.4759407043457,
+ "y": 197.52384042739868,
+ "z": "c635d405.112438",
+ "wires": [[]]
+},
+{
+ "id": "17e6919.76d9a6e",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 561.952520098005,
+ "y": 293.3333697319031,
+ "z": "c635d405.112438",
+ "wires": [["ed2accea.93295"]]
+},
+{
+ "id": "a0e75486.1eda18",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 568.4763314383371,
+ "y": 216.00006437301636,
+ "z": "c635d405.112438",
+ "wires": [["ed2accea.93295"]]
+},
+{
+ "id": "ed2accea.93295",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 762.809585571289,
+ "y": 323.190541267395,
+ "z": "c635d405.112438",
+ "wires": [["aa4b0b45.5fc018"]]
+},
+{
+ "id": "aa4b0b45.5fc018",
+ "type": "get-resource",
+ "name": "get-resource: APPC.GetRunningConfig",
+ "xml": "<get-resource\n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n key=\"SELECT FILE_CONTENT FROM CONFIGFILES WHERE FILE_CATEGORY = 'device_configuration' AND VNF_NAME = $vnf-name\n \t\tAND ACTION IN ('Configure', 'ConfigModify', 'ConfigRestore') \n \t\tAND CREATION_DATE IN (SELECT MAX(CREATION_DATE) FROM CONFIGFILES) ;\"\n force='true'\n\tpfx='APPC.GetRunningConfig'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 955.5713500976561,
+ "y": 250.52385759353638,
+ "z": "c635d405.112438",
+ "wires": [["37db39ee.479f96",
+ "532324b8.7607ac"]]
+},
+{
+ "id": "81881f82.e8718",
+ "type": "set",
+ "name": "set GetRunningConfig",
+ "xml": "<set>\n<parameter name='APPC.GetRunningConfig' value='`$APPC.GetRunningConfig.FILE-CONTENT`' />\n\n\n\n\n\n",
+ "comments": "",
+ "x": 1421.8570861816406,
+ "y": 314.52384090423584,
+ "z": "c635d405.112438",
+ "wires": []
+},
+{
+ "id": "3a927737.d59708",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 437.85711669921875,
+ "y": 374.80954572132646,
+ "z": "c635d405.112438",
+ "wires": [["60cc2251.f2ed4c"]]
+},
+{
+ "id": "60cc2251.f2ed4c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 400,
+ "y": 442.8571472167969,
+ "z": "c635d405.112438",
+ "wires": [["39b0035c.ce94cc"]]
+},
+{
+ "id": "507c8a3d.c26e24",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 700.0000495910645,
+ "y": 615.714298248291,
+ "z": "c635d405.112438",
+ "wires": [["90bce11.187a52"]]
+},
+{
+ "id": "90bce11.187a52",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='APPC.GetRunningConfig' value=\"`$APPC.GetRunningConfig`\" />\n<parameter name='output.status.code' value='`$output.status.code`' />\n<parameter name='output.status.message' value='`$output.status.message`'/>\n<parameter name='output.status.results' value = '`$output.status.results`'/>\n",
+ "comments": "",
+ "x": 941.4288787841797,
+ "y": 619.285683631897,
+ "z": "c635d405.112438",
+ "wires": []
+},
+{
+ "id": "907fdc28.d558",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 754.2857551574707,
+ "y": 514.2855968475342,
+ "z": "c635d405.112438",
+ "wires": [["689e0447.d7db4c"]]
+},
+{
+ "id": "689e0447.d7db4c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='output.status.code' value='`$output.status.code`' />\n<parameter name='output.status.message' value='`$output.status.message`'/>\n",
+ "comments": "",
+ "x": 1002.9999923706055,
+ "y": 545.7141237258911,
+ "z": "c635d405.112438",
+ "wires": []
+},
+{
+ "id": "3190acbd.5b74a4",
+ "type": "comment",
+ "name": "Change of getDeviceRunningConfig",
+ "info": "Need to change getDeviceRunningconfig when chef returns configuartion.\n\nRight now just returning deviceRunningConfig",
+ "comments": "",
+ "x": 862.7621231079102,
+ "y": 662.0952320098877,
+ "z": "c635d405.112438",
+ "wires": []
+},
+{
+ "id": "25358328.a7b87c",
+ "type": "set",
+ "name": "set tmp.message",
+ "xml": "<set>\n<parameter name=\"tmp.message\" value=\"`$error-code + ':' + $error-message`\"/>\n<parameter name='request-action' value=\"`$input.action`\" />\n",
+ "comments": "",
+ "x": 340,
+ "y": 722.5714111328125,
+ "z": "c635d405.112438",
+ "wires": []
+}]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GetTemplateConfig_Chef.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GetTemplateConfig_Chef.json
index 7341e4aa3..7bc73df1d 100644
--- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GetTemplateConfig_Chef.json
+++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GetTemplateConfig_Chef.json
@@ -1,453 +1,350 @@
-[
- {
- "id": "c9005ac7.c57248",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 130,
- "y": 107.57143020629883,
- "z": "1c322045.61564",
- "wires": [
- [
- "81c4fde7.3fb5b"
- ]
- ]
- },
- {
- "id": "81c4fde7.3fb5b",
- "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": 311.00000762939453,
- "y": 65.1428575515747,
- "z": "1c322045.61564",
- "wires": [
- [
- "c35c9610.8d2ad8"
- ]
- ]
- },
- {
- "id": "c35c9610.8d2ad8",
- "type": "method",
- "name": "method GetTemplateConfig_Chef ",
- "xml": "<method rpc='GetTemplateConfig_Chef' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 574.5476837158203,
- "y": 68.49999618530273,
- "z": "1c322045.61564",
- "wires": [
- [
- "791848b0.bcbe48"
- ]
- ]
- },
- {
- "id": "791848b0.bcbe48",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 142.00001907348633,
- "y": 303.50003814697266,
- "z": "1c322045.61564",
- "wires": [
- [
- "13786ad0.1af775",
- "9911db8b.909de8",
- "a0dd8b28.4c27d8"
- ]
- ]
- },
- {
- "id": "13786ad0.1af775",
- "type": "set",
- "name": "set tmp.message",
- "xml": "<set>\n<parameter name=\"tmp.message\" value=\"`$error-code + ':' + $error-message`\"/>\n",
- "comments": "",
- "x": 409.37306213378906,
- "y": 692.8253631591797,
- "z": "1c322045.61564",
- "wires": []
- },
- {
- "id": "3e746174.0ab35e",
- "type": "execute",
- "name": "execute isPDFILE",
- "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getTemplateByVnfTypeNAction\">\n<parameter name=\"fileCategory\" value=\"config_template\" />\n<parameter name=\"responsePrefix\" value=\"config-template\" />",
- "comments": "",
- "outputs": 1,
- "x": 762.9166679382324,
- "y": 514.1666812896729,
- "z": "1c322045.61564",
- "wires": [
- [
- "ca5f68cd.7df168",
- "abf0e2c0.46e46"
- ]
- ]
- },
- {
- "id": "ca5f68cd.7df168",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1008.9166717529297,
- "y": 494.6666507720947,
- "z": "1c322045.61564",
- "wires": [
- []
- ]
- },
- {
- "id": "abf0e2c0.46e46",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1003.4166717529297,
- "y": 536.6666774749756,
- "z": "1c322045.61564",
- "wires": [
- [
- "9285e961.bde908"
- ]
- ]
- },
- {
- "id": "9285e961.bde908",
- "type": "call",
- "name": "call chefDG",
- "xml": "<call module='APPC' rpc='' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1170.416690826416,
- "y": 539.1666574478149,
- "z": "1c322045.61564",
- "wires": [
- [
- "6b096ef8.220c6"
- ]
- ]
- },
- {
- "id": "6b096ef8.220c6",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1349.1667938232422,
- "y": 540.4167070388794,
- "z": "1c322045.61564",
- "wires": [
- [
- "3b23acb8.aee1b4"
- ]
- ]
- },
- {
- "id": "3b23acb8.aee1b4",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name='output.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='output.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n<parameter name='output.status.results' value = '`$output.status.results`'/>\n",
- "comments": "",
- "x": 1531.666706085205,
- "y": 540.4166622161865,
- "z": "1c322045.61564",
- "wires": []
- },
- {
- "id": "9911db8b.909de8",
- "type": "call",
- "name": "call Generic_ChefDG",
- "xml": "<call module='APPC' rpc='Generic_ChefDG' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 428.3334197998047,
- "y": 591.666748046875,
- "z": "1c322045.61564",
- "wires": [
- [
- "13c04cd9.b43873",
- "3d395b6f.37d6d4"
- ]
- ]
- },
- {
- "id": "70ff03bc.550c5c",
- "type": "execute",
- "name": "execute: getChefRunningConfig",
- "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getConfigFilesByVnfActionNCategory\">\n<parameter name=\"fileCategory\" value=\"device_configuration\" />\n<parameter name='vnfname' value=\"`$config.vnf-name`\" />\n<parameter name='action' value=\"`$config.action`\" />\n<parameter name=\"responsePrefix\" value=\"tmp.deviceconfig\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1041.66650390625,
- "y": 158.33333206176758,
- "z": "1c322045.61564",
- "wires": [
- [
- "e0166624.d85ba8",
- "2d46c9a9.5e4556",
- "60877372.7124dc"
- ]
- ]
- },
- {
- "id": "60877372.7124dc",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1187.6665115356445,
- "y": 240.3333044052124,
- "z": "1c322045.61564",
- "wires": [
- [
- "594ea12a.967b5"
- ]
- ]
- },
- {
- "id": "594ea12a.967b5",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1350.6665115356445,
- "y": 240.3333044052124,
- "z": "1c322045.61564",
- "wires": [
- [
- "69841f84.beca3"
- ]
- ]
- },
- {
- "id": "2d46c9a9.5e4556",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1335.6665115356445,
- "y": 183.3333044052124,
- "z": "1c322045.61564",
- "wires": [
- []
- ]
- },
- {
- "id": "e0166624.d85ba8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1341.3331909179688,
- "y": 120.99998950958252,
- "z": "1c322045.61564",
- "wires": [
- [
- "afceb049.effd"
- ]
- ]
- },
- {
- "id": "69841f84.beca3",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$tmp.deviceconfig.file-content`\" />\n",
- "comments": "",
- "x": 1553.6665115356445,
- "y": 242.3333044052124,
- "z": "1c322045.61564",
- "wires": []
- },
- {
- "id": "afceb049.effd",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1517.3331909179688,
- "y": 124.99998950958252,
- "z": "1c322045.61564",
- "wires": [
- [
- "89203f87.bdd35"
- ]
- ]
- },
- {
- "id": "89203f87.bdd35",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"`$tmp.deviceconfig.error-message`\"/>\n\n",
- "comments": "",
- "x": 1709.3331909179688,
- "y": 117.99998950958252,
- "z": "1c322045.61564",
- "wires": []
- },
- {
- "id": "a0dd8b28.4c27d8",
- "type": "execute",
- "name": "execute getTemplate",
- "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getTemplate\">\n<parameter name=\"fileCategory\" value=\"config_template\" />\n<parameter name=\"responsePrefix\" value=\"config-template\" />",
- "comments": "",
- "outputs": 1,
- "x": 414.66676330566406,
- "y": 274.1072106361389,
- "z": "1c322045.61564",
- "wires": [
- [
- "209fd4e.f5e6a2c",
- "c880f1bf.06526"
- ]
- ]
- },
- {
- "id": "c880f1bf.06526",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 629.3811264038086,
- "y": 316.52382373809814,
- "z": "1c322045.61564",
- "wires": [
- [
- "3e7c0fa2.d88be"
- ]
- ]
- },
- {
- "id": "3e7c0fa2.d88be",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 821.1112251281738,
- "y": 317.6666851043701,
- "z": "1c322045.61564",
- "wires": [
- [
- "daf816d8.f062d8"
- ]
- ]
- },
- {
- "id": "daf816d8.f062d8",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"`$config-template.error-message`\"/>\n\t\n\t\n\t",
- "comments": "",
- "x": 1050.7779960632324,
- "y": 320.44445514678955,
- "z": "1c322045.61564",
- "wires": []
- },
- {
- "id": "209fd4e.f5e6a2c",
- "type": "failure",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 635.9049377441406,
- "y": 239.19051837921143,
- "z": "1c322045.61564",
- "wires": [
- [
- "32a527f0.aabd78"
- ]
- ]
- },
- {
- "id": "32a527f0.aabd78",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 820.2381896972656,
- "y": 243.52384662628174,
- "z": "1c322045.61564",
- "wires": [
- [
- "70ff03bc.550c5c"
- ]
- ]
- },
- {
- "id": "3d395b6f.37d6d4",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 651.6666259765625,
- "y": 703.3333129882812,
- "z": "1c322045.61564",
- "wires": [
- [
- "d444f8cd.5ab698"
- ]
- ]
- },
- {
- "id": "d444f8cd.5ab698",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$tmp.deviceconfig.file-content`\" />\n<parameter name='output.status.code' value='`$output.status.code`' />\n<parameter name='output.status.message' value='`$output.status.message`'/>\n<parameter name='output.status.results' value = '`$output.status.results`'/>\n",
- "comments": "",
- "x": 869.3810539245605,
- "y": 709.7618341445923,
- "z": "1c322045.61564",
- "wires": []
- },
- {
- "id": "13c04cd9.b43873",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 635.952320098877,
- "y": 604.7617607116699,
- "z": "1c322045.61564",
- "wires": [
- [
- "c021af06.07788"
- ]
- ]
- },
- {
- "id": "c021af06.07788",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='output.status.code' value='200' />\n<parameter name='output.status.message' value='`$output.status.message`'/>\n",
- "comments": "",
- "x": 887.3808403015137,
- "y": 620.4760093688965,
- "z": "1c322045.61564",
- "wires": []
- }
-]
+[{
+ "id": "474f3afb.a3db24",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 147,
+ "y": 111.00000190734863,
+ "z": "94e86086.2ff71",
+ "wires": [["cc0ffd3f.b63cd"]]
+},
+{
+ "id": "cc0ffd3f.b63cd",
+ "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": 328.00000762939453,
+ "y": 68.57142925262451,
+ "z": "94e86086.2ff71",
+ "wires": [["d652a69c.2573f8"]]
+},
+{
+ "id": "d652a69c.2573f8",
+ "type": "method",
+ "name": "method GetTemplateConfig_Chef ",
+ "xml": "<method rpc='GetTemplateConfig_Chef' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 591.5476837158203,
+ "y": 71.92856788635254,
+ "z": "94e86086.2ff71",
+ "wires": [["d18eff93.eb14f"]]
+},
+{
+ "id": "d18eff93.eb14f",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 159.00001907348633,
+ "y": 306.92860984802246,
+ "z": "94e86086.2ff71",
+ "wires": [["3b15cd2d.821332",
+ "9b65458e.5b1e98",
+ "a36ba4d6.2c6688"]]
+},
+{
+ "id": "29e56f4.bdbe99",
+ "type": "execute",
+ "name": "execute isPDFILE",
+ "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getTemplateByVnfTypeNAction\">\n<parameter name=\"fileCategory\" value=\"config_template\" />\n<parameter name=\"responsePrefix\" value=\"config-template\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 779.9166679382324,
+ "y": 517.5952529907227,
+ "z": "94e86086.2ff71",
+ "wires": [["39e0794.313fc86",
+ "1ed9c019.ae2df"]]
+},
+{
+ "id": "39e0794.313fc86",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1025.9166717529297,
+ "y": 498.09522247314453,
+ "z": "94e86086.2ff71",
+ "wires": [[]]
+},
+{
+ "id": "1ed9c019.ae2df",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1020.4166717529297,
+ "y": 540.0952491760254,
+ "z": "94e86086.2ff71",
+ "wires": [["48b163ef.9f2bfc"]]
+},
+{
+ "id": "48b163ef.9f2bfc",
+ "type": "call",
+ "name": "call chefDG",
+ "xml": "<call module='APPC' rpc='' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1187.416690826416,
+ "y": 542.5952291488647,
+ "z": "94e86086.2ff71",
+ "wires": [["d759b85b.fae9e8"]]
+},
+{
+ "id": "d759b85b.fae9e8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1366.1667938232422,
+ "y": 543.8452787399292,
+ "z": "94e86086.2ff71",
+ "wires": [["5449d9db.093b88"]]
+},
+{
+ "id": "5449d9db.093b88",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='output.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='output.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n<parameter name='output.status.results' value = '`$output.status.results`'/>\n",
+ "comments": "",
+ "x": 1548.666706085205,
+ "y": 543.8452339172363,
+ "z": "94e86086.2ff71",
+ "wires": []
+},
+{
+ "id": "bde23f8d.a3fa4",
+ "type": "call",
+ "name": "call Generic_ChefDG",
+ "xml": "<call module='APPC' rpc='Generic_ChefDG' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 445.3334197998047,
+ "y": 595.0953197479248,
+ "z": "94e86086.2ff71",
+ "wires": [["43fbac1d.0c1c24",
+ "206a6826.5cf278"]]
+},
+{
+ "id": "954fec4e.93e8f",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1238.9521827697754,
+ "y": 235.1904354095459,
+ "z": "94e86086.2ff71",
+ "wires": [["f7addcef.22067"]]
+},
+{
+ "id": "168aed4a.93b013",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1358.3331909179688,
+ "y": 124.42856121063232,
+ "z": "94e86086.2ff71",
+ "wires": [["66ab792e.5436a8"]]
+},
+{
+ "id": "66ab792e.5436a8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1534.3331909179688,
+ "y": 128.42856121063232,
+ "z": "94e86086.2ff71",
+ "wires": [[]]
+},
+{
+ "id": "3b15cd2d.821332",
+ "type": "execute",
+ "name": "execute getTemplate",
+ "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getTemplate\">\n<parameter name=\"fileCategory\" value=\"config_template\" />\n<parameter name=\"responsePrefix\" value=\"config_template\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 390.2382354736328,
+ "y": 338.96442222595215,
+ "z": "94e86086.2ff71",
+ "wires": [["ea97965e.f38b18",
+ "eaf78bb4.52fa78",
+ "160c81ed.70050e"]]
+},
+{
+ "id": "eaf78bb4.52fa78",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 646.3811264038086,
+ "y": 319.95239543914795,
+ "z": "94e86086.2ff71",
+ "wires": [["d967b007.473f5"]]
+},
+{
+ "id": "ea97965e.f38b18",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 652.9049377441406,
+ "y": 242.61909008026123,
+ "z": "94e86086.2ff71",
+ "wires": [["d967b007.473f5"]]
+},
+{
+ "id": "d967b007.473f5",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 837.2381896972656,
+ "y": 246.95241832733154,
+ "z": "94e86086.2ff71",
+ "wires": [["5ad2d1ac.67bda"]]
+},
+{
+ "id": "206a6826.5cf278",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 668.6666259765625,
+ "y": 706.761884689331,
+ "z": "94e86086.2ff71",
+ "wires": [["8fa01d79.09849"]]
+},
+{
+ "id": "8fa01d79.09849",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='APPC.GetRunningConfig' value=\"`$APPC.GetRunningConfig`\" />\n<parameter name='output.status.code' value='`$output.status.code`' />\n<parameter name='output.status.message' value='`$output.status.message`'/>\n<parameter name='output.status.results' value = '`$output.status.results`'/>\n",
+ "comments": "",
+ "x": 910.0954551696777,
+ "y": 710.333270072937,
+ "z": "94e86086.2ff71",
+ "wires": []
+},
+{
+ "id": "43fbac1d.0c1c24",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 652.952320098877,
+ "y": 608.1903324127197,
+ "z": "94e86086.2ff71",
+ "wires": [["7f584955.519aa8"]]
+},
+{
+ "id": "7f584955.519aa8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='output.status.code' value='`$output.status.code`' />\n<parameter name='output.status.message' value='`$output.status.message`'/>\n",
+ "comments": "",
+ "x": 897.3808403015137,
+ "y": 623.9045810699463,
+ "z": "94e86086.2ff71",
+ "wires": []
+},
+{
+ "id": "9b65458e.5b1e98",
+ "type": "set",
+ "name": "Set Action",
+ "xml": "<set>\n<parameter name='request-action' value=\"GetRunningConfig\" />\n",
+ "comments": "",
+ "x": 410.0000114440918,
+ "y": 250.0000286102295,
+ "z": "94e86086.2ff71",
+ "wires": []
+},
+{
+ "id": "5ad2d1ac.67bda",
+ "type": "get-resource",
+ "name": "get-resource: APPC.GetRunningConfig",
+ "xml": "<get-resource\n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n key=\"SELECT FILE_CONTENT FROM CONFIGFILES WHERE FILE_CATEGORY = 'device_configuration' AND VNF_NAME = $vnf-name\n \t\tAND ACTION IN ('Configure', 'ConfigModify', 'ConfigRestore') \n \t\tAND CREATION_DATE IN (SELECT MAX(CREATION_DATE) FROM CONFIGFILES) ;\"\n force='true'\n\tpfx='APPC.GetRunningConfig'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1029.9999542236328,
+ "y": 174.2857346534729,
+ "z": "94e86086.2ff71",
+ "wires": [["168aed4a.93b013",
+ "954fec4e.93e8f"]]
+},
+{
+ "id": "f7addcef.22067",
+ "type": "set",
+ "name": "set GetRunningConfig",
+ "xml": "<set>\n<parameter name='APPC.GetRunningConfig' value='`$APPC.GetRunningConfig.FILE-CONTENT`' />\n\n\n\n\n\n",
+ "comments": "",
+ "x": 1496.2856903076172,
+ "y": 238.28571796417236,
+ "z": "94e86086.2ff71",
+ "wires": []
+},
+{
+ "id": "160c81ed.70050e",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 522.2857230050223,
+ "y": 401.4285714285714,
+ "z": "94e86086.2ff71",
+ "wires": [["500403e1.fd551c"]]
+},
+{
+ "id": "500403e1.fd551c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 459.4285583496094,
+ "y": 497.1428527832031,
+ "z": "94e86086.2ff71",
+ "wires": [["bde23f8d.a3fa4"]]
+},
+{
+ "id": "daccf9f.9646908",
+ "type": "comment",
+ "name": "Change of getDeviceRunningConfig",
+ "info": "Need to change getDeviceRunningconfig when chef returns configuartion.\n\nRight now just returning deviceRunningConfig",
+ "comments": "",
+ "x": 1010.0001602172852,
+ "y": 753.142822265625,
+ "z": "94e86086.2ff71",
+ "wires": []
+},
+{
+ "id": "a36ba4d6.2c6688",
+ "type": "set",
+ "name": "set tmp.message",
+ "xml": "<set>\n<parameter name=\"tmp.message\" value=\"`$error-code + ':' + $error-message`\"/>\n<parameter name='request-action' value=\"`$input.action`\" />\n",
+ "comments": "",
+ "x": 425.71429443359375,
+ "y": 755.4285888671875,
+ "z": "94e86086.2ff71",
+ "wires": []
+}]