summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--interface-definitions/ntp.xml.in19
1 files changed, 18 insertions, 1 deletions
diff --git a/interface-definitions/ntp.xml.in b/interface-definitions/ntp.xml.in
index 6a8eb0818..b939d9dc6 100644
--- a/interface-definitions/ntp.xml.in
+++ b/interface-definitions/ntp.xml.in
@@ -5,13 +5,30 @@
<children>
<node name="ntp" owner="${vyos_conf_scripts_dir}/ntp.py">
<properties>
- <help>Network Time Protocol (NTP) configuration</help>
<priority>400</priority>
+ <help>Network Time Protocol (NTP) configuration</help>
</properties>
<children>
<tagNode name="server">
<properties>
<help>Network Time Protocol (NTP) server</help>
+ <valueHelp>
+ <format>ipv4</format>
+ <description>IP address of NTP server</description>
+ </valueHelp>
+ <valueHelp>
+ <format>ipv6</format>
+ <description>IPv6 address of NTP server</description>
+ </valueHelp>
+ <valueHelp>
+ <format>hostname</format>
+ <description>Fully qualified domain name of NTP server</description>
+ </valueHelp>
+ <constraint>
+ <validator name="ipv4-address"/>
+ <validator name="ipv6-address"/>
+ <validator name="fqdn"/>
+ </constraint>
</properties>
<children>
<leafNode name="noselect">