<?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>