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:23 +0200
commit2974628487abb9127922bf695331fd706a1d0e51 (patch)
tree9816c4849923d25a1d6dc20866c92dd6248746b2 /data
parent0b414bcd2930a1469df0a747962f4650d0fb964b (diff)
downloadvyos-1x-2974628487abb9127922bf695331fd706a1d0e51.tar.gz
vyos-1x-2974628487abb9127922bf695331fd706a1d0e51.zip
dhcp-server: T2230: add subnet description into rendered config
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(', ') }};