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.
18 description: Name of HSL (Logging) network
21 description: HSL (Logging) network address (CIDR notation)
22 HSL_direct_net_gateway:
24 description: HSL (Logging) network gateway address
27 description: Name of OAM network
28 Cricket_OCS_direct_net_id:
30 description: Name of Cricket OCS network
31 Cricket_OCS_protected_net_id:
33 description: Name of Cricket OCS network
34 service_instance_name:
36 description: Service instance name
39 description: Policy Name
40 service_policy_direction:
42 description: Direction of Policy
45 description: Start of src port
48 description: End of src port
51 description: Start of dst port
54 description: End of dst port
57 description: Name of service template
60 description: service mode
63 description: service type
66 description: Name of the image
70 st_service_interface_type_list:
72 description: List of interface types
75 description: List of shared ip enabled-disabled
76 st_static_routes_list:
78 description: List of static routes enabled-disabled
81 description: Indicates whether service scaling is enabled
84 description: maximum number of firewall instances for scaling
87 description: availability zone
94 type: OS::Contrail::VirtualNetwork
96 name: { get_param: HSL_direct_net_id }
99 type: OS::Neutron::Subnet
101 network_id: { get_resource: hsl_direct_net }
102 cidr: { get_param: HSL_direct_net_cidr }
103 gateway_ip: { get_param: HSL_direct_net_gateway }
106 type: OS::Contrail::ServiceTemplate
108 name: { get_param: st_name }
109 service_mode: { get_param: st_mode }
110 service_type: { get_param: st_type }
111 image_name: { get_param: st_image }
112 flavor: { get_param: st_flavor }
113 service_interface_type_list: { "Fn::Split" : [ ",", Ref: st_service_interface_type_list ] }
114 shared_ip_list: { "Fn::Split" : [ ",", Ref: st_shared_ip_list ] }
115 static_routes_list: { "Fn::Split" : [ ",", Ref: st_static_routes_list ] }
116 service_scaling: { get_param: st_scaling }
119 type: OS::Contrail::ServiceInstance
120 depends_on: [ hsl_ip_subnet]
122 name: { get_param: service_instance_name }
123 availability_zone: { get_param: availability_zone_1 }
124 service_template: { get_resource: service_template }
126 max_instances: {get_param: max_num_fw_instances}
129 virtual_network: { get_param: network_param }
134 type: OS::Contrail::NetworkPolicy
135 depends_on: [ service_instance ]
137 name: { get_param: service_policy_name }
141 "direction": { get_param: service_policy_direction },
143 "src_ports": [{"start_port": {get_param: start_src_ports}, "end_port": {get_param: end_src_ports}}],
144 "dst_ports": [{"start_port": {get_param: start_dst_ports}, "end_port": {get_param: end_dst_ports}}],
145 "dst_addresses": [{ "virtual_network": { get_param: Cricket_OCS_direct_net_id }}],
146 "action_list": { "apply_service": [{ get_resource: service_instance }]},
147 "src_addresses": [{ "virtual_network": { get_param: Cricket_OCS_protected_net_id }}],
151 service_policy_attach_direct_net:
152 type: OS::Contrail::AttachPolicy
153 depends_on: [ service_policy ]
155 network: { get_param: Cricket_OCS_direct_net_id }
156 policy: { get_attr: [service_policy, fq_name] }
158 service_policy_attach_protected_net:
159 type: OS::Contrail::AttachPolicy
160 depends_on: [ service_policy ]
162 network: { get_param: Cricket_OCS_protected_net_id }
163 policy: { get_attr: [service_policy, fq_name] }