summaryrefslogtreecommitdiff
path: root/test/data/interface_definition_sample.xml
blob: 7d4e5dfe60c59c8ee2b711f27da07412ed1b4161 (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
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="system">
    <children>
      <node name="login" owner="login">
        <children>
          <tagNode name="user">
            <properties>
              <help>User name</help>
              <constraint>
                <regex>[a-zA-Z][a-zA-Z0-9\-]+</regex>
              </constraint>
              <constraintErrorMessage>User name must start with a letter and consist of letters and digits</constraintErrorMessage>
            </properties>
            <children>
              <leafNode name="full-name">
                <properties>
                  <help>User full name</help>
                </properties>
              </leafNode>
            </children>
          </tagNode>
        </children>
      </node>
      <leafNode name="host-name">
        <properties>
          <constraint>
            <regex>[a-zA-Z][a-zA-Z0-9\-]</regex>
          </constraint>
        </properties>
      </leafNode>
      <node name="options">
        <children>
          <leafNode name="reboot-on-panic">
            <properties>
              <help>Reboot automatically if kernel panic occurs</help>
              <valueless/>
            </properties>
          </leafNode>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>