76d8e74cd71d90fa2a7177fc4df8a7ed6b973313
[doc.git] / docs / guides / onap-user / design / parameter_resolution / freeradius_example / before_enrichment / CBA_freeradius / Definitions / freeradius.json
1 {
2         "tosca_definitions_version": "controller_blueprint_1_0_0",
3         "metadata": {
4                 "template_author": "Abdelmuhaimen Seaudi",
5                 "author-email": "abdelmuhaimen.seaudi@orange.com",
6                 "user-groups": "ADMIN, OPERATION",
7                 "template_name": "freeradius",
8                 "template_version": "1.0.0",
9                 "template_tags": "test, freeradius, freeradius_cds"
10         },
11         "imports": [{
12                 "file": "Definitions/data_types.json"
13         },
14         {
15                 "file": "Definitions/relationship_types.json"
16         },
17         {
18                 "file": "Definitions/artifact_types.json"
19         },
20         {
21                 "file": "Definitions/node_types.json"
22         },
23         {
24                 "file": "Definitions/policy_types.json"
25         }],
26         "dsl_definitions": {
27                 "ipam-1": {
28                         "type": "token-auth",
29                         "url": "http://netbox-nginx:8080",
30                         "token": "Token 0123456789abcdef0123456789abcdef01234567"
31                 },
32                 "config-deploy-properties": {
33                         "resolution-key": {
34                                 "get_input": "resolution-key"
35                         },
36                         "freeradius_ip": {
37                                 "get_input": "freeradius_ip"
38                         }                       
39                 },
40                 "dynamic-db-source": {
41                         "type": "maria-db",
42                         "url": "jdbc:mysql://mariadb-galera:3306/sdnctl",
43                         "username": "root",
44                         "password": "secretpassword"
45                 }
46         },
47         "topology_template": {
48                 "workflows": {
49                         "resource-assignment": {
50                                 "steps": {
51                                         "resource-assignment": {
52                                                 "description": "Resource Assign Workflow",
53                                                 "target": "resource-assignment"
54                                         }
55                                 },
56                                 "inputs": {
57                                         "template-prefix": {
58                                                 "required": true,
59                                                 "type": "list",
60                                                 "entry_schema": {
61                                                         "type": "string"
62                                                 }
63                                         },
64                                         "resource-assignment-properties": {
65                                                 "description": "Dynamic PropertyDefinition for workflow(resource-assignment).",
66                                                 "required": true,
67                                                 "type": "dt-resource-assignment-properties"
68                                         }
69                                 },
70                                 "outputs": {
71                                         "meshed-template": {
72                                                 "type": "json",
73                                                 "value": {
74                                                         "get_attribute": ["resource-assignment",
75                                                         "assignment-params"]
76                                                 }
77                                         }
78                                 }
79                         },
80                         "config-assign": {
81                                 "steps": {
82                                         "config-assign": {
83                                                 "description": "Config Assign Workflow",
84                                                 "target": "config-assign",
85                                                 "activities": [{
86                                                         "call_operation": ""
87                                                 }]
88                                         }
89                                 },
90                                 "inputs": {
91                                         "resolution-key": {
92                                                 "required": true,
93                                                 "type": "string"
94                                         },
95                                         "config-assign-properties": {
96                                                 "description": "Dynamic PropertyDefinition for workflow(config-assign).",
97                                                 "required": true,
98                                                 "type": "dt-config-assign-properties"
99                                         }
100                                 },
101                                 "outputs": {
102                                         "dry-run": {
103                                                 "type": "json",
104                                                 "value": {
105                                                         "get_attribute": ["config-assign",
106                                                         "assignment-params"]
107                                                 }
108                                         }
109                                 }
110                         },
111                         "config-deploy": {
112                                 "steps": {
113                                         "config-deploy": {
114                                                 "description": "Resource Assign and Python Netconf Activation Workflow",
115                                                 "target": "config-deploy-process",
116                                                 "activities": [{
117                                                         "call_operation": "ComponentScriptExecutor.process"
118                                                 }]
119                                         }
120                                 },
121                                 "inputs": {
122                                         "resolution-key": {
123                                                 "required": false,
124                                                 "type": "string"
125                                         },
126                                         "service-instance-id": {
127                                                 "required": false,
128                                                 "type": "string"
129                                         },
130                                         "freeradius_ip": {
131                                                 "required": false,
132                                                 "type": "string"
133                                         },                                      
134                                         "config-deploy-properties": {
135                                                 "description": "Dynamic PropertyDefinition for workflow(config-deploy).",
136                                                 "required": true,
137                                                 "type": "dt-config-deploy-properties"
138                                         }
139                                 }
140                         }
141                 },
142                 "node_templates": {
143                         "resource-assignment": {
144                                 "type": "component-resource-resolution",
145                                 "interfaces": {
146                                         "ResourceResolutionComponent": {
147                                                 "operations": {
148                                                         "process": {
149                                                                 "inputs": {
150                                                                         "artifact-prefix-names": {
151                                                                                 "get_input": "template-prefix"
152                                                                         }
153                                                                 }
154                                                         }
155                                                 }
156                                         }
157                                 },
158                                 "artifacts": {
159                                         "vnf-template": {
160                                                 "type": "artifact-template-velocity",
161                                                 "file": "Templates/vnf-template.vtl"
162                                         },
163                                         "vnf-mapping": {
164                                                 "type": "artifact-mapping-resource",
165                                                 "file": "Templates/vnf-mapping.json"
166                                         },
167                                         "radius-template": {
168                                                 "type": "artifact-template-velocity",
169                                                 "file": "Templates/radius-template.vtl"
170                                         },
171                                         "radius-mapping": {
172                                                 "type": "artifact-mapping-resource",
173                                                 "file": "Templates/radius-mapping.json"
174                                         }
175                                 }
176                         },
177                         "config-assign": {
178                                 "type": "component-resource-resolution",
179                                 "interfaces": {
180                                         "ResourceResolutionComponent": {
181                                                 "operations": {
182                                                         "process": {
183                                                                 "inputs": {
184                                                                         "resolution-key": {
185                                                                                 "get_input": "resolution-key"
186                                                                         },
187                                                                         "store-result": true,
188                                                                         "artifact-prefix-names": ["userconfig"]
189                                                                 }
190                                                         }
191                                                 }
192                                         }
193                                 },
194                                 "artifacts": {
195                                         "userconfig-template": {
196                                                 "type": "artifact-template-velocity",
197                                                 "file": "Templates/userconfig-template.vtl"
198                                         },
199                                         "userconfig-mapping": {
200                                                 "type": "artifact-mapping-resource",
201                                                 "file": "Templates/userconfig-mapping.json"
202                                         }
203                                 }
204                         },
205                         "config-deploy-process": {
206                                 "type": "component-script-executor",
207                                 "interfaces": {
208                                         "ComponentScriptExecutor": {
209                                                 "operations": {
210                                                         "process": {
211                                                                 "inputs": {
212                                                                         "script-type": "kotlin",
213                                                                         "script-class-reference": "org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.SampleScriptComponent",
214                                                                         "instance-dependencies": [],
215                                                                         "dynamic-properties": "*config-deploy-properties"
216                                                                 }
217                                                         }
218                                                 }
219                                         }
220                                 }
221                         }
222                 }
223         }
224 }