[SDC] Onboarding 1710 rebase.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / unifiedComposition / updNodesGetAttrIn / 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_attribute: [FSB1_template, 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     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_template
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_attribute: [ FSB1_Internal1, myAttr, get_attribute: [FSB1_Internal1, index] ]
178         metadata:
179           get_attribute: [ FSB1_Internal1, myAttr, get_input: index ]
180         name:
181           get_attribute: [ FSB1_Internal1, myAttr, get_attribute: [jsa_net1, index] ]
182       artifacts:
183         nimbus-ethernet-gw:
184           type: tosca.artifacts.Deployment
185           file: ../Artifacts/nimbus-ethernet-gw
186         nimbus-ethernet:
187           type: tosca.artifacts.Deployment
188           file: ../Artifacts/nimbus-ethernet
189       requirements:
190       - local_storage:
191           capability: tosca.capabilities.Attachment
192           node: cmaui_volume1
193           relationship: cmaui_volume_attachment
194       - local_storage:
195           capability: tosca.capabilities.Attachment
196           node: cmaui_volume2
197           relationship: cmaui_volume_attachment
198     cmaui_volume1:
199       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
200       properties:
201         volume_type: {get_attribute: [ FSB1_template, addresses, {get_attribute: [ FSB2_Internal2,tenant_id ] } ]}
202         size: { get_attribute: [FSB1_Internal1, device_owner, get_input: [CMAUI_volume_type,{get_attribute: [FSB1_OAM,status ] }], 0, "OS-EXT-IPS-MAC:mac_addr"] }
203     cmaui_volume2:
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: [a, addresses, get_input: [CMAUI_volume_type, {get_attribute: [FSB1_template,accessIPv6 ] }], 0, "OS-EXT-IPS-MAC:mac_addr"] }
209   groups:
210     ep-jsa_net_group:
211       type: org.openecomp.groups.heat.HeatStack
212       properties:
213         heat_file: ../Artifacts/ep-jsa_net.yaml
214         description: |
215           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
216       members:
217       - FSB2_Internal2
218       - FSB1_Internal1
219       - FSB1_OAM
220       - FSB1_template