Enable IPv6 check in haproxy template file
This patchset adds IPv6 check to the haproxy template file. Change-Id: Ib35dd1ac17f38aadf8c1ee3ce182ceca9a6f9316 Depends-On: I1e7329323cbe4ea9d2d79e4196690efa015aa0f4 Closes-Bug: #1719280
This commit is contained in:
parent
a980336cca
commit
c50110cf9b
|
@ -45,7 +45,9 @@ listen stats {{ options.stat_port }}
|
|||
{% for service, ports in options.service_ports.items() -%}
|
||||
frontend tcp-in_{{ service }}
|
||||
bind *:{{ ports[0] }}
|
||||
{% if options.ipv6_enabled -%}
|
||||
bind :::{{ ports[0] }}
|
||||
{% endif -%}
|
||||
{% for frontend in cluster.cluster_hosts -%}
|
||||
acl net_{{ frontend }} dst {{ cluster.cluster_hosts[frontend]['network'] }}
|
||||
use_backend {{ service }}_{{ frontend }} if net_{{ frontend }}
|
||||
|
|
Loading…
Reference in New Issue