[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 / nested4ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested4
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     template_Vlan_8:
138       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
139       properties:
140         virtual_machine_interface_refs:
141         - get_input: port2
142         name:
143           str_replace:
144             template: $NAME$VLAN
145             params:
146               $NAME:
147                 get_input: subinterface_name_prefix
148               $VLAN:
149                 get_input:
150                 - vlan_ids
151                 - get_input: subinterface_instance_index
152         virtual_network_refs:
153         - get_input: net2
154         virtual_machine_interface_properties:
155           sub_interface_vlan_tag:
156             get_input: lb_st_vlan_type_oam
157         virtual_machine_interface_allowed_address_pairs:
158           allowed_address_pair:
159           - address_mode: active-standby
160             ip:
161               ip_prefix:
162                 get_input: virtual_ip_address
163               ip_prefix_len: 32
164             mac:
165               get_input: mac_address
166           - address_mode: active-standby
167             ip:
168               ip_prefix:
169                 get_input: virtual_ipv6_address
170               ip_prefix_len: 128
171             mac:
172               get_input: mac_address
173         virtual_machine_interface_mac_addresses:
174           mac_address:
175           - get_input: mac_address
176     template_Vlan_7:
177       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
178       properties:
179         virtual_machine_interface_refs:
180         - get_input: port1
181         name:
182           str_replace:
183             template: $NAME$VLAN
184             params:
185               $NAME:
186                 get_input: subinterface_name_prefix
187               $VLAN:
188                 get_input:
189                 - vlan_ids
190                 - get_input: subinterface_instance_index
191         virtual_network_refs:
192         - get_input: net1
193         virtual_machine_interface_properties:
194           sub_interface_vlan_tag:
195             get_input: lb_st_vlan_type_oam
196         virtual_machine_interface_allowed_address_pairs:
197           allowed_address_pair:
198           - address_mode: active-standby
199             ip:
200               ip_prefix:
201                 get_input: virtual_ip_address
202               ip_prefix_len: 32
203             mac:
204               get_input: mac_address
205           - address_mode: active-standby
206             ip:
207               ip_prefix:
208                 get_input: virtual_ipv6_address
209               ip_prefix_len: 128
210             mac:
211               get_input: mac_address
212         virtual_machine_interface_mac_addresses:
213           mac_address:
214           - get_input: mac_address
215   groups:
216     nested4_group:
217       type: org.openecomp.groups.heat.HeatStack
218       properties:
219         heat_file: ../Artifacts/nested4.yml
220         description: nested4
221       members:
222       - template_Vlan_8
223       - template_Vlan_7
224   substitution_mappings:
225     node_type: org.openecomp.resource.abstract.nodes.heat.nested4
226     requirements:
227       link_template_Vlan_7:
228       - template_Vlan_7
229       - link
230       link_template_Vlan_8:
231       - template_Vlan_8
232       - link
233       binding_template_Vlan_8:
234       - template_Vlan_8
235       - binding
236       binding_template_Vlan_7:
237       - template_Vlan_7
238       - binding