summaryrefslogtreecommitdiff
path: root/interface-definitions/host-name.xml
blob: 6c7c373cce52664ba8cbf8003dc974a1e2734d50 (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
<?xml version="1.0"?>

<!-- host-name configuration -->

<interfaceDefinition>
  <node name="system">
    <children>
      <leafNode name="host-name" owner="${vyos_conf_scripts_dir}/host_name.py">
        <properties>
          <help>System host name (default: vyos)</help>
          <constraint>
            <regex>[A-Za-z0-9][-.A-Za-z0-9]*[A-Za-z0-9]</regex>
          </constraint>
        </properties>
      </leafNode>
      <leafNode name="domain-name" owner="${vyos_sbindir}/vyos_config_host_name.py">
        <properties>
          <help>System domain name</help>
          <constraint>
            <regex>[A-Za-z0-9][-.A-Za-z0-9]*</regex>
          </constraint>
        </properties>
      </leafNode>
    </children>
  </node>
</interfaceDefinition>