1 heat_template_version: 2013-05-23
4 Based on the following reference for the HOT-DMZ-FW template:
5 Version 3.5 8-10-2015 (Authors: Art Mishurov,am254u & Johhny Chen, jc3066) - HOT-DMZ-FW template that creates two DMZ networks (direct and protected) with a scaled out firewall service between the two.
10 description: Name of HSL (Logging) network
19 description: HSL (Logging) network address (CIDR notation)
20 HSL_direct_net_gateway:
22 description: HSL (Logging) network gateway address
25 description: Name of OAM network
28 description: Name of OAM network
29 Cricket_OCS_direct_net_id:
31 description: Name of Cricket OCS network
32 Cricket_OCS_protected_net_id:
34 description: Name of Cricket OCS network
35 service_instance_name:
37 description: Service instance name
40 description: Policy Name
41 service_policy_direction:
43 description: Direction of Policy
46 description: Start of src port
49 description: End of src port
52 description: Start of dst port
55 description: End of dst port
58 description: Name of service template
61 description: service mode
64 description: service type
67 description: Name of the image
70 description: Name of the image
74 st_service_interface_type_list:
76 description: List of interface types
79 description: List of shared ip enabled-disabled
80 st_static_routes_list:
82 description: List of static routes enabled-disabled
85 description: Indicates whether service scaling is enabled
88 description: maximum number of firewall instances for scaling
91 description: availability zone
96 type: OS::Contrail::VirtualNetwork
98 name: { get_param: HSL_direct_net_id }
102 type: OS::Contrail::VirtualNetwork
104 name: { get_param: HSL_direct_net_id }
108 type: OS::Neutron::Subnet
110 network_id: { get_resource: hsl_direct_net1 }
111 cidr: { get_param: HSL_direct_net_cidr }
112 gateway_ip: { get_param: HSL_direct_net_gateway }
115 type: OS::Contrail::ServiceTemplate
117 name: { get_param: st_name }
118 service_mode: { get_param: st_mode }
119 service_type: { get_param: st_type }
120 image_name: { get_param: st_image }
121 flavor: { get_param: st_flavor }
122 service_interface_type_list: { "Fn::Split" : [ ",", "management,left,right,other" ] }
123 shared_ip_list: { "Fn::Split" : [ ",", Ref: st_shared_ip_list ] }
124 static_routes_list: { "Fn::Split" : [ ",", Ref: st_static_routes_list ] }
125 service_scaling: { get_param: st_scaling }
128 type: OS::Contrail::ServiceInstance
129 depends_on: [ hsl_ip_subnet]
131 name: { get_param: service_instance_name }
132 availability_zone: { get_param: availability_zone_1 }
133 service_template: { get_resource: service_template }
136 virtual_network: { get_param: oam_mgmt_net_0_id }
139 virtual_network: { get_param: Cricket_OCS_direct_net_id }
142 virtual_network: { get_resource: hsl_direct_net1 }
145 virtual_network: {get_param: oam_mgmt_net_1_id},
147 { "prefix": {get_param: prefix_0} },
148 { "prefix": {get_param: prefix_1} },
149 { "prefix": {get_param: prefix_2} },
155 type: OS::Contrail::ServiceInstance
156 depends_on: [ hsl_ip_subnet]
158 name: { get_param: service_instance_name }
159 availability_zone: { get_param: availability_zone_1 }
160 service_template: { get_resource: service_template }
162 max_instances: {get_param: max_num_fw_instances}
165 virtual_network: { get_param: oam_mgmt_net_0_id }
168 virtual_network: { get_param: Cricket_OCS_direct_net_id }
171 virtual_network: { get_resource: hsl_direct_net2 }
174 virtual_network: {get_param: oam_mgmt_net_1_id},
176 { "prefix": {get_param: prefix_0} },
177 { "prefix": {get_param: prefix_1} },
178 { "prefix": {get_param: prefix_2} },
184 type: OS::Contrail::NetworkPolicy
185 depends_on: [ service_instance_1 ]
187 name: { get_param: service_policy_name }
191 "direction": { get_param: service_policy_direction },
193 "src_ports": [{"start_port": {get_param: start_src_ports}, "end_port": {get_param: end_src_ports}}],
194 "dst_ports": [{"start_port": {get_param: start_dst_ports}, "end_port": {get_param: end_dst_ports}}],
195 "dst_addresses": [{ "virtual_network": { get_param: Cricket_OCS_direct_net_id }}],
196 "action_list": { "apply_service": [{ get_resource: service_instance_1 }]},
197 "src_addresses": [{ "virtual_network": { get_param: Cricket_OCS_protected_net_id }}],
201 service_policy_attach_direct_net:
202 type: OS::Contrail::AttachPolicy
203 depends_on: [ service_policy ]
205 network: { get_param: Cricket_OCS_direct_net_id }
206 policy: { get_attr: [service_policy, fq_name] }
208 service_policy_attach_protected_net:
209 type: OS::Contrail::AttachPolicy
210 depends_on: [ service_policy ]
212 network: { get_param: Cricket_OCS_protected_net_id }
213 policy: { get_attr: [service_policy, fq_name] }