[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 / twoNestedWithOneCompute / 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     security_group_name:
63       label: security group name
64       hidden: false
65       immutable: false
66       type: string
67       description: the name of security group
68     cps_net_ip:
69       label: CPS network ip
70       hidden: false
71       immutable: false
72       type: string
73       description: CPS network ip
74     pcm_flavor_name:
75       label: PCRF CM flavor name
76       hidden: false
77       immutable: false
78       type: string
79       description: flavor name of PCRF CM instance
80     pcm_vol:
81       label: CPS Cluman Cinder Volume
82       hidden: false
83       immutable: false
84       type: string
85       description: CPS Cluman Cinder Volume
86     pcm_server_name:
87       label: PCRF CM server name
88       hidden: false
89       immutable: false
90       type: string
91       description: PCRF CM server name
92     cps_net_name:
93       label: CPS network name
94       hidden: false
95       immutable: false
96       type: string
97       description: CPS network name
98     cps_net_mask:
99       label: CPS network mask
100       hidden: false
101       immutable: false
102       type: string
103       description: CPS network mask
104     oam_net_ip:
105       label: OAM network ip
106       hidden: false
107       immutable: false
108       type: string
109       description: OAM network ip
110     oam_net_mask:
111       label: CPS network mask
112       hidden: false
113       immutable: false
114       type: string
115       description: CPS network mask
116     oam_net_name:
117       label: OAM network name
118       hidden: false
119       immutable: false
120       type: string
121       description: OAM network name
122   node_templates:
123     pcm_port_1:
124       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
125       properties:
126         security_groups:
127         - get_input: security_group_name
128         fixed_ips:
129         - ip_address:
130             get_input: oam_net_ip
131         network:
132           get_input: oam_net_name
133       requirements:
134       - binding:
135           capability: tosca.capabilities.network.Bindable
136           node: server_pcm
137           relationship: tosca.relationships.network.BindsTo
138     server_pcm:
139       type: org.openecomp.resource.vfc.nodes.heat.pcm_server
140       properties:
141         flavor:
142           get_input: pcm_flavor_name
143         availability_zone:
144           get_input: availabilityzone_name
145         image:
146           get_input: pcm_image_name
147         config_drive: true
148         user_data_format: RAW
149         name:
150           get_input: pcm_server_name
151     pcm_port_0:
152       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
153       properties:
154         security_groups:
155         - get_input: security_group_name
156         fixed_ips:
157         - ip_address:
158             get_input: cps_net_ip
159         network:
160           get_input: cps_net_name
161       requirements:
162       - binding:
163           capability: tosca.capabilities.network.Bindable
164           node: server_pcm
165           relationship: tosca.relationships.network.BindsTo
166   groups:
167     nested-pcm_v0.1_group:
168       type: org.openecomp.groups.heat.HeatStack
169       properties:
170         heat_file: ../Artifacts/nested-pcm_v0.1.yaml
171         description: heat template that creates PCRF Cluman stack
172       members:
173       - pcm_port_1
174       - server_pcm
175       - pcm_port_0
176   outputs:
177     server_pcm_id:
178       description: the pcm nova service id
179       value: server_pcm
180   substitution_mappings:
181     node_type: org.openecomp.resource.abstract.nodes.heat.pcm_server
182     capabilities:
183       endpoint_server_pcm:
184       - server_pcm
185       - endpoint
186       os_server_pcm:
187       - server_pcm
188       - os
189       host_server_pcm:
190       - server_pcm
191       - host
192       feature_server_pcm:
193       - server_pcm
194       - feature
195       feature_pcm_port_1:
196       - pcm_port_1
197       - feature
198       scalable_server_pcm:
199       - server_pcm
200       - scalable
201       feature_pcm_port_0:
202       - pcm_port_0
203       - feature
204       binding_server_pcm:
205       - server_pcm
206       - binding
207       attachment_pcm_port_0:
208       - pcm_port_0
209       - attachment
210       attachment_pcm_port_1:
211       - pcm_port_1
212       - attachment
213       binding_pcm_port_0:
214       - pcm_port_0
215       - binding
216       binding_pcm_port_1:
217       - pcm_port_1
218       - binding
219     requirements:
220       link_pcm_port_0:
221       - pcm_port_0
222       - link
223       link_pcm_port_1:
224       - pcm_port_1
225       - link
226       local_storage_server_pcm:
227       - server_pcm
228       - local_storage