summaryrefslogtreecommitdiff
path: root/interface-definitions/system-console.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-12-30 23:25:20 +0100
committerChristian Breunig <christian@breunig.cc>2024-01-01 09:25:32 +0100
commitc9eaafd9f808aba8d29be73054e11d37577e539a (patch)
treeaeccfda0a305cf6aca41630900e75bd32961a911 /interface-definitions/system-console.xml.in
parent2078253176046ea4d07e69caeb7932ea439b5614 (diff)
downloadvyos-1x-c9eaafd9f808aba8d29be73054e11d37577e539a.tar.gz
vyos-1x-c9eaafd9f808aba8d29be73054e11d37577e539a.zip
T5474: establish common file name pattern for XML conf mode commands
We will use _ as CLI level divider. The XML definition filename and also the Python helper should match the CLI node. Example: set interfaces ethernet -> interfaces_ethernet.xml.in set interfaces bond -> interfaces_bond.xml.in set service dhcp-server -> service_dhcp-server-xml.in (cherry picked from commit 4ef110fd2c501b718344c72d495ad7e16d2bd465)
Diffstat (limited to 'interface-definitions/system-console.xml.in')
-rw-r--r--interface-definitions/system-console.xml.in91
1 files changed, 0 insertions, 91 deletions
diff --git a/interface-definitions/system-console.xml.in b/interface-definitions/system-console.xml.in
deleted file mode 100644
index 5acd3e90b..000000000
--- a/interface-definitions/system-console.xml.in
+++ /dev/null
@@ -1,91 +0,0 @@
-<?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>