if a threshold is defined, use it
This commit is contained in:
parent
0d551a082d
commit
a026b6e960
|
@ -8,7 +8,7 @@ subnet {{ subnet.split('/')[0] }} netmask {{ netmasks[subnet.split('/')[1]] }} {
|
|||
authoritative;
|
||||
default-lease-time {{ conf['time'] }};
|
||||
max-lease-time {{ conf['max-time'] }};
|
||||
{%- if iface in ['pub'] %}
|
||||
{%- if conf.get('lower-max-time') and conf.get('time') %}
|
||||
min-lease-time {{ conf['time'] }};
|
||||
adaptive-lease-time-threshold {{ conf['lower-max-time'] }};
|
||||
{%- endif %}
|
||||
|
|
Loading…
Reference in New Issue