[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heat / nested / multiple_resource_groups / 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 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 topology_template:
10   inputs:
11     vf_module_id:
12       hidden: false
13       immutable: false
14       type: string
15       description: Unique ID for this VF_MODULE instance
16     vf_name:
17       hidden: false
18       immutable: false
19       type: string
20       description: The VF Name; defaults to VMVM for the virtual MVM VNF.
21       constraints:
22       - pattern: '[a-zA-Z0-9]+'
23       - max_length: 4
24       - min_length: 4
25     cloud_zone_id:
26       hidden: false
27       immutable: false
28       type: string
29       description: The cloud zone for this VF instance
30     vf_instance_num:
31       hidden: false
32       immutable: false
33       type: string
34       description: The number for this VF instance
35       constraints:
36       - pattern: '[0-9]+'
37       - max_length: 2
38       - min_length: 2
39     virtual_mgmt_ip_0:
40       hidden: false
41       immutable: false
42       type: string
43       description: Virtual management network ip address
44     mvs_mgmt_ip_0:
45       hidden: false
46       immutable: false
47       type: list
48       description: List of Management network IP addresses for IPv4
49       entry_schema:
50         type: string
51     flavor:
52       hidden: false
53       immutable: false
54       type: string
55       description: Server flavor
56       constraints: [
57         ]
58     key_name:
59       hidden: false
60       immutable: false
61       type: string
62       description: SSH key name
63       constraints: [
64         ]
65     vnf_id:
66       hidden: false
67       immutable: false
68       type: string
69       description: Unique ID for this VF instance
70     availability_zone_0:
71       hidden: false
72       immutable: false
73       type: list
74       description: List of Availability Zone IDs or Names
75       entry_schema:
76         type: string
77     mgmt_net_id:
78       hidden: false
79       immutable: false
80       type: string
81       description: Neutron UUID for the Management network
82       constraints: [
83         ]
84     vm_instance_num:
85       hidden: false
86       immutable: false
87       type: list
88       description: VM instance number list must be a list of three-digit numeric value
89       entry_schema:
90         type: string
91     bootimage:
92       hidden: false
93       immutable: false
94       type: string
95       description: Master bootimage volume id
96     sec_groups:
97       hidden: false
98       immutable: false
99       type: list
100       description: Security groups
101       entry_schema:
102         type: string
103     vf_component:
104       hidden: false
105       immutable: false
106       type: string
107       description: The component that this VF instance is running
108       constraints:
109       - pattern: '[a-zA-Z0-9]+'
110       - max_length: 3
111       - min_length: 3
112     num_instances:
113       hidden: false
114       immutable: false
115       type: float
116       description: number of instance of the VF_module
117   node_templates:
118     mvs_modules:
119       type: org.openecomp.resource.abstract.nodes.heat.mvs.nested.heat
120       directives:
121       - substitutable
122       properties:
123         vf_module_id:
124           get_input: vf_module_id
125         vf_name:
126           get_input: vf_name
127         cloud_zone_id:
128           get_input: cloud_zone_id
129         vf_instance_num:
130           get_input: vf_instance_num
131         virtual_mgmt_ip_0:
132           get_input: virtual_mgmt_ip_0
133         indx:
134           get_property:
135           - SELF
136           - service_template_filter
137           - index_value
138         mvs_mgmt_ip_0:
139           get_input: mvs_mgmt_ip_0
140         flavor:
141           get_input: flavor
142         key_name:
143           get_input: key_name
144         service_template_filter:
145           substitute_service_template: mvs.nested.heatServiceTemplate.yaml
146           count:
147             get_input: num_instances
148           mandatory: false
149         vnf_id:
150           get_input: vnf_id
151         availability_zone_0:
152           get_input: availability_zone_0
153         mgmt_net_id:
154           get_input: mgmt_net_id
155         vm_instance_num:
156           get_input: vm_instance_num
157         bootimage:
158           get_input: bootimage
159         sec_groups:
160           get_input: sec_groups
161         vf_component:
162           get_input: vf_component
163     mvs_modules_same_nested_heat_file_no_count:
164       type: org.openecomp.resource.abstract.nodes.heat.mvs.nested.heat
165       directives:
166       - substitutable
167       properties:
168         vf_module_id:
169           get_input: vf_module_id
170         vf_name:
171           get_input: vf_name
172         cloud_zone_id:
173           get_input: cloud_zone_id
174         vf_instance_num:
175           get_input: vf_instance_num
176         virtual_mgmt_ip_0:
177           get_input: virtual_mgmt_ip_0
178         indx:
179           get_property:
180           - SELF
181           - service_template_filter
182           - index_value
183         mvs_mgmt_ip_0:
184           get_input: mvs_mgmt_ip_0
185         flavor:
186           get_input: flavor
187         key_name:
188           get_input: key_name
189         service_template_filter:
190           substitute_service_template: mvs.nested.heatServiceTemplate.yaml
191           count: 1
192           mandatory: true
193         vnf_id:
194           get_input: vnf_id
195         availability_zone_0:
196           get_input: availability_zone_0
197         mgmt_net_id:
198           get_input: mgmt_net_id
199         vm_instance_num:
200           get_input: vm_instance_num
201         bootimage:
202           get_input: bootimage
203         sec_groups:
204           get_input: sec_groups
205         vf_component:
206           get_input: vf_component
207   groups:
208     mvs.vfmodule.heat_group:
209       type: org.openecomp.groups.heat.HeatStack
210       properties:
211         heat_file: ../Artifacts/mvs.vfmodule.heat.yaml
212         description: |
213           Metaswitch MVS (Metaview Server)
214       members:
215       - mvs_modules
216       - mvs_modules_same_nested_heat_file_no_count