Controller Blueprints Nitrogen to Oxygen Migration
[ccsdk/features.git] / blueprints-processor / plugin / model-provider / src / test / resources / service_templates / vrr_config.json
1 {\r
2         "metadata": {\r
3                 "author": "ks220y@att.com",\r
4                 "service-template-name": "VRR-baseconfiguration",\r
5                 "service-template-version": "1.0.0",\r
6                 "release": "1802",\r
7                 "service-type": "AVPN",\r
8                 "vnf-type": "VRR"\r
9         },\r
10         "topology_template": {\r
11                 "inputs": {\r
12                         "request-id": {\r
13                                 "required": true,\r
14                                 "type": "string"\r
15                         },\r
16                         "service-instance-id": {\r
17                                 "required": true,\r
18                                 "type": "string"\r
19                         },\r
20                         "action-name": {\r
21                                 "required": true,\r
22                                 "type": "string"\r
23                         },\r
24                         "scope-type": {\r
25                                 "required": true,\r
26                                 "type": "string"\r
27                         },\r
28                         "hostname": {\r
29                                 "required": true,\r
30                                 "type": "string"\r
31                         }\r
32                 },\r
33                 "node_templates": {\r
34                         "base-config-template": {\r
35                                 "type": "artifact-config-template",\r
36                                 "properties": {\r
37                                         "action-names": [\r
38                                                 "resource-assignment-action"\r
39                                         ]\r
40                                 },\r
41                                 "capabilities": {\r
42                                         "content": {\r
43                                                 "properties": {\r
44                                                         "content": "db://base-config-template"\r
45                                                 }\r
46                                         },\r
47                                         "mapping": {\r
48                                                 "properties": {\r
49                                                         "mapping": [\r
50                                                                 {\r
51                                                                         "name": "vnf-id",\r
52                                                                         "input-param": true,\r
53                                                                         "property": {\r
54                                                                                 "type": "string",\r
55                                                                                 "required": true\r
56                                                                         },\r
57                                                                         "dictionary-name": "vnf-id",\r
58                                                                         "dictionary-source": "input"\r
59                                                                 },\r
60                                                                 {\r
61                                                                         "name": "group-name",\r
62                                                                         "input-param": true,\r
63                                                                         "property": {\r
64                                                                                 "type": "string",\r
65                                                                                 "required": true\r
66                                                                         },\r
67                                                                         "dictionary-name": "group-name",\r
68                                                                         "dictionary-source": "input"\r
69                                                                 }\r
70                                                         ]\r
71                                                 }\r
72                                         }\r
73                                 }\r
74                         },\r
75                         "resource-assignment-action": {\r
76                                 "type": "dg-resource-assignment",\r
77                                 "interfaces": {\r
78                                         "CONFIG": {\r
79                                                 "operations": {\r
80                                                         "ResourceAssignment": {\r
81                                                                 \r
82                                                         }\r
83                                                 }\r
84                                         }\r
85                                 },\r
86                                 "capabilities": {\r
87                                         "dg-node": {\r
88                                                 \r
89                                         }\r
90                                 },\r
91                                 "requirements": {\r
92                                         "component-dependency": {\r
93                                                 "capability": "component-node",\r
94                                                 "node": "resource-assignment",\r
95                                                 "relationship": "tosca.relationships.DependsOn"\r
96                                         }\r
97                                 }\r
98                         },\r
99                         "licence-template": {\r
100                                 "type": "artifact-config-template",\r
101                                 "properties": {\r
102                                         "action-names": [\r
103                                                 "resource-assignment-action"\r
104                                         ]\r
105                                 },\r
106                                 "capabilities": {\r
107                                         "content": {\r
108                                                 "properties": {\r
109                                                         "content": "db://licence-template"\r
110                                                 }\r
111                                         },\r
112                                         "mapping": {\r
113                                                 "properties": {\r
114                                                         "mapping": [\r
115                                                                 {\r
116                                                                         "name": "bundle-id",\r
117                                                                         "input-param": true,\r
118                                                                         "property": {\r
119                                                                                 "type": "string"\r
120                                                                         },\r
121                                                                         "dictionary-name": "bundle-id",\r
122                                                                         "dictionary-source": "input"\r
123                                                                 },\r
124                                                                 {\r
125                                                                         "name": "bundle-mac",\r
126                                                                         "input-param": true,\r
127                                                                         "property": {\r
128                                                                                 "type": "string",\r
129                                                                                 "required": true\r
130                                                                         },\r
131                                                                         "dictionary-name": "bundle-mac",\r
132                                                                         "dictionary-source": "input"\r
133                                                                 }\r
134                                                         ]\r
135                                                 }\r
136                                         }\r
137                                 }\r
138                         },\r
139                         "resource-assignment": {\r
140                                 "type": "component-resource-assignment",\r
141                                 "interfaces": {\r
142                                         "org-onap-ccsdk-features-assignment-service-ConfigAssignmentNode": {\r
143                                                 "operations": {\r
144                                                         "process": {\r
145                                                                 "inputs": {\r
146                                                                         "action-name": "{ \"get_input\" : \"action-name\" }",\r
147                                                                         "resource-type": "vnf-type",\r
148                                                                         "template-names": [\r
149                                                                                 "base-config-template",\r
150                                                                                 "licence-template"\r
151                                                                         ],\r
152                                                                         "request-id": "{ \"get_input\" : \"request-id\" }",\r
153                                                                         "resource-id": "{ \"get_input\" : \"vnf-id\" }"\r
154                                                                 },\r
155                                                                 "outputs": {\r
156                                                                         "resource-assignment-params": "",\r
157                                                                         "status": ""\r
158                                                                 }\r
159                                                         }\r
160                                                 }\r
161                                         }\r
162                                 },\r
163                                 "capabilities": {\r
164                                         "component-node": {\r
165                                                 \r
166                                         }\r
167                                 }\r
168                         }\r
169                 }\r
170         }\r
171 }