[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 / cleanMainSt / consolidation / 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     jsa_net1:
110       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
111       properties:
112         shared: true
113         network_name:
114           get_attribute:
115           - FSB1_Internal1
116           - network_id
117         dhcp_agent_ids:
118           get_attribute:
119           - FSB1_template
120           - addresses
121         tenant_id:
122           get_attribute:
123           - FSB2_Internal2
124           - network_id
125         qos_policy:
126           get_attribute:
127           - FSB2_Internal2
128           - network_id
129     cmaui_volume1:
130       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
131       properties:
132         volume_type:
133           get_input: CMAUI_volume_type
134         size: '(get_input : cmaui_cinder_volume_size) * 1024'
135     cmaui_volume2:
136       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
137       properties:
138         volume_type:
139           get_input: CMAUI_volume_type
140         size: '(get_input : cmaui_cinder_volume_size) * 1024'
141     FSB1:
142       type: org.openecomp.resource.abstract.nodes.FSB1
143       directives:
144       - substitutable
145       properties:
146         port_FSB1_Internal_mac_address:
147         - get_input: fsb1-Internal1-mac
148         compute_FSB1_metadata:
149         - write_files:
150           - path: /etc/sysconfig/network-scripts/ifcfg-eth0
151             permissions: '0644'
152             content:
153               str_replace:
154                 template:
155                   get_artifact:
156                   - SELF
157                   - nimbus-ethernet
158                 params:
159                   $dev: eth0
160                   $netmask:
161                     get_input: cps_net_mask
162                   $ip:
163                     get_input: cps_net_ip
164           - path: /etc/sysconfig/network-scripts/ifcfg-eth1
165             permissions: '0644'
166             content:
167               str_replace:
168                 template:
169                   get_artifact:
170                   - SELF
171                   - nimbus-ethernet-gw
172                 params:
173                   $dev: eth1
174                   $netmask:
175                     get_input: oam_net_mask
176                   $gateway:
177                     get_input: oam_net_gw
178                   $ip:
179                     get_input: oam_net_ip
180         port_FSB_OAM_fixed_ips:
181         - - ip_address:
182               get_input: fsb1-oam-ip
183         compute_FSB1_availability_zone:
184         - get_input: fsb_zone
185         port_FSB1_Internal_network:
186         - Internal1-net
187         port_FSB2_Internal_network:
188         - Internal2-net
189         compute_FSB1_name:
190         - get_input: fsb1-name
191         vm_flavor_name:
192           get_input: fsb1-flavor
193         port_FSB2_Internal_mac_address:
194         - get_input: fsb1-Internal2-mac
195         port_FSB_OAM_network:
196         - jsa_net1
197         service_template_filter:
198           substitute_service_template: Nested_FSB1ServiceTemplate.yaml
199           count: 1
200         index_value:
201           get_property:
202           - SELF
203           - service_template_filter
204           - index_value
205   groups:
206     ep-jsa_net_group:
207       type: org.openecomp.groups.heat.HeatStack
208       properties:
209         heat_file: ../Artifacts/ep-jsa_net.yaml
210         description: |
211           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
212       members:
213       - FSB1
214   outputs:
215     simpleOutput1:
216       value:
217         get_attribute:
218         - FSB1_template
219         - accessIPv4
220     simpleOutput2:
221       value:
222         get_attribute:
223         - FSB2_template
224         - addresses
225         - key1
226     complexOutput1:
227       value:
228         get_attribute:
229         - FSB1_template
230         - addresses
231         - get_attribute:
232           - FSB2_Internal2
233           - index
234     complexOutput2:
235       description: cgi fw01 left interface Mac-Address
236       value:
237         get_attribute:
238         - FSB1_Internal2
239         - addresses
240         - get_input:
241           - CMAUI_volume_type
242           - get_attribute:
243             - FSB2_Internal1
244             - oam_index
245         - 0
246         - OS-EXT-IPS-MAC:mac_addr
247     complexOutput3:
248       description: cgi fw01 left interface Mac-Address
249       value:
250         get_input:
251         - a
252         - addresses
253         - get_input:
254           - CMAUI_volume_type
255           - get_attribute:
256             - FSB1_Internal1
257             - accessIPv6
258         - 0
259         - OS-EXT-IPS-MAC:mac_addr