summaryrefslogtreecommitdiff
path: root/interface-definitions/tftp-server.xml.in
blob: e903e8f4ee91d2b9af683432ff62f04410fee492 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?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 number used to listen for connections</help>
              <valueHelp>
                <format>u32: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>
    </children>
  </node>
</interfaceDefinition>