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