Platform Hardening for DG Json files - Part 7
[appc.git] / appc-directed-graph / appc-dgraph / provider / src / main / resources / json / APPC / APPC_DownloadCliConfig.json
index be68a52..bd1ff69 100644 (file)
@@ -1 +1,311 @@
-[{"id":"cc3f1f05.590e2","type":"dgstart","name":"DGSTART","outputs":1,"x":262,"y":117,"z":"8f971cf0.9ab5c","wires":[["9c5ed558.935128"]]},{"id":"9c5ed558.935128","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":475,"y":114,"z":"8f971cf0.9ab5c","wires":[["3cae3899.2ea4d8"]]},{"id":"3cae3899.2ea4d8","type":"method","name":"method DownloadCLIConfig","xml":"<method rpc='DownloadCliConfig' mode='sync'>\n","comments":"","outputs":1,"x":703,"y":114,"z":"8f971cf0.9ab5c","wires":[["b932981.f2fe068"]]},{"id":"838fcb2d.61bce8","type":"execute","name":"execute : Download Configuration","xml":"<configure adaptor='org.onap.appc.ccadaptor.ConfigComponentAdaptor' key='DownloadCliConfig'>\n<parameter name=\"Download_config_template\" value=\"`$download-config-template.TEMPLATE`\"/>\n<parameter name=\"Config_contents\" value=\"`$device-config`\"/>\n<parameter name=\"Host_ip_address\" value=\"`$host-ip-address`\" />\n<parameter name=\"User_name\" value=\"`$device-login`\" />\n<parameter name=\"Password\" value=\"`$device-password`\" />\n<parameter name=\"Port_number\" value=\"`$port-number`\" />\n\n\n","comments":"","outputs":1,"x":411,"y":456,"z":"8f971cf0.9ab5c","wires":[["d050e0d2.b2267","84bb3919.ad5688","4cbf4207.52ffdc"]]},{"id":"d050e0d2.b2267","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":697,"y":611,"z":"8f971cf0.9ab5c","wires":[["2181b8c9.4f5038"]]},{"id":"b932981.f2fe068","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":178,"y":270,"z":"8f971cf0.9ab5c","wires":[["1ec47089.0e6d1f"]]},{"id":"2181b8c9.4f5038","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<!-- Dont over write error code and message -->\n","comments":"","x":905,"y":610,"z":"8f971cf0.9ab5c","wires":[]},{"id":"84bb3919.ad5688","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":791,"y":406,"z":"8f971cf0.9ab5c","wires":[["d912ec9e.456d4"]]},{"id":"4cbf4207.52ffdc","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":776,"y":513,"z":"8f971cf0.9ab5c","wires":[["d29269ef.626db8"]]},{"id":"d29269ef.626db8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":957,"y":471,"z":"8f971cf0.9ab5c","wires":[["cae99c12.7fa8f"]]},{"id":"d912ec9e.456d4","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":949,"y":402,"z":"8f971cf0.9ab5c","wires":[["8c7e5c1f.d6d09"]]},{"id":"8c7e5c1f.d6d09","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\" />\n","comments":"","x":1108,"y":402,"z":"8f971cf0.9ab5c","wires":[]},{"id":"cae99c12.7fa8f","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Unable to Download CLI Config to Device\" />\n<parameter name=\"error-code\" value=\"401\" />\n","comments":"","x":1116,"y":471,"z":"8f971cf0.9ab5c","wires":[]},{"id":"af8106d6.2c54e8","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Unable to get download config template\" />\n<parameter name=\"error-code\" value=\"401\" />\n","comments":"","x":1225,"y":277,"z":"8f971cf0.9ab5c","wires":[]},{"id":"1ec47089.0e6d1f","type":"get-resource","name":"get-resource DOWNLOAD_CONFIG_TEMPLATE","xml":"<get-resource\n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"SELECT TEMPLATE FROM DOWNLOAD_CONFIG_TEMPLATE WHERE vnf_type = $vnf-type ;\"\n    force='true'\n\tpfx='download-config-template'>\n","comments":"","outputs":1,"x":485,"y":267,"z":"8f971cf0.9ab5c","wires":[["fe1132ad.5731b","9280f34d.3465f","54bd663f.2cab28"]]},{"id":"9280f34d.3465f","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":831,"y":254,"z":"8f971cf0.9ab5c","wires":[["75516ff4.5cb1"]]},{"id":"fe1132ad.5731b","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":833,"y":323,"z":"8f971cf0.9ab5c","wires":[["75516ff4.5cb1"]]},{"id":"75516ff4.5cb1","type":"block","name":"block","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1027,"y":278,"z":"8f971cf0.9ab5c","wires":[["af8106d6.2c54e8"]]},{"id":"54bd663f.2cab28","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":422,"y":350,"z":"8f971cf0.9ab5c","wires":[["46aaf503.56738c"]]},{"id":"46aaf503.56738c","type":"block","name":"block","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":615,"y":349,"z":"8f971cf0.9ab5c","wires":[["838fcb2d.61bce8"]]}]
+[\r
+    {\r
+        "id": "cc3f1f05.590e2",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 262,\r
+        "y": 117,\r
+        "z": "8f971cf0.9ab5c",\r
+        "wires": [\r
+            [\r
+                "9c5ed558.935128"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9c5ed558.935128",\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": 475,\r
+        "y": 114,\r
+        "z": "8f971cf0.9ab5c",\r
+        "wires": [\r
+            [\r
+                "3cae3899.2ea4d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3cae3899.2ea4d8",\r
+        "type": "method",\r
+        "name": "method DownloadCLIConfig",\r
+        "xml": "<method rpc='DownloadCliConfig' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 703,\r
+        "y": 114,\r
+        "z": "8f971cf0.9ab5c",\r
+        "wires": [\r
+            [\r
+                "b932981.f2fe068"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "838fcb2d.61bce8",\r
+        "type": "execute",\r
+        "name": "execute : Download Configuration",\r
+        "xml": "<configure adaptor='org.onap.appc.ccadaptor.ConfigComponentAdaptor' key='DownloadCliConfig'>\n<parameter name=\"Download_config_template\" value=\"`$download-config-template.TEMPLATE`\"/>\n<parameter name=\"Config_contents\" value=\"`$device-config`\"/>\n<parameter name=\"Host_ip_address\" value=\"`$host-ip-address`\" />\n<parameter name=\"User_name\" value=\"`$device-login`\" />\n<parameter name=\"Password\" value=\"`$device-password`\" />\n<parameter name=\"Port_number\" value=\"`$port-number`\" />\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 411,\r
+        "y": 456,\r
+        "z": "8f971cf0.9ab5c",\r
+        "wires": [\r
+            [\r
+                "d050e0d2.b2267",\r
+                "84bb3919.ad5688",\r
+                "4cbf4207.52ffdc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d050e0d2.b2267",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 697,\r
+        "y": 611,\r
+        "z": "8f971cf0.9ab5c",\r
+        "wires": [\r
+            [\r
+                "2181b8c9.4f5038"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b932981.f2fe068",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 178,\r
+        "y": 270,\r
+        "z": "8f971cf0.9ab5c",\r
+        "wires": [\r
+            [\r
+                "1ec47089.0e6d1f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2181b8c9.4f5038",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n<!-- Dont over write error code and message -->\n",\r
+        "comments": "",\r
+        "x": 905,\r
+        "y": 610,\r
+        "z": "8f971cf0.9ab5c",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "84bb3919.ad5688",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 791,\r
+        "y": 406,\r
+        "z": "8f971cf0.9ab5c",\r
+        "wires": [\r
+            [\r
+                "d912ec9e.456d4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4cbf4207.52ffdc",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 776,\r
+        "y": 513,\r
+        "z": "8f971cf0.9ab5c",\r
+        "wires": [\r
+            [\r
+                "d29269ef.626db8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d29269ef.626db8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 957,\r
+        "y": 471,\r
+        "z": "8f971cf0.9ab5c",\r
+        "wires": [\r
+            [\r
+                "cae99c12.7fa8f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d912ec9e.456d4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 949,\r
+        "y": 402,\r
+        "z": "8f971cf0.9ab5c",\r
+        "wires": [\r
+            [\r
+                "8c7e5c1f.d6d09"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8c7e5c1f.d6d09",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\" />\n",\r
+        "comments": "",\r
+        "x": 1108,\r
+        "y": 402,\r
+        "z": "8f971cf0.9ab5c",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cae99c12.7fa8f",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Unable to Download CLI Config to Device\" />\n<parameter name=\"error-code\" value=\"401\" />\n",\r
+        "comments": "",\r
+        "x": 1116,\r
+        "y": 471,\r
+        "z": "8f971cf0.9ab5c",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "af8106d6.2c54e8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Unable to get download config template\" />\n<parameter name=\"error-code\" value=\"401\" />\n",\r
+        "comments": "",\r
+        "x": 1225,\r
+        "y": 277,\r
+        "z": "8f971cf0.9ab5c",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1ec47089.0e6d1f",\r
+        "type": "get-resource",\r
+        "name": "get-resource DOWNLOAD_CONFIG_TEMPLATE",\r
+        "xml": "<get-resource\n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"SELECT TEMPLATE FROM DOWNLOAD_CONFIG_TEMPLATE WHERE vnf_type = $vnf-type ;\"\n    force='true'\n\tpfx='download-config-template'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 485,\r
+        "y": 267,\r
+        "z": "8f971cf0.9ab5c",\r
+        "wires": [\r
+            [\r
+                "fe1132ad.5731b",\r
+                "9280f34d.3465f",\r
+                "54bd663f.2cab28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9280f34d.3465f",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 831,\r
+        "y": 254,\r
+        "z": "8f971cf0.9ab5c",\r
+        "wires": [\r
+            [\r
+                "75516ff4.5cb1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fe1132ad.5731b",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 833,\r
+        "y": 323,\r
+        "z": "8f971cf0.9ab5c",\r
+        "wires": [\r
+            [\r
+                "75516ff4.5cb1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "75516ff4.5cb1",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1027,\r
+        "y": 278,\r
+        "z": "8f971cf0.9ab5c",\r
+        "wires": [\r
+            [\r
+                "af8106d6.2c54e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "54bd663f.2cab28",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 422,\r
+        "y": 350,\r
+        "z": "8f971cf0.9ab5c",\r
+        "wires": [\r
+            [\r
+                "46aaf503.56738c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "46aaf503.56738c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 615,\r
+        "y": 349,\r
+        "z": "8f971cf0.9ab5c",\r
+        "wires": [\r
+            [\r
+                "838fcb2d.61bce8"\r
+            ]\r
+        ]\r
+    }\r
+]\r