diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-12-27 12:13:34 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-12-27 12:13:34 +0100 |
commit | b32385f9acef1630771838a4e0baa9d0c40dd98e (patch) | |
tree | 34da3d88e5251b36d45052d70c4bcb9b53227fd8 /interface-definitions/ntp.xml.in | |
parent | 4d804c95441848e2b0774189f5ca0fe678f77a5a (diff) | |
download | vyos-1x-b32385f9acef1630771838a4e0baa9d0c40dd98e.tar.gz vyos-1x-b32385f9acef1630771838a4e0baa9d0c40dd98e.zip |
ntp: T623: add missing constraints for server tagNode
Diffstat (limited to 'interface-definitions/ntp.xml.in')
-rw-r--r-- | interface-definitions/ntp.xml.in | 19 |
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"> |