summaryrefslogtreecommitdiff
path: root/data/templates/dhcp-server/dhcpd.conf.tmpl
diff options
context:
space:
mode:
authorgoodNETnick <pknet@ya.ru>2022-01-20 06:58:17 -0500
committergoodNETnick <pknet@ya.ru>2022-01-20 23:49:30 -0500
commit28a92e75cf931c54423e2441ebf85ab3629e59b4 (patch)
treef30c92c43282231547570d4cad66de7b3a8c4815 /data/templates/dhcp-server/dhcpd.conf.tmpl
parent569dfa77f07cb707dec4b29ed3e2a350e214af80 (diff)
downloadvyos-1x-28a92e75cf931c54423e2441ebf85ab3629e59b4.tar.gz
vyos-1x-28a92e75cf931c54423e2441ebf85ab3629e59b4.zip
DHCP: T4196: fix client-prefix-length parameter
Diffstat (limited to 'data/templates/dhcp-server/dhcpd.conf.tmpl')
-rw-r--r--data/templates/dhcp-server/dhcpd.conf.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/dhcp-server/dhcpd.conf.tmpl b/data/templates/dhcp-server/dhcpd.conf.tmpl
index 233e2cc53..da2f28ced 100644
--- a/data/templates/dhcp-server/dhcpd.conf.tmpl
+++ b/data/templates/dhcp-server/dhcpd.conf.tmpl
@@ -165,7 +165,7 @@ shared-network {{ network | replace('_','-') }} {
option wpad-url "{{ subnet_config.wpad_url }}";
{% endif %}
{% if subnet_config.client_prefix_length is defined and subnet_config.client_prefix_length is not none %}
- option subnet-mask {{ subnet_config.client_prefix_length }};
+ option subnet-mask {{ ('0.0.0.0/' ~ subnet_config.client_prefix_length) | netmask_from_cidr }};
{% endif %}
{% if subnet_config.lease is defined and subnet_config.lease is not none %}
default-lease-time {{ subnet_config.lease }};