summaryrefslogtreecommitdiffstats
path: root/cds-regression-test/cba/cba/netconf/Definitions/netconf.json
blob: 74a98c1d1edfc6b18dd3421e145233db2a246d54 (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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
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"
              }
            }
          }
        }
      }
    }
  }
}