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