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