[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 / nested1ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested1
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     vlan_ids:
42       hidden: false
43       immutable: false
44       type: string
45     virtual_ipv6_address:
46       hidden: false
47       immutable: false
48       type: string
49     virtual_ip_address:
50       hidden: false
51       immutable: false
52       type: string
53     lb_st_vlan_type_oam:
54       hidden: false
55       immutable: false
56       type: string
57       description: dummy
58     mac_address:
59       hidden: false
60       immutable: false
61       type: string
62     net2:
63       hidden: false
64       immutable: false
65       type: string
66     net1:
67       hidden: false
68       immutable: false
69       type: string
70     indx:
71       hidden: false
72       immutable: false
73       type: float
74     subinterface_name_prefix:
75       hidden: false
76       immutable: false
77       type: string
78     subinterface_instance_index:
79       hidden: false
80       immutable: false
81       type: float
82     port1:
83       hidden: false
84       immutable: false
85       type: string
86     port2:
87       hidden: false
88       immutable: false
89       type: string
90   node_templates:
91     template_Vlan_2:
92       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
93       properties:
94         virtual_machine_interface_refs:
95         - get_input: port2
96         name:
97           str_replace:
98             template: $NAME$VLAN
99             params:
100               $NAME:
101                 get_input: subinterface_name_prefix
102               $VLAN:
103                 get_input:
104                 - vlan_ids
105                 - get_input: indx
106         virtual_network_refs:
107         - get_input: net2
108         virtual_machine_interface_properties:
109           sub_interface_vlan_tag:
110             get_input: lb_st_vlan_type_oam
111         virtual_machine_interface_allowed_address_pairs:
112           allowed_address_pair:
113           - address_mode: active-standby
114             ip:
115               ip_prefix:
116                 get_input: virtual_ip_address
117               ip_prefix_len: 32
118             mac:
119               get_input: mac_address
120           - address_mode: active-standby
121             ip:
122               ip_prefix:
123                 get_input: virtual_ipv6_address
124               ip_prefix_len: 128
125             mac:
126               get_input: mac_address
127         virtual_machine_interface_mac_addresses:
128           mac_address:
129           - get_input: mac_address
130     template_Vlan_1:
131       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
132       properties:
133         virtual_machine_interface_refs:
134         - get_input: port1
135         name:
136           str_replace:
137             template: $NAME$VLAN
138             params:
139               $NAME:
140                 get_input: subinterface_name_prefix
141               $VLAN:
142                 get_input:
143                 - vlan_ids
144                 - get_input: indx
145         virtual_network_refs:
146         - get_input: net1
147         virtual_machine_interface_properties:
148           sub_interface_vlan_tag:
149             get_input: lb_st_vlan_type_oam
150         virtual_machine_interface_allowed_address_pairs:
151           allowed_address_pair:
152           - address_mode: active-standby
153             ip:
154               ip_prefix:
155                 get_input: virtual_ip_address
156               ip_prefix_len: 32
157             mac:
158               get_input: mac_address
159           - address_mode: active-standby
160             ip:
161               ip_prefix:
162                 get_input: virtual_ipv6_address
163               ip_prefix_len: 128
164             mac:
165               get_input: mac_address
166         virtual_machine_interface_mac_addresses:
167           mac_address:
168           - get_input: mac_address
169     test_nested2Level:
170       type: org.openecomp.resource.abstract.nodes.heat.nested2
171       directives:
172       - substitutable
173       properties:
174         service_template_filter:
175           substitute_service_template: nested2ServiceTemplate.yaml
176         net2:
177           get_input: net2
178         net1:
179           get_input: net1
180         port1:
181           get_input: port1
182         port2:
183           get_input: port2
184   groups:
185     nested1_group:
186       type: org.openecomp.groups.heat.HeatStack
187       properties:
188         heat_file: ../Artifacts/nested1.yml
189         description: nested1
190       members:
191       - template_Vlan_2
192       - template_Vlan_1
193       - test_nested2Level
194   substitution_mappings:
195     node_type: org.openecomp.resource.abstract.nodes.heat.nested1
196     requirements:
197       link_template_Vlan_6_test_nested3Level_test_nested2Level:
198       - test_nested2Level
199       - link_template_Vlan_6_test_nested3Level
200       binding_template_Vlan_3_test_nested2Level:
201       - test_nested2Level
202       - binding_template_Vlan_3
203       binding_template_Vlan_5_test_nested3Level_test_nested2Level:
204       - test_nested2Level
205       - binding_template_Vlan_5_test_nested3Level
206       binding_template_Vlan_8_test_nested4Level_test_nested3Level_test_nested2Level:
207       - test_nested2Level
208       - binding_template_Vlan_8_test_nested4Level_test_nested3Level
209       binding_template_Vlan_6_test_nested3Level_test_nested2Level:
210       - test_nested2Level
211       - binding_template_Vlan_6_test_nested3Level
212       link_template_Vlan_7_test_nested4Level_test_nested3Level_test_nested2Level:
213       - test_nested2Level
214       - link_template_Vlan_7_test_nested4Level_test_nested3Level
215       binding_template_Vlan_7_test_nested4Level_test_nested3Level_test_nested2Level:
216       - test_nested2Level
217       - binding_template_Vlan_7_test_nested4Level_test_nested3Level
218       link_template_Vlan_4_test_nested2Level:
219       - test_nested2Level
220       - link_template_Vlan_4
221       link_template_Vlan_1:
222       - template_Vlan_1
223       - link
224       link_template_Vlan_2:
225       - template_Vlan_2
226       - link
227       binding_template_Vlan_2:
228       - template_Vlan_2
229       - binding
230       binding_template_Vlan_1:
231       - template_Vlan_1
232       - binding
233       link_template_Vlan_5_test_nested3Level_test_nested2Level:
234       - test_nested2Level
235       - link_template_Vlan_5_test_nested3Level
236       link_template_Vlan_3_test_nested2Level:
237       - test_nested2Level
238       - link_template_Vlan_3
239       binding_template_Vlan_4_test_nested2Level:
240       - test_nested2Level
241       - binding_template_Vlan_4
242       link_template_Vlan_8_test_nested4Level_test_nested3Level_test_nested2Level:
243       - test_nested2Level
244       - link_template_Vlan_8_test_nested4Level_test_nested3Level