summaryrefslogtreecommitdiff
path: root/interface-definitions/tftp-server.xml.in
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@sentrium.io>2019-12-10 05:12:15 +0700
committerGitHub <noreply@github.com>2019-12-10 05:12:15 +0700
commitbe09f1ec2bbc2ba23c718b01a5f3b52dde44695f (patch)
treeb5509a7d1d12ac7270f4177526cc51a1e8b6cd64 /interface-definitions/tftp-server.xml.in
parenteced4a49c67d2e0e3e131193afe679aee0c5c679 (diff)
parent0b3e8ee977604f2412dfcfa3da5ad24d56c1c7a5 (diff)
downloadvyos-1x-be09f1ec2bbc2ba23c718b01a5f3b52dde44695f.tar.gz
vyos-1x-be09f1ec2bbc2ba23c718b01a5f3b52dde44695f.zip
Merge pull request #178 from c-po/t1843-xml-preprocessor
Add GCC preprocessor support for XML files
Diffstat (limited to 'interface-definitions/tftp-server.xml.in')
-rw-r--r--interface-definitions/tftp-server.xml.in57
1 files changed, 57 insertions, 0 deletions
diff --git a/interface-definitions/tftp-server.xml.in b/interface-definitions/tftp-server.xml.in
new file mode 100644
index 000000000..2874b034c
--- /dev/null
+++ b/interface-definitions/tftp-server.xml.in
@@ -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>