diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-09-19 11:14:43 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-09-19 11:14:43 +0200 |
commit | 83ea0cb273e29db22062cc133b6eabd4ba2761c7 (patch) | |
tree | 0eb0abea3645e6e377501e69ed3475363df780b2 /data/templates | |
parent | a8ccf72c222caad8cd7aaca9bca773be39e87f5c (diff) | |
download | vyos-1x-83ea0cb273e29db22062cc133b6eabd4ba2761c7.tar.gz vyos-1x-83ea0cb273e29db22062cc133b6eabd4ba2761c7.zip |
dhcp-server: T3841: add option to perform ICMP check before address assignment
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/dhcp-server/dhcpd.conf.tmpl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/data/templates/dhcp-server/dhcpd.conf.tmpl b/data/templates/dhcp-server/dhcpd.conf.tmpl index 54fff3ded..c71934426 100644 --- a/data/templates/dhcp-server/dhcpd.conf.tmpl +++ b/data/templates/dhcp-server/dhcpd.conf.tmpl @@ -73,6 +73,9 @@ shared-network {{ network | replace('_','-') }} { {% if network_config.domain_name is defined and network_config.domain_name is not none %} option domain-name "{{ network_config.domain_name }}"; {% endif %} +{% if network_config.ping_check is defined %} + ping-check true; +{% endif %} {% if network_config.shared_network_parameters is defined and network_config.shared_network_parameters is not none %} # The following {{ network_config.shared_network_parameters | length }} line(s) # were added as shared-network-parameters in the CLI and have not been validated @@ -160,6 +163,9 @@ shared-network {{ network | replace('_','-') }} { default-lease-time {{ subnet_config.lease }}; max-lease-time {{ subnet_config.lease }}; {% endif %} +{% if network_config.ping_check is not defined and subnet_config.ping_check is defined %} + ping-check true; +{% endif %} {% if subnet_config.static_mapping is defined and subnet_config.static_mapping is not none %} {% for host, host_config in subnet_config.static_mapping.items() if host_config.disable is not defined %} host {{ host | replace('_','-') if host_decl_name is defined else network | replace('_','-') + '_' + host | replace('_','-') }} { |