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..ff815c9d3
--- /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>find /usr/share/zoneinfo/posix -type f -or -type l | sed -e s:/usr/share/zoneinfo/posix/:: | sort</script>
+ </completionHelp>
+ <constraint>
+ <validator name="timezone" argument="--validate"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ </children>
+ </node>
+</interfaceDefinition>