summaryrefslogtreecommitdiffstats
path: root/cba/netconf/Definitions
diff options
context:
space:
mode:
Diffstat (limited to 'cba/netconf/Definitions')
-rw-r--r--cba/netconf/Definitions/netconf.json137
1 files changed, 137 insertions, 0 deletions
diff --git a/cba/netconf/Definitions/netconf.json b/cba/netconf/Definitions/netconf.json
new file mode 100644
index 0000000..74a98c1
--- /dev/null
+++ b/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"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}