summaryrefslogtreecommitdiff
path: root/interface-definitions/host-name.xml
blob: bbe67960706f95ff16cd6a6d5e2b2727efbeca26 (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_conf_scripts_dir}/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>