summaryrefslogtreecommitdiff
path: root/interface-definitions/dhcp-server.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-28 20:00:28 +0200
committerGitHub <noreply@github.com>2022-04-28 20:00:28 +0200
commitaf04f714897258cbb0bf08628ab6d11cdedfb40f (patch)
tree42a75479c30bb059f321f2c10189eb04fd7a83db /interface-definitions/dhcp-server.xml.in
parent0e9aabc52ffe994474a79297429d17ecc6746c9c (diff)
parentadf057efbe2ce443f820980568a6481774f67597 (diff)
downloadvyos-1x-af04f714897258cbb0bf08628ab6d11cdedfb40f.tar.gz
vyos-1x-af04f714897258cbb0bf08628ab6d11cdedfb40f.zip
Merge pull request #1297 from c-po/t4388-dhcp-equuleus
dhcp: T4388: missing constraint on tftp-server-name option
Diffstat (limited to 'interface-definitions/dhcp-server.xml.in')
-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 d1ed579e9..8c10ccf99 100644
--- a/interface-definitions/dhcp-server.xml.in
+++ b/interface-definitions/dhcp-server.xml.in
@@ -369,6 +369,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">