[SDC] Onboarding 1710 rebase.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / unifiedComposition / pattern1b / noConsolidation / 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.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_template
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_template
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     jsa_net1:
136       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
137       properties:
138         shared: true
139         network_name:
140          get_attribute:
141           - FSB1_Internal1
142           - network_id
143         dhcp_agent_ids:
144          get_attribute:
145           - FSB1_template
146           - addresses
147         tenant_id:
148          get_attribute:
149           - FSB2_Internal2
150           - network_id
151         qos_policy:
152          get_attribute:
153           - FSB2_Internal2
154           - network_id
155     FSB1_template:
156       type: org.openecomp.resource.vfc.nodes.heat.FSB1
157       properties:
158         flavor:
159           get_input: fsb1-flavor
160         availability_zone:
161           get_input: fsb_zone
162       requirements:
163       - local_storage:
164           capability: tosca.capabilities.Attachment
165           node: cmaui_volume1
166           relationship: cmaui_volume_attachment
167       - local_storage:
168           capability: tosca.capabilities.Attachment
169           node: cmaui_volume2
170           relationship: cmaui_volume_attachment
171     FSB2_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       requirements:
179       - local_storage:
180           capability: tosca.capabilities.Attachment
181           node: cmaui_volume1
182           relationship: cmaui_volume_attachment
183       - local_storage:
184           capability: tosca.capabilities.Attachment
185           node: cmaui_volume2
186           relationship: cmaui_volume_attachment
187     FSB3_template:
188       type: org.openecomp.resource.vfc.nodes.heat.FSB1
189       properties:
190         flavor:
191           get_input: fsb1-flavor
192         availability_zone:
193           get_input: fsb_zone
194       requirements:
195       - local_storage:
196           capability: tosca.capabilities.Attachment
197           node: cmaui_volume1
198           relationship: cmaui_volume_attachment
199       - local_storage:
200           capability: tosca.capabilities.Attachment
201           node: cmaui_volume2
202           relationship: cmaui_volume_attachment
203     cmaui_volume1:
204       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
205       properties:
206         volume_type:
207           get_input: CMAUI_volume_type
208         size: '(get_input : cmaui_cinder_volume_size) * 1024'
209     cmaui_volume2:
210       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
211       properties:
212         volume_type:
213           get_input: CMAUI_volume_type
214         size: '(get_input : cmaui_cinder_volume_size) * 1024'
215   groups:
216     ep-jsa_net_group:
217       type: org.openecomp.groups.heat.HeatStack
218       properties:
219         heat_file: ../Artifacts/ep-jsa_net.yaml
220         description: |
221           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
222       members:
223       - FSB2_Internal2
224       - FSB1_Internal1
225       - FSB1_template
226       - FSB2_template
227       - FSB3_template
228   outputs:
229     simpleOutput1:
230        value: {get_attribute: [ FSB1_template, accessIPv4 ] }
231     simpleOutput2:
232        value: {get_attribute: [ FSB2_template, addresses, key1 ] }
233     complexOutput1:
234       value: {get_attribute: [ FSB1_template, addresses, {get_attribute: [ FSB2_Internal2,tenant_id ] } ]}
235     complexOutput2:
236       description:  cgi fw01 left interface Mac-Address
237       value: { get_attribute: [FSB1_Internal2, device_owner, get_input: [CMAUI_volume_type, {get_attribute: [FSB2_Internal1,user_data_format ] }], 0, "OS-EXT-IPS-MAC:mac_addr"] }
238     complexOutput3:
239       description:  cgi fw01 left interface Mac-Address
240       value: { get_input: [a, addresses, get_input: [CMAUI_volume_type, {get_attribute:  [FSB1_Internal1,admin_state_up ] }], 0, "OS-EXT-IPS-MAC:mac_addr"] }