00a226061437a074bf04ad45df50a2805ec461c7
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested3
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_nested4Level:
108       type: org.openecomp.resource.abstract.nodes.heat.nested4
109       directives:
110       - substitutable
111       properties:
112         service_template_filter:
113           substitute_service_template: nested4ServiceTemplate.yaml
114         net2:
115           get_input: net2
116         net1:
117           get_input: net1
118         port1:
119           get_input: port1
120         port2:
121           get_input: port2
122     template_Vlan_6:
123       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
124       properties:
125         virtual_machine_interface_refs:
126         - get_input: port1
127         name:
128           str_replace:
129             template: $NAME$VLAN
130             params:
131               $NAME:
132                 get_input: subinterface_name_prefix
133               $VLAN:
134                 get_input:
135                 - vlan_ids
136                 - get_input: subinterface_instance_index
137         virtual_network_refs:
138         - get_input: net1
139         virtual_machine_interface_properties:
140           sub_interface_vlan_tag:
141             get_input: lb_st_vlan_type_oam
142         virtual_machine_interface_allowed_address_pairs:
143           allowed_address_pair:
144           - address_mode: active-standby
145             ip:
146               ip_prefix:
147                 get_input: virtual_ip_address
148               ip_prefix_len: 32
149             mac:
150               get_input: mac_address
151           - address_mode: active-standby
152             ip:
153               ip_prefix:
154                 get_input: virtual_ipv6_address
155               ip_prefix_len: 128
156             mac:
157               get_input: mac_address
158         virtual_machine_interface_mac_addresses:
159           mac_address:
160           - get_input: mac_address
161     template_Vlan_5:
162       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
163       properties:
164         virtual_machine_interface_refs:
165         - get_input: port2
166         name:
167           str_replace:
168             template: $NAME$VLAN
169             params:
170               $NAME:
171                 get_input: subinterface_name_prefix
172               $VLAN:
173                 get_input:
174                 - vlan_ids
175                 - get_input: subinterface_instance_index
176         virtual_network_refs:
177         - get_input: net2
178         virtual_machine_interface_properties:
179           sub_interface_vlan_tag:
180             get_input: lb_st_vlan_type_oam
181         virtual_machine_interface_allowed_address_pairs:
182           allowed_address_pair:
183           - address_mode: active-standby
184             ip:
185               ip_prefix:
186                 get_input: virtual_ip_address
187               ip_prefix_len: 32
188             mac:
189               get_input: mac_address
190           - address_mode: active-standby
191             ip:
192               ip_prefix:
193                 get_input: virtual_ipv6_address
194               ip_prefix_len: 128
195             mac:
196               get_input: mac_address
197         virtual_machine_interface_mac_addresses:
198           mac_address:
199           - get_input: mac_address
200   groups:
201     nested3_group:
202       type: org.openecomp.groups.heat.HeatStack
203       properties:
204         heat_file: ../Artifacts/nested3.yml
205         description: nested3
206       members:
207       - test_nested4Level
208       - template_Vlan_6
209       - template_Vlan_5
210   substitution_mappings:
211     node_type: org.openecomp.resource.abstract.nodes.heat.nested3
212     capabilities:
213       feature_test_nested4Level:
214       - test_nested4Level
215       - feature
216       feature_template_Vlan_6:
217       - template_Vlan_6
218       - feature
219       feature_template_Vlan_8_test_nested4Level:
220       - test_nested4Level
221       - feature_template_Vlan_8
222       feature_template_Vlan_5:
223       - template_Vlan_5
224       - feature
225       feature_template_Vlan_7_test_nested4Level:
226       - test_nested4Level
227       - feature_template_Vlan_7
228     requirements:
229       link_template_Vlan_8_test_nested4Level:
230       - test_nested4Level
231       - link_template_Vlan_8
232       binding_template_Vlan_8_test_nested4Level:
233       - test_nested4Level
234       - binding_template_Vlan_8
235       binding_template_Vlan_7_test_nested4Level:
236       - test_nested4Level
237       - binding_template_Vlan_7
238       dependency_template_Vlan_7_test_nested4Level:
239       - test_nested4Level
240       - dependency_template_Vlan_7
241       dependency_test_nested4Level:
242       - test_nested4Level
243       - dependency
244       link_template_Vlan_7_test_nested4Level:
245       - test_nested4Level
246       - link_template_Vlan_7
247       link_template_Vlan_5:
248       - template_Vlan_5
249       - link
250       dependency_template_Vlan_8_test_nested4Level:
251       - test_nested4Level
252       - dependency_template_Vlan_8
253       link_template_Vlan_6:
254       - template_Vlan_6
255       - link
256       binding_template_Vlan_6:
257       - template_Vlan_6
258       - binding
259       binding_template_Vlan_5:
260       - template_Vlan_5
261       - binding
262       dependency_template_Vlan_6:
263       - template_Vlan_6
264       - dependency
265       dependency_template_Vlan_5:
266       - template_Vlan_5
267       - dependency