[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 / unifiedComposition / updGroupsConnectivity / consolidation / in / 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.FSB:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10
11 topology_template:
12   inputs:
13     fsb1-name:
14       label: FSB1_name
15       hidden: false
16       immutable: false
17       type: string
18       description: FSB1_name
19     fsb2-name:
20       label: FSB2_name
21       hidden: false
22       immutable: false
23       type: string
24       description: FSB2_name
25     cmaui_cinder_volume_size:
26       label: volume size
27       hidden: false
28       immutable: false
29       type: float
30       description: my volume size 320GB
31     fsb-flavor:
32       label: FSB1_flavor
33       hidden: false
34       immutable: false
35       type: string
36       description: FSB1_flavor
37     fsb-image:
38       label: FSB1_image
39       hidden: false
40       immutable: false
41       type: string
42       description: FSB1_image
43     fsb1-Internal1-mac:
44       label: FSB1_internal_mac
45       hidden: false
46       immutable: false
47       type: string
48       description: FSB1_internal_mac
49     fsb1-Internal2-mac:
50       label: FSB1_internal_mac
51       hidden: false
52       immutable: false
53       type: string
54       description: FSB1_internal_mac
55     fsb1-zone:
56       label: FSB1_zone
57       hidden: false
58       immutable: false
59       type: string
60       description: FSB1_zone
61     fsb2_zone:
62       label: FSB2_zone
63       hidden: false
64       immutable: false
65       type: string
66       description: FSB2_zone
67     network_name:
68       hidden: false
69       immutable: false
70       type: string
71       description: prop
72     fsb2-Internal1-mac:
73       label: FSB1_internal_mac
74       hidden: false
75       immutable: false
76       type: string
77       description: FSB1_internal_mac
78     fsb2-Internal2-mac:
79       label: FSB1_internal_mac
80       hidden: false
81       immutable: false
82       type: string
83       description: FSB1_internal_mac
84     fsb1-oam-ip:
85       hidden: false
86       immutable: false
87       type: string
88       description: prop
89     jsa_net_name:
90       hidden: false
91       immutable: false
92       type: string
93       description: prop
94     packet_mirror_network_name:
95       hidden: false
96       immutable: false
97       type: string
98       description: prop
99   node_templates:
100     FSB2_Internal2:
101       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
102       properties:
103         mac_address:
104           get_input: fsb2-Internal2-mac
105         network: Internal2-net-fsb2-Internal2
106       requirements:
107       - binding:
108           capability: tosca.capabilities.network.Bindable
109           node: FSB2_template
110           relationship: tosca.relationships.network.BindsTo
111       - link:
112           capability: tosca.capabilities.network.Linkable
113           node: jsa_net
114           relationship: tosca.relationships.network.LinksTo
115     FSB2_Internal1:
116       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
117       properties:
118         mac_address:
119           get_input: fsb2-Internal1-mac
120         network: Internal2-net-fsb2-Internal1
121       requirements:
122       - binding:
123           capability: tosca.capabilities.network.Bindable
124           node: FSB1_template
125           relationship: tosca.relationships.network.BindsTo
126       - link:
127           capability: tosca.capabilities.network.Linkable
128           node: jsa_net
129           relationship: tosca.relationships.network.LinksTo
130     FSB1_Internal2:
131       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
132       properties:
133         mac_address:
134           get_input: fsb1-Internal2-mac
135         network: Internal1-net-fsb1-Internal2
136       requirements:
137       - binding:
138           capability: tosca.capabilities.network.Bindable
139           node: FSB2_template
140           relationship: tosca.relationships.network.BindsTo
141       - link:
142           capability: tosca.capabilities.network.Linkable
143           node: jsa_net1
144           relationship: tosca.relationships.network.LinksTo
145     FSB1_Internal1:
146       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
147       properties:
148         mac_address:
149           get_input: fsb1-Internal1-mac
150         network: Internal1-net-fsb1-Internal1
151       requirements:
152       - binding:
153           capability: tosca.capabilities.network.Bindable
154           node: FSB1_template
155           relationship: tosca.relationships.network.BindsTo
156       - link:
157           capability: tosca.capabilities.network.Linkable
158           node: jsa_net1
159           relationship: tosca.relationships.network.LinksTo
160     jsa_net:
161       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
162       properties:
163         shared: true
164         network_name:
165           get_input: jsa_net_name
166     jsa_net1:
167       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
168       properties:
169         shared: true
170         network_name:
171          get_attribute:
172           - FSB1_Internal1
173           - network_id
174         dhcp_agent_ids:
175          get_attribute:
176           - FSB1_template
177           - addresses
178         tenant_id:
179          get_attribute:
180           - FSB2_Internal2
181           - network_id
182         qos_policy:
183          get_attribute:
184           - FSB2_Internal2
185           - network_id
186     FSB1_template:
187       type: org.openecomp.resource.vfc.nodes.heat.FSB
188       properties:
189         flavor:
190           get_input: fsb-flavor
191         image:
192           get_input: fsb-image
193         user_data: STATIC-DATA-FSB1
194         admin_pass: OPTIONAL-DATA-FSB1
195         availability_zone:
196           get_input: fsb1_zone
197         metadata:
198           write_files:
199           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
200           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
201         name:
202           get_input: fsb1-name
203       requirements:
204       - dependency:
205           capability: tosca.capabilities.Node
206           node: packet_mirror_network
207           relationship: tosca.relationships.DependsOn
208     FSB2_template:
209       type: org.openecomp.resource.vfc.nodes.heat.FSB
210       properties:
211         flavor:
212           get_input: fsb-flavor
213         image:
214           get_input: fsb-image
215         user_data: STATIC-DATA-FSB2
216         availability_zone:
217           get_input: fsb2_zone
218         metadata:
219           write_files:
220           - path: /path3/etc/sysconfig/network-scripts/ifcfg-eth0
221           - path: /path4/etc/sysconfig/network-scripts/ifcfg-eth1
222         name:
223           get_input: fsb2-name
224       requirements:
225       - dependency:
226           capability: tosca.capabilities.Node
227           node: packet_mirror_network
228           relationship: tosca.relationships.DependsOn
229     packet_mirror_network:
230       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
231       properties:
232         network_name:
233           get_input: packet_mirror_network_name
234   groups:
235     FE_SMP_Affinity_group:
236       type: tosca.groups.Root
237       members:
238       - FSB2_template
239       - FSB1_template
240     BE_Affinity_group:
241       type: tosca.groups.Root
242       members:
243       - FSB2_template
244       - FSB1_template
245     ep-jsa_net_group:
246       type: org.openecomp.groups.heat.HeatStack
247       properties:
248         heat_file: ../Artifacts/ep-jsa_net.yaml
249         description: |
250           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
251       members:
252       - FSB1_Internal1
253       - FSB1_Internal2
254       - FSB2_Internal1
255       - FSB2_Internal2
256       - FSB1_template
257       - FSB2_template
258       - jsa_net
259       - jsa_net1
260       - packet_mirror_network_name