[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 / simpleOnlySingleNova / 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 topology_template:
13   inputs:
14     flavor:
15       hidden: false
16       immutable: false
17       type: string
18     p1:
19       hidden: false
20       immutable: false
21       type: string
22       description: p1
23     image:
24       hidden: false
25       immutable: false
26       type: string
27     p2:
28       hidden: false
29       immutable: false
30       type: string
31       description: p2
32     names:
33       hidden: false
34       immutable: false
35       type: string
36     myIPs:
37       hidden: false
38       immutable: false
39       type: string
40       description: ip1
41     availability_zone_1:
42       hidden: false
43       immutable: false
44       type: string
45       description: myAvailability_zone_1
46     net:
47       hidden: false
48       immutable: false
49       type: string
50       description: UID of network
51   node_templates:
52     myNovaServer1:
53       type: org.openecomp.resource.vfc.nodes.heat.myNovaServer1
54       properties:
55         flavor:
56           get_input: flavor
57         availability_zone:
58           get_input: availability_zone_1
59         image:
60           get_input: image
61         name:
62           get_input:
63           - names
64           - 0
65     myNovaServer2:
66       type: org.openecomp.resource.vfc.nodes.heat.myNovaServer2
67       properties:
68         flavor:
69           get_input: flavor
70         availability_zone:
71           get_input: availability_zone_1
72         image:
73           get_input: image
74         name:
75           get_input:
76           - names
77           - 0
78     myPort2:
79       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
80       properties:
81         replacement_policy: AUTO
82         ip_requirements:
83         - ip_version: 4
84           ip_count_required:
85             is_required: true
86           floating_ip_count_required:
87             is_required: false
88         security_groups:
89         - get_input: p2
90         fixed_ips:
91         - ip_address:
92             get_input:
93             - myIPs
94             - 0
95         mac_requirements:
96           mac_count_required:
97             is_required: false
98         network:
99           get_input: net
100       requirements:
101       - binding:
102           capability: tosca.capabilities.network.Bindable
103           node: myNovaServer1
104           relationship: tosca.relationships.network.BindsTo
105     myPort1:
106       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
107       properties:
108         replacement_policy: AUTO
109         ip_requirements:
110         - ip_version: 4
111           ip_count_required:
112             is_required: true
113           floating_ip_count_required:
114             is_required: false
115         security_groups:
116         - get_input: p1
117         fixed_ips:
118         - ip_address:
119             get_input:
120             - myIPs
121             - 0
122         mac_requirements:
123           mac_count_required:
124             is_required: false
125         network:
126           get_input: net
127       requirements:
128       - binding:
129           capability: tosca.capabilities.network.Bindable
130           node: myNovaServer1
131           relationship: tosca.relationships.network.BindsTo
132     myPort4:
133       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
134       properties:
135         replacement_policy: AUTO
136         ip_requirements:
137         - ip_version: 4
138           ip_count_required:
139             is_required: true
140           floating_ip_count_required:
141             is_required: false
142         security_groups:
143         - get_input: p2
144         fixed_ips:
145         - ip_address:
146             get_input:
147             - myIPs
148             - 0
149         mac_requirements:
150           mac_count_required:
151             is_required: false
152         network:
153           get_input: net
154       requirements:
155       - binding:
156           capability: tosca.capabilities.network.Bindable
157           node: myNovaServer2
158           relationship: tosca.relationships.network.BindsTo
159     myPort3:
160       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
161       properties:
162         replacement_policy: AUTO
163         ip_requirements:
164         - ip_version: 4
165           ip_count_required:
166             is_required: true
167           floating_ip_count_required:
168             is_required: false
169         security_groups:
170         - get_input: p1
171         fixed_ips:
172         - ip_address:
173             get_input:
174             - myIPs
175             - 0
176         mac_requirements:
177           mac_count_required:
178             is_required: false
179         network:
180           get_input: net
181       requirements:
182       - binding:
183           capability: tosca.capabilities.network.Bindable
184           node: myNovaServer2
185           relationship: tosca.relationships.network.BindsTo
186   groups:
187     main_group:
188       type: org.openecomp.groups.heat.HeatStack
189       properties:
190         heat_file: ../Artifacts/main.yml
191         description: cmaui server template for vMMSC
192       members:
193       - myNovaServer1
194       - myNovaServer2
195       - myPort2
196       - myPort1
197       - myPort4
198       - myPort3
199     SVCgroup1_simpleGroup_group:
200       type: tosca.groups.Root
201       members:
202       - myNovaServer1
203   policies:
204     SVCgroup1_policy:
205       type: org.openecomp.policies.placement.valet.Diversity
206       properties:
207         level: host
208       targets:
209       - SVCgroup1_simpleGroup_group