diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-12-30 14:42:04 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-12-30 14:42:04 +0100 |
commit | b9a6dab2d4f162eba59b9eec989b1de1b249f3fd (patch) | |
tree | da4e26a68aeb143045ffa7d38b0ebd9a2ea49fed /interface-definitions | |
parent | 972944a930c4417af86acb5905b6f92ec55eeb1c (diff) | |
download | vyos-1x-b9a6dab2d4f162eba59b9eec989b1de1b249f3fd.tar.gz vyos-1x-b9a6dab2d4f162eba59b9eec989b1de1b249f3fd.zip |
options: T1919: migrate 'system options' to XML/Python representation
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/system-options.xml.in | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/interface-definitions/system-options.xml.in b/interface-definitions/system-options.xml.in new file mode 100644 index 000000000..5fa0635bd --- /dev/null +++ b/interface-definitions/system-options.xml.in @@ -0,0 +1,45 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="system"> + <children> + <node name="options" owner="${vyos_conf_scripts_dir}/system-options.py"> + <properties> + <help>System Options</help> + <priority>400</priority> + </properties> + <children> + <leafNode name="ctrl-alt-del-action"> + <properties> + <help>Ctrl-Alt-Delete action</help> + <completionHelp> + <list>ignore reboot poweroff</list> + </completionHelp> + <valueHelp> + <format>ignore</format> + <description>Ignore Ctrl-Alt-Delete</description> + </valueHelp> + <valueHelp> + <format>reboot</format> + <description>Reboot VyOS</description> + </valueHelp> + <valueHelp> + <format>poweroff</format> + <description>Poweroff VyOS</description> + </valueHelp> + <constraint> + <regex>(ignore|reboot|poweroff)</regex> + </constraint> + <constraintErrorMessage>Must be ignore, reboot, or poweroff</constraintErrorMessage> + </properties> + </leafNode> + <leafNode name="reboot-on-panic"> + <properties> + <help>Reboot system on kernel panic</help> + <valueless/> + </properties> + </leafNode> + </children> + </node> + </children> + </node> +</interfaceDefinition> |