push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heattotoscatranslator / overallexample / inputs / cmaui_net.yaml
1 heat_template_version: 2013-05-23
2
3 #################################
4 #
5 #  Changes from MSO - 11/5/2015
6 #  - Parameter changes as below
7 #  - CDLs for vmNames, IPs 
8 #  - aZone->availability_zone_0
9 #  - nwName->{nwRole}_net_name
10 #  - nwID->{nwRole}_net_id
11 #  - vmName->{vmType}_names
12 # -  ips ->{vmType}_{nwRole}_ips
13 # -  fips->{vmType}_{nwRole}_floating_ip
14 #  - added replacement_policy: AUTO to all ports
15 #  - added vnf_id for metadata to all servers
16 #  - externalized security group resource
17 #  - externalized eca_mgmt network
18 #
19 #################################
20
21 description: >
22   HOT template that creates Security Group and ECA network
23
24 parameters:
25   eca_mgmt_name:
26     type: string
27     label: eca management name
28     description: eca management name
29   eca_mgmt_start:
30     type: string
31     label: eca management start
32     description: eca management start
33   eca_mgmt_end:
34     type: string
35     label: eca management end
36     description: eca management end
37   eca_mgmt_cidr:
38     type: string
39     label: eca management cidr
40     description: eca management cidr
41   eca_mgmt_netmask:
42     type: string
43     label: ECA mgmt network subnet mask
44     description: ECA mgmt network subnet mask
45   security_group_name:
46     type: string
47     label: MMSC security group name
48     description: MMSC security group name
49
50 resources:
51   mms_security_group:
52     type: OS::Neutron::SecurityGroup
53     properties:
54       description: mmsc security group
55       name: {get_param: security_group_name}
56       rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
57               {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
58               {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0},
59               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
60               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
61               {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}
62               ]
63   eca_mgmt_net:
64     type: OS::Contrail::VirtualNetwork
65     properties:
66       name: {get_param: eca_mgmt_name}
67
68   eca_mgmt_network_ip_subnet:
69     type: OS::Neutron::Subnet
70     properties:
71       name: {get_param: eca_mgmt_name}
72       allocation_pools: [{"start": {get_param: eca_mgmt_start}, "end": {get_param: eca_mgmt_end}}]
73       cidr: {get_param: eca_mgmt_cidr}
74       #enable_dhcp: false
75       #gateway_ip: null
76       network_id: {get_resource: eca_mgmt_net}