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