[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / novatovolumeconnection / sharedAddOn / 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.cmaui:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     cmaui_names:
13       hidden: false
14       immutable: false
15       type: list
16       description: CMAUI1, CMAUI2 server names
17       entry_schema:
18         type: string
19     cmaui_cinder_volume_size:
20       label: CMAUI Cinder volume size
21       hidden: false
22       immutable: false
23       type: float
24       description: the size of the CMAUI Cinder volume
25     timezone:
26       label: timezone
27       hidden: false
28       immutable: false
29       type: string
30       description: timezone
31     security_group_name:
32       label: security group name
33       hidden: false
34       immutable: false
35       type: string
36       description: the name of security group
37     cmaui_volume:
38       label: CMAUI vm volume type
39       hidden: false
40       immutable: false
41       type: string
42       description: the name of the target volume backend
43     oam_network_netmask:
44       label: oam network netmask
45       hidden: false
46       immutable: false
47       type: string
48       description: oam network gateway
49     cmaui_volume_param1:
50       hidden: false
51       immutable: false
52       type: string
53       description: nova server id
54     cmaui_image:
55       hidden: false
56       immutable: false
57       type: string
58       description: Image for CMAUI server
59     vnf_id:
60       hidden: false
61       immutable: false
62       type: string
63       description: Unique ID for this VNF instance
64       default: This_is_ths_MMSC-CMAUI_id
65     cmaui_flavor:
66       hidden: false
67       immutable: false
68       type: string
69       description: Flavor for CMAUI server
70     oam_network_gateway:
71       label: oam network gateway
72       hidden: false
73       immutable: false
74       type: string
75       description: oam network gateway
76     cmaui_volume_param2:
77       hidden: false
78       immutable: false
79       type: string
80       description: nova server id
81     availability_zone_0:
82       label: availabilityzone name
83       hidden: false
84       immutable: false
85       type: string
86       description: availabilityzone name
87     cmaui_oam_ips:
88       label: CMAUI oam_net IP addresses
89       hidden: false
90       immutable: false
91       type: list
92       description: CMAUI oam_net IP addresses
93       entry_schema:
94         type: string
95     external_dns:
96       label: dns server
97       hidden: false
98       immutable: false
99       type: string
100       description: dns server
101     oam_net_name:
102       hidden: false
103       immutable: false
104       type: string
105       description: UID of OAM network
106     CMAUI_volume_type:
107       label: CMAUI vm volume type
108       hidden: false
109       immutable: false
110       type: string
111       description: the name of the target volume backend
112     external_ntp:
113       label: ntp server
114       hidden: false
115       immutable: false
116       type: string
117       description: ntp server
118   node_templates:
119     cmaui_port_2:
120       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
121       properties:
122         replacement_policy: AUTO
123         ip_requirements:
124         - ip_version: 4
125           ip_count_required:
126             is_required: true
127           floating_ip_count_required:
128             is_required: false
129         security_groups:
130         - get_input: security_group_name
131         fixed_ips:
132         - ip_address:
133             get_input:
134             - cmaui_oam_ips
135             - 0
136         mac_requirements:
137           mac_count_required:
138             is_required: false
139         network_role_tag: oam
140         network:
141           get_input: oam_net_name
142       requirements:
143       - binding:
144           capability: tosca.capabilities.network.Bindable
145           node: server_cmaui2
146           relationship: tosca.relationships.network.BindsTo
147     server_cmaui2:
148       type: org.openecomp.resource.vfc.nodes.heat.cmaui
149       properties:
150         flavor:
151           get_input: cmaui_flavor
152         availability_zone:
153           get_input: availability_zone_0
154         image:
155           get_input: cmaui_image
156         metadata:
157           vnf_id:
158             get_input: vnf_id
159         user_data_format: RAW
160         name:
161           get_input:
162           - cmaui_names
163           - 0
164       requirements:
165       - local_storage:
166           capability: tosca.capabilities.Attachment
167           node: cmaui_volume2
168           relationship: cmaui_volume_attachment3
169     server_cmaui1:
170       type: org.openecomp.resource.vfc.nodes.heat.cmaui
171       properties:
172         flavor:
173           get_input: cmaui_flavor
174         availability_zone:
175           get_input: availability_zone_0
176         image:
177           get_input: cmaui_image
178         metadata:
179           vnf_id:
180             get_input: vnf_id
181         user_data_format: RAW
182         name:
183           get_input:
184           - cmaui_names
185           - 0
186       requirements:
187       - local_storage:
188           capability: tosca.capabilities.Attachment
189           node: cmaui_volume1
190           relationship: cmaui_volume_attachment1
191       - local_storage:
192           capability: tosca.capabilities.Attachment
193           node: cmaui_volume2
194           relationship: cmaui_volume_attachment2
195     cmaui_volume1:
196       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
197       properties:
198         volume_type:
199           get_input: CMAUI_volume_type
200         size: '(get_input : cmaui_cinder_volume_size) * 1024'
201     cmaui_volume2:
202       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
203       properties:
204         volume_type:
205           get_input: CMAUI_volume_type
206         size: '(get_input : cmaui_cinder_volume_size) * 1024'
207     cmaui_port_1:
208       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
209       properties:
210         replacement_policy: AUTO
211         ip_requirements:
212         - ip_version: 4
213           ip_count_required:
214             is_required: true
215           floating_ip_count_required:
216             is_required: false
217         security_groups:
218         - get_input: security_group_name
219         fixed_ips:
220         - ip_address:
221             get_input:
222             - cmaui_oam_ips
223             - 0
224         mac_requirements:
225           mac_count_required:
226             is_required: false
227         network_role_tag: oam
228         network:
229           get_input: oam_net_name
230       requirements:
231       - binding:
232           capability: tosca.capabilities.network.Bindable
233           node: server_cmaui1
234           relationship: tosca.relationships.network.BindsTo
235   relationship_templates:
236     cmaui_volume_attachment2:
237       type: org.openecomp.relationships.VolumeAttachesTo
238       properties:
239         volume_id:
240           get_input: cmaui_volume_param2
241         instance_uuid: server_cmaui1
242     cmaui_volume_attachment3:
243       type: org.openecomp.relationships.VolumeAttachesTo
244       properties:
245         volume_id:
246           get_input: cmaui_volume_param2
247         instance_uuid: server_cmaui2
248     cmaui_volume_attachment1:
249       type: org.openecomp.relationships.VolumeAttachesTo
250       properties:
251         volume_id:
252           get_input: cmaui_volume_param1
253         instance_uuid: server_cmaui1
254   groups:
255     main_group:
256       type: org.openecomp.groups.heat.HeatStack
257       properties:
258         heat_file: ../Artifacts/main.yml
259         description: volume
260       members:
261       - cmaui_volume1
262       - cmaui_volume2
263     addOn_group:
264       type: org.openecomp.groups.heat.HeatStack
265       properties:
266         heat_file: ../Artifacts/addOn.yml
267         description: cmaui server template for vMMSC
268       members:
269       - cmaui_port_2
270       - server_cmaui2
271       - server_cmaui1
272       - cmaui_port_1