summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-06-20 21:37:01 +0200
committerChristian Poessinger <christian@poessinger.com>2022-06-20 21:37:01 +0200
commit32df4dc8fbd28115c0c3fa7f529db9377fdfe8b5 (patch)
tree01dccbeca128e4b312e4d151a9afe0f23190bb0a
parent87e11e7ca0a43c9dfa4798823236c8244b5256be (diff)
downloadvyos-1x-32df4dc8fbd28115c0c3fa7f529db9377fdfe8b5.tar.gz
vyos-1x-32df4dc8fbd28115c0c3fa7f529db9377fdfe8b5.zip
T778: T782: dhcp-server: add missing bootfile-size and bootfile-name constraints
-rw-r--r--interface-definitions/dhcp-server.xml.in12
1 files changed, 11 insertions, 1 deletions
diff --git a/interface-definitions/dhcp-server.xml.in b/interface-definitions/dhcp-server.xml.in
index 8988ee648..0747d649a 100644
--- a/interface-definitions/dhcp-server.xml.in
+++ b/interface-definitions/dhcp-server.xml.in
@@ -134,6 +134,9 @@
<leafNode name="bootfile-name">
<properties>
<help>Bootstrap file name</help>
+ <constraint>
+ <regex>[-_a-zA-Z0-9./]+</regex>
+ </constraint>
</properties>
</leafNode>
<leafNode name="bootfile-server">
@@ -155,7 +158,14 @@
</leafNode>
<leafNode name="bootfile-size">
<properties>
- <help>Bootstrap file size in 512 byte blocks</help>
+ <help>Bootstrap file size</help>
+ <valueHelp>
+ <format>u32:1-16</format>
+ <description>Bootstrap file size in 512 byte blocks</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-16"/>
+ </constraint>
</properties>
</leafNode>
<leafNode name="client-prefix-length">