summaryrefslogtreecommitdiff
path: root/interface-definitions/system-console.xml.in
blob: 2897e5e974542d34ea7a6050026cabe1f8b15e23 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="system">
    <children>
      <node name="console" owner="${vyos_conf_scripts_dir}/system_console.py">
        <properties>
          <help>Serial console configuration</help>
          <priority>100</priority>
        </properties>
        <children>
          <tagNode name="device">
            <properties>
              <help>Serial console device name</help>
              <completionHelp>
                <script>ls -1 /dev | grep -e ttyS -e hvc</script>
                <script>if [ -d /dev/serial/by-bus ]; then ls -1 /dev/serial/by-bus; fi</script>
              </completionHelp>
              <valueHelp>
                <format>ttySN</format>
                <description>TTY device name, regular serial port</description>
              </valueHelp>
              <valueHelp>
                <format>usbNbXpY</format>
                <description>TTY device name, USB based</description>
              </valueHelp>
              <valueHelp>
                <format>hvcN</format>
                <description>Xen console</description>
              </valueHelp>
              <constraint>
                  <regex>^(ttyS[0-9]+|hvc[0-9]+|usb[0-9]+b.*)$</regex>
              </constraint>
            </properties>
            <children>
              <leafNode name="speed">
                <properties>
                  <help>Console baud rate</help>
                  <completionHelp>
                    <list>1200 2400 4800 9600 19200 38400 57600 115200</list>
                  </completionHelp>
                  <valueHelp>
                    <format>1200</format>
                    <description>1200 bps</description>
                  </valueHelp>
                  <valueHelp>
                    <format>2400</format>
                    <description>2400 bps</description>
                  </valueHelp>
                  <valueHelp>
                    <format>4800</format>
                    <description>4800 bps</description>
                  </valueHelp>
                  <valueHelp>
                    <format>9600</format>
                    <description>9600 bps</description>
                  </valueHelp>
                  <valueHelp>
                    <format>19200</format>
                    <description>19200 bps</description>
                  </valueHelp>
                  <valueHelp>
                    <format>38400</format>
                    <description>38400 bps</description>
                  </valueHelp>
                  <valueHelp>
                    <format>57600</format>
                    <description>57600 bps</description>
                  </valueHelp>
                  <valueHelp>
                    <format>115200</format>
                    <description>115200 bps</description>
                  </valueHelp>
                  <constraint>
                    <regex>^(1200|2400|4800|9600|19200|38400|57600|115200)$</regex>
                  </constraint>
                </properties>
                <defaultValue>115200</defaultValue>
              </leafNode>
            </children>
          </tagNode>
          <leafNode name="powersave">
            <properties>
              <help>Enable screen blank powersaving on VGA console</help>
              <valueless/>
            </properties>
          </leafNode>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>