summaryrefslogtreecommitdiff
path: root/data/templates/dhcp-server/dhcpd.conf.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-01-24 19:58:38 +0100
committerGitHub <noreply@github.com>2022-01-24 19:58:38 +0100
commitc50dc1217d0dcddaf50caec346e209158e8cabb7 (patch)
tree0d77f166ccdde115c6e6cc35a428d6de38db783d /data/templates/dhcp-server/dhcpd.conf.tmpl
parentbcc45248facbc5a7ca12920a4e1f2ed5039574eb (diff)
parent97aca4001263485a3a754860d73b45b973de49a1 (diff)
downloadvyos-1x-c50dc1217d0dcddaf50caec346e209158e8cabb7.tar.gz
vyos-1x-c50dc1217d0dcddaf50caec346e209158e8cabb7.zip
Merge pull request #1187 from goodNETnick/dhcp-client-prefix_1.3
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 }};