90b2e3ab079741d9ed246dec4b3cf3950406de74
[ccsdk/cds.git] /
1 {
2   "tosca_definitions_version" : "controller_blueprint_1_0_0",
3   "metadata" : {
4     "template_author" : "Rodrigo Ottero",
5     "author-email" : "rodrigo.ottero@est.tech",
6     "user-groups" : "ADMIN, OPERATION",
7     "template_name" : "configuration_over_restconf",
8     "template_version" : "1.0.0",
9     "template_tags" : "pnf, restconf, config, configuration"
10   },
11   "imports" : [ {
12     "file" : "Definitions/data_types.json"
13   }, {
14     "file" : "Definitions/relationship_types.json"
15   }, {
16     "file" : "Definitions/artifact_types.json"
17   }, {
18     "file" : "Definitions/node_types.json"
19   }, {
20     "file" : "Definitions/policy_types.json"
21   } ],
22   "topology_template" : {
23     "inputs" : {
24       "serviceInstanceId" : {
25         "required" : true,
26         "type" : "string"
27       },
28       "identifier" : {
29         "required" : true,
30         "type" : "string"
31       }
32     },
33     "workflows" : {
34       "config-assign" : {
35         "steps" : {
36           "activate-process" : {
37             "description" : "Create a configlet",
38             "target" : "config-assign-process",
39             "activities" : [ {
40               "call_operation" : ""
41             } ]
42           }
43         },
44         "inputs" : {
45           "config-assign-properties" : {
46             "description" : "Dynamic PropertyDefinition for workflow(config-assign).",
47             "required" : true,
48             "type" : "dt-config-assign-properties"
49           }
50         }
51       },
52       "configure" : {
53         "steps" : {
54           "activate-process" : {
55             "description" : "Send a configlet to the pnf",
56             "target" : "configure-process",
57             "activities" : [ {
58               "call_operation" : ""
59             } ]
60           }
61         },
62         "inputs" : {
63           "configure-properties" : {
64             "description" : "Dynamic PropertyDefinition for workflow(configure).",
65             "required" : true,
66             "type" : "dt-configure-properties"
67           }
68         }
69       }
70     },
71     "node_templates" : {
72       "config-assign-process" : {
73         "type" : "dg-generic",
74         "properties" : {
75           "content" : {
76             "get_artifact" : [ "SELF", "dg-config-assign-process" ]
77           },
78           "dependency-node-templates" : [ "config-assign" ]
79         },
80         "artifacts" : {
81           "dg-config-assign-process" : {
82             "type" : "artifact-directed-graph",
83             "file" : "Plans/CONFIG_configAssign.xml"
84           }
85         }
86       },
87
88
89       "config-assign" : {
90         "type" : "component-restconf-executor",
91         "interfaces" : {
92           "ComponentRestconfExecutor" : {
93             "operations" : {
94               "process" : {
95                 "implementation" : {
96                   "primary" : "component-script"
97                 },
98                 "inputs" : {
99                   "script-type" : "jython",
100                   "script-class-reference" : "Scripts/python/RestconfAssignConfig.py",
101                   "instance-dependencies" : [ ]
102                 },
103                 "outputs" : {
104                   "response-data" : "",
105                   "status" : ""
106                 }
107               }
108             }
109           }
110         },
111         "artifacts" : {
112           "config-assign-template" : {
113             "type" : "artifact-template-velocity",
114             "file" : "Templates/config-assign-restconf-configlet-template.vtl"
115           },
116           "config-assign-mapping" : {
117             "type" : "artifact-mapping-resource",
118             "file" : "Templates/config-assign-pnf-mapping.json"
119           },
120           "component-script" : {
121             "type" : "artifact-script-jython",
122             "file" : "Scripts/python/RestconfAssignConfig.py"
123           }
124         }
125       },
126
127
128
129       "configure-process" : {
130         "type" : "dg-generic",
131         "properties" : {
132           "content" : {
133             "get_artifact" : [ "SELF", "dg-configure-process" ]
134           },
135           "dependency-node-templates" : [ "configure" ]
136         },
137         "artifacts" : {
138           "dg-config-assign-process" : {
139             "type" : "artifact-directed-graph",
140             "file" : "Plans/CONFIG_configure.xml"
141           }
142         }
143       },
144       "configure" : {
145         "type" : "component-restconf-executor",
146         "interfaces" : {
147           "ComponentRestconfExecutor" : {
148             "operations" : {
149               "process" : {
150                 "implementation" : {
151                   "primary" : "component-script"
152                 },
153                 "inputs" : {
154                   "script-type" : "jython",
155                   "script-class-reference" : "Scripts/python/RestconfConfigure.py",
156                   "instance-dependencies" : [ ]
157                 },
158                 "outputs" : {
159                   "response-data" : "",
160                   "status" : ""
161                 }
162               }
163             }
164           }
165         },
166         "artifacts" : {
167           "configure-mount-template" : {
168             "type" : "artifact-template-velocity",
169             "file" : "Templates/configure-restconf-mount-template.vtl"
170           },
171           "configure-unmount-template" : {
172             "type" : "artifact-template-velocity",
173             "file" : "Templates/configure-restconf-unmount-template.vtl"
174           },
175           "configure-mapping" : {
176             "type" : "artifact-mapping-resource",
177             "file" : "Templates/configure-pnf-mapping.json"
178           },
179           "component-script" : {
180             "type" : "artifact-script-jython",
181             "file" : "Scripts/python/RestconfConfigure.py"
182           }
183         }
184       }
185     }
186   }
187 }