summaryrefslogtreecommitdiff
path: root/interface-definitions/system_time-zone.xml.in
diff options
context:
space:
mode:
Diffstat (limited to 'interface-definitions/system_time-zone.xml.in')
-rw-r--r--interface-definitions/system_time-zone.xml.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/interface-definitions/system_time-zone.xml.in b/interface-definitions/system_time-zone.xml.in
new file mode 100644
index 000000000..65cce9e95
--- /dev/null
+++ b/interface-definitions/system_time-zone.xml.in
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="system">
+ <children>
+ <leafNode name="time-zone" owner="${vyos_conf_scripts_dir}/system_timezone.py">
+ <properties>
+ <help>Local time zone (default UTC)</help>
+ <priority>100</priority>
+ <completionHelp>
+ <script>timedatectl list-timezones</script>
+ </completionHelp>
+ <constraint>
+ <validator name="timezone" argument="--validate"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ </children>
+ </node>
+</interfaceDefinition>