summaryrefslogtreecommitdiff
path: root/interface-definitions/tftp-server.xml.in
blob: 2874b034c7d4d8728773f2825cfd764baf4b3e96 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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>