aboutsummaryrefslogtreecommitdiffstats
path: root/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadCliConfig.json
blob: 16475af1d362938856e0e73aae6acfa8dde27131 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*-
 * ============LICENSE_START=======================================================
 * ONAP : APP-C
 * ================================================================================
 * Copyright (C) 2017 AT&T Intellectual Property.  All rights reserved.
 * ================================================================================
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ============LICENSE_END=========================================================
 */

[{"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.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.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.openecomp.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.openecomp.sdnc.sli.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"]]}]