summaryrefslogtreecommitdiff
path: root/interface-definitions/system_name-server.xml.in
blob: 2f750abfab86029e2f918ca343be0cd33f7d7c0a (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
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="system">
    <children>
      <leafNode name="name-server" owner="${vyos_conf_scripts_dir}/system_host-name.py">
        <properties>
          <help>System Domain Name Servers (DNS)</help>
          <priority>400</priority>
          <completionHelp>
            <script>${vyos_completion_dir}/list_interfaces</script>
          </completionHelp>
          <valueHelp>
            <format>ipv4</format>
            <description>Domain Name Server IPv4 address</description>
          </valueHelp>
          <valueHelp>
            <format>ipv6</format>
            <description>Domain Name Server IPv6 address</description>
          </valueHelp>
          <valueHelp>
            <format>txt</format>
            <description>Use Domain Name Server from DHCP interface</description>
          </valueHelp>
          <multi/>
          <constraint>
            <validator name="ip-address"/>
            #include <include/constraint/interface-name.xml.i>
          </constraint>
        </properties>
      </leafNode>
    </children>
  </node>
</interfaceDefinition>