[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 / nested / expectedoutputfiles / nestedServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested
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     p1:
46       hidden: false
47       immutable: false
48       type: string
49     p2:
50       hidden: false
51       immutable: false
52       type: string
53     virtual_ipv6_address:
54       hidden: false
55       immutable: false
56       type: string
57     virtual_ip_address:
58       hidden: false
59       immutable: false
60       type: string
61     net2:
62       hidden: false
63       immutable: false
64       type: string
65     lb_st_vlan_type_oam:
66       hidden: false
67       immutable: false
68       type: string
69       description: dummy
70     mac_address:
71       hidden: false
72       immutable: false
73       type: string
74     net1:
75       hidden: false
76       immutable: false
77       type: string
78     subinterface_name_prefix:
79       hidden: false
80       immutable: false
81       type: string
82     subinterface_instance_index:
83       hidden: false
84       immutable: false
85       type: float
86   node_templates:
87     template_Vlan_3_arrayParameter:
88       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
89       properties:
90         virtual_machine_interface_refs:
91         - get_input:
92           - p2
93           - 0
94         name:
95           str_replace:
96             template: $NAME$VLAN
97             params:
98               $NAME:
99                 get_input: subinterface_name_prefix
100               $VLAN:
101                 get_input:
102                 - vlan_ids
103                 - get_input: subinterface_instance_index
104         virtual_network_refs:
105         - get_input:
106           - net2
107           - 1
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_2:
131       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
132       properties:
133         virtual_machine_interface_refs:
134         - get_input: p2
135         - get_input: p1
136         name:
137           str_replace:
138             template: $NAME$VLAN
139             params:
140               $NAME:
141                 get_input: subinterface_name_prefix
142               $VLAN:
143                 get_input:
144                 - vlan_ids
145                 - get_input: subinterface_instance_index
146         virtual_network_refs:
147         - get_input: net2
148         - get_input: net1
149         virtual_machine_interface_properties:
150           sub_interface_vlan_tag:
151             get_input: lb_st_vlan_type_oam
152         virtual_machine_interface_allowed_address_pairs:
153           allowed_address_pair:
154           - address_mode: active-standby
155             ip:
156               ip_prefix:
157                 get_input: virtual_ip_address
158               ip_prefix_len: 32
159             mac:
160               get_input: mac_address
161           - address_mode: active-standby
162             ip:
163               ip_prefix:
164                 get_input: virtual_ipv6_address
165               ip_prefix_len: 128
166             mac:
167               get_input: mac_address
168         virtual_machine_interface_mac_addresses:
169           mac_address:
170           - get_input: mac_address
171     template_Vlan_1:
172       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
173       properties:
174         virtual_machine_interface_refs:
175         - get_input: p1
176         name:
177           str_replace:
178             template: $NAME$VLAN
179             params:
180               $NAME:
181                 get_input: subinterface_name_prefix
182               $VLAN:
183                 get_input:
184                 - vlan_ids
185                 - get_input: subinterface_instance_index
186         virtual_network_refs:
187         - get_input: net1
188         virtual_machine_interface_properties:
189           sub_interface_vlan_tag:
190             get_input: lb_st_vlan_type_oam
191         virtual_machine_interface_allowed_address_pairs:
192           allowed_address_pair:
193           - address_mode: active-standby
194             ip:
195               ip_prefix:
196                 get_input: virtual_ip_address
197               ip_prefix_len: 32
198             mac:
199               get_input: mac_address
200           - address_mode: active-standby
201             ip:
202               ip_prefix:
203                 get_input: virtual_ipv6_address
204               ip_prefix_len: 128
205             mac:
206               get_input: mac_address
207         virtual_machine_interface_mac_addresses:
208           mac_address:
209           - get_input: mac_address
210   groups:
211     nested_group:
212       type: org.openecomp.groups.heat.HeatStack
213       properties:
214         heat_file: ../Artifacts/nested.yml
215         description: cmaui server template for vMMSC
216       members:
217       - template_Vlan_3_arrayParameter
218       - template_Vlan_2
219       - template_Vlan_1
220   substitution_mappings:
221     node_type: org.openecomp.resource.abstract.nodes.heat.nested
222     requirements:
223       link_template_Vlan_1:
224       - template_Vlan_1
225       - link
226       link_template_Vlan_3_arrayParameter:
227       - template_Vlan_3_arrayParameter
228       - link
229       link_template_Vlan_2:
230       - template_Vlan_2
231       - link
232       binding_template_Vlan_2:
233       - template_Vlan_2
234       - binding
235       binding_template_Vlan_1:
236       - template_Vlan_1
237       - binding
238       binding_template_Vlan_3_arrayParameter:
239       - template_Vlan_3_arrayParameter
240       - binding