push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heat / nested / resourceGroupMDNS / inputs / base_dns.yaml
1 heat_template_version: 2015-04-30
2 #Nimbus DNS Base Template
3 #AUTHORS: 
4 description: >
5   Base HOT template to create The Security Group for the the DNS VNF
6
7 #####################
8 parameters:
9 #####################
10
11 ## GLOBAL//Basic Parameters
12   vnf_name:
13     type: string
14     description: Unique name for this VF instance
15 #   For manual spinups, value must be in the ENV file. Must be removed from ENV before uploading to ASDC
16
17 #####################
18 resources:
19 #####################  
20   
21   DNS_SECURITY_GROUP:
22     type: OS::Neutron::SecurityGroup
23     properties:
24       description: vscp security group
25       name: 
26         str_replace:
27             template: VF_NAME_sec_grp_DNS
28             params:
29                 VF_NAME:    {get_param: vnf_name}
30       rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
31               {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
32               {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0},
33               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
34               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
35               {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}
36              ]
37
38
39 outputs:
40   DNS_shared_sec_grp_id:
41     description: UUID of DNS Resource SecurityGroup
42     value: { get_resource: DNS_SECURITY_GROUP }
43