File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 2
2
{% if rserver .tcp_checks is defined %}
3
3
{% for tcp_check in rserver .tcp_checks %}
4
4
TCP_CHECK {
5
+ {% if tcp_check .connect_port is defined and tcp_check .connect_port %}
5
6
connect_port {{ tcp_check.connect_port }}
7
+ {% endif %}
6
8
connect_timeout {{ tcp_check.connect_timeout | default('5') }}
7
9
{% if tcp_check .connect_ip is defined and tcp_check .connect_ip %}
8
10
connect_ip {{ tcp_check.connect_ip }}
Original file line number Diff line number Diff line change 1
1
{# extra spaces are needed for backward compatibility #}
2
- ip_family {{ vserver.ip_family | default('inet') }}
2
+ {% if vserver .ip_family is defined %}
3
+ ip_family {{ vserver.ip_family | default('inet', true) }}
4
+ {% endif %}
3
5
{% if vserver .delay_loop is defined %}
4
6
delay_loop {{ vserver.delay_loop }}
5
7
{% endif %}
6
8
lvs_sched {{ vserver.lvs_sched | default ('rr') }}
7
9
lvs_method {{ vserver.lvs_method | default ('DR') }}
10
+ {% if vserver .persistence_timeout is defined %}
11
+ persistence_timeout {{ vserver.persistence_timeout }}
12
+ {% endif %}
8
13
protocol {{ vserver.protocol | default ('TCP') }}
9
14
{% if vserver .ha_suspend is defined and vserver .ha_suspend %}
10
15
ha_suspend
You can’t perform that action at this time.
0 commit comments