From e36241579fca39f717bd2fb0385d0752b1ad0752 Mon Sep 17 00:00:00 2001 From: Daniel Hobley Date: Fri, 3 Jun 2016 14:11:15 +0200 Subject: [PATCH] Added default and max lease time options --- dhcpd/files/subnet.jinja | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dhcpd/files/subnet.jinja b/dhcpd/files/subnet.jinja index 05232a7..cd6a99c 100644 --- a/dhcpd/files/subnet.jinja +++ b/dhcpd/files/subnet.jinja @@ -26,6 +26,12 @@ {%- if config.has_key('next_server') %} {{ intendation }} next-server {{ config['next_server'] }}; {%- endif %} +{%- if config.has_key('default_lease_time') %} +{{ intendation }} default-lease-time {{ config['default_lease_time'] }}; +{%- endif %} +{%- if config.has_key('max_lease_time') %} +{{ intendation }} max-lease-time {{ config['max_lease_time'] }}; +{%- endif %} {%- if config.has_key('routers') and config.routers is string %} {{ intendation }} option routers {{ config.routers }}; {%- elif config.has_key('routers') and config.routers is sequence %}