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-psm_v1.0ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested-psm_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_psm_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     pcrf_psm_flavor_name:
45       label: PCRF SM flavor name
46       hidden: false
47       immutable: false
48       type: string
49       description: flavor name of PCRF SM instance
50     pcrf_psm_image_name:
51       label: image name
52       hidden: false
53       immutable: false
54       type: string
55       description: PCRF SM image name
56     availabilityzone_name:
57       label: availabilityzone name
58       hidden: false
59       immutable: false
60       type: string
61       description: availabilityzone 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_cps_net_name:
69       label: CPS network name
70       hidden: false
71       immutable: false
72       type: string
73       description: CPS network name
74     pcrf_cps_net_mask:
75       label: CPS network mask
76       hidden: false
77       immutable: false
78       type: string
79       description: CPS network mask
80     pcrf_psm_server_name:
81       label: PCRF SM server name
82       hidden: false
83       immutable: false
84       type: string
85       description: PCRF SM 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_server_psm:
94       type: org.openecomp.resource.vfc.nodes.heat.pcrf_psm_server
95       properties:
96         flavor:
97           get_input: pcrf_psm_flavor_name
98         availability_zone:
99           get_input: availabilityzone_name
100         image:
101           get_input: pcrf_psm_image_name
102         config_drive: 'True'
103         metadata:
104           vnf_id:
105             get_input: pcrf_vnf_id
106         user_data_format: RAW
107         name:
108           get_input: pcrf_psm_server_name
109     psm01_port_0:
110       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
111       properties:
112         security_groups:
113         - get_input: pcrf_security_group_name
114         fixed_ips:
115         - ip_address:
116             get_input: pcrf_cps_net_ip
117         network:
118           get_input: pcrf_cps_net_name
119       requirements:
120       - binding:
121           capability: tosca.capabilities.network.Bindable
122           node: pcrf_server_psm
123           relationship: tosca.relationships.network.BindsTo
124   groups:
125     nested-psm_v1.0:
126       type: org.openecomp.groups.heat.HeatStack
127       properties:
128         heat_file: ../Artifacts/nested-psm_v1.0.yaml
129         description: heat template that creates PCRF Session Manager stack
130       members:
131       - pcrf_server_psm
132       - psm01_port_0
133   substitution_mappings:
134     node_type: org.openecomp.resource.abstract.nodes.heat.nested-psm_v1.0
135     capabilities:
136       endpoint_pcrf_server_psm:
137       - pcrf_server_psm
138       - endpoint
139       binding_pcrf_server_psm:
140       - pcrf_server_psm
141       - binding
142       os_pcrf_server_psm:
143       - pcrf_server_psm
144       - os
145       attachment_psm01_port_0:
146       - psm01_port_0
147       - attachment
148       host_pcrf_server_psm:
149       - pcrf_server_psm
150       - host
151       scalable_pcrf_server_psm:
152       - pcrf_server_psm
153       - scalable
154     requirements:
155       local_storage_pcrf_server_psm:
156       - pcrf_server_psm
157       - local_storage
158       link_psm01_port_0:
159       - psm01_port_0
160       - link