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-oam_v1.0ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested-oam_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_oam_server:
35     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
36 topology_template:
37   inputs:
38     availabilityzone_name:
39       label: availabilityzone name
40       hidden: false
41       immutable: false
42       type: string
43       description: availabilityzone name
44     pcrf_oam_flavor_name:
45       label: PCRF OAM flavor name
46       hidden: false
47       immutable: false
48       type: string
49       description: flavor name of PCRF OAM instance
50     pcrf_oam_server_name:
51       label: PCRF OAM server name
52       hidden: false
53       immutable: false
54       type: string
55       description: PCRF OAM server name
56     pcrf_cps_net_ip:
57       label: CPS network ip
58       hidden: false
59       immutable: false
60       type: string
61       description: CPS network ip
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_arbiter_vip:
81       label: OAM Arbiter LB VIP
82       hidden: false
83       immutable: false
84       type: string
85       description: OAM Arbiter LB VIP
86     pcrf_oam_net_ip:
87       label: OAM network ip
88       hidden: false
89       immutable: false
90       type: string
91       description: OAM network ip
92     pcrf_oam_net_mask:
93       label: CPS network mask
94       hidden: false
95       immutable: false
96       type: string
97       description: CPS network mask
98     pcrf_cps_net_mask:
99       label: CPS network mask
100       hidden: false
101       immutable: false
102       type: string
103       description: CPS network mask
104     pcrf_oam_volume_id:
105       label: CPS OAM Cinder Volume
106       hidden: false
107       immutable: false
108       type: string
109       description: CPS OAM Cinder Volume
110     pcrf_oam_net_gw:
111       label: CPS network gateway
112       hidden: false
113       immutable: false
114       type: string
115       description: CPS network gateway
116     pcrf_oam_image_name:
117       label: image name
118       hidden: false
119       immutable: false
120       type: string
121       description: PCRF OAM image name
122     pcrf_security_group_name:
123       label: security group name
124       hidden: false
125       immutable: false
126       type: string
127       description: the name of security group
128   node_templates:
129     pcrf_server_oam:
130       type: org.openecomp.resource.vfc.nodes.heat.pcrf_oam_server
131       properties:
132         flavor:
133           get_input: pcrf_oam_flavor_name
134         availability_zone:
135           get_input: availabilityzone_name
136         image:
137           get_input: pcrf_oam_image_name
138         config_drive: 'True'
139         metadata:
140           vnf_id:
141             get_input: pcrf_vnf_id
142         user_data_format: RAW
143         name:
144           get_input: pcrf_oam_server_name
145     pcrf_oam_port_1:
146       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
147       properties:
148         security_groups:
149         - get_input: pcrf_security_group_name
150         fixed_ips:
151         - ip_address:
152             get_input: pcrf_oam_net_ip
153         network:
154           get_input: pcrf_oam_net_name
155       requirements:
156       - binding:
157           capability: tosca.capabilities.network.Bindable
158           node: pcrf_server_oam
159           relationship: tosca.relationships.network.BindsTo
160     pcrf_oam_port_0:
161       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
162       properties:
163         security_groups:
164         - get_input: pcrf_security_group_name
165         fixed_ips:
166         - ip_address:
167             get_input: pcrf_cps_net_ip
168         allowed_address_pairs:
169         - ip_address:
170             get_input: pcrf_arbiter_vip
171         network:
172           get_input: pcrf_cps_net_name
173       requirements:
174       - binding:
175           capability: tosca.capabilities.network.Bindable
176           node: pcrf_server_oam
177           relationship: tosca.relationships.network.BindsTo
178   groups:
179     nested-oam_v1.0:
180       type: org.openecomp.groups.heat.HeatStack
181       properties:
182         heat_file: ../Artifacts/nested-oam_v1.0.yaml
183         description: nested heat template that creates a PCRF OAM node stack
184       members:
185       - pcrf_server_oam
186       - pcrf_oam_port_1
187       - pcrf_oam_port_0
188   outputs:
189     pcrf_oam_vol_attachment_id:
190       description: the pcrf_oam_vol_attachment_id id
191       value: pcrf_oam_vol_attachment
192   substitution_mappings:
193     node_type: org.openecomp.resource.abstract.nodes.heat.nested-oam_v1.0
194     capabilities:
195       endpoint_pcrf_server_oam:
196       - pcrf_server_oam
197       - endpoint
198       host_pcrf_server_oam:
199       - pcrf_server_oam
200       - host
201       binding_pcrf_server_oam:
202       - pcrf_server_oam
203       - binding
204       attachment_pcrf_oam_port_1:
205       - pcrf_oam_port_1
206       - attachment
207       attachment_pcrf_oam_port_0:
208       - pcrf_oam_port_0
209       - attachment
210       scalable_pcrf_server_oam:
211       - pcrf_server_oam
212       - scalable
213       os_pcrf_server_oam:
214       - pcrf_server_oam
215       - os
216     requirements:
217       local_storage_pcrf_server_oam:
218       - pcrf_server_oam
219       - local_storage
220       link_pcrf_oam_port_1:
221       - pcrf_oam_port_1
222       - link
223       link_pcrf_oam_port_0:
224       - pcrf_oam_port_0
225       - link