[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 / pattern4 / oneNestedNode / out / nested-pcm_v0.1ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested-pcm_v0.1
4 imports:
5 - CommonGlobalTypes:
6     file: CommonGlobalTypesServiceTemplate.yaml
7 - NovaServerGlobalTypes:
8     file: NovaServerGlobalTypesServiceTemplate.yaml
9 - NeutronPortGlobalTypes:
10     file: NeutronPortGlobalTypesServiceTemplate.yaml
11 - NeutronSecurityRulesGlobalTypes:
12     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
13 - NeutronNetGlobalTypes:
14     file: NeutronNetGlobalTypesServiceTemplate.yaml
15 - CinderVolumeGlobalTypes:
16     file: CinderVolumeGlobalTypesServiceTemplate.yaml
17 - ContrailVirtualNetworkGlobalType:
18     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
19 - ContrailNetworkRuleGlobalType:
20     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
21 - AbstractSubstituteGlobalTypes:
22     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
23 - ContrailV2VirtualMachineInterfaceGlobalType:
24     file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
25 - ContrailComputeGlobalTypes:
26     file: ContrailComputeGlobalTypesServiceTemplate.yaml
27 - ContrailPortGlobalTypes:
28     file: ContrailPortGlobalTypesServiceTemplate.yaml
29 - ContrailAbstractSubstituteGlobalTypes:
30     file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
31 - ContrailV2VirtualNetworkGlobalType:
32     file: ContrailV2VirtualNetworkGlobalTypeServiceTemplate.yaml
33 - ContrailV2NetworkRuleGlobalType:
34     file: ContrailV2NetworkRuleGlobalTypeServiceTemplate.yaml
35 - ContrailV2VLANSubInterfaceGlobalType:
36     file: ContrailV2VLANSubInterfaceGlobalTypeServiceTemplate.yaml
37 - GlobalSubstitutionTypes:
38     file: GlobalSubstitutionTypesServiceTemplate.yaml
39 node_types:
40   org.openecomp.resource.vfc.nodes.heat.pcm_server:
41     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
42 topology_template:
43   inputs:
44     availabilityzone_name:
45       label: availabilityzone name
46       hidden: false
47       immutable: false
48       type: string
49       description: availabilityzone name
50     oam_net_gw:
51       label: CPS network gateway
52       hidden: false
53       immutable: false
54       type: string
55       description: CPS network gateway
56     pcm_image_name:
57       label: image name
58       hidden: false
59       immutable: false
60       type: string
61       description: PCRF CM image name
62     cps_net_ips:
63       label: CPS network ip
64       hidden: false
65       immutable: false
66       type: string
67       description: CPS network ip
68     security_group_name:
69       label: security group name
70       hidden: false
71       immutable: false
72       type: string
73       description: the name of security group
74     cps_net_ip:
75       label: CPS network ip
76       hidden: false
77       immutable: false
78       type: string
79       description: CPS network ip
80     pcm_volumes:
81       label: CPS Cluman Cinder Volume
82       hidden: false
83       immutable: false
84       type: string
85       description: CPS Cluman Cinder Volume
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     pcm_vol:
93       label: CPS Cluman Cinder Volume
94       hidden: false
95       immutable: false
96       type: string
97       description: CPS Cluman Cinder Volume
98     pcm_server_name:
99       label: PCRF CM server name
100       hidden: false
101       immutable: false
102       type: string
103       description: PCRF CM server name
104     cps_net_name:
105       label: CPS network name
106       hidden: false
107       immutable: false
108       type: string
109       description: CPS network name
110     cps_net_mask:
111       label: CPS network mask
112       hidden: false
113       immutable: false
114       type: string
115       description: CPS network mask
116     oam_net_ip:
117       label: OAM network ip
118       hidden: false
119       immutable: false
120       type: string
121       description: OAM network ip
122     oam_net_mask:
123       label: CPS network mask
124       hidden: false
125       immutable: false
126       type: string
127       description: CPS network mask
128     oam_net_name:
129       label: OAM network name
130       hidden: false
131       immutable: false
132       type: string
133       description: OAM network name
134   node_templates:
135     pcm_port_1:
136       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
137       properties:
138         security_groups:
139         - get_input: security_group_name
140         fixed_ips:
141         - ip_address:
142             get_input: oam_net_ip
143         network:
144           get_input: oam_net_name
145       requirements:
146       - binding:
147           capability: tosca.capabilities.network.Bindable
148           node: server_pcm
149           relationship: tosca.relationships.network.BindsTo
150     server_pcm:
151       type: org.openecomp.resource.vfc.nodes.heat.pcm_server
152       properties:
153         flavor:
154           get_input: pcm_flavor_name
155         availability_zone:
156           get_input: availabilityzone_name
157         image:
158           get_input: pcm_image_name
159         config_drive: true
160         user_data_format: RAW
161         name:
162           get_input: pcm_server_name
163     pcm_port_0:
164       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
165       properties:
166         security_groups:
167         - get_input: security_group_name
168         fixed_ips:
169         - ip_address:
170             get_input: cps_net_ip
171         network:
172           get_input: cps_net_name
173       requirements:
174       - binding:
175           capability: tosca.capabilities.network.Bindable
176           node: server_pcm
177           relationship: tosca.relationships.network.BindsTo
178     network:
179       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
180       properties:
181         network_name:
182           get_input: cps_net_name
183   groups:
184     nested-pcm_v0.1_group:
185       type: org.openecomp.groups.heat.HeatStack
186       properties:
187         heat_file: ../Artifacts/nested-pcm_v0.1.yaml
188         description: heat template that creates PCRF Cluman stack
189       members:
190       - pcm_port_1
191       - server_pcm
192       - pcm_port_0
193       - network
194   outputs:
195     server_pcm_id:
196       description: the pcm nova service id
197       value: server_pcm
198   substitution_mappings:
199     node_type: org.openecomp.resource.abstract.nodes.heat.pcm_server
200     capabilities:
201       endpoint_server_pcm:
202       - server_pcm
203       - endpoint
204       attachment_network:
205       - network
206       - attachment
207       scalable_server_pcm:
208       - server_pcm
209       - scalable
210       binding_server_pcm:
211       - server_pcm
212       - binding
213       binding_pcm_port_0:
214       - pcm_port_0
215       - binding
216       binding_pcm_port_1:
217       - pcm_port_1
218       - binding
219       link_network:
220       - network
221       - link
222       os_server_pcm:
223       - server_pcm
224       - os
225       feature_server_pcm:
226       - server_pcm
227       - feature
228       feature_pcm_port_1:
229       - pcm_port_1
230       - feature
231       feature_pcm_port_0:
232       - pcm_port_0
233       - feature