summaryrefslogtreecommitdiff
path: root/interface-definitions/ntp.xml.in
diff options
context:
space:
mode:
Diffstat (limited to 'interface-definitions/ntp.xml.in')
-rw-r--r--interface-definitions/ntp.xml.in40
1 files changed, 8 insertions, 32 deletions
diff --git a/interface-definitions/ntp.xml.in b/interface-definitions/ntp.xml.in
index 85636a50f..4e874434b 100644
--- a/interface-definitions/ntp.xml.in
+++ b/interface-definitions/ntp.xml.in
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!-- NTP configuration -->
<interfaceDefinition>
- <node name="system">
+ <node name="service">
<children>
<node name="ntp" owner="${vyos_conf_scripts_dir}/ntp.py">
<properties>
@@ -25,8 +25,7 @@
<description>Fully qualified domain name of NTP server</description>
</valueHelp>
<constraint>
- <validator name="ipv4-address"/>
- <validator name="ipv6-address"/>
+ <validator name="ip-address"/>
<validator name="fqdn"/>
</constraint>
</properties>
@@ -37,15 +36,15 @@
<valueless/>
</properties>
</leafNode>
- <leafNode name="pool">
+ <leafNode name="nts">
<properties>
- <help>Associate with a number of remote servers</help>
+ <help>Enable Network Time Security (NTS) for the server</help>
<valueless/>
</properties>
</leafNode>
- <leafNode name="preempt">
+ <leafNode name="pool">
<properties>
- <help>Specifies the association as preemptable rather than the default persistent</help>
+ <help>Associate with a number of remote servers</help>
<valueless/>
</properties>
</leafNode>
@@ -57,31 +56,8 @@
</leafNode>
</children>
</tagNode>
- <node name="allow-clients">
- <properties>
- <help>Network Time Protocol (NTP) server options</help>
- </properties>
- <children>
- <leafNode name="address">
- <properties>
- <help>IP address</help>
- <valueHelp>
- <format>ipv4net</format>
- <description>IP address and prefix length</description>
- </valueHelp>
- <valueHelp>
- <format>ipv6net</format>
- <description>IPv6 address and prefix length</description>
- </valueHelp>
- <multi/>
- <constraint>
- <validator name="ip-prefix"/>
- </constraint>
- </properties>
- </leafNode>
- </children>
- </node>
- #include <include/generic-interface-multi.xml.i>
+ #include <include/allow-client.xml.i>
+ #include <include/generic-interface.xml.i>
#include <include/listen-address.xml.i>
#include <include/interface/vrf.xml.i>
</children>