push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / hot-nimbus-oam-volumes_v1.0 / out / nested-pcm_v1.0ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested-pcm_v1.0
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.pcrf_pcm_server:
35     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
36 topology_template:
37   inputs:
38     pcrf_pcm_flavor_name:
39       label: PCRF CM flavor name
40       hidden: false
41       immutable: false
42       type: string
43       description: flavor name of PCRF CM instance
44     availabilityzone_name:
45       label: availabilityzone name
46       hidden: false
47       immutable: false
48       type: string
49       description: availabilityzone name
50     pcrf_cps_net_ip:
51       label: CPS network ip
52       hidden: false
53       immutable: false
54       type: string
55       description: CPS network ip
56     pcrf_pcm_image_name:
57       label: image name
58       hidden: false
59       immutable: false
60       type: string
61       description: PCRF CM image name
62     pcrf_vnf_id:
63       label: PCRF VNF Id
64       hidden: false
65       immutable: false
66       type: string
67       description: PCRF VNF Id
68     pcrf_oam_net_name:
69       label: OAM network name
70       hidden: false
71       immutable: false
72       type: string
73       description: OAM network name
74     pcrf_cps_net_name:
75       label: CPS network name
76       hidden: false
77       immutable: false
78       type: string
79       description: CPS network name
80     pcrf_oam_net_ip:
81       label: OAM network ip
82       hidden: false
83       immutable: false
84       type: string
85       description: OAM network ip
86     pcrf_oam_net_mask:
87       label: CPS network mask
88       hidden: false
89       immutable: false
90       type: string
91       description: CPS network mask
92     pcrf_cps_net_mask:
93       label: CPS network mask
94       hidden: false
95       immutable: false
96       type: string
97       description: CPS network mask
98     pcrf_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     pcrf_oam_net_gw:
105       label: CPS network gateway
106       hidden: false
107       immutable: false
108       type: string
109       description: CPS network gateway
110     pcrf_pcm_volume_id:
111       label: CPS Cluman Cinder Volume
112       hidden: false
113       immutable: false
114       type: string
115       description: CPS Cluman Cinder Volume
116     pcrf_security_group_name:
117       label: security group name
118       hidden: false
119       immutable: false
120       type: string
121       description: the name of security group
122   node_templates:
123     pcrf_pcm_port_0:
124       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
125       properties:
126         security_groups:
127         - get_input: pcrf_security_group_name
128         fixed_ips:
129         - ip_address:
130             get_input: pcrf_cps_net_ip
131         network:
132           get_input: pcrf_cps_net_name
133       requirements:
134       - binding:
135           capability: tosca.capabilities.network.Bindable
136           node: pcrf_server_pcm
137           relationship: tosca.relationships.network.BindsTo
138     pcrf_server_pcm:
139       type: org.openecomp.resource.vfc.nodes.heat.pcrf_pcm_server
140       properties:
141         flavor:
142           get_input: pcrf_pcm_flavor_name
143         availability_zone:
144           get_input: availabilityzone_name
145         image:
146           get_input: pcrf_pcm_image_name
147         config_drive: 'True'
148         metadata:
149           vnf_id:
150             get_input: pcrf_vnf_id
151         user_data_format: RAW
152         name:
153           get_input: pcrf_pcm_server_name
154     pcrf_pcm_port_1:
155       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
156       properties:
157         security_groups:
158         - get_input: pcrf_security_group_name
159         fixed_ips:
160         - ip_address:
161             get_input: pcrf_oam_net_ip
162         network:
163           get_input: pcrf_oam_net_name
164       requirements:
165       - binding:
166           capability: tosca.capabilities.network.Bindable
167           node: pcrf_server_pcm
168           relationship: tosca.relationships.network.BindsTo
169   groups:
170     nested-pcm_v1.0:
171       type: org.openecomp.groups.heat.HeatStack
172       properties:
173         heat_file: ../Artifacts/nested-pcm_v1.0.yaml
174         description: heat template that creates PCRF Cluman stack
175       members:
176       - pcrf_pcm_port_0
177       - pcrf_server_pcm
178       - pcrf_pcm_port_1
179   outputs:
180     pcrf_server_pcm_id:
181       description: the pcm server id
182       value: pcrf_server_pcm
183   substitution_mappings:
184     node_type: org.openecomp.resource.abstract.nodes.heat.nested-pcm_v1.0
185     capabilities:
186       endpoint_pcrf_server_pcm:
187       - pcrf_server_pcm
188       - endpoint
189       attachment_pcrf_pcm_port_0:
190       - pcrf_pcm_port_0
191       - attachment
192       binding_pcrf_server_pcm:
193       - pcrf_server_pcm
194       - binding
195       os_pcrf_server_pcm:
196       - pcrf_server_pcm
197       - os
198       host_pcrf_server_pcm:
199       - pcrf_server_pcm
200       - host
201       scalable_pcrf_server_pcm:
202       - pcrf_server_pcm
203       - scalable
204       attachment_pcrf_pcm_port_1:
205       - pcrf_pcm_port_1
206       - attachment
207     requirements:
208       local_storage_pcrf_server_pcm:
209       - pcrf_server_pcm
210       - local_storage
211       link_pcrf_pcm_port_0:
212       - pcrf_pcm_port_0
213       - link
214       link_pcrf_pcm_port_1:
215       - pcrf_pcm_port_1
216       - link