[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 / buildconsolidationdata / dependsonresource / multiplecompute / expectedoutputfiles / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 node_types:
8   org.openecomp.resource.vfc.nodes.heat.Compute_Node_2:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10   org.openecomp.resource.vfc.nodes.heat.QRouter:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     tenant_name:
15       hidden: false
16       immutable: false
17       type: string
18       description: Name of tenant to be used
19     oam_private_net_name:
20       hidden: false
21       immutable: false
22       type: string
23       description: A string specifying a symbolic name for the network
24     packet_internal_network_name:
25       hidden: false
26       immutable: false
27       type: string
28       description: A string specifying a symbolic name for the network
29     packet_mirror_network_subnet_alloc_start:
30       hidden: false
31       immutable: false
32       type: string
33       description: Start address for the allocation pool
34     packet_mirror_network_name:
35       hidden: false
36       immutable: false
37       type: string
38       description: A string specifying a symbolic name for the network
39     base_image_name:
40       hidden: false
41       immutable: false
42       type: string
43       description: The base ID or name of the image to boot with
44     cdr_network:
45       hidden: false
46       immutable: false
47       type: string
48       description: A string specifying a symbolic name for the network
49     packet_internal_network_subnet_alloc_start:
50       hidden: false
51       immutable: false
52       type: string
53       description: Start address for the allocation pool
54     packet_internal_network_subnet_alloc_end:
55       hidden: false
56       immutable: false
57       type: string
58       description: End address for the allocation pool
59     domain_name:
60       hidden: false
61       immutable: false
62       type: string
63       description: The servers domain
64     packet_mirror_network_subnet_alloc_end:
65       hidden: false
66       immutable: false
67       type: string
68       description: End address for the allocation pool
69     packet_internal_network_subnet_name:
70       hidden: false
71       immutable: false
72       type: string
73       description: The name of the subnet
74     packet_mirror_network_subnet_cidr:
75       hidden: false
76       immutable: false
77       type: string
78       description: The Classless Inter-Domain Routing
79     availability_zone_0:
80       hidden: false
81       immutable: false
82       type: string
83       description: Name of the availability zone for server placement
84     packet_internal_network_subnet_cidr:
85       hidden: false
86       immutable: false
87       type: string
88       description: The Classless Inter-Domain Routing
89     region_name:
90       hidden: false
91       immutable: false
92       type: string
93       description: Name of region to be used
94     availability_zone_1:
95       hidden: false
96       immutable: false
97       type: string
98       description: Name of the availability zone for server placement
99     manager_name_0:
100       hidden: false
101       immutable: false
102       type: string
103       description: VM Name for Manager VM 0
104     manager_oam_direct_ip_0:
105       hidden: false
106       immutable: false
107       type: string
108       description: The public ip address of the manager
109     packet_mirror_network_subnet_name:
110       hidden: false
111       immutable: false
112       type: string
113       description: The name of the subnet
114     rpmrepository_ip_0:
115       hidden: false
116       immutable: false
117       type: string
118       description: The public ip address of the repository
119   node_templates:
120     Compute_Node_2:
121       type: org.openecomp.resource.vfc.nodes.heat.Compute_Node_2
122       properties:
123         flavor: FLAVOR-test
124         availability_zone: Availability-test
125         image: Image-test
126         config_drive: true
127         name: Compute_Node_2-name
128       requirements:
129       - dependency:
130           capability: tosca.capabilities.Node
131           node: packet_mirror_network
132           relationship: tosca.relationships.DependsOn
133     QRouter:
134       type: org.openecomp.resource.vfc.nodes.heat.QRouter
135       properties:
136         flavor: FLAVOR-test
137         availability_zone: Availability-test
138         image: Image-test
139         config_drive: true
140         name: QRouter-name
141       requirements:
142       - dependency:
143           capability: tosca.capabilities.Node
144           node: packet_internal_network
145           relationship: tosca.relationships.DependsOn
146     packet_mirror_network:
147       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
148       properties:
149         network_name:
150           get_input: packet_mirror_network_name
151       requirements:
152       - dependency:
153           capability: tosca.capabilities.Node
154           node: QRouter
155           relationship: tosca.relationships.DependsOn
156     packet_internal_network:
157       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
158       properties:
159         network_name:
160           get_input: packet_internal_network_name
161     cdr_network_port:
162       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
163       properties:
164         ip_requirements:
165         - ip_version: 4
166           ip_count_required:
167             is_required: false
168           floating_ip_count_required:
169             is_required: false
170         mac_requirements:
171           mac_count_required:
172             is_required: false
173         network:
174           get_input: cdr_network
175       requirements:
176       - binding:
177           capability: tosca.capabilities.network.Bindable
178           node: QRouter
179           relationship: tosca.relationships.network.BindsTo
180       - binding:
181           capability: tosca.capabilities.network.Bindable
182           node: Compute_Node_2
183           relationship: tosca.relationships.network.BindsTo
184     oam_private_net_network_port:
185       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
186       properties:
187         ip_requirements:
188         - ip_version: 4
189           ip_count_required:
190             is_required: false
191           floating_ip_count_required:
192             is_required: false
193         mac_requirements:
194           mac_count_required:
195             is_required: false
196         network_role_tag: oam_private
197         network:
198           get_input: oam_private_net_name
199       requirements:
200       - binding:
201           capability: tosca.capabilities.network.Bindable
202           node: QRouter
203           relationship: tosca.relationships.network.BindsTo
204       - binding:
205           capability: tosca.capabilities.network.Bindable
206           node: Compute_Node_2
207           relationship: tosca.relationships.network.BindsTo
208   groups:
209     input_group:
210       type: org.openecomp.groups.heat.HeatStack
211       properties:
212         heat_file: ../Artifacts/input.yaml
213       members:
214       - Compute_Node_2
215       - QRouter
216       - packet_mirror_network
217       - packet_internal_network
218       - cdr_network_port
219       - oam_private_net_network_port