[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 / VlanToNetConnection / shared / 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 node_types:
40   org.openecomp.resource.vfc.nodes.heat.cmaui:
41     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
42 topology_template:
43   inputs:
44     cmaui_names:
45       hidden: false
46       immutable: false
47       type: list
48       description: CMAUI1, CMAUI2 server names
49       entry_schema:
50         type: string
51     p1:
52       hidden: false
53       immutable: false
54       type: string
55       description: UID of OAM network
56     virtual_ip_address:
57       hidden: false
58       immutable: false
59       type: string
60     security_group_name:
61       hidden: false
62       immutable: false
63       description: not impotrtant
64     vlan_ids:
65       hidden: false
66       immutable: false
67       type: string
68     cmaui_image:
69       hidden: false
70       immutable: false
71       type: string
72       description: Image for CMAUI server
73     virtual_ipv6_address:
74       hidden: false
75       immutable: false
76       type: string
77     cmaui_flavor:
78       hidden: false
79       immutable: false
80       type: string
81       description: Flavor for CMAUI server
82     lb_st_vlan_type_oam:
83       hidden: false
84       immutable: false
85       type: string
86       description: dummy
87     mac_address:
88       hidden: false
89       immutable: false
90       type: string
91     availability_zone_0:
92       label: availabilityzone name
93       hidden: false
94       immutable: false
95       type: string
96       description: availabilityzone name
97     abc_oam_ips:
98       hidden: false
99       immutable: false
100       type: string
101     subinterface_name_prefix:
102       hidden: false
103       immutable: false
104       type: string
105     subinterface_instance_index:
106       hidden: false
107       immutable: false
108       type: float
109     cmaui_oam_ips:
110       hidden: false
111       immutable: false
112       type: string
113   node_templates:
114     server_cmaui:
115       type: org.openecomp.resource.vfc.nodes.heat.cmaui
116       properties:
117         flavor:
118           get_input: cmaui_flavor
119         availability_zone:
120           get_input: availability_zone_0
121         image:
122           get_input: cmaui_image
123         name:
124           get_input:
125           - cmaui_names
126           - 0
127     template_Vlan_3:
128       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
129       properties:
130         virtual_machine_interface_refs:
131         - cmaui_port_1
132         name:
133           str_replace:
134             template: $NAME$VLAN
135             params:
136               $NAME:
137                 get_input: subinterface_name_prefix
138               $VLAN:
139                 get_input:
140                 - vlan_ids
141                 - get_input: subinterface_instance_index
142         virtual_network_refs:
143         - get_input: p1
144         virtual_machine_interface_properties:
145           sub_interface_vlan_tag:
146             get_input: lb_st_vlan_type_oam
147         virtual_machine_interface_allowed_address_pairs:
148           allowed_address_pair:
149           - address_mode: active-standby
150             ip:
151               ip_prefix:
152                 get_input: virtual_ip_address
153               ip_prefix_len: 32
154             mac:
155               get_input: mac_address
156           - address_mode: active-standby
157             ip:
158               ip_prefix:
159                 get_input: virtual_ipv6_address
160               ip_prefix_len: 128
161             mac:
162               get_input: mac_address
163         virtual_machine_interface_mac_addresses:
164           mac_address:
165           - get_input: mac_address
166       requirements:
167       - binding:
168           capability: tosca.capabilities.network.Bindable
169           node: cmaui_port_1
170           relationship: tosca.relationships.network.BindsTo
171     cmaui_port_1:
172       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
173       properties:
174         replacement_policy: AUTO
175         security_groups:
176         - get_input: security_group_name
177         fixed_ips:
178         - ip_address:
179             get_input:
180             - cmaui_oam_ips
181             - 0
182         network:
183           get_input: p1
184       requirements:
185       - binding:
186           capability: tosca.capabilities.network.Bindable
187           node: server_cmaui
188           relationship: tosca.relationships.network.BindsTo
189   groups:
190     nested2_group:
191       type: org.openecomp.groups.heat.HeatStack
192       properties:
193         heat_file: ../Artifacts/nested2.yml
194         description: cmaui server template for vMMSC
195       members:
196       - server_cmaui
197       - template_Vlan_3
198       - cmaui_port_1
199   substitution_mappings:
200     node_type: org.openecomp.resource.abstract.nodes.heat.nested2
201     capabilities:
202       host_server_cmaui:
203       - server_cmaui
204       - host
205       os_server_cmaui:
206       - server_cmaui
207       - os
208       binding_cmaui_port_1:
209       - cmaui_port_1
210       - binding
211       endpoint_server_cmaui:
212       - server_cmaui
213       - endpoint
214       binding_server_cmaui:
215       - server_cmaui
216       - binding
217       scalable_server_cmaui:
218       - server_cmaui
219       - scalable
220       attachment_cmaui_port_1:
221       - cmaui_port_1
222       - attachment
223     requirements:
224       local_storage_server_cmaui:
225       - server_cmaui
226       - local_storage
227       link_template_Vlan_3:
228       - template_Vlan_3
229       - link
230       link_cmaui_port_1:
231       - cmaui_port_1
232       - link