fixed sonar issue in AssignVlanTagResponse
[ccsdk/apps.git] / components / model-catalog / blueprint-model / starter-blueprint / baseconfiguration / Definitions / activation-blueprint.json
1 {
2   "metadata": {
3     "template_author": "Brinda Santh Muthuramalingam",
4     "author-email": "brindasanth@in.ibm.com",
5     "user-groups": "ADMIN, OPERATION",
6     "template_name": "baseconfiguration",
7     "template_version": "1.0.0",
8     "template_tags": "brinda, tosca"
9   },
10   "imports": [
11     {
12       "file": "Definitions/data_types.json"
13     },
14     {
15       "file": "Definitions/node_types.json"
16     },
17     {
18       "file": "Definitions/artifact_types.json"
19     }
20   ],
21   "topology_template": {
22     "inputs": {
23       "request-id": {
24         "required": true,
25         "type": "string"
26       },
27       "action-name": {
28         "required": true,
29         "type": "string"
30       },
31       "scope-type": {
32         "required": true,
33         "type": "string"
34       },
35       "hostname": {
36         "required": true,
37         "type": "string"
38       }
39     },
40     "node_templates": {
41       "activate-process": {
42         "type": "dg-activate",
43         "properties": {
44           "process-name": {
45             "get_input": "action-name"
46           },
47           "version": {
48             "get_property": [
49               "SELF",
50               "process-name"
51             ]
52           },
53           "content": {
54             "get_artifact": [
55               "SELF",
56               "dg-activate-process"
57             ]
58           }
59         },
60         "artifacts": {
61           "dg-activate-process": {
62             "type": "artifact-directed-graph",
63             "file": "Plans/CONFIG_ActivateNetconf_1.0.0.xml"
64           }
65         }
66       },
67       "resource-assignment": {
68         "type": "component-resource-assignment",
69         "properties": {
70           "request-id": "1234"
71         },
72         "interfaces": {
73           "ResourceAssignmentComponent": {
74             "operations": {
75               "process": {
76                 "inputs": {
77                   "action-name": {
78                     "get_input": "action-name"
79                   },
80                   "resource-type": "vnf-type",
81                   "request-id": {
82                     "get_input": "request-id"
83                   },
84                   "resource-id": {
85                     "get_input": "hostname"
86                   },
87                   "template-content": {
88                     "get_artifact": [
89                       "SELF",
90                       "baseconfig-template"
91                     ]
92                   },
93                   "mapping-content": {
94                     "get_artifact": [
95                       "SELF",
96                       "baseconfig-mapping"
97                     ]
98                   }
99                 },
100                 "outputs": {
101                   "resource-assignment-params": {
102                     "get_attribute": [
103                       "SELF",
104                       "assignment-params"
105                     ]
106                   },
107                   "status": "success"
108                 }
109               }
110             }
111           }
112         },
113         "artifacts": {
114           "baseconfig-template": {
115             "type": "artifact-template-velocity",
116             "file": "Templates/baseconfig-template.vtl"
117           },
118           "baseconfig-mapping": {
119             "type": "artifact-mapping-resource",
120             "file": "Definitions/baseconfig-mapping.json"
121           }
122         }
123       },
124       "resource-assignment-py": {
125         "type": "component-resource-assignment",
126         "properties": {
127           "request-id": "1234"
128         },
129         "interfaces": {
130           "ResourceAssignmentComponent": {
131             "operations": {
132               "process": {
133                 "implementation": {
134                   "primary": "component-script"
135                 },
136                 "inputs": {
137                   "action-name": {
138                     "get_input": "action-name"
139                   }
140                 },
141                 "outputs": {
142                   "resource-assignment-params": "",
143                   "status": ""
144                 }
145               }
146             }
147           }
148         },
149         "artifacts": {
150           "component-script": {
151             "type": "artifact-script-jython",
152             "file": "Scripts/SamplePythonComponentNode.py"
153           }
154         }
155       },
156       "activate-jython": {
157         "type": "component-jython-executor",
158         "interfaces": {
159           "JythonExecutorComponent": {
160             "operations": {
161               "process": {
162                 "implementation": {
163                   "primary": "component-script"
164                 },
165                 "outputs": {
166                   "response-data": "",
167                   "status": ""
168                 }
169               }
170             }
171           }
172         },
173         "artifacts": {
174           "component-script": {
175             "type": "artifact-script-jython",
176             "file": "Scripts/SamplePythonComponentNode.py"
177           }
178         }
179       }
180     },
181     "workflows": {
182       "resource-assignment": {
183         "inputs": {
184           "request-id": {
185             "required": true,
186             "type": "string"
187           },
188           "action-name": {
189             "required": true,
190             "type": "string"
191           },
192           "scope-type": {
193             "required": true,
194             "type": "string"
195           },
196           "hostname": {
197             "required": true,
198             "type": "string"
199           }
200         },
201         "steps": {
202           "call-resource-assignment": {
203             "description": "Resource Assignment Workflow",
204             "target": "resource-assignment",
205             "activities": [
206               {
207                 "call_operation": "ResourceAssignmentComponent.process"
208               }
209             ]
210           }
211         }
212       },
213       "activate": {
214         "inputs": {
215           "request-id": {
216             "required": true,
217             "type": "string"
218           },
219           "action-name": {
220             "required": true,
221             "type": "string"
222           },
223           "scope-type": {
224             "required": true,
225             "type": "string"
226           },
227           "hostname": {
228             "required": true,
229             "type": "string"
230           }
231         },
232         "steps": {
233           "activate-process": {
234             "description": "Netconf Activation Workflow",
235             "target": "activate-process",
236             "activities": [
237               {
238                 "call_operation": "ResourceAssignmentComponent.process"
239               }
240             ]
241           }
242         }
243       }
244     }
245   }
246 }