summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2022-04-08 18:00:56 +0300
committerGitHub <noreply@github.com>2022-04-08 18:00:56 +0300
commit2bf7589e926b3d5f2f7aee0f98505eeb14fc826d (patch)
treea85f72880269bfb43740b7a0bc790dcaca6de1e7
parent654dbc9aa3b0d27ec4f3faefff6cbd85fc3e1d1a (diff)
parent630945291c9a389ad62fd32caea3749f4c5e9d72 (diff)
downloadvyos-1x-2bf7589e926b3d5f2f7aee0f98505eeb14fc826d.tar.gz
vyos-1x-2bf7589e926b3d5f2f7aee0f98505eeb14fc826d.zip
Merge pull request #1148 from tacerus/dhcpd
T4156: Add bootfile-size option
-rw-r--r--data/templates/dhcp-server/dhcpd.conf.tmpl3
-rw-r--r--interface-definitions/dhcp-server.xml.in5
2 files changed, 8 insertions, 0 deletions
diff --git a/data/templates/dhcp-server/dhcpd.conf.tmpl b/data/templates/dhcp-server/dhcpd.conf.tmpl
index b16d82f5c..f4297fe5f 100644
--- a/data/templates/dhcp-server/dhcpd.conf.tmpl
+++ b/data/templates/dhcp-server/dhcpd.conf.tmpl
@@ -158,6 +158,9 @@ shared-network {{ network | replace('_','-') }} {
{% if subnet_config.bootfile_server is vyos_defined %}
next-server {{ subnet_config.bootfile_server }};
{% endif %}
+{% if subnet_config.bootfile_size is defined and subnet_config.bootfile_size is not none %}
+ option boot-size {{ subnet_config.bootfile_size }};
+{% endif %}
{% if subnet_config.time_offset is vyos_defined %}
option time-offset {{ subnet_config.time_offset }};
{% endif %}
diff --git a/interface-definitions/dhcp-server.xml.in b/interface-definitions/dhcp-server.xml.in
index 312dcd2a0..4ea2d471d 100644
--- a/interface-definitions/dhcp-server.xml.in
+++ b/interface-definitions/dhcp-server.xml.in
@@ -142,6 +142,11 @@
boot file is to be loaded</help>
</properties>
</leafNode>
+ <leafNode name="bootfile-size">
+ <properties>
+ <help>Bootstrap file size in 512 byte blocks</help>
+ </properties>
+ </leafNode>
<leafNode name="client-prefix-length">
<properties>
<help>Specifies the clients subnet mask as per RFC 950. If unset, subnet declaration is used.</help>