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-pps_v1.0ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested-pps_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_pps_server:
35     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
36 topology_template:
37   inputs:
38     pcrf_cps_net_ip:
39       label: CPS network ip
40       hidden: false
41       immutable: false
42       type: string
43       description: CPS network ip
44     availabilityzone_name:
45       label: availabilityzone name
46       hidden: false
47       immutable: false
48       type: string
49       description: availabilityzone name
50     pcrf_vnf_id:
51       label: PCRF VNF Id
52       hidden: false
53       immutable: false
54       type: string
55       description: PCRF VNF Id
56     pcrf_cps_net_name:
57       label: CPS network name
58       hidden: false
59       immutable: false
60       type: string
61       description: CPS network name
62     pcrf_cps_net_mask:
63       label: CPS network mask
64       hidden: false
65       immutable: false
66       type: string
67       description: CPS network mask
68     pcrf_pps_image_name:
69       label: PCRF PS image name
70       hidden: false
71       immutable: false
72       type: string
73       description: PCRF PS image name
74     pcrf_pps_flavor_name:
75       label: PCRF PS flavor name
76       hidden: false
77       immutable: false
78       type: string
79       description: flavor name of PCRF PS instance
80     pcrf_pps_server_name:
81       label: PCRF PS server name
82       hidden: false
83       immutable: false
84       type: string
85       description: PCRF PS server name
86     pcrf_security_group_name:
87       label: security group name
88       hidden: false
89       immutable: false
90       type: string
91       description: the name of security group
92   node_templates:
93     pcrf_pps_port_0:
94       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
95       properties:
96         security_groups:
97         - get_input: pcrf_security_group_name
98         fixed_ips:
99         - ip_address:
100             get_input: pcrf_cps_net_ip
101         network:
102           get_input: pcrf_cps_net_name
103       requirements:
104       - binding:
105           capability: tosca.capabilities.network.Bindable
106           node: pcrf_server_pps
107           relationship: tosca.relationships.network.BindsTo
108     pcrf_server_pps:
109       type: org.openecomp.resource.vfc.nodes.heat.pcrf_pps_server
110       properties:
111         flavor:
112           get_input: pcrf_pps_flavor_name
113         availability_zone:
114           get_input: availabilityzone_name
115         image:
116           get_input: pcrf_pps_image_name
117         config_drive: 'True'
118         metadata:
119           vnf_id:
120             get_input: pcrf_vnf_id
121         user_data_format: RAW
122         name:
123           get_input: pcrf_pps_server_name
124   groups:
125     nested-pps_v1.0:
126       type: org.openecomp.groups.heat.HeatStack
127       properties:
128         heat_file: ../Artifacts/nested-pps_v1.0.yaml
129         description: heat template that creates PCRF Policy Server stack
130       members:
131       - pcrf_pps_port_0
132       - pcrf_server_pps
133   substitution_mappings:
134     node_type: org.openecomp.resource.abstract.nodes.heat.nested-pps_v1.0
135     capabilities:
136       binding_pcrf_server_pps:
137       - pcrf_server_pps
138       - binding
139       attachment_pcrf_pps_port_0:
140       - pcrf_pps_port_0
141       - attachment
142       scalable_pcrf_server_pps:
143       - pcrf_server_pps
144       - scalable
145       os_pcrf_server_pps:
146       - pcrf_server_pps
147       - os
148       endpoint_pcrf_server_pps:
149       - pcrf_server_pps
150       - endpoint
151       host_pcrf_server_pps:
152       - pcrf_server_pps
153       - host
154     requirements:
155       link_pcrf_pps_port_0:
156       - pcrf_pps_port_0
157       - link
158       local_storage_pcrf_server_pps:
159       - pcrf_server_pps
160       - local_storage