[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 / updOutputGetAttrIn / noConsolidation / out / 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.FSB1:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     fsb1-name:
13       label: FSB1_name
14       hidden: false
15       immutable: false
16       type: string
17       description: FSB1_name
18     fsb1-Internal1-mac:
19       label: FSB1_internal_mac
20       hidden: false
21       immutable: false
22       type: string
23       description: FSB1_internal_mac
24     cps_net_mask:
25       hidden: false
26       immutable: false
27       type: string
28       description: prop
29     fsb1-flavor:
30       label: FSB1_flavor
31       hidden: false
32       immutable: false
33       type: string
34       description: FSB1_flavor
35     fsb1-Internal2-mac:
36       label: FSB1_internal_mac
37       hidden: false
38       immutable: false
39       type: string
40       description: FSB1_internal_mac
41     volume_type:
42       label: volume type
43       hidden: false
44       immutable: false
45       type: string
46       description: volume type Gold
47     fsb_zone:
48       label: FSB1_zone
49       hidden: false
50       immutable: false
51       type: string
52       description: FSB1_zone
53     oam_net_gw:
54       hidden: false
55       immutable: false
56       type: string
57       description: prop
58     network_name:
59       hidden: false
60       immutable: false
61       type: string
62       description: prop
63     cps_net_ip:
64       hidden: false
65       immutable: false
66       type: string
67       description: prop
68     jsa_net_name:
69       label: jsa_net_name
70       hidden: false
71       immutable: false
72       type: string
73       description: jsa_net_name
74       default: jsa_log_net_0
75     pcrf_psm_server_name:
76       label: pcrf_psm_server_name
77       hidden: false
78       immutable: false
79       type: string
80       description: pcrf_psm_server_name
81     pcm_flavor_name:
82       label: pcm_flavor_name
83       hidden: false
84       immutable: false
85       type: string
86       description: pcm_flavor_name
87     oam_net_id:
88       label: oam_net_id
89       hidden: false
90       immutable: false
91       type: string
92       description: oam_net_id
93     oam_net_ip:
94       hidden: false
95       immutable: false
96       type: string
97       description: prop
98     oam_net_mask:
99       hidden: false
100       immutable: false
101       type: string
102       description: prop
103     fsb1-oam-ip:
104       hidden: false
105       immutable: false
106       type: string
107       description: prop
108   node_templates:
109     FSB2_Internal2:
110       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
111       properties:
112         mac_address:
113           get_input: fsb1-Internal2-mac
114         network: Internal2-net
115       requirements:
116       - binding:
117           capability: tosca.capabilities.network.Bindable
118           node: FSB1
119           relationship: tosca.relationships.network.BindsTo
120     FSB1_Internal1:
121       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
122       properties:
123         mac_address:
124           get_input: fsb1-Internal1-mac
125         network: Internal1-net
126       requirements:
127       - binding:
128           capability: tosca.capabilities.network.Bindable
129           node: FSB1
130           relationship: tosca.relationships.network.BindsTo
131       - link:
132           capability: tosca.capabilities.network.Linkable
133           node: jsa_net1
134           relationship: tosca.relationships.network.LinksTo
135     FSB1_OAM:
136       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
137       properties:
138         fixed_ips:
139         - ip_address:
140             get_input: fsb1-oam-ip
141         network: jsa_net1
142       requirements:
143       - binding:
144           capability: tosca.capabilities.network.Bindable
145           node: FSB1
146           relationship: tosca.relationships.network.BindsTo
147       - link:
148           capability: tosca.capabilities.network.Linkable
149           node: jsa_net1
150           relationship: tosca.relationships.network.LinksTo
151     jsa_net1:
152       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
153       properties:
154         shared: true
155         network_name:
156           get_attribute:
157           - FSB1_Internal1
158           - network_id
159         dhcp_agent_ids:
160           get_attribute:
161           - FSB1_template
162           - addresses
163         tenant_id:
164           get_attribute:
165           - FSB2_Internal2
166           - network_id
167         qos_policy:
168           get_attribute:
169           - FSB2_Internal2
170           - network_id
171     FSB1_template:
172       type: org.openecomp.resource.vfc.nodes.heat.FSB1
173       properties:
174         flavor:
175           get_input: fsb1-flavor
176         availability_zone:
177           get_input: fsb_zone
178         metadata:
179           write_files:
180           - path: /etc/sysconfig/network-scripts/ifcfg-eth0
181             permissions: '0644'
182             content:
183               str_replace:
184                 template:
185                   get_artifact:
186                   - SELF
187                   - nimbus-ethernet
188                 params:
189                   $dev: eth0
190                   $netmask:
191                     get_input: cps_net_mask
192                   $ip:
193                     get_input: cps_net_ip
194           - path: /etc/sysconfig/network-scripts/ifcfg-eth1
195             permissions: '0644'
196             content:
197               str_replace:
198                 template:
199                   get_artifact:
200                   - SELF
201                   - nimbus-ethernet-gw
202                 params:
203                   $dev: eth1
204                   $netmask:
205                     get_input: oam_net_mask
206                   $gateway:
207                     get_input: oam_net_gw
208                   $ip:
209                     get_input: oam_net_ip
210         name:
211           get_input: fsb1-name
212       requirements:
213       - local_storage:
214           capability: tosca.capabilities.Attachment
215           node: cmaui_volume1
216           relationship: cmaui_volume_attachment
217       - local_storage:
218           capability: tosca.capabilities.Attachment
219           node: cmaui_volume2
220           relationship: cmaui_volume_attachment
221       artifacts:
222         nimbus-ethernet-gw:
223           type: tosca.artifacts.Deployment
224           file: ../Artifacts/nimbus-ethernet-gw
225         nimbus-ethernet:
226           type: tosca.artifacts.Deployment
227           file: ../Artifacts/nimbus-ethernet
228     cmaui_volume1:
229       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
230       properties:
231         volume_type:
232           get_input: CMAUI_volume_type
233         size: '(get_input : cmaui_cinder_volume_size) * 1024'
234     cmaui_volume2:
235       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
236       properties:
237         volume_type:
238           get_input: CMAUI_volume_type
239         size: '(get_input : cmaui_cinder_volume_size) * 1024'
240   groups:
241     ep-jsa_net_group:
242       type: org.openecomp.groups.heat.HeatStack
243       properties:
244         heat_file: ../Artifacts/ep-jsa_net.yaml
245         description: |
246           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
247       members:
248       - FSB2_Internal2
249       - FSB1_Internal1
250       - FSB1_OAM
251       - FSB1_template
252   outputs:
253     simpleOutput1:
254       value:
255         get_attribute:
256         - FSB1
257         - FSB1_accessIPv4
258     simpleOutput2:
259       value:
260         get_attribute:
261         - FSB1
262         - FSB1_addresses
263         - key1
264     complexOutput1:
265       value:
266         get_attribute:
267         - FSB1
268         - FSB1_addresses
269         - get_attribute:
270           - FSB1
271           - FSB1_FSB2_Internal_index
272     complexOutput2:
273       description: cgi fw01 left interface Mac-Address
274       value:
275         get_attribute:
276         - FSB1
277         - FSB1_FSB1_Internal_addresses
278         - get_input:
279           - CMAUI_volume_type
280           - get_attribute:
281             - FSB1
282             - FSB1_FSB_OAM_oam_index
283         - 0
284         - OS-EXT-IPS-MAC:mac_addr
285     complexOutput3:
286       description: cgi fw01 left interface Mac-Address
287       value:
288         get_input:
289         - a
290         - addresses
291         - get_input:
292           - CMAUI_volume_type
293           - get_attribute:
294             - FSB1
295             - FSB1_accessIPv6
296         - 0
297         - OS-EXT-IPS-MAC:mac_addr