summaryrefslogtreecommitdiff
path: root/interface-definitions/host-name.xml
blob: 4ab244f6ac2a4fbbbbeb5c9cdeea08d6a5c5c673 (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_sbindir}/vyos-config-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>