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