From d3cdace51db473c93540229da3a0fd061120957c Mon Sep 17 00:00:00 2001 From: SantoshB Date: Thu, 15 Oct 2020 14:57:57 +0530 Subject: cds-bash script package Issue-ID: CCSDK-2913 Change-Id: I2f97b0c78314019d5002e8563c4e433ae5e816b9 Signed-off-by: SantoshB Signed-off-by: mrichomme --- .../cba/netconf/Definitions/netconf.json | 137 +++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 cds-regression-test/cba/netconf/Definitions/netconf.json (limited to 'cds-regression-test/cba/netconf/Definitions/netconf.json') diff --git a/cds-regression-test/cba/netconf/Definitions/netconf.json b/cds-regression-test/cba/netconf/Definitions/netconf.json new file mode 100644 index 0000000..74a98c1 --- /dev/null +++ b/cds-regression-test/cba/netconf/Definitions/netconf.json @@ -0,0 +1,137 @@ +{ + "metadata": { + "template_author": "Selffish", + "author-email": "test@bell.ca", + "template_name": "RT-netconf", + "template_version": "1.0.0", + "template_tags": "Bell, CBA, test" + }, + "topology_template": { + "workflows": { + "netconf-jython": { + "steps": { + "netconf-jython": { + "description": "deploy config", + "target": "execute-jython-netconf" + } + }, + "inputs": { + "netconf-host": { + "required": true, + "type": "string" + }, + "netconf-timeout": { + "required": true, + "type": "string" + } + }, + "outputs": { + "response-data": { + "type": "string", + "value": { + "get_attribute": [ + "execute-jython-netconf", + "response-data" + ] + } + } + } + }, + "netconf-kotlin": { + "steps": { + "netconf-kotlin": { + "description": "deploy config", + "target": "execute-kotlin-netconf" + } + }, + "inputs": { + "netconf-host": { + "required": true, + "type": "string" + }, + "netconf-timeout": { + "required": true, + "type": "string" + } + }, + "outputs": { + "response-data": { + "type": "string", + "value": { + "get_attribute": [ + "execute-kotlin-netconf", + "response-data" + ] + } + } + } + } + }, + "node_templates": { + "execute-jython-netconf": { + "type": "component-netconf-executor", + "requirements": { + "netconf-connection": { + "capability": "netconf", + "node": "netconf-device", + "relationship": "tosca.relationships.ConnectsTo" + } + }, + "interfaces": { + "ComponentNetconfExecutor": { + "operations": { + "process": { + "inputs": { + "script-type": "jython", + "script-class-reference": "Scripts/python/NetconfTest.py", + "instance-dependencies": [] + } + } + } + } + } + }, + "execute-kotlin-netconf": { + "type": "component-netconf-executor", + "requirements": { + "netconf-connection": { + "capability": "netconf", + "node": "netconf-device", + "relationship": "tosca.relationships.ConnectsTo" + } + }, + "interfaces": { + "ComponentNetconfExecutor": { + "operations": { + "process": { + "inputs": { + "script-type": "kotlin", + "script-class-reference": "org.onap.ccsdk.cds.blueprintsprocessor.functions.netconf.executor.ConfigDeploy", + "instance-dependencies": [] + } + } + } + } + } + }, + "netconf-device": { + "type": "vnf-netconf-device", + "capabilities": { + "netconf": { + "properties": { + "login-key": "password", + "login-account": "admin", + "target-ip-address": { + "get_input": "netconf-host" + }, + "port-number": 17830, + "connection-time-out": { + "get_input": "netconf-timeout" + } + } + } + } + } + } + } +} -- cgit 1.2.3-korg