aboutsummaryrefslogtreecommitdiffstats
path: root/components/model-catalog/blueprint-model/archetype-blueprint/src/main/resources/archetype-resources/Definitions/test-kotlin.json
blob: 38b3e554f85c69f6c03b430253f208bb41aa308f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
  "metadata": {
    "template_author": "Selffish",
    "author-email": "test@bell.ca",
    "template_name": "RT-test-kotlin",
    "template_version": "1.0.0",
    "template_tags": "ONAP, CDS, CBA, test"
  },
  "topology_template": {
    "workflows": {
      "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-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"
              }
            }
          }
        }
      }
    }
  }
}