Fix for config not able to save in DB 49/39149/4
authorDilip kumar Pampana <dp583p@att.com>
Tue, 27 Mar 2018 15:53:00 +0000 (11:53 -0400)
committerRanda Maher <rx196w@att.com>
Tue, 27 Mar 2018 21:12:27 +0000 (21:12 +0000)
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>
appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GetDeviceRunningConfig.json
appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GetTemplateConfig_Ansible.json
appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GetTemplateConfig_Chef.json

index 918e7c8..b2f3396 100644 (file)
-[\r
-    {\r
-        "id": "73fd49f3.a1d278",\r
-        "type": "dgstart",\r
-        "name": "DGSTART",\r
-        "outputs": 1,\r
-        "x": 208.75,\r
-        "y": 98.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "98dbdd7c.fe8c3"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "53ce8877.2ecf68",\r
-        "type": "method",\r
-        "name": "method: GetDeviceRunningConfig",\r
-        "xml": "<method rpc='GetDeviceRunningConfig' mode='sync'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 645.1785430908203,\r
-        "y": 89.17857456207275,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "71df0315.00e07c"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "98dbdd7c.fe8c3",\r
-        "type": "service-logic",\r
-        "name": "APPC 4.0.0",\r
-        "module": "APPC",\r
-        "version": "3.1.0",\r
-        "comments": "",\r
-        "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='4.0.0'>",\r
-        "outputs": 1,\r
-        "x": 399.75,\r
-        "y": 96.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "53ce8877.2ecf68"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "a7b3e993.df4158",\r
-        "type": "set",\r
-        "name": "set Request Parameters",\r
-        "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",\r
-        "comments": "",\r
-        "x": 571.0834197998047,\r
-        "y": 167.74999570846558,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "f83cb7cd.e4dd78",\r
-        "type": "execute",\r
-        "name": "execute: Get Rest Configuration",\r
-        "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",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 704.75,\r
-        "y": 512.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "198a50e4.1a084f",\r
-                "f26ecc71.80f99",\r
-                "813bb5a6.7d4a68"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "855c15a1.c5faf8",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"Unable to Get the Configuration\"/>\n",\r
-        "comments": "",\r
-        "x": 2005.7500381469727,\r
-        "y": 622.7500162124634,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "198a50e4.1a084f",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 961.75,\r
-        "y": 580.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "d887442e.fdbd68"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "d51d7787.158188",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 984.75,\r
-        "y": 632.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "2880086.7157bf8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "2880086.7157bf8",\r
-        "type": "returnSuccess",\r
-        "name": "return success",\r
-        "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$restconf.config`\" />\n",\r
-        "comments": "",\r
-        "x": 1213.75,\r
-        "y": 620.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "f26ecc71.80f99",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 800.75,\r
-        "y": 632.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "d51d7787.158188"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "d887442e.fdbd68",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1792.7500343322754,\r
-        "y": 612.7500648498535,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "855c15a1.c5faf8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "71df0315.00e07c",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 301.75,\r
-        "y": 166.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "a7b3e993.df4158",\r
-                "2fbf7d15.74f302"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "29cf8ea9.51acb2",\r
-        "type": "outcome",\r
-        "name": "RESTCONF-XML",\r
-        "xml": "<outcome value='RESTCONF-XML'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 346.75,\r
-        "y": 513.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "cbfbcb9b.61f818"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "cbfbcb9b.61f818",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block atomic=\"true\">\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 506.75,\r
-        "y": 464.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "f83cb7cd.e4dd78"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "2fbf7d15.74f302",\r
-        "type": "switchNode",\r
-        "name": "switch : Protocol",\r
-        "xml": "<switch test=\"`$protocol`\">\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 176.75,\r
-        "y": 268.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "29cf8ea9.51acb2",\r
-                "47521138.e1182",\r
-                "aa86a367.9e31",\r
-                "9e29ccc9.7ecc5",\r
-                "cb04f713.845c98",\r
-                "d235c42e.58bf08"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "47521138.e1182",\r
-        "type": "outcome",\r
-        "name": "CLI",\r
-        "xml": "<outcome value='CLI'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 370.75,\r
-        "y": 269.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "6f3ae8b7.9b6778"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "e982ff2.bf8a4",\r
-        "type": "get-resource",\r
-        "name": "get-resource GET_CONFIG_TEMPLATE",\r
-        "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",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 754.7499694824219,\r
-        "y": 247.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "48deb1d2.fcd28",\r
-                "935998ed.ba2098"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "6f3ae8b7.9b6778",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block atomic=\"true\">\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 510.7499694824219,\r
-        "y": 270.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "e982ff2.bf8a4",\r
-                "5f0176d.376ce88"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "ede520ec.0c179",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"Unable to Read Config Template\"/>\n\t",\r
-        "comments": "",\r
-        "x": 1331.7499694824219,\r
-        "y": 274.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "98a7d137.1e399",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block atomic=\"true\">\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1160.7499694824219,\r
-        "y": 275.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "ede520ec.0c179"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "41ac5929.942928",\r
-        "type": "returnSuccess",\r
-        "name": "return success",\r
-        "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$cliOutput`\" />\n",\r
-        "comments": "",\r
-        "x": 1207.75,\r
-        "y": 490.75004863739014,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "5f0176d.376ce88",\r
-        "type": "execute",\r
-        "name": "execute: Get CLI RunningConfig",\r
-        "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",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 720.7500152587891,\r
-        "y": 336.7500123977661,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "78d9a2f9.46003c",\r
-                "97890ce8.6b316",\r
-                "98f67919.c738f8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "e6da77d0.fadda8",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 986.75,\r
-        "y": 435.75006103515625,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "41ac5929.942928"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "48deb1d2.fcd28",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1007.7499694824219,\r
-        "y": 287.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "98a7d137.1e399"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "78d9a2f9.46003c",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 812.75,\r
-        "y": 433.75006103515625,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "e6da77d0.fadda8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "813bb5a6.7d4a68",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 970.75,\r
-        "y": 535.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "d887442e.fdbd68"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "935998ed.ba2098",\r
-        "type": "not-found",\r
-        "name": "not-found",\r
-        "xml": "<outcome value='not-found'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1006.7499694824219,\r
-        "y": 216.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "98a7d137.1e399"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "97890ce8.6b316",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 989.7500076293945,\r
-        "y": 351.7499933242798,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "560e0fe9.a63f6"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "98f67919.c738f8",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 980.75,\r
-        "y": 390.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "d887442e.fdbd68"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "fde847ff.94d008",\r
-        "type": "comment",\r
-        "name": "comment1",\r
-        "info": "comment1",\r
-        "comments": "",\r
-        "x": 887.7499694824219,\r
-        "y": 28.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "aa86a367.9e31",\r
-        "type": "outcome",\r
-        "name": "NETCONF-XML",\r
-        "xml": "<outcome value='NETCONF-XML'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 281.75,\r
-        "y": 676.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "e84e48c0.7bd1f8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "e84e48c0.7bd1f8",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block atomic=\"true\">\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 453.75,\r
-        "y": 676.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "567cae24.a2056"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "567cae24.a2056",\r
-        "type": "execute",\r
-        "name": "execute: Get XML RunningConfig",\r
-        "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",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 683.6071929931641,\r
-        "y": 705.892858505249,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "50a8e434.940b6c",\r
-                "66893930.a5f318",\r
-                "d6c04b27.53f0c8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "50a8e434.940b6c",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1009.75,\r
-        "y": 687.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "560e0fe9.a63f6"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "66893930.a5f318",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1010.75,\r
-        "y": 736.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "d887442e.fdbd68"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "9e29ccc9.7ecc5",\r
-        "type": "outcome",\r
-        "name": "RESTCONF",\r
-        "xml": "<outcome value='RESTCONF'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 358.75,\r
-        "y": 438.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "cbfbcb9b.61f818"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "d6c04b27.53f0c8",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 830.75,\r
-        "y": 784.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "907796bc.3521c8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "907796bc.3521c8",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1006.75,\r
-        "y": 783.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "230d353a.82deba"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "230d353a.82deba",\r
-        "type": "returnSuccess",\r
-        "name": "return success",\r
-        "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$xmlRunningConfigOutput `\" />\n",\r
-        "comments": "",\r
-        "x": 1211.4169387817383,\r
-        "y": 781.7500133514404,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "cb04f713.845c98",\r
-        "type": "outcome",\r
-        "name": "CHEF",\r
-        "xml": "<outcome value='CHEF'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 252.75,\r
-        "y": 773.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "87e6927d.8c87a"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "2c9ce105.810cce",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block atomic=\"true\">\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 465.74999237060547,\r
-        "y": 821.4166603088379,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "830e8c40.09ea8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "830e8c40.09ea8",\r
-        "type": "execute",\r
-        "name": "execute: getChefRunningConfig",\r
-        "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",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 701.8928680419922,\r
-        "y": 865.6072664260864,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "f10cdc38.2c8fd",\r
-                "d81f053f.e21898",\r
-                "8b94b394.610ac"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "8b94b394.610ac",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 896.4642944335938,\r
-        "y": 961.89284324646,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "ff4e13e0.ba24a"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "ff4e13e0.ba24a",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1195.4167976379395,\r
-        "y": 996.4166450500488,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "bd7122ae.6d345"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "d81f053f.e21898",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1003.750129699707,\r
-        "y": 897.7500658035278,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            []\r
-        ]\r
-    },\r
-    {\r
-        "id": "f10cdc38.2c8fd",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1002.750129699707,\r
-        "y": 848.7500658035278,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "3be4b321.a7b82c"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "bd7122ae.6d345",\r
-        "type": "returnSuccess",\r
-        "name": "return success",\r
-        "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$tmp.deviceconfig.file-content`\" />\n",\r
-        "comments": "",\r
-        "x": 1431.750144958496,\r
-        "y": 1000.08331823349,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "3be4b321.a7b82c",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1178.750129699707,\r
-        "y": 852.7500658035278,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "68fcda28.298664"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "68fcda28.298664",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"`$tmp.deviceconfig.error-message`\"/>\n\n",\r
-        "comments": "",\r
-        "x": 1329.0834503173828,\r
-        "y": 832.8929662704468,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "d47a34b9.96fae8",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"`$error-message`\"/>\n",\r
-        "comments": "",\r
-        "x": 1520.75,\r
-        "y": 398.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "560e0fe9.a63f6",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1345.75,\r
-        "y": 402.75,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "d47a34b9.96fae8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "d235c42e.58bf08",\r
-        "type": "outcome",\r
-        "name": " Ansible",\r
-        "xml": "<outcome value='Ansible'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 227.19049835205078,\r
-        "y": 891.4763145446777,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "7994c061.4c34b"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "87e6927d.8c87a",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block atomic=\"true\">\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 413.33331298828125,\r
-        "y": 953.333251953125,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "b2457e62.0d6be"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "b2457e62.0d6be",\r
-        "type": "call",\r
-        "name": "call  GetTemplateConfig_Chef",\r
-        "xml": "<call module='APPC' rpc='GetTemplateConfig_Chef' mode='sync' >\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 659.2857055664062,\r
-        "y": 954.0477857589722,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "e573827e.36bb9",\r
-                "35aad49a.f87bcc",\r
-                "7142f414.35002c"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "163d15dd.b3498a",\r
-        "type": "call",\r
-        "name": "call  GetTemplateConfig_Ansible",\r
-        "xml": "<call module='APPC' rpc='GetTemplateConfig_Ansible' mode='sync' >\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 597.857063293457,\r
-        "y": 1235.476152420044,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "e6a86a3a.62afb8",\r
-                "80beb099.eee58",\r
-                "9ba09f64.03e81"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "35aad49a.f87bcc",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 722.6190185546875,\r
-        "y": 1095.7143206596375,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "d887442e.fdbd68"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "e573827e.36bb9",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 721.6190185546875,\r
-        "y": 1046.7143206596375,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "73395769.c7fd38"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "73395769.c7fd38",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 897.6190185546875,\r
-        "y": 1050.7143206596375,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "ebfee93d.0a6c28"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "ebfee93d.0a6c28",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"`$tmp.deviceconfig.error-message`\"/>\n\n",\r
-        "comments": "",\r
-        "x": 1089.6190185546875,\r
-        "y": 1043.7143206596375,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "7142f414.35002c",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 660.9523315429688,\r
-        "y": 1169.047694683075,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "6ed3304a.f8835"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "6ed3304a.f8835",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 823.9523315429688,\r
-        "y": 1169.047694683075,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "99960733.d8c138"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "99960733.d8c138",\r
-        "type": "returnSuccess",\r
-        "name": "return success",\r
-        "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",\r
-        "comments": "",\r
-        "x": 1026.9523315429688,\r
-        "y": 1171.047694683075,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "7994c061.4c34b",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block atomic=\"true\">\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 409.52384185791016,\r
-        "y": 1150.4760665893555,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "163d15dd.b3498a"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "80beb099.eee58",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 831.1903610229492,\r
-        "y": 1300.4761695861816,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "d887442e.fdbd68"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "e6a86a3a.62afb8",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 830.1903610229492,\r
-        "y": 1251.4761695861816,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "565cf063.e3efb"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "565cf063.e3efb",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1006.1903610229492,\r
-        "y": 1255.4761695861816,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "484bbab0.c63454"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "484bbab0.c63454",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"`$tmp.deviceconfig.error-message`\"/>\n\n",\r
-        "comments": "",\r
-        "x": 1198.1903381347656,\r
-        "y": 1248.4761772155762,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "9ba09f64.03e81",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 769.5236740112305,\r
-        "y": 1373.8095436096191,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "6b8fab54.184374"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "6b8fab54.184374",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 932.5236740112305,\r
-        "y": 1373.8095436096191,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": [\r
-            [\r
-                "5dadab18.730154"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "5dadab18.730154",\r
-        "type": "returnSuccess",\r
-        "name": "return success",\r
-        "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",\r
-        "comments": "",\r
-        "x": 1135.5236282348633,\r
-        "y": 1375.809624671936,\r
-        "z": "d5c2f7ab.9eeb78",\r
-        "wires": []\r
-    }\r
-]\r
+[{
+    "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": []
+}]
index d2f2af2..db324b5 100644 (file)
-[\r
-    {\r
-        "id": "5803aa79.45b404",\r
-        "type": "method",\r
-        "name": "method GetTemplateConfig_Ansible",\r
-        "xml": "<method rpc='GetTemplateConfig_Ansible' mode='sync'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 588.7499847412109,\r
-        "y": 107.5,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": [\r
-            [\r
-                "b3dc5912.de0548"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "35047526.e59a1a",\r
-        "type": "dgstart",\r
-        "name": "DGSTART",\r
-        "outputs": 1,\r
-        "x": 127.0594711303711,\r
-        "y": 106.5714282989502,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": [\r
-            [\r
-                "2ac38826.404d58"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "2ac38826.404d58",\r
-        "type": "service-logic",\r
-        "name": "APPC 4.0.0",\r
-        "module": "APPC",\r
-        "version": "4.0.0",\r
-        "comments": "",\r
-        "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='4.0.0'>",\r
-        "outputs": 1,\r
-        "x": 325.2023391723633,\r
-        "y": 104.14286041259766,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": [\r
-            [\r
-                "5803aa79.45b404"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "7e21bb0c.03de44",\r
-        "type": "execute",\r
-        "name": "execute getTemplate",\r
-        "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\" />",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 419.70245361328125,\r
-        "y": 319.5358352661133,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": [\r
-            [\r
-                "54cd3796.95a458",\r
-                "90f2178d.ba27c8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "90f2178d.ba27c8",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 694.059513092041,\r
-        "y": 361.0000648498535,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": [\r
-            [\r
-                "5392ab8b.3b7874"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "5392ab8b.3b7874",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
-        "outputs": 1,\r
-        "x": 885.7896118164062,\r
-        "y": 362.1429262161255,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": [\r
-            [\r
-                "d978e419.70a338"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "d978e419.70a338",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "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",\r
-        "comments": "",\r
-        "x": 1115.4563827514648,\r
-        "y": 364.9206962585449,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "54cd3796.95a458",\r
-        "type": "failure",\r
-        "name": "not-found",\r
-        "xml": "<outcome value='not-found'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 700.583324432373,\r
-        "y": 283.6667594909668,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": [\r
-            [\r
-                "e0937d2c.970ef"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "e0937d2c.970ef",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
-        "outputs": 1,\r
-        "x": 884.916576385498,\r
-        "y": 288.0000877380371,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": [\r
-            [\r
-                "9df2fa59.e3b388"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "b3dc5912.de0548",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 156.20235061645508,\r
-        "y": 342.5000410079956,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": [\r
-            [\r
-                "7e21bb0c.03de44",\r
-                "941be79f.807ed8",\r
-                "7b6affbc.ca3f"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "ebd8afae.4253d",\r
-        "type": "not-found",\r
-        "name": "found",\r
-        "xml": "<outcome value='found'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1145.6310234069824,\r
-        "y": 448.46429920196533,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": [\r
-            [\r
-                "b022a59b.66efe8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "8ced2749.1c0918",\r
-        "type": "other",\r
-        "name": "not-found",\r
-        "xml": "<outcome value='not-found'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1149.7382049560547,\r
-        "y": 517.2143268585205,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": [\r
-            [\r
-                "bb3ddb29.67e8a8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "941be79f.807ed8",\r
-        "type": "call",\r
-        "name": "call  Generic_AnsibleDG",\r
-        "xml": "<call module='APPC' rpc='Generic_AnsibleDG' mode='sync' >\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 324.91674041748047,\r
-        "y": 606.8571729660034,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": [\r
-            [\r
-                "f0ca9dc.a029d6",\r
-                "c14fa4fe.f59ef8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "b022a59b.66efe8",\r
-        "type": "call",\r
-        "name": "call  MergeTemplateData",\r
-        "xml": "<call module='APPC' rpc='MergeTemplateData' mode='sync' >\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1352.857192993164,\r
-        "y": 447.1428565979004,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": [\r
-            []\r
-        ]\r
-    },\r
-    {\r
-        "id": "18d834e5.32eb1b",\r
-        "type": "execute",\r
-        "name": "execute getTemplate Parameter_definition",\r
-        "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\" />",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 878.5714721679688,\r
-        "y": 471.4286117553711,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": [\r
-            [\r
-                "ebd8afae.4253d",\r
-                "8ced2749.1c0918"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "bb3ddb29.67e8a8",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
-        "outputs": 1,\r
-        "x": 1361.4285202026367,\r
-        "y": 528.5714836120605,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": [\r
-            []\r
-        ]\r
-    },\r
-    {\r
-        "id": "f0ca9dc.a029d6",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 562.8571891784668,\r
-        "y": 657.1429481506348,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": [\r
-            [\r
-                "4d19c7fd.436708"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "4d19c7fd.436708",\r
-        "type": "returnSuccess",\r
-        "name": "return success",\r
-        "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",\r
-        "comments": "",\r
-        "x": 780.5716171264648,\r
-        "y": 663.5714693069458,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "c14fa4fe.f59ef8",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 547.1428833007812,\r
-        "y": 558.5713958740234,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": [\r
-            [\r
-                "55b4f534.292e5c"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "55b4f534.292e5c",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "xml": "<return status='failure'>\n<parameter name='output.status.code' value='200' />\n<parameter name='output.status.message' value='`$output.status.message`'/>\n",\r
-        "comments": "",\r
-        "x": 798.571403503418,\r
-        "y": 574.28564453125,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "9df2fa59.e3b388",\r
-        "type": "execute",\r
-        "name": "execute: getAnsibleRunningConfig",\r
-        "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",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1141.6666107177734,\r
-        "y": 200.00000953674316,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": [\r
-            [\r
-                "44e9bc7b.8cfb94",\r
-                "15aafa2c.198166",\r
-                "5aacae79.29154"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "5aacae79.29154",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1287.6666412353516,\r
-        "y": 281.9999647140503,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": [\r
-            [\r
-                "8117d87b.2808a8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "8117d87b.2808a8",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1450.6666412353516,\r
-        "y": 281.9999647140503,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": [\r
-            [\r
-                "b514f44.0458208"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "15aafa2c.198166",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1435.6666412353516,\r
-        "y": 224.9999647140503,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": [\r
-            []\r
-        ]\r
-    },\r
-    {\r
-        "id": "44e9bc7b.8cfb94",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1441.3333206176758,\r
-        "y": 162.6666498184204,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": [\r
-            [\r
-                "5e2afb10.22e314"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "b514f44.0458208",\r
-        "type": "returnSuccess",\r
-        "name": "return success",\r
-        "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$tmp.deviceconfig.file-content`\" />\n",\r
-        "comments": "",\r
-        "x": 1653.6666412353516,\r
-        "y": 283.9999647140503,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "5e2afb10.22e314",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1617.3333206176758,\r
-        "y": 166.6666498184204,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": [\r
-            [\r
-                "bd876721.641cc8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "bd876721.641cc8",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"`$tmp.deviceconfig.error-message`\"/>\n\n",\r
-        "comments": "",\r
-        "x": 1809.3333206176758,\r
-        "y": 159.6666498184204,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "7b6affbc.ca3f",\r
-        "type": "set",\r
-        "name": "set tmp.message",\r
-        "xml": "<set>\n<parameter name=\"tmp.message\" value=\"`$error-code + ':' + $error-message`\"/>\n",\r
-        "comments": "",\r
-        "x": 308.75404357910156,\r
-        "y": 702.3611240386963,\r
-        "z": "b2b332b8.ecb4c",\r
-        "wires": []\r
-    }\r
-]\r
+[{
+    "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": []
+}]
index 7341e4a..7bc73df 100644 (file)
-[\r
-    {\r
-        "id": "c9005ac7.c57248",\r
-        "type": "dgstart",\r
-        "name": "DGSTART",\r
-        "outputs": 1,\r
-        "x": 130,\r
-        "y": 107.57143020629883,\r
-        "z": "1c322045.61564",\r
-        "wires": [\r
-            [\r
-                "81c4fde7.3fb5b"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "81c4fde7.3fb5b",\r
-        "type": "service-logic",\r
-        "name": "APPC 4.0.0",\r
-        "module": "APPC",\r
-        "version": "4.0.0",\r
-        "comments": "",\r
-        "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='4.0.0'>",\r
-        "outputs": 1,\r
-        "x": 311.00000762939453,\r
-        "y": 65.1428575515747,\r
-        "z": "1c322045.61564",\r
-        "wires": [\r
-            [\r
-                "c35c9610.8d2ad8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "c35c9610.8d2ad8",\r
-        "type": "method",\r
-        "name": "method GetTemplateConfig_Chef ",\r
-        "xml": "<method rpc='GetTemplateConfig_Chef' mode='sync'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 574.5476837158203,\r
-        "y": 68.49999618530273,\r
-        "z": "1c322045.61564",\r
-        "wires": [\r
-            [\r
-                "791848b0.bcbe48"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "791848b0.bcbe48",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 142.00001907348633,\r
-        "y": 303.50003814697266,\r
-        "z": "1c322045.61564",\r
-        "wires": [\r
-            [\r
-                "13786ad0.1af775",\r
-                "9911db8b.909de8",\r
-                "a0dd8b28.4c27d8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "13786ad0.1af775",\r
-        "type": "set",\r
-        "name": "set tmp.message",\r
-        "xml": "<set>\n<parameter name=\"tmp.message\" value=\"`$error-code + ':' + $error-message`\"/>\n",\r
-        "comments": "",\r
-        "x": 409.37306213378906,\r
-        "y": 692.8253631591797,\r
-        "z": "1c322045.61564",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "3e746174.0ab35e",\r
-        "type": "execute",\r
-        "name": "execute isPDFILE",\r
-        "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\" />",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 762.9166679382324,\r
-        "y": 514.1666812896729,\r
-        "z": "1c322045.61564",\r
-        "wires": [\r
-            [\r
-                "ca5f68cd.7df168",\r
-                "abf0e2c0.46e46"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "ca5f68cd.7df168",\r
-        "type": "not-found",\r
-        "name": "not-found",\r
-        "xml": "<outcome value='not-found'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1008.9166717529297,\r
-        "y": 494.6666507720947,\r
-        "z": "1c322045.61564",\r
-        "wires": [\r
-            []\r
-        ]\r
-    },\r
-    {\r
-        "id": "abf0e2c0.46e46",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1003.4166717529297,\r
-        "y": 536.6666774749756,\r
-        "z": "1c322045.61564",\r
-        "wires": [\r
-            [\r
-                "9285e961.bde908"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "9285e961.bde908",\r
-        "type": "call",\r
-        "name": "call  chefDG",\r
-        "xml": "<call module='APPC' rpc='' mode='sync' >\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1170.416690826416,\r
-        "y": 539.1666574478149,\r
-        "z": "1c322045.61564",\r
-        "wires": [\r
-            [\r
-                "6b096ef8.220c6"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "6b096ef8.220c6",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
-        "outputs": 1,\r
-        "x": 1349.1667938232422,\r
-        "y": 540.4167070388794,\r
-        "z": "1c322045.61564",\r
-        "wires": [\r
-            [\r
-                "3b23acb8.aee1b4"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "3b23acb8.aee1b4",\r
-        "type": "returnSuccess",\r
-        "name": "return success",\r
-        "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",\r
-        "comments": "",\r
-        "x": 1531.666706085205,\r
-        "y": 540.4166622161865,\r
-        "z": "1c322045.61564",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "9911db8b.909de8",\r
-        "type": "call",\r
-        "name": "call  Generic_ChefDG",\r
-        "xml": "<call module='APPC' rpc='Generic_ChefDG' mode='sync' >\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 428.3334197998047,\r
-        "y": 591.666748046875,\r
-        "z": "1c322045.61564",\r
-        "wires": [\r
-            [\r
-                "13c04cd9.b43873",\r
-                "3d395b6f.37d6d4"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "70ff03bc.550c5c",\r
-        "type": "execute",\r
-        "name": "execute: getChefRunningConfig",\r
-        "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",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1041.66650390625,\r
-        "y": 158.33333206176758,\r
-        "z": "1c322045.61564",\r
-        "wires": [\r
-            [\r
-                "e0166624.d85ba8",\r
-                "2d46c9a9.5e4556",\r
-                "60877372.7124dc"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "60877372.7124dc",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1187.6665115356445,\r
-        "y": 240.3333044052124,\r
-        "z": "1c322045.61564",\r
-        "wires": [\r
-            [\r
-                "594ea12a.967b5"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "594ea12a.967b5",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1350.6665115356445,\r
-        "y": 240.3333044052124,\r
-        "z": "1c322045.61564",\r
-        "wires": [\r
-            [\r
-                "69841f84.beca3"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "2d46c9a9.5e4556",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1335.6665115356445,\r
-        "y": 183.3333044052124,\r
-        "z": "1c322045.61564",\r
-        "wires": [\r
-            []\r
-        ]\r
-    },\r
-    {\r
-        "id": "e0166624.d85ba8",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1341.3331909179688,\r
-        "y": 120.99998950958252,\r
-        "z": "1c322045.61564",\r
-        "wires": [\r
-            [\r
-                "afceb049.effd"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "69841f84.beca3",\r
-        "type": "returnSuccess",\r
-        "name": "return success",\r
-        "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$tmp.deviceconfig.file-content`\" />\n",\r
-        "comments": "",\r
-        "x": 1553.6665115356445,\r
-        "y": 242.3333044052124,\r
-        "z": "1c322045.61564",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "afceb049.effd",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1517.3331909179688,\r
-        "y": 124.99998950958252,\r
-        "z": "1c322045.61564",\r
-        "wires": [\r
-            [\r
-                "89203f87.bdd35"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "89203f87.bdd35",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"`$tmp.deviceconfig.error-message`\"/>\n\n",\r
-        "comments": "",\r
-        "x": 1709.3331909179688,\r
-        "y": 117.99998950958252,\r
-        "z": "1c322045.61564",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "a0dd8b28.4c27d8",\r
-        "type": "execute",\r
-        "name": "execute getTemplate",\r
-        "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\" />",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 414.66676330566406,\r
-        "y": 274.1072106361389,\r
-        "z": "1c322045.61564",\r
-        "wires": [\r
-            [\r
-                "209fd4e.f5e6a2c",\r
-                "c880f1bf.06526"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "c880f1bf.06526",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 629.3811264038086,\r
-        "y": 316.52382373809814,\r
-        "z": "1c322045.61564",\r
-        "wires": [\r
-            [\r
-                "3e7c0fa2.d88be"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "3e7c0fa2.d88be",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
-        "outputs": 1,\r
-        "x": 821.1112251281738,\r
-        "y": 317.6666851043701,\r
-        "z": "1c322045.61564",\r
-        "wires": [\r
-            [\r
-                "daf816d8.f062d8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "daf816d8.f062d8",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "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",\r
-        "comments": "",\r
-        "x": 1050.7779960632324,\r
-        "y": 320.44445514678955,\r
-        "z": "1c322045.61564",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "209fd4e.f5e6a2c",\r
-        "type": "failure",\r
-        "name": "not-found",\r
-        "xml": "<outcome value='not-found'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 635.9049377441406,\r
-        "y": 239.19051837921143,\r
-        "z": "1c322045.61564",\r
-        "wires": [\r
-            [\r
-                "32a527f0.aabd78"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "32a527f0.aabd78",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
-        "outputs": 1,\r
-        "x": 820.2381896972656,\r
-        "y": 243.52384662628174,\r
-        "z": "1c322045.61564",\r
-        "wires": [\r
-            [\r
-                "70ff03bc.550c5c"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "3d395b6f.37d6d4",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 651.6666259765625,\r
-        "y": 703.3333129882812,\r
-        "z": "1c322045.61564",\r
-        "wires": [\r
-            [\r
-                "d444f8cd.5ab698"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "d444f8cd.5ab698",\r
-        "type": "returnSuccess",\r
-        "name": "return success",\r
-        "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",\r
-        "comments": "",\r
-        "x": 869.3810539245605,\r
-        "y": 709.7618341445923,\r
-        "z": "1c322045.61564",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "13c04cd9.b43873",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 635.952320098877,\r
-        "y": 604.7617607116699,\r
-        "z": "1c322045.61564",\r
-        "wires": [\r
-            [\r
-                "c021af06.07788"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "c021af06.07788",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "xml": "<return status='failure'>\n<parameter name='output.status.code' value='200' />\n<parameter name='output.status.message' value='`$output.status.message`'/>\n",\r
-        "comments": "",\r
-        "x": 887.3808403015137,\r
-        "y": 620.4760093688965,\r
-        "z": "1c322045.61564",\r
-        "wires": []\r
-    }\r
-]\r
+[{
+    "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": []
+}]