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