if a threshold is defined, use it

This commit is contained in:
webzwo0i 2016-12-15 23:03:13 +01:00
parent 0d551a082d
commit a026b6e960
1 changed files with 1 additions and 1 deletions

View File

@ -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 %}