diff options
author | Georg <georg@lysergic.dev> | 2022-01-09 21:10:38 +0100 |
---|---|---|
committer | Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net> | 2022-02-01 22:26:50 +0100 |
commit | 15461be0cd7b51e0e290d66bae0bb112f6b2c3ea (patch) | |
tree | e52992a24f1475948c66ed9654d66acc8f90e671 | |
parent | b4ac2f6479bb618a54b7dff533ae15b9a9bf8831 (diff) | |
download | vyos-1x-15461be0cd7b51e0e290d66bae0bb112f6b2c3ea.tar.gz vyos-1x-15461be0cd7b51e0e290d66bae0bb112f6b2c3ea.zip |
T4156: Add bootfile-size option
Signed-off-by: Georg <georg@lysergic.dev>
-rw-r--r-- | data/templates/dhcp-server/dhcpd.conf.tmpl | 3 | ||||
-rw-r--r-- | interface-definitions/dhcp-server.xml.in | 5 |
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 233e2cc53..e47838c8c 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 defined and subnet_config.bootfile_server is not none %} 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 defined and subnet_config.time_offset is not none %} 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 d1ed579e9..b674e299e 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> |