bd6e1a1f2478f2b9c81e031df78282be79cf0a9e
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested4
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     template_Vlan_8:
108       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
109       properties:
110         virtual_machine_interface_refs:
111         - get_input: port2
112         name:
113           str_replace:
114             template: $NAME$VLAN
115             params:
116               $NAME:
117                 get_input: subinterface_name_prefix
118               $VLAN:
119                 get_input:
120                 - vlan_ids
121                 - get_input: subinterface_instance_index
122         virtual_network_refs:
123         - get_input: net2
124         virtual_machine_interface_properties:
125           sub_interface_vlan_tag:
126             get_input: lb_st_vlan_type_oam
127         virtual_machine_interface_allowed_address_pairs:
128           allowed_address_pair:
129           - address_mode: active-standby
130             ip:
131               ip_prefix:
132                 get_input: virtual_ip_address
133               ip_prefix_len: 32
134             mac:
135               get_input: mac_address
136           - address_mode: active-standby
137             ip:
138               ip_prefix:
139                 get_input: virtual_ipv6_address
140               ip_prefix_len: 128
141             mac:
142               get_input: mac_address
143         virtual_machine_interface_mac_addresses:
144           mac_address:
145           - get_input: mac_address
146     template_Vlan_7:
147       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
148       properties:
149         virtual_machine_interface_refs:
150         - get_input: port1
151         name:
152           str_replace:
153             template: $NAME$VLAN
154             params:
155               $NAME:
156                 get_input: subinterface_name_prefix
157               $VLAN:
158                 get_input:
159                 - vlan_ids
160                 - get_input: subinterface_instance_index
161         virtual_network_refs:
162         - get_input: net1
163         virtual_machine_interface_properties:
164           sub_interface_vlan_tag:
165             get_input: lb_st_vlan_type_oam
166         virtual_machine_interface_allowed_address_pairs:
167           allowed_address_pair:
168           - address_mode: active-standby
169             ip:
170               ip_prefix:
171                 get_input: virtual_ip_address
172               ip_prefix_len: 32
173             mac:
174               get_input: mac_address
175           - address_mode: active-standby
176             ip:
177               ip_prefix:
178                 get_input: virtual_ipv6_address
179               ip_prefix_len: 128
180             mac:
181               get_input: mac_address
182         virtual_machine_interface_mac_addresses:
183           mac_address:
184           - get_input: mac_address
185   groups:
186     nested4_group:
187       type: org.openecomp.groups.heat.HeatStack
188       properties:
189         heat_file: ../Artifacts/nested4.yml
190         description: nested4
191       members:
192       - template_Vlan_8
193       - template_Vlan_7
194   substitution_mappings:
195     node_type: org.openecomp.resource.abstract.nodes.heat.nested4
196     capabilities:
197       feature_template_Vlan_7:
198       - template_Vlan_7
199       - feature
200       feature_template_Vlan_8:
201       - template_Vlan_8
202       - feature
203     requirements:
204       dependency_template_Vlan_8:
205       - template_Vlan_8
206       - dependency
207       dependency_template_Vlan_7:
208       - template_Vlan_7
209       - dependency
210       link_template_Vlan_7:
211       - template_Vlan_7
212       - link
213       link_template_Vlan_8:
214       - template_Vlan_8
215       - link
216       binding_template_Vlan_8:
217       - template_Vlan_8
218       - binding
219       binding_template_Vlan_7:
220       - template_Vlan_7
221       - binding