summaryrefslogtreecommitdiff
path: root/interface-definitions/system-display.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-08-12 23:04:06 +0200
committerChristian Poessinger <christian@poessinger.com>2020-08-12 23:04:06 +0200
commit8efb8ba1efa9d51ec376bac0bfcb48cf200447a9 (patch)
treec2cc9abcddee7bf5bdf829329d2c05f8a18e8b23 /interface-definitions/system-display.xml.in
parent21bc98f16110d0fa2d7d93409252da73f58878ed (diff)
parentb5e0a1796cc7887245ae79c759f709e1705f5e93 (diff)
downloadvyos-1x-8efb8ba1efa9d51ec376bac0bfcb48cf200447a9.tar.gz
vyos-1x-8efb8ba1efa9d51ec376bac0bfcb48cf200447a9.zip
Merge branch 'system-display' of https://github.com/fmertz/vyos-1x into t2564-lcd
* 'system-display' of https://github.com/fmertz/vyos-1x: system display: T2564: Added test model system display: T2564: Dictionary code update system display: T2564: Conf files to /run system display: T2564: Changed "duration" to "time" system display: T2564: py code cleanup system display: T2564: Replace "config (enabled|disabled)" with "display disabled" system display: T2564: Lowercase model names system display: T2564 Extend VyOS to support appliance LCDs
Diffstat (limited to 'interface-definitions/system-display.xml.in')
-rw-r--r--interface-definitions/system-display.xml.in235
1 files changed, 235 insertions, 0 deletions
diff --git a/interface-definitions/system-display.xml.in b/interface-definitions/system-display.xml.in
new file mode 100644
index 000000000..fbd897996
--- /dev/null
+++ b/interface-definitions/system-display.xml.in
@@ -0,0 +1,235 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <!--
+ system display model (sdec|ezio|test)
+ system display show host (cpu|cpu-all|cpu-hist|disk|load-hist|memory|proc|uptime)
+ network interface <intName> alias <alias>
+ units (bps|Bps|pps)
+ clock (big|mini|date-time)
+ title <name>
+
+ system display time <s>
+ system display hello <string>
+ system display bye <string>
+ system display disabled
+ -->
+ <node name="system">
+ <children>
+ <node name="display" owner="${vyos_conf_scripts_dir}/system-display.py">
+ <properties>
+ <help>System display LCD/VFD/LED</help>
+ <priority>400</priority>
+ </properties>
+ <children>
+ <!-- system display model (sdec|ezio) -->
+ <leafNode name="model">
+ <properties>
+ <help>Model of the display attached to this system [REQUIRED]</help>
+ <completionHelp>
+ <list>sdec ezio test</list>
+ </completionHelp>
+ <constraint>
+ <regex>(sdec|ezio|test)</regex>
+ </constraint>
+ <constraintErrorMessage>Invalid system display model</constraintErrorMessage>
+ <valueHelp>
+ <format>sdec</format>
+ <description>Display model for Lanner, Watchguard, Nexcom NSA, Sophos UTM appliances with built-in SDEC LCD</description>
+ </valueHelp>
+ <valueHelp>
+ <format>ezio</format>
+ <description>Display model for Portwell, Caswell appliances with built-in EZIO-100 or EZIO-300 LCD</description>
+ </valueHelp>
+ <valueHelp>
+ <format>test</format>
+ <description>Test model for USB CrystalFonz CF533</description>
+ </valueHelp>
+ </properties>
+ </leafNode><!--system display model-->
+ <!-- system display disabled -->
+ <leafNode name="disabled">
+ <properties>
+ <help>Disable sytem display</help>
+ <valueless/>
+ </properties>
+ </leafNode><!--system display disabled-->
+ <node name="show">
+ <properties>
+ <help>Select the screens for the system display [REQUIRED]</help>
+ </properties>
+ <children>
+ <!-- system display show host (cpu|cpu-all|cpu-hist|disk|load-hist|memory|proc|uptime) -->
+ <leafNode name="host">
+ <properties>
+ <multi/>
+ <help>Select host screens for the system display</help>
+ <completionHelp>
+ <list>cpu cpu-all cpu-hist disk load-hist memory proc uptime</list>
+ </completionHelp>
+ <constraint>
+ <regex>(cpu|cpu-all|cpu-hist|disk|load-hist|memory|proc|uptime)</regex>
+ </constraint>
+ <constraintErrorMessage>Invalid host screen</constraintErrorMessage>
+ <valueHelp>
+ <format>cpu</format>
+ <description>Detailed CPU usage</description>
+ </valueHelp>
+ <valueHelp>
+ <format>cpu-all</format>
+ <description>CPU usage overview (one line per CPU)</description>
+ </valueHelp>
+ <valueHelp>
+ <format>cpu-hist</format>
+ <description>CPU usage histogram</description>
+ </valueHelp>
+ <valueHelp>
+ <format>disk</format>
+ <description>File systems fill level</description>
+ </valueHelp>
+ <valueHelp>
+ <format>load-hist</format>
+ <description>Load histogram</description>
+ </valueHelp>
+ <valueHelp>
+ <format>memory</format>
+ <description>Memory and swap usage</description>
+ </valueHelp>
+ <valueHelp>
+ <format>proc</format>
+ <description>Top processes by size</description>
+ </valueHelp>
+ <valueHelp>
+ <format>uptime</format>
+ <description>System uptime</description>
+ </valueHelp>
+ </properties>
+ </leafNode><!--system display show host-->
+ <!-- system display show network -->
+ <node name="network">
+ <properties>
+ <help>Network settings for system display</help>
+ </properties>
+ <children>
+ <!-- system display show network interface <interface name> -->
+ <tagNode name="interface">
+ <properties>
+ <help>Show network traffic on the system display [Max 3 interfaces]</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_interfaces.py -b</script>
+ </completionHelp>
+ </properties>
+ <children>
+ <leafNode name="alias">
+ <properties>
+ <help>Interface alias</help>
+ <constraint>
+ <regex>[A-Za-z0-9]{1,10}</regex>
+ </constraint>
+ <constraintErrorMessage>Invalid alias, must be 1 to 10 char or digit</constraintErrorMessage>
+ </properties>
+ </leafNode>
+ </children>
+ </tagNode><!--system display show network interface-->
+ <!-- system display show network units -->
+ <leafNode name="units">
+ <properties>
+ <help>Unit for network details</help>
+ <completionHelp>
+ <list>bps Bps pps</list>
+ </completionHelp>
+ <constraint>
+ <regex>(bps|Bps|pps)</regex>
+ </constraint>
+ <constraintErrorMessage>Invalid network detail unit</constraintErrorMessage>
+ <valueHelp>
+ <format>bps</format>
+ <description>Bit(s) per second</description>
+ </valueHelp>
+ <valueHelp>
+ <format>Bps</format>
+ <description>Byte(s) per second</description>
+ </valueHelp>
+ <valueHelp>
+ <format>pps</format>
+ <description>Packet(s) per second</description>
+ </valueHelp>
+ </properties>
+ </leafNode><!--system display show network units-->
+ </children>
+ </node><!--system display show network-->
+ <!-- system display show clock (Big|Mini|Date-Time) -->
+ <leafNode name="clock">
+ <properties>
+ <!--multi-->
+ <help>Show a clock on the system display</help>
+ <completionHelp>
+ <list>big mini date-time</list>
+ </completionHelp>
+ <constraint>
+ <regex>(big|mini|date-time)</regex>
+ </constraint>
+ <constraintErrorMessage>Invalid clock format</constraintErrorMessage>
+ <valueHelp>
+ <format>big</format>
+ <description>Multi-line clock</description>
+ </valueHelp>
+ <valueHelp>
+ <format>mini</format>
+ <description>Minimal clock</description>
+ </valueHelp>
+ <valueHelp>
+ <format>date-time</format>
+ <description>Clock with Date and Time </description>
+ </valueHelp>
+ </properties>
+ </leafNode><!--system display show clock-->
+ <!-- system display show title -->
+ <leafNode name="title">
+ <properties>
+ <help>Screen title to show on the system display</help>
+ <constraint>
+ <regex>[A-Za-z0-9]{1,16}</regex>
+ </constraint>
+ <constraintErrorMessage>Invalid title, must be 1 to 16 char or digit</constraintErrorMessage>
+ </properties>
+ </leafNode><!--system display show title-->
+ </children>
+ </node><!--system display show-->
+ <!-- system display time -->
+ <leafNode name="time">
+ <properties>
+ <help>Time in sec to show each screen on the system display</help>
+ <valueHelp>
+ <format>1-30</format>
+ <description>Numer of seconds</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-30"/>
+ </constraint>
+ </properties>
+ </leafNode><!--system display time-->
+ <!-- system display hello -->
+ <leafNode name="hello">
+ <properties>
+ <help>Message to show when system display first starts</help>
+ <constraint>
+ <regex>.{1,16}</regex>
+ </constraint>
+ <constraintErrorMessage>Hello message must be 1 to 16 char</constraintErrorMessage>
+ </properties>
+ </leafNode><!--system display hello-->
+ <!-- system display bye -->
+ <leafNode name="bye">
+ <properties>
+ <help>Message to show when system display stops</help>
+ <constraint>
+ <regex>.{1,16}</regex>
+ </constraint>
+ <constraintErrorMessage>Bye message must be 1 to 16 char</constraintErrorMessage>
+ </properties>
+ </leafNode><!--system display bye-->
+ </children>
+ </node><!--system display-->
+ </children>
+ </node><!--system-->
+</interfaceDefinition>