[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / att-sdc-translator-impl / src / test / resources / mock / services / heattotosca / attValetGroupAssignment / invalidGroupAssignment / expectedoutputfiles / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 node_types:
8   org.openecomp.resource.vfc.nodes.heat.myNovaServer2:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10   org.openecomp.resource.vfc.nodes.heat.myNovaServer1:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12   org.openecomp.resource.vfc.nodes.heat.myNovaServer3:
13     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
14 topology_template:
15   inputs:
16     flavor:
17       hidden: false
18       immutable: false
19       type: string
20     p1:
21       hidden: false
22       immutable: false
23       type: string
24       description: p1
25     image:
26       hidden: false
27       immutable: false
28       type: string
29     p2:
30       hidden: false
31       immutable: false
32       type: string
33       description: p2
34     names:
35       hidden: false
36       immutable: false
37       type: string
38     myIPs:
39       hidden: false
40       immutable: false
41       type: string
42       description: ip1
43     availability_zone_1:
44       hidden: false
45       immutable: false
46       type: string
47       description: myAvailability_zone_1
48     net:
49       hidden: false
50       immutable: false
51       type: string
52       description: UID of network
53   node_templates:
54     myPort6:
55       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
56       properties:
57         replacement_policy: AUTO
58         ip_requirements:
59         - ip_version: 4
60           ip_count_required:
61             is_required: true
62           floating_ip_count_required:
63             is_required: false
64         security_groups:
65         - get_input: p2
66         fixed_ips:
67         - ip_address:
68             get_input:
69             - myIPs
70             - 0
71         mac_requirements:
72           mac_count_required:
73             is_required: false
74         network:
75           get_input: net
76       requirements:
77       - binding:
78           capability: tosca.capabilities.network.Bindable
79           node: myNovaServer3
80           relationship: tosca.relationships.network.BindsTo
81     myPort5:
82       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
83       properties:
84         replacement_policy: AUTO
85         ip_requirements:
86         - ip_version: 4
87           ip_count_required:
88             is_required: true
89           floating_ip_count_required:
90             is_required: false
91         security_groups:
92         - get_input: p1
93         fixed_ips:
94         - ip_address:
95             get_input:
96             - myIPs
97             - 0
98         mac_requirements:
99           mac_count_required:
100             is_required: false
101         network:
102           get_input: net
103       requirements:
104       - binding:
105           capability: tosca.capabilities.network.Bindable
106           node: myNovaServer3
107           relationship: tosca.relationships.network.BindsTo
108     myNovaServer1:
109       type: org.openecomp.resource.vfc.nodes.heat.myNovaServer1
110       properties:
111         flavor:
112           get_input: flavor
113         availability_zone:
114           get_input: availability_zone_1
115         image:
116           get_input: image
117         name:
118           get_input:
119           - names
120           - 0
121     myNovaServer2:
122       type: org.openecomp.resource.vfc.nodes.heat.myNovaServer2
123       properties:
124         flavor:
125           get_input: flavor
126         availability_zone:
127           get_input: availability_zone_1
128         image:
129           get_input: image
130         name:
131           get_input:
132           - names
133           - 0
134     myPort2:
135       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
136       properties:
137         replacement_policy: AUTO
138         ip_requirements:
139         - ip_version: 4
140           ip_count_required:
141             is_required: true
142           floating_ip_count_required:
143             is_required: false
144         security_groups:
145         - get_input: p2
146         fixed_ips:
147         - ip_address:
148             get_input:
149             - myIPs
150             - 0
151         mac_requirements:
152           mac_count_required:
153             is_required: false
154         network:
155           get_input: net
156       requirements:
157       - binding:
158           capability: tosca.capabilities.network.Bindable
159           node: myNovaServer1
160           relationship: tosca.relationships.network.BindsTo
161     myNovaServer3:
162       type: org.openecomp.resource.vfc.nodes.heat.myNovaServer3
163       properties:
164         flavor:
165           get_input: flavor
166         availability_zone:
167           get_input: availability_zone_1
168         image:
169           get_input: image
170         name:
171           get_input:
172           - names
173           - 0
174     myPort1:
175       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
176       properties:
177         replacement_policy: AUTO
178         ip_requirements:
179         - ip_version: 4
180           ip_count_required:
181             is_required: true
182           floating_ip_count_required:
183             is_required: false
184         security_groups:
185         - get_input: p1
186         fixed_ips:
187         - ip_address:
188             get_input:
189             - myIPs
190             - 0
191         mac_requirements:
192           mac_count_required:
193             is_required: false
194         network:
195           get_input: net
196       requirements:
197       - binding:
198           capability: tosca.capabilities.network.Bindable
199           node: myNovaServer1
200           relationship: tosca.relationships.network.BindsTo
201     myPort4:
202       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
203       properties:
204         replacement_policy: AUTO
205         ip_requirements:
206         - ip_version: 4
207           ip_count_required:
208             is_required: true
209           floating_ip_count_required:
210             is_required: false
211         security_groups:
212         - get_input: p2
213         fixed_ips:
214         - ip_address:
215             get_input:
216             - myIPs
217             - 0
218         mac_requirements:
219           mac_count_required:
220             is_required: false
221         network:
222           get_input: net
223       requirements:
224       - binding:
225           capability: tosca.capabilities.network.Bindable
226           node: myNovaServer2
227           relationship: tosca.relationships.network.BindsTo
228     myPort3:
229       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
230       properties:
231         replacement_policy: AUTO
232         ip_requirements:
233         - ip_version: 4
234           ip_count_required:
235             is_required: true
236           floating_ip_count_required:
237             is_required: false
238         security_groups:
239         - get_input: p1
240         fixed_ips:
241         - ip_address:
242             get_input:
243             - myIPs
244             - 0
245         mac_requirements:
246           mac_count_required:
247             is_required: false
248         network:
249           get_input: net
250       requirements:
251       - binding:
252           capability: tosca.capabilities.network.Bindable
253           node: myNovaServer2
254           relationship: tosca.relationships.network.BindsTo
255   groups:
256     main_group:
257       type: org.openecomp.groups.heat.HeatStack
258       properties:
259         heat_file: ../Artifacts/main.yml
260         description: cmaui server template for vMMSC
261       members:
262       - myPort6
263       - myPort5
264       - myNovaServer1
265       - myNovaServer2
266       - myPort2
267       - myNovaServer3
268       - myPort1
269       - myPort4
270       - myPort3
271     SVCgroup1_simpleGroup1_group:
272       type: tosca.groups.Root
273       members:
274       - myNovaServer1
275       - myNovaServer2
276     SVCgroup3_complexTwoGroups_group:
277       type: tosca.groups.Root
278       members:
279       - SVCgroup1_simpleGroup1_group
280   policies:
281     SVCgroup1_policy:
282       type: org.openecomp.policies.placement.valet.Affinity
283       properties:
284         level: host
285       targets:
286       - SVCgroup1_simpleGroup1_group
287     SVCgroup3_policy:
288       type: org.openecomp.policies.placement.valet.Affinity
289       properties:
290         level: host
291       targets:
292       - SVCgroup3_complexTwoGroups_group