summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-12-25 17:51:29 +0100
committerChristian Poessinger <christian@poessinger.com>2019-12-26 14:05:52 +0100
commitbc36bb5a9db4143696b96ab74eee40539de3541d (patch)
treeca9323f9d12c9501a657a6e69b87239098ef949c /interface-definitions
parent1bf918791c5d39da7d93fe02dafc04e756559031 (diff)
downloadvyos-1x-bc36bb5a9db4143696b96ab74eee40539de3541d.tar.gz
vyos-1x-bc36bb5a9db4143696b96ab74eee40539de3541d.zip
time-zone: T1906: migrate to XML/Python
The current node.def based implementtion should be migrated from vyatta-cfg-system to vyos-1x. During the migration also provide a migration script which transforms some ole timezones like "Los_Angeles" into a proper IANA assigned timezone which should be "America/Los_Angeles".
Diffstat (limited to 'interface-definitions')
-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..1ef739735
--- /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}/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>