949d55d2709d3fd89e25ea959410766827784d92
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 topology_template:
10   inputs:
11     vlan_ids:
12       hidden: false
13       immutable: false
14       type: string
15     p1:
16       hidden: false
17       immutable: false
18       type: string
19     p2:
20       hidden: false
21       immutable: false
22       type: string
23     virtual_ipv6_address:
24       hidden: false
25       immutable: false
26       type: string
27     virtual_ip_address:
28       hidden: false
29       immutable: false
30       type: string
31     net2:
32       hidden: false
33       immutable: false
34       type: string
35     lb_st_vlan_type_oam:
36       hidden: false
37       immutable: false
38       type: string
39       description: dummy
40     mac_address:
41       hidden: false
42       immutable: false
43       type: string
44     net1:
45       hidden: false
46       immutable: false
47       type: string
48     subinterface_name_prefix:
49       hidden: false
50       immutable: false
51       type: string
52     subinterface_instance_index:
53       hidden: false
54       immutable: false
55       type: float
56   node_templates:
57     template_Vlan_3_arrayParameter:
58       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
59       properties:
60         virtual_machine_interface_refs:
61         - get_input:
62           - p2
63           - 0
64         name:
65           str_replace:
66             template: $NAME$VLAN
67             params:
68               $NAME:
69                 get_input: subinterface_name_prefix
70               $VLAN:
71                 get_input:
72                 - vlan_ids
73                 - get_input: subinterface_instance_index
74         virtual_network_refs:
75         - get_input:
76           - net2
77           - 1
78         virtual_machine_interface_properties:
79           sub_interface_vlan_tag:
80             get_input: lb_st_vlan_type_oam
81         virtual_machine_interface_allowed_address_pairs:
82           allowed_address_pair:
83           - address_mode: active-standby
84             ip:
85               ip_prefix:
86                 get_input: virtual_ip_address
87               ip_prefix_len: 32
88             mac:
89               get_input: mac_address
90           - address_mode: active-standby
91             ip:
92               ip_prefix:
93                 get_input: virtual_ipv6_address
94               ip_prefix_len: 128
95             mac:
96               get_input: mac_address
97         virtual_machine_interface_mac_addresses:
98           mac_address:
99           - get_input: mac_address
100     template_Vlan_2:
101       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
102       properties:
103         virtual_machine_interface_refs:
104         - get_input: p2
105         - get_input: p1
106         name:
107           str_replace:
108             template: $NAME$VLAN
109             params:
110               $NAME:
111                 get_input: subinterface_name_prefix
112               $VLAN:
113                 get_input:
114                 - vlan_ids
115                 - get_input: subinterface_instance_index
116         virtual_network_refs:
117         - get_input: net2
118         - get_input: net1
119         virtual_machine_interface_properties:
120           sub_interface_vlan_tag:
121             get_input: lb_st_vlan_type_oam
122         virtual_machine_interface_allowed_address_pairs:
123           allowed_address_pair:
124           - address_mode: active-standby
125             ip:
126               ip_prefix:
127                 get_input: virtual_ip_address
128               ip_prefix_len: 32
129             mac:
130               get_input: mac_address
131           - address_mode: active-standby
132             ip:
133               ip_prefix:
134                 get_input: virtual_ipv6_address
135               ip_prefix_len: 128
136             mac:
137               get_input: mac_address
138         virtual_machine_interface_mac_addresses:
139           mac_address:
140           - get_input: mac_address
141     template_Vlan_1:
142       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
143       properties:
144         virtual_machine_interface_refs:
145         - get_input: p1
146         name:
147           str_replace:
148             template: $NAME$VLAN
149             params:
150               $NAME:
151                 get_input: subinterface_name_prefix
152               $VLAN:
153                 get_input:
154                 - vlan_ids
155                 - get_input: subinterface_instance_index
156         virtual_network_refs:
157         - get_input: net1
158         virtual_machine_interface_properties:
159           sub_interface_vlan_tag:
160             get_input: lb_st_vlan_type_oam
161         virtual_machine_interface_allowed_address_pairs:
162           allowed_address_pair:
163           - address_mode: active-standby
164             ip:
165               ip_prefix:
166                 get_input: virtual_ip_address
167               ip_prefix_len: 32
168             mac:
169               get_input: mac_address
170           - address_mode: active-standby
171             ip:
172               ip_prefix:
173                 get_input: virtual_ipv6_address
174               ip_prefix_len: 128
175             mac:
176               get_input: mac_address
177         virtual_machine_interface_mac_addresses:
178           mac_address:
179           - get_input: mac_address
180   groups:
181     nested_group:
182       type: org.openecomp.groups.heat.HeatStack
183       properties:
184         heat_file: ../Artifacts/nested.yml
185         description: cmaui server template for vMMSC
186       members:
187       - template_Vlan_3_arrayParameter
188       - template_Vlan_2
189       - template_Vlan_1
190   substitution_mappings:
191     node_type: org.openecomp.resource.abstract.nodes.heat.subinterface.nested
192     capabilities:
193       feature_template_Vlan_2:
194       - template_Vlan_2
195       - feature
196       feature_template_Vlan_1:
197       - template_Vlan_1
198       - feature
199       feature_template_Vlan_3_arrayParameter:
200       - template_Vlan_3_arrayParameter
201       - feature
202     requirements:
203       dependency_template_Vlan_2:
204       - template_Vlan_2
205       - dependency
206       dependency_template_Vlan_1:
207       - template_Vlan_1
208       - dependency
209       link_template_Vlan_1:
210       - template_Vlan_1
211       - link
212       dependency_template_Vlan_3_arrayParameter:
213       - template_Vlan_3_arrayParameter
214       - dependency
215       link_template_Vlan_3_arrayParameter:
216       - template_Vlan_3_arrayParameter
217       - link
218       link_template_Vlan_2:
219       - template_Vlan_2
220       - link
221       binding_template_Vlan_2:
222       - template_Vlan_2
223       - binding
224       binding_template_Vlan_1:
225       - template_Vlan_1
226       - binding
227       binding_template_Vlan_3_arrayParameter:
228       - template_Vlan_3_arrayParameter
229       - binding