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