push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heat / nested / resourceGroupMDNS / expectedoutputfiles / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
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 topology_template:
34   inputs:
35     vf_module_id:
36       hidden: false
37       immutable: false
38       type: string
39       description: Unique ID for this VF module instance
40     dns_int_bearer_ips:
41       hidden: false
42       immutable: false
43       type: list
44       description: DNS Bearer IP list
45       entry_schema:
46         type: string
47     vnf_name:
48       hidden: false
49       immutable: false
50       type: string
51       description: Unique name for this VF instance
52     oam_protected_net_name:
53       hidden: false
54       immutable: false
55       type: string
56       description: OAM network where instaces will connect
57     dns_oam_protected_ips:
58       hidden: false
59       immutable: false
60       type: list
61       description: DNS OAM IP list
62       entry_schema:
63         type: string
64     dns_key:
65       hidden: false
66       immutable: false
67       type: string
68       description: creator's ssh public key
69     int_bearer_net_name:
70       hidden: false
71       immutable: false
72       type: string
73       description: Bearer network where instaces will connect
74     route_eth0:
75       hidden: false
76       immutable: false
77       type: string
78       description: OAM network routes
79     vnf_id:
80       hidden: false
81       immutable: false
82       type: string
83       description: Unique ID for this VF instance
84     availability_zone_0:
85       hidden: false
86       immutable: false
87       type: string
88       description: availability zone ID or Name
89     DNS_shared_sec_grp_id:
90       hidden: false
91       immutable: false
92       type: string
93       description: security group UUID
94     node_count:
95       hidden: false
96       immutable: false
97       type: float
98       description: the number of DNS nested instances
99       default: 4
100     dns_image_name:
101       hidden: false
102       immutable: false
103       type: string
104       description: operative system image
105       default: NIMBUS_DNS_3.0.2.qcow2
106     dns_int_bearer_ipv6_ips:
107       hidden: false
108       immutable: false
109       type: list
110       description: fixed IP assignment for VM's on the Bearer network
111       entry_schema:
112         type: string
113     dns_server_names:
114       hidden: false
115       immutable: false
116       type: list
117       description: DNS VM server name list
118       entry_schema:
119         type: string
120     dns_flavor_name:
121       hidden: false
122       immutable: false
123       type: string
124       description: resources to by appplied on instances
125       default: nv.c4r4d80
126   node_templates:
127     dns_server_group_az:
128       type: org.openecomp.resource.abstract.nodes.heat.dns_nested_01
129       directives:
130       - substitutable
131       properties:
132         vf_module_id:
133           get_input: vf_module_id
134         name_with_index:
135           concat:
136           - name_
137           - get_property:
138             - SELF
139             - service_template_filter
140             - index_value
141         dns_int_bearer_ips:
142           get_input: dns_int_bearer_ips
143         vnf_name:
144           get_input: vnf_name
145         index:
146           get_property:
147           - SELF
148           - service_template_filter
149           - index_value
150         security_group:
151           get_input: DNS_shared_sec_grp_id
152         oam_protected_net_name:
153           get_input: oam_protected_net_name
154         dns_oam_protected_ips:
155           get_input: dns_oam_protected_ips
156         dns_key:
157           get_input: dns_key
158         int_bearer_net_name:
159           get_input: int_bearer_net_name
160         route_eth0:
161           get_input: route_eth0
162         service_template_filter:
163           substitute_service_template: dns_nested_01ServiceTemplate.yaml
164           count:
165             get_input: node_count
166           mandatory: false
167         dns_names:
168           get_input: dns_server_names
169         vnf_id:
170           get_input: vnf_id
171         availability_zone_0:
172           get_input: availability_zone_0
173         dns_image_name:
174           get_input: dns_image_name
175         dns_int_bearer_ipv6_ips:
176           get_input: dns_int_bearer_ipv6_ips
177         dns_flavor_name:
178           get_input: dns_flavor_name
179     DNS_SECURITY_GROUP:
180       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
181       properties:
182         name:
183           str_replace:
184             template: VF_NAME_sec_grp_DNS
185             params:
186               VF_NAME:
187                 get_input: vnf_name
188         description: vscp security group
189         rules:
190         - protocol: tcp
191           ethertype: IPv4
192           port_range_max: 65535
193           remote_ip_prefix: 0.0.0.0/0
194           direction: egress
195           port_range_min: 1
196         - protocol: udp
197           ethertype: IPv4
198           port_range_max: 65535
199           remote_ip_prefix: 0.0.0.0/0
200           direction: egress
201           port_range_min: 1
202         - protocol: icmp
203           ethertype: IPv4
204           remote_ip_prefix: 0.0.0.0/0
205           direction: egress
206         - protocol: tcp
207           ethertype: IPv4
208           port_range_max: 65535
209           remote_ip_prefix: 0.0.0.0/0
210           direction: ingress
211           port_range_min: 1
212         - protocol: udp
213           ethertype: IPv4
214           port_range_max: 65535
215           remote_ip_prefix: 0.0.0.0/0
216           direction: ingress
217           port_range_min: 1
218         - protocol: icmp
219           ethertype: IPv4
220           remote_ip_prefix: 0.0.0.0/0
221           direction: ingress
222       requirements:
223       - port:
224           capability: attachment_dns_int_bearer_0_port
225           node: dns_server_group_az
226           relationship: org.openecomp.relationships.AttachesTo
227       - port:
228           capability: attachment_dns_oam_protected_0_port
229           node: dns_server_group_az
230           relationship: org.openecomp.relationships.AttachesTo
231   groups:
232     base_dns:
233       type: org.openecomp.groups.heat.HeatStack
234       properties:
235         heat_file: ../Artifacts/base_dns.yaml
236         description: |
237           Base HOT template to create The Security Group for the the DNS VNF
238       members:
239       - DNS_SECURITY_GROUP
240     dns_az_01:
241       type: org.openecomp.groups.heat.HeatStack
242       properties:
243         heat_file: ../Artifacts/dns_az_01.yaml
244         description: DNS master template
245       members:
246       - dns_server_group_az