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