diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-06-20 21:37:01 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-06-20 21:37:01 +0200 |
commit | 32df4dc8fbd28115c0c3fa7f529db9377fdfe8b5 (patch) | |
tree | 01dccbeca128e4b312e4d151a9afe0f23190bb0a /interface-definitions/dhcp-server.xml.in | |
parent | 87e11e7ca0a43c9dfa4798823236c8244b5256be (diff) | |
download | vyos-1x-32df4dc8fbd28115c0c3fa7f529db9377fdfe8b5.tar.gz vyos-1x-32df4dc8fbd28115c0c3fa7f529db9377fdfe8b5.zip |
T778: T782: dhcp-server: add missing bootfile-size and bootfile-name constraints
Diffstat (limited to 'interface-definitions/dhcp-server.xml.in')
-rw-r--r-- | interface-definitions/dhcp-server.xml.in | 12 |
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"> |