summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-10-11 21:09:01 +0200
committerChristian Poessinger <christian@poessinger.com>2020-10-11 21:09:01 +0200
commit8fab454559a8d8791cbb24b18f23634f66e8064b (patch)
tree15bd3af47be156d3725cb6415f80f2d61dc1276a /interface-definitions
parent190b6612f65382917457f827eddb7b627f3b4fb0 (diff)
downloadvyos-1x-8fab454559a8d8791cbb24b18f23634f66e8064b.tar.gz
vyos-1x-8fab454559a8d8791cbb24b18f23634f66e8064b.zip
tftp-server: T2974: migrate to get_config_dict()
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/tftp-server.xml.in14
1 files changed, 13 insertions, 1 deletions
diff --git a/interface-definitions/tftp-server.xml.in b/interface-definitions/tftp-server.xml.in
index 6458aaba2..abab71abd 100644
--- a/interface-definitions/tftp-server.xml.in
+++ b/interface-definitions/tftp-server.xml.in
@@ -20,7 +20,19 @@
<valueless/>
</properties>
</leafNode>
- #include <include/port-number.xml.i>
+ <leafNode name="port">
+ <properties>
+ <help>Port number used to listen for connections</help>
+ <valueHelp>
+ <format>1-65535</format>
+ <description>Numeric IP port</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-65535"/>
+ </constraint>
+ </properties>
+ <defaultValue>69</defaultValue>
+ </leafNode>
#include <include/listen-address.xml.i>
</children>
</node>