summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-09-30 20:28:31 +0200
committerChristian Poessinger <christian@poessinger.com>2021-09-30 20:41:54 +0200
commit51bdfc7e04b96dfe0cb59756c83ab176efb27993 (patch)
treeb9652039c1c60f21aa854d9cac1ebdb3dbc23995 /data
parent21499b23a1b711aafe9640b898d06b95c70988b9 (diff)
downloadvyos-1x-51bdfc7e04b96dfe0cb59756c83ab176efb27993.tar.gz
vyos-1x-51bdfc7e04b96dfe0cb59756c83ab176efb27993.zip
dhcp-server: T2230: add subnet description into rendered config
(cherry picked from commit 2974628487abb9127922bf695331fd706a1d0e51)
Diffstat (limited to 'data')
-rw-r--r--data/templates/dhcp-server/dhcpd.conf.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/dhcp-server/dhcpd.conf.tmpl b/data/templates/dhcp-server/dhcpd.conf.tmpl
index 003c585dd..233e2cc53 100644
--- a/data/templates/dhcp-server/dhcpd.conf.tmpl
+++ b/data/templates/dhcp-server/dhcpd.conf.tmpl
@@ -90,6 +90,9 @@ shared-network {{ network | replace('_','-') }} {
{% endif %}
{% if network_config.subnet is defined and network_config.subnet is not none %}
{% for subnet, subnet_config in network_config.subnet.items() %}
+{% if subnet_config.description is defined and subnet_config.description is not none %}
+ # {{ subnet_config.description }}
+{% endif %}
subnet {{ subnet | address_from_cidr }} netmask {{ subnet | netmask_from_cidr }} {
{% if subnet_config.name_server is defined and subnet_config.name_server is not none %}
option domain-name-servers {{ subnet_config.name_server | join(', ') }};