2 lines 74-78 and 157-161: if I have to resolve the variables I need based on
3 the pnf id, do I need to specify a restconf-connection? Another point, the
4 connection is aimed to ODL, not to the PNF, so I am not sure what to fill
5 for this model (lines 122-137)
8 "tosca_definitions_version" : "controller_blueprint_1_0_0",
10 "template_author" : "Rodrigo Ottero",
11 "author-email" : "rodrigo.ottero@est.tech",
12 "user-groups" : "ADMIN, OPERATION",
13 "template_name" : "pnf restconf",
14 "template_version" : "1.0.0",
15 "template_tags" : "pnf, restconf, config, configuration"
18 "file" : "Definitions/data_types.json"
20 "file" : "Definitions/relationship_types.json"
22 "file" : "Definitions/artifact_types.json"
24 "file" : "Definitions/node_types.json"
26 "file" : "Definitions/policy_types.json"
28 "topology_template" : {
30 "serviceInstanceId" : {
42 "activate-process" : {
43 "description" : "Create a configlet",
44 "target" : "config-assign-process",
51 "config-assign-properties" : {
52 "description" : "Dynamic PropertyDefinition for workflow(config-assign).",
54 "type" : "dt-config-assign-properties"
60 "activate-process" : {
61 "description" : "Send a configlet to the pnf",
62 "target" : "configure-process",
69 "configure-properties" : {
70 "description" : "Dynamic PropertyDefinition for workflow(configure).",
72 "type" : "dt-configure-properties"
78 "config-assign-process" : {
79 "type" : "dg-generic",
82 "get_artifact" : [ "SELF", "dg-config-assign-process" ]
84 "dependency-node-templates" : [ "config-assign" ]
87 "dg-config-assign-process" : {
88 "type" : "artifact-directed-graph",
89 "file" : "Plans/CONFIG_configAssign.xml"
94 "type" : "component-restconf-executor",
96 "restconf-connection" : {
97 "capability" : "restconf",
98 "node" : "sample-restconf-server",
99 "relationship" : "tosca.relationships.ConnectsTo"
103 "ComponentRestconfExecutor" : {
107 "primary" : "component-script"
110 "script-type" : "kotlin",
111 "script-class-reference" : "Scripts/kotlin/RestconfAssignConfig.kts",
112 "instance-dependencies" : [ ],
113 "artifact-prefix-names": [
118 "response-data" : "",
126 "config-assign-template" : {
127 "type" : "artifact-template-velocity",
128 "file" : "Templates/config-assign-restconf-configlet-template.vtl"
130 "config-assign-mapping" : {
131 "type" : "artifact-mapping-resource",
132 "file" : "Templates/config-assign-pnf-mapping.json"
134 "component-script" : {
135 "type" : "artifact-script-kotlin",
136 "file" : "Scripts/kotlin/RestconfAssignConfig.py"
140 "configure-process" : {
141 "type" : "dg-generic",
144 "get_artifact" : [ "SELF", "dg-configure-process" ]
146 "dependency-node-templates" : [ "configure" ]
149 "dg-config-assign-process" : {
150 "type" : "artifact-directed-graph",
151 "file" : "Plans/CONFIG_configure.xml"
156 "type" : "component-restconf-executor",
158 "restconf-connection" : {
159 "capability" : "restconf",
160 "node" : "sample-restconf-server",
161 "relationship" : "tosca.relationships.ConnectsTo"
165 "ComponentRestconfExecutor" : {
169 "primary" : "component-script"
172 "script-type" : "kotlin",
173 "script-class-reference" : "Scripts/kotlin/RestconfConfigure.kts",
174 "instance-dependencies" : [ ],
175 "artifact-prefix-names": [
176 "configure-restconf-mount", "configure-restconf-unmount"
180 "response-data" : "",
188 "configure-mount-template" : {
189 "type" : "artifact-template-velocity",
190 "file" : "Templates/configure-restconf-mount-template.vtl"
192 "configure-unmount-template" : {
193 "type" : "artifact-template-velocity",
194 "file" : "Templates/configure-restconf-unmount-template.vtl"
196 "configure-mapping" : {
197 "type" : "artifact-mapping-resource",
198 "file" : "Templates/configure-pnf-mapping.json"
200 "component-script" : {
201 "type" : "artifact-script-kotlin",
202 "file" : "Scripts/kotlin/RestconfConfigure.py"
206 "sample-restconf-device" : {
207 "type" : "pnf-netconf-device",
212 "get_input" : "password"
215 "get_input" : "username"
217 "target-ip-address" : {
221 "connection-time-out" : 5