summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-22 19:57:04 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-22 21:46:03 +0200
commit0b466f7a54cfedaf53edec5f3d58676113ece391 (patch)
tree14bd17ebfc3ac2dbdb17018474b44f26bdad292f
parenta2ab95ff68b709f7ca31006bdef6607ef4ce961d (diff)
downloadvyos-1x-0b466f7a54cfedaf53edec5f3d58676113ece391.tar.gz
vyos-1x-0b466f7a54cfedaf53edec5f3d58676113ece391.zip
dhcp: T4388: missing constraint on tftp-server-name option
-rw-r--r--interface-definitions/dhcp-server.xml.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/interface-definitions/dhcp-server.xml.in b/interface-definitions/dhcp-server.xml.in
index 4ea2d471d..3c2c82a9d 100644
--- a/interface-definitions/dhcp-server.xml.in
+++ b/interface-definitions/dhcp-server.xml.in
@@ -374,6 +374,18 @@
<leafNode name="tftp-server-name">
<properties>
<help>TFTP server name</help>
+ <valueHelp>
+ <format>ipv4</format>
+ <description>TFTP server IPv4 address</description>
+ </valueHelp>
+ <valueHelp>
+ <format>hostname</format>
+ <description>TFTP server FQDN</description>
+ </valueHelp>
+ <constraint>
+ <validator name="ipv4-address"/>
+ <validator name="fqdn"/>
+ </constraint>
</properties>
</leafNode>
<leafNode name="time-offset">