282750351c747f2fb919204539eac58587194d98
[sdc.git] / common / openecomp-sdc-artifact-generator-lib / openecomp-sdc-artifact-generator-core / src / test / resources / testAllotedResourceWithDependingSerWithGroups / resource-AllottedResource-template_IpMux_WithGroups.yml
1 #_______________________________________________________________________________________________________________________________________
2  #|                                                                         AT&T Proprietary (Restricted)                                                                                |
3  #|                                     Only for use by authorized individuals or any above-designated team(s)                            |
4  #|                                          within the AT&T companies and not for general distribution                                                          |
5  #|_______________________________________________________________________________________________________________________________________|
6 tosca_definitions_version: tosca_simple_yaml_1_0
7 metadata:
8   invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5
9   UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d
10   name: Allotted Resource
11   description: This is a VF - Allotted resource
12   type: VF
13   category: Allotted Resource
14   subcategory: IP Mux Demux
15   resourceVendor: '1'
16   resourceVendorRelease: '1'
17 imports:
18 - Alloted resource:
19     file: resource-AllotedResource-template.yml
20 topology_template:
21   groups:
22     vfmoduleVmmeModule-1:
23       members:
24         - FSB1
25         - FSB2
26         - NCB1
27         - NCB2
28         - VLC1
29         - VLC2
30         - GPB1
31         - GPB2
32         - Internal1_net
33         - Internal2_net
34         - fsb1_oam
35         - fsb1_internal1
36         - fsb1_internal2
37         - fsb2_oam
38         - fsb2_internal2
39         - ncb1_internal1
40         - ncb1_internal2
41         - ncb2_internal1
42         - ncb2_internal2
43         - gpb1_internal1
44         - gpb1_internal2
45         - gpb2_internal1
46         - gpb2_internal2
47         - vlc1_oam
48         - vlc1_internal1
49         - vlc1_internal2
50         - vlc1_sctp_a
51         - vlc1_sctp_b
52         - vlc1_gtp
53         - vlc2_oam
54         - vlc2_internal1
55         - vlc2_internal2
56         - vlc2_sctp_a
57         - vlc2_sctp_b
58         - vlc1_gtp
59       metadata:
60         vfModuleModelInvariantUUID: adf1a10a-f788-492f-9ea7-7ff91dd55f8c
61         vfModuleModelName: "vMME::module-1"
62         vfModuleModelUUID: x020ed1e-4bc7-4fc0-ba7e-cc7af6da7ffc
63         vfModuleModelVersion: 1
64       properties:
65         artifacts:
66           - /Artifacts/vmme_small_create_fsb.yml
67           - /Artifacts/vmme_small.yml
68         availability_zone_count: 2
69         contrail_service_instance: true
70         vf_module_description: "vMME expansion VF Module"
71         vf_module_label: "vMME Expansion VF Module"
72         vf_module_type: Expansion
73         volume_group: false
74       type: org.openecomp.groups.VfModule
75   node_templates:
76     allotedresource1:
77       type: org.openecomp.resource.vfc.AllottedResource
78       metadata:
79         invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439
80         UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa
81         customizationUUID: 1c217567-5093-41f5-86e6-22c97ef24e75
82         version: '1.0'
83         name: Alloted resource
84         description: This is a VFC- Allotted resource
85         type: VFC
86         category: Allotted Resource
87         subcategory: Allotted Resource
88       properties:
89         role: name
90         ecomp_naming:
91           naming_policy: test
92           ecomp_generated_naming: false
93           supplemental_data:
94             Key1: key1
95         providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c
96         min_instances: 1
97         max_instances: 1
98         providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa
99         providing_service_name: vVIGaaS
100         ecomp_homing:
101           instance_node_target: Test
102           homing_policy: Test
103           supplemental_data:
104             Key: key
105           ecomp_selected_instance_node_target: false
106     FSB1:
107       capabilities:
108         monitoring_capabilty:
109           properties:
110             name: high_cpu
111         nfv_compute:
112           properties:
113             vfc_flavor:
114               get_input: fsb1_vfc_flavor
115         scaling_capability:
116           properties:
117             init_instances: 1
118             max_instances: 1
119             min_instances: 1
120       metadata:
121         category: Generic
122         description: "VFC based on OpenStack Nova Server"
123         invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2
124         name: "Nova Server"
125         subcategory: Infrastructure
126         type: VFC
127         UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0
128         resourceVendor: Ericsson
129         version: 1.0
130       properties:
131         vfc_description: FSB1
132         vfc_ecomp_name: false
133         vfc_image_name:
134           get_input: fsb1_vfc_image_name
135         vfc_instance_name:
136           get_input: fsb1_vfc_instance_name
137         vfc_type_tag:
138           get_input: fsb1_vfc_type_tag
139       requirements:
140         -
141           binding:
142             capability: tosca.capabilities.network.Bindable
143             node: fsb1_oam
144             relationship: tosca.relationships.network.BindsTo
145         -
146           binding:
147             capability: tosca.capabilities.network.Bindable
148             node: fsb1_internal1
149             relationship: tosca.relationships.network.BindsTo
150         -
151           binding:
152             capability: tosca.capabilities.network.Bindable
153             node: fsb1_internal2
154             relationship: tosca.relationships.network.BindsTo
155       type: org.openecomp.resource.vfc.nodes.heat.nova.Server
156     FSB2:
157       capabilities:
158         monitoring_capability:
159           properties:
160             name: cpu_load
161         nfv_compute:
162           properties:
163             vfc_flavor:
164               get_input: fsb2_vfc_flavor
165         scaling_capability:
166           properties:
167             init_instances: 1
168             max_instances: 1
169             min_instances: 1
170       metadata:
171         category: Generic
172         description: "VFC based on OpenStack Nova Server"
173         invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2
174         name: "Nova Server"
175         subcategory: Infrastructure
176         type: VFC
177         UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0
178         resourceVendor: Ericsson
179         version: 1.0
180       properties:
181         vfc_description: FSB2
182         vfc_ecomp_name: false
183         vfc_image_name:
184           get_input: fsb2_vfc_image_name
185         vfc_instance_name:
186           get_input: fsb2_vfc_instance_name
187         vfc_type_tag:
188           get_input: fsb2_vfc_type_tag
189       requirements:
190         -
191           binding:
192             capability: tosca.capabilities.network.Bindable
193             node: fsb2_oam
194             relationship: tosca.relationships.network.BindsTo
195         -
196           binding:
197             capability: tosca.capabilities.network.Bindable
198             node: fsb2_internal1
199             relationship: tosca.relationships.network.BindsTo
200         -
201           binding:
202             capability: tosca.capabilities.network.Bindable
203             node: fsb2_internal2
204             relationship: tosca.relationships.network.BindsTo
205       type: org.openecomp.resource.vfc.nodes.heat.nova.Server
206     NCB1:
207       capabilities:
208         monitoring_capability:
209           properties:
210             name: cpu_load
211         nfv_compute:
212           properties:
213             vfc_flavor:
214               get_input: ncb1_vfc_flavor
215         scaling_capability:
216           properties:
217             init_instances: 1
218             max_instances: 1
219             min_instances: 1
220       metadata:
221         category: Generic
222         description: "VFC based on OpenStack Nova Server"
223         invariantUUID: a8943d58-d3a3-4f42-770a-571abd9d3da2
224         name: "Nova Server"
225         subcategory: Infrastructure
226         type: VFC
227         UUID: 7788dc12-9716-abcf-13c0-ebd4111c69f0
228         resourceVendor: Ericsson
229         version: 1.0
230       properties:
231         vfc_description: NCB1
232         vfc_ecomp_name: false
233         vfc_image_name:
234           get_input: ncb1_vfc_image_name
235         vfc_instance_name:
236           get_input: ncb1_vfc_instance_name
237         vfc_type_tag:
238           get_input: ncb1_vfc_type_tag
239       requirements:
240         -
241           binding:
242             capability: tosca.capabilities.network.Bindable
243             node: ncb1_oam
244             relationship: tosca.relationships.network.BindsTo
245         -
246           binding:
247             capability: tosca.capabilities.network.Bindable
248             node: ncb1_internal1
249             relationship: tosca.relationships.network.BindsTo
250         -
251           binding:
252             capability: tosca.capabilities.network.Bindable
253             node: ncb1_internal2
254             relationship: tosca.relationships.network.BindsTo
255       type: org.openecomp.resource.vfc.nodes.heat.nova.Server
256   substitution_mappings:
257     node_type: org.openecomp.resource.vf.AllottedResource
258     capabilities:
259       Alloted resource 1.feature:
260         type: tosca.capabilities.Node
261         occurrences:
262         - 1
263         - UNBOUNDED
264     requirements:
265       Alloted resource 1.dependency:
266         occurrences:
267         - 0
268         - UNBOUNDED
269         capability: tosca.capabilities.Node
270         node: tosca.nodes.Root
271         relationship: tosca.relationships.DependsOn
272       Alloted resource 1.service_dependency:
273         occurrences:
274         - 1
275         - 1
276         capability: org.openecomp.capabilities.AllottedResource
277         node: tosca.services.Root
278         relationship: tosca.relationships.DependsOn
279 #_______________________________________________________________________________________________________________________________________
280  #|                                                                         AT&T Proprietary (Restricted)                                                                                |
281  #|                                     Only for use by authorized individuals or any above-designated team(s)                            |
282  #|                                          within the AT&T companies and not for general distribution                                                          |
283  #|_______________________________________________________________________________________________________________________________________|