summaryrefslogtreecommitdiff
path: root/interface-definitions/ntp.xml
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-05-16 02:59:23 +0200
committerDaniil Baturin <daniil@baturin.org>2018-05-16 02:59:23 +0200
commit1c45baa4465111c8268568c80a2433ee7407fccb (patch)
treeebfadade5677f2e593152ac8ccd9936cc746dd62 /interface-definitions/ntp.xml
parent7445d2bfed62a47c2182ead5bc556efdca7597c4 (diff)
downloadvyos-1x-1c45baa4465111c8268568c80a2433ee7407fccb.tar.gz
vyos-1x-1c45baa4465111c8268568c80a2433ee7407fccb.zip
T642: add value validation to NTP allow-clients option.
Diffstat (limited to 'interface-definitions/ntp.xml')
-rw-r--r--interface-definitions/ntp.xml6
1 files changed, 4 insertions, 2 deletions
diff --git a/interface-definitions/ntp.xml b/interface-definitions/ntp.xml
index d9930a262..e8cfc539c 100644
--- a/interface-definitions/ntp.xml
+++ b/interface-definitions/ntp.xml
@@ -45,6 +45,9 @@
<node name="allow-clients">
<properties>
<help>Network Time Protocol (NTP) server options</help>
+ <constraint>
+ <validator name="ip-prefix"/>
+ </constraint>
</properties>
<children>
<leafNode name="address">
@@ -60,8 +63,7 @@
</valueHelp>
<multi/>
<constraint>
- <validator name="ipv4-address"/>
- <validator name="ipv6-address"/>
+ <validator name="ip-address"/>
</constraint>
</properties>
</leafNode>