Removing unused DG files for appc
[appc/deployment.git] / platform-logic / appc / src / main / json / dg-loader-dgs / Dispatcher-DG / APPC_2.0.0_method_Generic_GetRunningConfig.json
diff --git a/platform-logic/appc/src/main/json/dg-loader-dgs/Dispatcher-DG/APPC_2.0.0_method_Generic_GetRunningConfig.json b/platform-logic/appc/src/main/json/dg-loader-dgs/Dispatcher-DG/APPC_2.0.0_method_Generic_GetRunningConfig.json
deleted file mode 100644 (file)
index 7237ad6..0000000
+++ /dev/null
@@ -1 +0,0 @@
-[{"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"]]}]