Platform Hardening for DG Json files - Part 3
[appc.git] / appc-directed-graph / appc-dgraph / provider / src / main / resources / json / Dispatcher-DG / APPC_2.0.0_method_Generic_GetRunningConfig.json
index 7237ad6..f5f18dc 100644 (file)
@@ -1 +1,995 @@
-[{"id":"180bf863.7ff698","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":638,"y":47,"z":"a4e67f56.cb2c9","wires":[["b1e85b4d.4de818"]]},{"id":"7b831419.1eac8c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":722.25,"y":363.49999237060547,"z":"a4e67f56.cb2c9","wires":[["63daa94e.76aae8"]]},{"id":"140f6ea5.4e8041","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":718.25,"y":416.24999237060547,"z":"a4e67f56.cb2c9","wires":[["3ce56e6e.d0d1b2"]]},{"id":"47086c60.ba95f4","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":641,"y":115.99999237060547,"z":"a4e67f56.cb2c9","wires":[["fc731431.b82788"]]},{"id":"11938b45.589b15","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":638.2499389648438,"y":267.25,"z":"a4e67f56.cb2c9","wires":[["372c3af9.966c56"]]},{"id":"dbe515ac.28eb98","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":632.2499389648438,"y":202,"z":"a4e67f56.cb2c9","wires":[["ba6f005b.3e44e"]]},{"id":"5f02c1cf.37b4f","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":710.5,"y":461.49999237060547,"z":"a4e67f56.cb2c9","wires":[["60cd06a7.dbee98"]]},{"id":"3a82553d.6d98ea","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":710,"y":512.4999923706055,"z":"a4e67f56.cb2c9","wires":[["358af0c2.a30ea"]]},{"id":"46c38e22.64329","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1380,"y":596.75,"z":"a4e67f56.cb2c9","wires":[["9806fd80.49448"]]},{"id":"8ecbeb04.4666d8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1384.75,"y":695.25,"z":"a4e67f56.cb2c9","wires":[["13894430.36b39c"]]},{"id":"35ce6e5b.761062","type":"success","name":"multipleRunningConfig","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":832.5,"y":567.75,"z":"a4e67f56.cb2c9","wires":[["7b36969f.21ea78"]]},{"id":"c7e15c3e.27cb3","type":"get-resource","name":"Retrieve device credentials","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"select USER_NAME , PASSWORD , PORT_NUMBER from DEVICE_AUTHENTICATION where VNF_TYPE = $vnf-type \" >\n<parameter name=\"nodeName\" value=\"retrieveDeviceCredentials\" />\n","comments":"","outputs":1,"x":402.75006103515625,"y":111.74999237060547,"z":"a4e67f56.cb2c9","wires":[["180bf863.7ff698","47086c60.ba95f4","551adf9c.16e0f"]]},{"id":"8215021c.22176","type":"call","name":"Call device interfacing DG","xml":"<call rpc='`$dg-rpc`' module = '`$module`'  mode='sync'>\n<parameter name=\"nodeName\" value=\"callInterfacingDG\" />\n","comments":"","outputs":1,"x":453,"y":417.49999237060547,"z":"a4e67f56.cb2c9","wires":[["7b831419.1eac8c","140f6ea5.4e8041","11955887.62d437"]]},{"id":"ab93e21b.a1f7e","type":"get-resource","name":"Get device interfacing DG","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"select dg_rpc , module , protocol from DEVICE_INTERFACE_PROTOCOL where VNF_TYPE = $vnf-type and DG_RPC is not null \" >\n<parameter name=\"nodeName\" value=\"getDeviceInterfacingDG\" />\n","comments":"","outputs":1,"x":379.75,"y":266.5,"z":"a4e67f56.cb2c9","wires":[["11938b45.589b15","dbe515ac.28eb98","e9858666.192658"]]},{"id":"afcdc902.93d708","type":"get-resource","name":"Check if running config exists","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"select count(1) as value from UPLOAD_CONFIG where VNF_ID = $input.action-identifiers.vnf-id and ( if ( $vnfc-type = '' , VNFC_TYPE is NULL OR VNFC_TYPE = '' , VNFC_TYPE = $vnfc-type ) ) and HOST_IP_ADDRESS = $host-ip-address and CONFIG_INDICATOR = 'Running' AND (pending_delete IS NULL OR pending_delete != 'Y') \" force='true' pfx='runningConfig.count'>\n<parameter name=\"nodeName\" value=\"getDBRunningConf\" />\n","comments":"","outputs":1,"x":413.0000305175781,"y":551.2499923706055,"z":"a4e67f56.cb2c9","wires":[["5f02c1cf.37b4f","3a82553d.6d98ea","7b612e94.00088"]]},{"id":"b890cd70.906b9","type":"save","name":"Insert configuration","xml":"<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"INSERT INTO UPLOAD_CONFIG (REQUEST_ID,  ORIGINATOR_ID,  SERVICE_DESCRIPTION,   ACTION,  VNF_ID,  VNF_NAME, VM_NAME,  VNF_TYPE,  VNFC_TYPE,  HOST_IP_ADDRESS,  CONFIG_INDICATOR,  PENDING_DELETE,  CONTENT ) VALUES ( $input.common-header.request-id , $input.common-header.originator-id , $service-description , $input.action , $input.action-identifiers.vnf-id , $vnf-name , $vm-name , $vnf-type , $vnfc-type , $host-ip-address , 'Running' , NULL , $device-running-config ) \" force='true' >\n<parameter name=\"nodeName\" value=\"InsertConfiguration\" />\n","comments":"","outputs":1,"x":1171.75,"y":608,"z":"a4e67f56.cb2c9","wires":[["46c38e22.64329","473728a6.0b2d68"]]},{"id":"a92cddb8.c9d51","type":"save","name":"Update configuration","xml":"<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"update UPLOAD_CONFIG set CONTENT = $device-running-config , REQUEST_ID = $input.common-header.request-id , ORIGINATOR_ID = $input.common-header.originator-id ,  SERVICE_DESCRIPTION = $service-description , ACTION = $input.action , UPLOAD_DATE = CURRENT_TIMESTAMP  where VNF_ID = $input.action-identifiers.vnf-id and ( if ( $vnfc-type = '' , VNFC_TYPE is NULL OR VNFC_TYPE = '' , VNFC_TYPE = $vnfc-type ) ) and HOST_IP_ADDRESS = $host-ip-address and CONFIG_INDICATOR = 'Running' AND (pending_delete IS NULL OR pending_delete != 'Y') \" force='true' pfx='update'>\n<parameter name=\"nodeName\" value=\"updateConfiguration\" />\n","comments":"","outputs":1,"x":1171.2499885559082,"y":704.7499923706055,"z":"a4e67f56.cb2c9","wires":[["8ecbeb04.4666d8","541750f1.605a4"]]},{"id":"b92bafaa.6f832","type":"switchNode","name":"switch","xml":"<switch test='`$runningConfig.count.value`'>\n","comments":"","outputs":1,"x":623.7499961853027,"y":603.0000019073486,"z":"a4e67f56.cb2c9","wires":[["35ce6e5b.761062","78f7b47a.d6ce1c","4ed41f3c.8441d"]]},{"id":"3e4780c.eefb78","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":137.50000381469727,"y":224.24999618530273,"z":"a4e67f56.cb2c9","wires":[["c7e15c3e.27cb3","5449a18d.439af"]]},{"id":"551adf9c.16e0f","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":450.24993896484375,"y":175.75,"z":"a4e67f56.cb2c9","wires":[["ab93e21b.a1f7e"]]},{"id":"11955887.62d437","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":414.74993896484375,"y":488.49999237060547,"z":"a4e67f56.cb2c9","wires":[["afcdc902.93d708"]]},{"id":"e9858666.192658","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":236.2498779296875,"y":342.24999237060547,"z":"a4e67f56.cb2c9","wires":[["90297c5e.6500e"]]},{"id":"7b612e94.00088","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":452.49993896484375,"y":653.4999923706055,"z":"a4e67f56.cb2c9","wires":[["b92bafaa.6f832"]]},{"id":"473728a6.0b2d68","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1381.75,"y":646,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"35aaded4.f11712","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":997.75,"y":620,"z":"a4e67f56.cb2c9","wires":[["b890cd70.906b9"]]},{"id":"541750f1.605a4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1386.5,"y":744.25,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"8c3cc0da.7b207","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":999.25,"y":683.25,"z":"a4e67f56.cb2c9","wires":[["a92cddb8.c9d51"]]},{"id":"78f7b47a.d6ce1c","type":"success","name":"noRunningConfig","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":823.75,"y":618.75,"z":"a4e67f56.cb2c9","wires":[["35aaded4.f11712"]]},{"id":"4ed41f3c.8441d","type":"failure","name":"runningConfigExists","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":827.25,"y":683.75,"z":"a4e67f56.cb2c9","wires":[["8c3cc0da.7b207"]]},{"id":"6c20bf89.5231d","type":"method","name":"GetRunningConfig","xml":"<method rpc='Generic_GetRunningConfig' mode='sync'>\n","comments":"","outputs":1,"x":128,"y":140.74999237060547,"z":"a4e67f56.cb2c9","wires":[["3e4780c.eefb78"]]},{"id":"84baaf90.5a32d","type":"service-logic","name":"APPC 2.0.0","module":"APPC","version":"2.0.0","comments":"","xml":"<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='2.0.0'>","outputs":1,"x":264.99999237060547,"y":55.9999942779541,"z":"a4e67f56.cb2c9","wires":[["6c20bf89.5231d"]]},{"id":"5449a18d.439af","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":118.00003051757812,"y":430.24999237060547,"z":"a4e67f56.cb2c9","wires":[]},{"id":"60394b9e.416b44","type":"dgstart","name":"DGSTART","outputs":1,"x":97.4999885559082,"y":56.74999237060547,"z":"a4e67f56.cb2c9","wires":[["84baaf90.5a32d"]]},{"id":"b1e85b4d.4de818","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":813,"y":48.499996185302734,"z":"a4e67f56.cb2c9","wires":[["c6bbc167.8e6de","a535318d.76e89","743a8961.a83bb8"]]},{"id":"c6bbc167.8e6de","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value='Error while retrieving device credentials' />\n","comments":"","x":1019.5,"y":34.74999237060547,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"fc731431.b82788","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":817.75,"y":114.99999237060547,"z":"a4e67f56.cb2c9","wires":[["5a58c62.8050138","a535318d.76e89","743a8961.a83bb8"]]},{"id":"5a58c62.8050138","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value=\"`'Device credentials not found for the ' + $vnf-type `\"/>\n","comments":"","x":1021.5,"y":74.24999237060547,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"ba6f005b.3e44e","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":812.5,"y":185,"z":"a4e67f56.cb2c9","wires":[["27e3ed66.16f0c2","743a8961.a83bb8","a535318d.76e89"]]},{"id":"372c3af9.966c56","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":816.5,"y":241.25,"z":"a4e67f56.cb2c9","wires":[["c98aab75.3231f8","743a8961.a83bb8","a535318d.76e89"]]},{"id":"27e3ed66.16f0c2","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value='Error while getting device interfacing DG details' />\n","comments":"","x":1026.4999885559082,"y":121.75,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"c98aab75.3231f8","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value=\"`'Device Interfacing DG mapping not found for the ' + $vnf-type `\" />\n","comments":"","x":1024.25,"y":164.75,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"743a8961.a83bb8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />","comments":"","x":1052.25,"y":260,"z":"a4e67f56.cb2c9","wires":[]},{"id":"63daa94e.76aae8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":883.75,"y":313.74999237060547,"z":"a4e67f56.cb2c9","wires":[["6b1bdb26.cbe694","e53f7a1.c43ed88","ffb12b2e.32f4f8"]]},{"id":"3ce56e6e.d0d1b2","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":897.75,"y":398.99999237060547,"z":"a4e67f56.cb2c9","wires":[["189f4de.d45a0b2","e53f7a1.c43ed88","ffb12b2e.32f4f8"]]},{"id":"6b1bdb26.cbe694","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value=\"`$error-message`\"/>\n","comments":"","x":1151.75,"y":305.24999237060547,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"189f4de.d45a0b2","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value='Device Interfacing DG not found' />\n","comments":"","x":1153.75,"y":348.49999237060547,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"358af0c2.a30ea","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":914.25,"y":511.49999237060547,"z":"a4e67f56.cb2c9","wires":[["3871609f.8f563","ffb12b2e.32f4f8","e53f7a1.c43ed88"]]},{"id":"60cd06a7.dbee98","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":913,"y":456.99999237060547,"z":"a4e67f56.cb2c9","wires":[["4f35fa3d.a4b784","ffb12b2e.32f4f8","e53f7a1.c43ed88"]]},{"id":"4f35fa3d.a4b784","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\"/>\n","comments":"","x":1152.5,"y":392.99999237060547,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"3871609f.8f563","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n","comments":"","x":1152.75,"y":432.99999237060547,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"ffb12b2e.32f4f8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />","comments":"","x":1160.25,"y":532.2499923706055,"z":"a4e67f56.cb2c9","wires":[]},{"id":"7b36969f.21ea78","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1550.75,"y":565.5,"z":"a4e67f56.cb2c9","wires":[["d90b7545.846c58","b1eeb2dd.58bb4","8702f3c1.de0c"]]},{"id":"d90b7545.846c58","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value='More than one running configuration available for a VNFC' />\n","comments":"","x":1758.5,"y":557,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"b1eeb2dd.58bb4","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />","comments":"","x":1772.75,"y":782.75,"z":"a4e67f56.cb2c9","wires":[]},{"id":"9806fd80.49448","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1542.25,"y":627.5,"z":"a4e67f56.cb2c9","wires":[["c10f41b7.4725d","b1eeb2dd.58bb4","8702f3c1.de0c"]]},{"id":"c10f41b7.4725d","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value=\"`'Error while updating the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n","comments":"","x":1758.75,"y":612,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"13894430.36b39c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1537.75,"y":689,"z":"a4e67f56.cb2c9","wires":[["8a66df46.83bf","b1eeb2dd.58bb4","8702f3c1.de0c"]]},{"id":"8a66df46.83bf","type":"set","name":"Set error message","xml":"<set>\n<parameter name='node-error-message' value=\"`'Error while updating the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n","comments":"","x":1764.5,"y":664,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"a535318d.76e89","type":"record","name":"Log error","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n","comments":"","outputs":1,"x":1044,"y":216,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"e53f7a1.c43ed88","type":"record","name":"Log error","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n","comments":"","outputs":1,"x":1160,"y":487.99999237060547,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"8702f3c1.de0c","type":"record","name":"Log error","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n","comments":"","outputs":1,"x":1769,"y":720,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"e5f7f554.e2b2d8","type":"set","name":"set DG parameters","xml":"<set>\n<parameter name='config.vnf-type' value=\"`$vnf-type`\" />\n<parameter name='config.vnf-name' value=\"`$vnf-name`\" />\n<parameter name='config.protocol' value=\"`$protocol`\" />\n<parameter name='config.host-ip-address' value=\"`$host-ip-address`\" />\n<parameter name='config.user-name' value=\"`$USER-NAME`\" />\n<parameter name='config.password' value=\"`$PASSWORD`\" />\n<parameter name='config.port-number' value=\"`$PORT-NUMBER`\" />","comments":"","x":559,"y":318.74999237060547,"z":"a4e67f56.cb2c9","wires":[[]]},{"id":"90297c5e.6500e","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":369,"y":341.74999237060547,"z":"a4e67f56.cb2c9","wires":[["e5f7f554.e2b2d8","8215021c.22176"]]}]
+[\r
+    {\r
+        "id": "180bf863.7ff698",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 638,\r
+        "y": 47,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "b1e85b4d.4de818"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7b831419.1eac8c",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 722.25,\r
+        "y": 363.49999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "63daa94e.76aae8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "140f6ea5.4e8041",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 718.25,\r
+        "y": 416.24999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "3ce56e6e.d0d1b2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "47086c60.ba95f4",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 641,\r
+        "y": 115.99999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "fc731431.b82788"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "11938b45.589b15",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 638.2499389648438,\r
+        "y": 267.25,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "372c3af9.966c56"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dbe515ac.28eb98",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 632.2499389648438,\r
+        "y": 202,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "ba6f005b.3e44e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5f02c1cf.37b4f",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 710.5,\r
+        "y": 461.49999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "60cd06a7.dbee98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3a82553d.6d98ea",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 710,\r
+        "y": 512.4999923706055,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "358af0c2.a30ea"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "46c38e22.64329",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1380,\r
+        "y": 596.75,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "9806fd80.49448"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8ecbeb04.4666d8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1384.75,\r
+        "y": 695.25,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "13894430.36b39c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "35ce6e5b.761062",\r
+        "type": "success",\r
+        "name": "multipleRunningConfig",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 832.5,\r
+        "y": 567.75,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "7b36969f.21ea78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c7e15c3e.27cb3",\r
+        "type": "get-resource",\r
+        "name": "Retrieve device credentials",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"select USER_NAME , PASSWORD , PORT_NUMBER from DEVICE_AUTHENTICATION where VNF_TYPE = $vnf-type \" >\n<parameter name=\"nodeName\" value=\"retrieveDeviceCredentials\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 402.75006103515625,\r
+        "y": 111.74999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "180bf863.7ff698",\r
+                "47086c60.ba95f4",\r
+                "551adf9c.16e0f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8215021c.22176",\r
+        "type": "call",\r
+        "name": "Call device interfacing DG",\r
+        "xml": "<call rpc='`$dg-rpc`' module = '`$module`'  mode='sync'>\n<parameter name=\"nodeName\" value=\"callInterfacingDG\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 453,\r
+        "y": 417.49999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "7b831419.1eac8c",\r
+                "140f6ea5.4e8041",\r
+                "11955887.62d437"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ab93e21b.a1f7e",\r
+        "type": "get-resource",\r
+        "name": "Get device interfacing DG",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"select dg_rpc , module , protocol from DEVICE_INTERFACE_PROTOCOL where VNF_TYPE = $vnf-type and DG_RPC is not null \" >\n<parameter name=\"nodeName\" value=\"getDeviceInterfacingDG\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 379.75,\r
+        "y": 266.5,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "11938b45.589b15",\r
+                "dbe515ac.28eb98",\r
+                "e9858666.192658"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "afcdc902.93d708",\r
+        "type": "get-resource",\r
+        "name": "Check if running config exists",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"select count(1) as value from UPLOAD_CONFIG where VNF_ID = $input.action-identifiers.vnf-id and ( if ( $vnfc-type = '' , VNFC_TYPE is NULL OR VNFC_TYPE = '' , VNFC_TYPE = $vnfc-type ) ) and HOST_IP_ADDRESS = $host-ip-address and CONFIG_INDICATOR = 'Running' AND (pending_delete IS NULL OR pending_delete != 'Y') \" force='true' pfx='runningConfig.count'>\n<parameter name=\"nodeName\" value=\"getDBRunningConf\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 413.0000305175781,\r
+        "y": 551.2499923706055,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "5f02c1cf.37b4f",\r
+                "3a82553d.6d98ea",\r
+                "7b612e94.00088"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b890cd70.906b9",\r
+        "type": "save",\r
+        "name": "Insert configuration",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"INSERT INTO UPLOAD_CONFIG (REQUEST_ID,  ORIGINATOR_ID,  SERVICE_DESCRIPTION,   ACTION,  VNF_ID,  VNF_NAME, VM_NAME,  VNF_TYPE,  VNFC_TYPE,  HOST_IP_ADDRESS,  CONFIG_INDICATOR,  PENDING_DELETE,  CONTENT ) VALUES ( $input.common-header.request-id , $input.common-header.originator-id , $service-description , $input.action , $input.action-identifiers.vnf-id , $vnf-name , $vm-name , $vnf-type , $vnfc-type , $host-ip-address , 'Running' , NULL , $device-running-config ) \" force='true' >\n<parameter name=\"nodeName\" value=\"InsertConfiguration\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1171.75,\r
+        "y": 608,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "46c38e22.64329",\r
+                "473728a6.0b2d68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a92cddb8.c9d51",\r
+        "type": "save",\r
+        "name": "Update configuration",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"update UPLOAD_CONFIG set CONTENT = $device-running-config , REQUEST_ID = $input.common-header.request-id , ORIGINATOR_ID = $input.common-header.originator-id ,  SERVICE_DESCRIPTION = $service-description , ACTION = $input.action , UPLOAD_DATE = CURRENT_TIMESTAMP  where VNF_ID = $input.action-identifiers.vnf-id and ( if ( $vnfc-type = '' , VNFC_TYPE is NULL OR VNFC_TYPE = '' , VNFC_TYPE = $vnfc-type ) ) and HOST_IP_ADDRESS = $host-ip-address and CONFIG_INDICATOR = 'Running' AND (pending_delete IS NULL OR pending_delete != 'Y') \" force='true' pfx='update'>\n<parameter name=\"nodeName\" value=\"updateConfiguration\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1171.2499885559082,\r
+        "y": 704.7499923706055,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "8ecbeb04.4666d8",\r
+                "541750f1.605a4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b92bafaa.6f832",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$runningConfig.count.value`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 623.7499961853027,\r
+        "y": 603.0000019073486,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "35ce6e5b.761062",\r
+                "78f7b47a.d6ce1c",\r
+                "4ed41f3c.8441d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3e4780c.eefb78",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 137.50000381469727,\r
+        "y": 224.24999618530273,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "c7e15c3e.27cb3",\r
+                "5449a18d.439af"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "551adf9c.16e0f",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 450.24993896484375,\r
+        "y": 175.75,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "ab93e21b.a1f7e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "11955887.62d437",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 414.74993896484375,\r
+        "y": 488.49999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "afcdc902.93d708"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e9858666.192658",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 236.2498779296875,\r
+        "y": 342.24999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "90297c5e.6500e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7b612e94.00088",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 452.49993896484375,\r
+        "y": 653.4999923706055,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "b92bafaa.6f832"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "473728a6.0b2d68",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1381.75,\r
+        "y": 646,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "35aaded4.f11712",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 997.75,\r
+        "y": 620,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "b890cd70.906b9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "541750f1.605a4",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1386.5,\r
+        "y": 744.25,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8c3cc0da.7b207",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 999.25,\r
+        "y": 683.25,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "a92cddb8.c9d51"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "78f7b47a.d6ce1c",\r
+        "type": "success",\r
+        "name": "noRunningConfig",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 823.75,\r
+        "y": 618.75,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "35aaded4.f11712"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4ed41f3c.8441d",\r
+        "type": "failure",\r
+        "name": "runningConfigExists",\r
+        "xml": "<outcome value='1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 827.25,\r
+        "y": 683.75,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "8c3cc0da.7b207"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6c20bf89.5231d",\r
+        "type": "method",\r
+        "name": "GetRunningConfig",\r
+        "xml": "<method rpc='Generic_GetRunningConfig' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 128,\r
+        "y": 140.74999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "3e4780c.eefb78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "84baaf90.5a32d",\r
+        "type": "service-logic",\r
+        "name": "APPC 2.0.0",\r
+        "module": "APPC",\r
+        "version": "2.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='2.0.0'>",\r
+        "outputs": 1,\r
+        "x": 264.99999237060547,\r
+        "y": 55.9999942779541,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "6c20bf89.5231d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5449a18d.439af",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n",\r
+        "comments": "",\r
+        "x": 118.00003051757812,\r
+        "y": 430.24999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "60394b9e.416b44",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 97.4999885559082,\r
+        "y": 56.74999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "84baaf90.5a32d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b1e85b4d.4de818",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 813,\r
+        "y": 48.499996185302734,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "c6bbc167.8e6de",\r
+                "a535318d.76e89",\r
+                "743a8961.a83bb8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c6bbc167.8e6de",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value='Error while retrieving device credentials' />\n",\r
+        "comments": "",\r
+        "x": 1019.5,\r
+        "y": 34.74999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "fc731431.b82788",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 817.75,\r
+        "y": 114.99999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "5a58c62.8050138",\r
+                "a535318d.76e89",\r
+                "743a8961.a83bb8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5a58c62.8050138",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value=\"`'Device credentials not found for the ' + $vnf-type `\"/>\n",\r
+        "comments": "",\r
+        "x": 1021.5,\r
+        "y": 74.24999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ba6f005b.3e44e",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 812.5,\r
+        "y": 185,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "27e3ed66.16f0c2",\r
+                "743a8961.a83bb8",\r
+                "a535318d.76e89"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "372c3af9.966c56",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 816.5,\r
+        "y": 241.25,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "c98aab75.3231f8",\r
+                "743a8961.a83bb8",\r
+                "a535318d.76e89"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "27e3ed66.16f0c2",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value='Error while getting device interfacing DG details' />\n",\r
+        "comments": "",\r
+        "x": 1026.4999885559082,\r
+        "y": 121.75,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c98aab75.3231f8",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value=\"`'Device Interfacing DG mapping not found for the ' + $vnf-type `\" />\n",\r
+        "comments": "",\r
+        "x": 1024.25,\r
+        "y": 164.75,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "743a8961.a83bb8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",\r
+        "comments": "",\r
+        "x": 1052.25,\r
+        "y": 260,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "63daa94e.76aae8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 883.75,\r
+        "y": 313.74999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "6b1bdb26.cbe694",\r
+                "e53f7a1.c43ed88",\r
+                "ffb12b2e.32f4f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3ce56e6e.d0d1b2",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 897.75,\r
+        "y": 398.99999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "189f4de.d45a0b2",\r
+                "e53f7a1.c43ed88",\r
+                "ffb12b2e.32f4f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6b1bdb26.cbe694",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value=\"`$error-message`\"/>\n",\r
+        "comments": "",\r
+        "x": 1151.75,\r
+        "y": 305.24999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "189f4de.d45a0b2",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value='Device Interfacing DG not found' />\n",\r
+        "comments": "",\r
+        "x": 1153.75,\r
+        "y": 348.49999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "358af0c2.a30ea",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 914.25,\r
+        "y": 511.49999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "3871609f.8f563",\r
+                "ffb12b2e.32f4f8",\r
+                "e53f7a1.c43ed88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "60cd06a7.dbee98",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 913,\r
+        "y": 456.99999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "4f35fa3d.a4b784",\r
+                "ffb12b2e.32f4f8",\r
+                "e53f7a1.c43ed88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4f35fa3d.a4b784",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\"/>\n",\r
+        "comments": "",\r
+        "x": 1152.5,\r
+        "y": 392.99999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3871609f.8f563",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n",\r
+        "comments": "",\r
+        "x": 1152.75,\r
+        "y": 432.99999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ffb12b2e.32f4f8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",\r
+        "comments": "",\r
+        "x": 1160.25,\r
+        "y": 532.2499923706055,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7b36969f.21ea78",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1550.75,\r
+        "y": 565.5,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "d90b7545.846c58",\r
+                "b1eeb2dd.58bb4",\r
+                "8702f3c1.de0c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d90b7545.846c58",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value='More than one running configuration available for a VNFC' />\n",\r
+        "comments": "",\r
+        "x": 1758.5,\r
+        "y": 557,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b1eeb2dd.58bb4",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",\r
+        "comments": "",\r
+        "x": 1772.75,\r
+        "y": 782.75,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9806fd80.49448",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1542.25,\r
+        "y": 627.5,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "c10f41b7.4725d",\r
+                "b1eeb2dd.58bb4",\r
+                "8702f3c1.de0c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c10f41b7.4725d",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while updating the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n",\r
+        "comments": "",\r
+        "x": 1758.75,\r
+        "y": 612,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "13894430.36b39c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1537.75,\r
+        "y": 689,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "8a66df46.83bf",\r
+                "b1eeb2dd.58bb4",\r
+                "8702f3c1.de0c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8a66df46.83bf",\r
+        "type": "set",\r
+        "name": "Set error message",\r
+        "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while updating the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n",\r
+        "comments": "",\r
+        "x": 1764.5,\r
+        "y": 664,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a535318d.76e89",\r
+        "type": "record",\r
+        "name": "Log error",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1044,\r
+        "y": 216,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e53f7a1.c43ed88",\r
+        "type": "record",\r
+        "name": "Log error",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1160,\r
+        "y": 487.99999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8702f3c1.de0c",\r
+        "type": "record",\r
+        "name": "Log error",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1769,\r
+        "y": 720,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e5f7f554.e2b2d8",\r
+        "type": "set",\r
+        "name": "set DG parameters",\r
+        "xml": "<set>\n<parameter name='config.vnf-type' value=\"`$vnf-type`\" />\n<parameter name='config.vnf-name' value=\"`$vnf-name`\" />\n<parameter name='config.protocol' value=\"`$protocol`\" />\n<parameter name='config.host-ip-address' value=\"`$host-ip-address`\" />\n<parameter name='config.user-name' value=\"`$USER-NAME`\" />\n<parameter name='config.password' value=\"`$PASSWORD`\" />\n<parameter name='config.port-number' value=\"`$PORT-NUMBER`\" />",\r
+        "comments": "",\r
+        "x": 559,\r
+        "y": 318.74999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "90297c5e.6500e",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 369,\r
+        "y": 341.74999237060547,\r
+        "z": "a4e67f56.cb2c9",\r
+        "wires": [\r
+            [\r
+                "e5f7f554.e2b2d8",\r
+                "8215021c.22176"\r
+            ]\r
+        ]\r
+    }\r
+]\r