[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heat / nested / single / expectedoutputfiles / 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 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 node_types:
10   org.openecomp.resource.vfc.nodes.heat.compute:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     oam_net_ips:
15       label: OAM network ips
16       hidden: false
17       immutable: false
18       type: list
19       description: OAM network ips
20       default:
21       - 107.239.64.121
22       entry_schema:
23         type: string
24     availabilityzone_name:
25       label: availabilityzone name
26       hidden: false
27       immutable: false
28       type: string
29       description: availabilityzone name
30       default: nova
31     oam_net_gw:
32       label: CPS network gateway
33       hidden: false
34       immutable: false
35       type: string
36       description: CPS network gateway
37       default: 107.239.64.1
38     pcm_server_names:
39       label: PCRF CM server names
40       hidden: false
41       immutable: false
42       type: list
43       description: name of the PCRF CM instance
44       default:
45       - ZRDM1PCRF01PCM001
46       entry_schema:
47         type: string
48     pcm_image_name:
49       label: PCRF CM image name
50       hidden: false
51       immutable: false
52       type: string
53       description: PCRF CM image name
54       default: rhel2
55     cps_net_ips:
56       label: CPS network ips
57       hidden: false
58       immutable: false
59       type: list
60       description: CPS network ips
61       default:
62       - 172.26.16.113
63       entry_schema:
64         type: string
65     security_group_name:
66       label: security group name
67       hidden: false
68       immutable: false
69       type: string
70       description: the name of security group
71       default: nimbus_security_group
72     pcm_volumes:
73       label: CPS Cluman Cinder Volume
74       hidden: false
75       immutable: false
76       type: list
77       description: CPS Cluman Cinder Volume
78       default:
79       - 249cb355-8fdf-4382-9c3c-a2ebe767d45b
80       entry_schema:
81         type: string
82     compute_image_name:
83       hidden: false
84       immutable: false
85       type: string
86     pcm_flavor_name:
87       label: PCRF CM flavor name
88       hidden: false
89       immutable: false
90       type: string
91       description: flavor name of PCRF CM instance
92       default: cps
93     net_name:
94       hidden: false
95       immutable: false
96       type: string
97     cps_net_name:
98       label: CPS network name
99       hidden: false
100       immutable: false
101       type: string
102       description: CPS network name
103       default: int_pcrf_net_0
104     cps_net_mask:
105       label: CPS network mask
106       hidden: false
107       immutable: false
108       type: string
109       description: CPS network mask
110       default: 255.255.255.0
111     oam_net_mask:
112       label: CPS network mask
113       hidden: false
114       immutable: false
115       type: string
116       description: CPS network mask
117       default: 255.255.255.0
118     oam_net_name:
119       label: OAM network name
120       hidden: false
121       immutable: false
122       type: string
123       description: OAM network name
124       default: oam_protected_net_0
125   node_templates:
126     server_pcm_001:
127       type: org.openecomp.resource.abstract.nodes.heat.nested-pcm_v0.1
128       directives:
129       - substitutable
130       properties:
131         availabilityzone_name:
132           get_input: availabilityzone_name
133         oam_net_gw:
134           get_input: oam_net_gw
135         pcm_image_name:
136           get_input: pcm_image_name
137         security_group_name:
138           get_input: security_group_name
139         cps_net_ip:
140           get_input:
141           - cps_net_ips
142           - 0
143         pcm_flavor_name:
144           get_input: pcm_flavor_name
145         service_template_filter:
146           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
147         pcm_vol:
148           get_input:
149           - pcm_volumes
150           - 0
151         pcm_server_name:
152           get_input:
153           - pcm_server_names
154           - 0
155         cps_net_name:
156           get_input: cps_net_name
157         cps_net_mask:
158           get_input: cps_net_mask
159         oam_net_ip:
160           get_input:
161           - oam_net_ips
162           - 0
163         oam_net_mask:
164           get_input: oam_net_mask
165         oam_net_name:
166           get_input: oam_net_name
167     packet_mirror_network:
168       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
169       properties:
170         network_name:
171           get_input: net_name
172       requirements:
173       - dependency:
174           capability: tosca.capabilities.Node
175           node: server_pcm_001
176           relationship: tosca.relationships.DependsOn
177     compute_port_0:
178       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
179       properties:
180         ip_requirements:
181         - ip_version: 4
182           ip_count_required:
183             is_required: false
184           floating_ip_count_required:
185             is_required: false
186         mac_requirements:
187           mac_count_required:
188             is_required: false
189         network:
190           get_input: net_name
191     server_compute_get_attr_test:
192       type: org.openecomp.resource.vfc.nodes.heat.compute
193       properties:
194         flavor:
195           compute_flavor_name: null
196         image:
197           get_input: compute_image_name
198         metadata:
199           get_attribute:
200           - server_pcm_001
201           - server_pcm_id
202         config_drive:
203           get_attribute:
204           - compute_port_0
205           - tenant_id
206           - port_security_enabled
207           - device_id
208           - qos_policy
209           - allowed_address_pairs
210           - show
211           - device_owner
212           - network
213           - security_groups
214           - fixed_ips
215           - mac_address
216           - admin_state_up
217           - name
218           - subnets
219           - status
220         user_data_format:
221           get_attribute:
222           - server_pcm_001
223           - oam_net_gw
224         name:
225           compute_name: null
226   groups:
227     hot-nimbus-pcm_v0.4_group:
228       type: org.openecomp.groups.heat.HeatStack
229       properties:
230         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4.yaml
231         description: heat template that creates PCRF Cluman stack
232       members:
233       - server_pcm_001
234       - packet_mirror_network
235       - compute_port_0
236       - server_compute_get_attr_test
237   outputs:
238     output_attr_1:
239       value:
240         get_attribute:
241         - server_pcm_001
242         - pcm_vol