e42ee48133db89f96f22ae21179520b59688db03
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested2
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 topology_template:
10   inputs:
11     cmaui_names:
12       hidden: false
13       immutable: false
14       type: list
15       description: CMAUI1, CMAUI2 server names
16       entry_schema:
17         type: string
18     template_PortTuple_LB1:
19       hidden: false
20       immutable: false
21       type: string
22     lb_st_interface_type_oam:
23       hidden: false
24       immutable: false
25       type: string
26     oam_sec_group_name:
27       hidden: false
28       immutable: false
29       type: string
30     virtual_ip_address:
31       hidden: false
32       immutable: false
33       type: string
34     net2:
35       hidden: false
36       immutable: false
37       type: string
38     net1:
39       hidden: false
40       immutable: false
41       type: string
42     indx:
43       hidden: false
44       immutable: false
45       type: float
46     security_group_name:
47       hidden: false
48       immutable: false
49       type: list
50       description: CMAUI1, CMAUI2 server names
51       entry_schema:
52         type: string
53     port1:
54       hidden: false
55       immutable: false
56       type: string
57     port2:
58       hidden: false
59       immutable: false
60       type: string
61     vlan_ids:
62       hidden: false
63       immutable: false
64       type: string
65     cmaui_image:
66       hidden: false
67       immutable: false
68       type: string
69       description: Image for CMAUI server
70     virtual_ipv6_address:
71       hidden: false
72       immutable: false
73       type: string
74     cmaui_flavor:
75       hidden: false
76       immutable: false
77       type: string
78       description: Flavor for CMAUI server
79     lb_st_vlan_type_oam:
80       hidden: false
81       immutable: false
82       type: string
83       description: dummy
84     mac_address:
85       hidden: false
86       immutable: false
87       type: string
88     availability_zone_0:
89       label: availabilityzone name
90       hidden: false
91       immutable: false
92       type: string
93       description: availabilityzone name
94     subinterface_name_prefix:
95       hidden: false
96       immutable: false
97       type: string
98     subinterface_instance_index:
99       hidden: false
100       immutable: false
101       type: float
102     cmaui_oam_ips:
103       hidden: false
104       immutable: false
105       type: string
106   node_templates:
107     test_nested3Level:
108       type: org.openecomp.resource.abstract.nodes.heat.nested3
109       directives:
110       - substitutable
111       properties:
112         service_template_filter:
113           substitute_service_template: nested3ServiceTemplate.yaml
114           count: 3
115           mandatory: true
116         net2:
117           get_input: net1
118         net1:
119           get_input: net1
120         indx:
121           get_property:
122           - SELF
123           - service_template_filter
124           - index_value
125         port1:
126           get_input: port1
127         port2:
128           get_input: port1
129     template_Vlan_4:
130       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
131       properties:
132         virtual_machine_interface_refs:
133         - get_input: port1
134         name:
135           str_replace:
136             template: $NAME$VLAN
137             params:
138               $NAME:
139                 get_input: subinterface_name_prefix
140               $VLAN:
141                 get_input:
142                 - vlan_ids
143                 - get_input: subinterface_instance_index
144         virtual_network_refs:
145         - get_input: net2
146         virtual_machine_interface_properties:
147           sub_interface_vlan_tag:
148             get_input: lb_st_vlan_type_oam
149         virtual_machine_interface_allowed_address_pairs:
150           allowed_address_pair:
151           - address_mode: active-standby
152             ip:
153               ip_prefix:
154                 get_input: virtual_ip_address
155               ip_prefix_len: 32
156             mac:
157               get_input: mac_address
158           - address_mode: active-standby
159             ip:
160               ip_prefix:
161                 get_input: virtual_ipv6_address
162               ip_prefix_len: 128
163             mac:
164               get_input: mac_address
165         virtual_machine_interface_mac_addresses:
166           mac_address:
167           - get_input: mac_address
168     template_Vlan_3:
169       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
170       properties:
171         virtual_machine_interface_refs:
172         - get_input: port1
173         - get_input: port2
174         name:
175           str_replace:
176             template: $NAME$VLAN
177             params:
178               $NAME:
179                 get_input: subinterface_name_prefix
180               $VLAN:
181                 get_input:
182                 - vlan_ids
183                 - get_input: subinterface_instance_index
184         virtual_network_refs:
185         - get_input: net2
186         - get_input: net1
187         virtual_machine_interface_properties:
188           sub_interface_vlan_tag:
189             get_input: lb_st_vlan_type_oam
190         virtual_machine_interface_allowed_address_pairs:
191           allowed_address_pair:
192           - address_mode: active-standby
193             ip:
194               ip_prefix:
195                 get_input: virtual_ip_address
196               ip_prefix_len: 32
197             mac:
198               get_input: mac_address
199           - address_mode: active-standby
200             ip:
201               ip_prefix:
202                 get_input: virtual_ipv6_address
203               ip_prefix_len: 128
204             mac:
205               get_input: mac_address
206         virtual_machine_interface_mac_addresses:
207           mac_address:
208           - get_input: mac_address
209   groups:
210     nested2_group:
211       type: org.openecomp.groups.heat.HeatStack
212       properties:
213         heat_file: ../Artifacts/nested2.yml
214         description: nested2
215       members:
216       - test_nested3Level
217       - template_Vlan_4
218       - template_Vlan_3
219   substitution_mappings:
220     node_type: org.openecomp.resource.abstract.nodes.heat.nested2
221     capabilities:
222       feature_test_nested4Level_test_nested3Level:
223       - test_nested3Level
224       - feature_test_nested4Level
225       feature_template_Vlan_8_test_nested4Level_test_nested3Level:
226       - test_nested3Level
227       - feature_template_Vlan_8_test_nested4Level
228       feature_template_Vlan_3:
229       - template_Vlan_3
230       - feature
231       feature_template_Vlan_4:
232       - template_Vlan_4
233       - feature
234       feature_test_nested3Level:
235       - test_nested3Level
236       - feature
237       feature_template_Vlan_7_test_nested4Level_test_nested3Level:
238       - test_nested3Level
239       - feature_template_Vlan_7_test_nested4Level
240       feature_template_Vlan_6_test_nested3Level:
241       - test_nested3Level
242       - feature_template_Vlan_6
243       feature_template_Vlan_5_test_nested3Level:
244       - test_nested3Level
245       - feature_template_Vlan_5
246     requirements:
247       link_template_Vlan_7_test_nested4Level_test_nested3Level:
248       - test_nested3Level
249       - link_template_Vlan_7_test_nested4Level
250       dependency_template_Vlan_5_test_nested3Level:
251       - test_nested3Level
252       - dependency_template_Vlan_5
253       link_template_Vlan_8_test_nested4Level_test_nested3Level:
254       - test_nested3Level
255       - link_template_Vlan_8_test_nested4Level
256       binding_template_Vlan_6_test_nested3Level:
257       - test_nested3Level
258       - binding_template_Vlan_6
259       binding_template_Vlan_7_test_nested4Level_test_nested3Level:
260       - test_nested3Level
261       - binding_template_Vlan_7_test_nested4Level
262       dependency_test_nested4Level_test_nested3Level:
263       - test_nested3Level
264       - dependency_test_nested4Level
265       dependency_template_Vlan_7_test_nested4Level_test_nested3Level:
266       - test_nested3Level
267       - dependency_template_Vlan_7_test_nested4Level
268       dependency_template_Vlan_6_test_nested3Level:
269       - test_nested3Level
270       - dependency_template_Vlan_6
271       binding_template_Vlan_8_test_nested4Level_test_nested3Level:
272       - test_nested3Level
273       - binding_template_Vlan_8_test_nested4Level
274       link_template_Vlan_5_test_nested3Level:
275       - test_nested3Level
276       - link_template_Vlan_5
277       link_template_Vlan_6_test_nested3Level:
278       - test_nested3Level
279       - link_template_Vlan_6
280       link_template_Vlan_3:
281       - template_Vlan_3
282       - link
283       dependency_template_Vlan_8_test_nested4Level_test_nested3Level:
284       - test_nested3Level
285       - dependency_template_Vlan_8_test_nested4Level
286       link_template_Vlan_4:
287       - template_Vlan_4
288       - link
289       binding_template_Vlan_4:
290       - template_Vlan_4
291       - binding
292       binding_template_Vlan_3:
293       - template_Vlan_3
294       - binding
295       dependency_test_nested3Level:
296       - test_nested3Level
297       - dependency
298       dependency_template_Vlan_4:
299       - template_Vlan_4
300       - dependency
301       binding_template_Vlan_5_test_nested3Level:
302       - test_nested3Level
303       - binding_template_Vlan_5
304       dependency_template_Vlan_3:
305       - template_Vlan_3
306       - dependency