Reworked UVL schemes
[project/luci.git] / libs / uvl / root / lib / uci / schema / default / ntpclient
diff --git a/libs/uvl/root/lib/uci/schema/default/ntpclient b/libs/uvl/root/lib/uci/schema/default/ntpclient
new file mode 100644 (file)
index 0000000..0b7b5a5
--- /dev/null
@@ -0,0 +1,53 @@
+package ntpclient
+
+config package
+       option title 'Time Synchronisation'
+
+config section
+       option name 'ntpclient'
+       option package 'ntpclient'
+       option title 'General'
+       option unique true
+       option required true
+
+config variable
+       option name 'interval'
+       option section 'ntpclient.ntpclient'
+       option title 'Update Interval (in s)'
+       option datatype uint
+
+config variable
+       option name 'count'
+       option section 'ntpclient.ntpclient'
+       option title 'Count of Time Measurements'
+       option datatype uint
+
+config section
+       option name 'ntpdrift'
+       option package 'ntpclient'
+       option title 'Clock Adjustment'
+       option unique true
+
+config variable
+       option name 'freq'
+       option section 'ntpclient.ntpdrift'
+       option title 'Offset Frequency'
+       option datatype float
+
+config section
+       option name 'ntpserver'
+       option package 'ntpclient'
+       option title 'Time Server'
+
+config variable
+       option name 'hostname'
+       option section 'ntpclient.ntpserver'
+       option title 'Hostname'
+       option required true
+       option datatype host
+
+config variable
+       option name 'port'
+       option section 'ntpclient.ntpserver'
+       option title 'Port'
+       option datatype port