summaryrefslogtreecommitdiff
path: root/interface-definitions/tftp-server.xml
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2018-08-26 14:53:16 +0200
committerChristian Poessinger <christian@poessinger.com>2018-08-26 14:53:16 +0200
commit81f0f401e2f255167ffa33ca3b300fd16540e5e6 (patch)
tree1245375010c95d9e96029b8bf5f1f9fd38ec24d5 /interface-definitions/tftp-server.xml
parentbbc698be2fcafad4e803fc01ec89f44a3aa20782 (diff)
parent4d222bc14c23ba010b6e245ff35ddb766401b20d (diff)
downloadvyos-1x-81f0f401e2f255167ffa33ca3b300fd16540e5e6.tar.gz
vyos-1x-81f0f401e2f255167ffa33ca3b300fd16540e5e6.zip
Merge branch 'tftp-server' into current
* tftp-server: T792: add TFTP server functionality ssh.py: start/stop service via systemctl ntp.py: start/stop service via systemctl
Diffstat (limited to 'interface-definitions/tftp-server.xml')
-rw-r--r--interface-definitions/tftp-server.xml57
1 files changed, 57 insertions, 0 deletions
diff --git a/interface-definitions/tftp-server.xml b/interface-definitions/tftp-server.xml
new file mode 100644
index 000000000..2874b034c
--- /dev/null
+++ b/interface-definitions/tftp-server.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0"?>
+<!-- TFTP configuration -->
+<interfaceDefinition>
+ <node name="service">
+ <children>
+ <node name="tftp-server" owner="${vyos_conf_scripts_dir}/tftp_server.py">
+ <properties>
+ <help>Trivial File Transfer Protocol (TFTP) server</help>
+ <priority>990</priority>
+ </properties>
+ <children>
+ <leafNode name="directory">
+ <properties>
+ <help>Folder containing files served by TFTP [REQUIRED]</help>
+ </properties>
+ </leafNode>
+ <leafNode name="allow-upload">
+ <properties>
+ <help>Allow TFTP file uploads</help>
+ <valueless/>
+ </properties>
+ </leafNode>
+ <leafNode name="port">
+ <properties>
+ <help>Port for TFTP service</help>
+ <valueHelp>
+ <format>1-65535</format>
+ <description>Numeric IP port (default: 69)</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-65535"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ <leafNode name="listen-address">
+ <properties>
+ <help>Addresses for TFTP server to listen [REQUIRED]</help>
+ <valueHelp>
+ <format>ipv4</format>
+ <description>TFTP IPv4 listen address</description>
+ </valueHelp>
+ <valueHelp>
+ <format>ipv6</format>
+ <description>TFTP IPv6 listen address</description>
+ </valueHelp>
+ <multi/>
+ <constraint>
+ <validator name="ipv4-address"/>
+ <validator name="ipv6-address"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>